Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- Part6 = Instance.new("Part")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- SurfaceGui12 = Instance.new("SurfaceGui")
- Frame13 = Instance.new("Frame")
- Frame14 = Instance.new("Frame")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- Model0.Parent = nil
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(3.52499986, 2.60000014, 14.2749872, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(3.5249998569488525, 2.6000001430511475, 14.27498722076416)
- Part1.Size = Vector3.new(1.0500000715255737, 0.20000004768371582, 0.050000015646219254)
- Part1.CanCollide = false
- Part1.Material = Enum.Material.Metal
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(4.0250001, 3.00000024, 14.7999878, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(4.025000095367432, 3.000000238418579, 14.79998779296875)
- Part2.Size = Vector3.new(0.050000015646219254, 1.4000000953674316, 1)
- Part2.CanCollide = false
- Part2.Material = Enum.Material.Metal
- Part2.FormFactor = Enum.FormFactor.Symmetric
- Part2.formFactor = Enum.FormFactor.Symmetric
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(2.97500014, 3.40000033, 14.7999878, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part3.Position = Vector3.new(2.9750001430511475, 3.4000003337860107, 14.79998779296875)
- Part3.Size = Vector3.new(0.050000015646219254, 0.19999998807907104, 1.100000023841858)
- Part3.CanCollide = false
- Part3.Material = Enum.Material.Metal
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Parent = Model0
- Part4.CFrame = CFrame.new(3.52499986, 3.4000001, 15.3249874, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(3.5249998569488525, 3.4000000953674316, 15.324987411499023)
- Part4.Size = Vector3.new(1.0500000715255737, 0.20000004768371582, 0.050000015646219254)
- Part4.CanCollide = false
- Part4.Material = Enum.Material.Metal
- Part4.FormFactor = Enum.FormFactor.Symmetric
- Part4.formFactor = Enum.FormFactor.Symmetric
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(3.52499986, 2.60000014, 15.3249874, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part5.Position = Vector3.new(3.5249998569488525, 2.6000001430511475, 15.324987411499023)
- Part5.Size = Vector3.new(1.0500000715255737, 0.20000004768371582, 0.050000015646219254)
- Part5.CanCollide = false
- Part5.Material = Enum.Material.Metal
- Part5.FormFactor = Enum.FormFactor.Symmetric
- Part5.formFactor = Enum.FormFactor.Symmetric
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(2.97500014, 2.60000038, 14.7999878, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part6.Position = Vector3.new(2.9750001430511475, 2.6000003814697266, 14.79998779296875)
- Part6.Size = Vector3.new(0.050000015646219254, 0.19999998807907104, 1.100000023841858)
- Part6.CanCollide = false
- Part6.Material = Enum.Material.Metal
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(4.07500029, 3.60000038, 14.7999878, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(4.075000286102295, 3.6000003814697266, 14.79998779296875)
- Part7.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part7.Size = Vector3.new(0.050000015646219254, 0.2000001221895218, 1)
- Part7.BrickColor = BrickColor.new("Smoky grey")
- Part7.CanCollide = false
- Part7.Material = Enum.Material.DiamondPlate
- Part7.brickColor = BrickColor.new("Smoky grey")
- Part7.FormFactor = Enum.FormFactor.Symmetric
- Part7.formFactor = Enum.FormFactor.Symmetric
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(4.07500029, 3.00000024, 14.349988, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(4.075000286102295, 3.000000238418579, 14.349987983703613)
- Part8.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part8.Size = Vector3.new(0.050000015646219254, 1, 0.1000000461935997)
- Part8.BrickColor = BrickColor.new("Smoky grey")
- Part8.CanCollide = false
- Part8.Material = Enum.Material.DiamondPlate
- Part8.brickColor = BrickColor.new("Smoky grey")
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.formFactor = Enum.FormFactor.Symmetric
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(4.07500029, 2.40000033, 14.7999878, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(4.075000286102295, 2.4000003337860107, 14.79998779296875)
- Part9.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part9.Size = Vector3.new(0.050000015646219254, 0.2000001221895218, 1)
- Part9.BrickColor = BrickColor.new("Smoky grey")
- Part9.CanCollide = false
- Part9.Material = Enum.Material.DiamondPlate
- Part9.brickColor = BrickColor.new("Smoky grey")
- Part9.FormFactor = Enum.FormFactor.Symmetric
- Part9.formFactor = Enum.FormFactor.Symmetric
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(4.07500029, 3.00000024, 15.2499876, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(4.075000286102295, 3.000000238418579, 15.249987602233887)
- Part10.Color = Color3.new(0.356863, 0.364706, 0.411765)
- Part10.Size = Vector3.new(0.050000015646219254, 1, 0.1000000461935997)
- Part10.BrickColor = BrickColor.new("Smoky grey")
- Part10.CanCollide = false
- Part10.Material = Enum.Material.DiamondPlate
- Part10.brickColor = BrickColor.new("Smoky grey")
- Part10.FormFactor = Enum.FormFactor.Symmetric
- Part10.formFactor = Enum.FormFactor.Symmetric
- Part11.Name = "screen"
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(4.0250001, 3.00000024, 14.7999878, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part11.Position = Vector3.new(4.025000095367432, 3.000000238418579, 14.79998779296875)
- Part11.Transparency = 1
- Part11.Size = Vector3.new(0.050000015646219254, 1.0000001192092896, 0.7999999523162842)
- Part11.CanCollide = false
- Part11.Material = Enum.Material.Metal
- Part11.FormFactor = Enum.FormFactor.Symmetric
- Part11.formFactor = Enum.FormFactor.Symmetric
- SurfaceGui12.Parent = Part11
- SurfaceGui12.Face = Enum.NormalId.Right
- SurfaceGui12.ClipsDescendants = true
- SurfaceGui12.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui12.Adornee = Part11
- Frame13.Name = "main"
- Frame13.Parent = SurfaceGui12
- Frame13.Size = UDim2.new(1, 0, 1, 0)
- Frame13.BackgroundColor = BrickColor.new("Really black")
- Frame13.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame14.Name = "dot"
- Frame14.Parent = Frame13
- Frame14.Position = UDim2.new(0, 0, 0, 49)
- Frame14.Size = UDim2.new(0, 1, 0, 1)
- Frame14.BackgroundColor = BrickColor.new("Really red")
- Frame14.BackgroundColor3 = Color3.new(1, 0, 0)
- Frame14.BorderSizePixel = 0
- Part15.Name = "main"
- Part15.Parent = Model0
- Part15.CFrame = CFrame.new(3.5, 3, 14.7999878, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part15.Position = Vector3.new(3.5, 3, 14.79998779296875)
- Part15.Transparency = 1
- Part15.Size = Vector3.new(1, 2, 1)
- Part15.CanCollide = false
- Part15.FormFactor = Enum.FormFactor.Symmetric
- Part15.formFactor = Enum.FormFactor.Symmetric
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(3.52499986, 3.4000001, 14.2749872, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part16.Position = Vector3.new(3.5249998569488525, 3.4000000953674316, 14.27498722076416)
- Part16.Size = Vector3.new(1.0500000715255737, 0.20000004768371582, 0.050000015646219254)
- Part16.CanCollide = false
- Part16.Material = Enum.Material.Metal
- Part16.FormFactor = Enum.FormFactor.Symmetric
- Part16.formFactor = Enum.FormFactor.Symmetric
- --
- local plr = owner
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- local rarm = char['Right Arm']
- local model = Model0
- local main = model.main
- local screen = model.screen
- for i,v in pairs(model:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = false
- v.CanCollide = false
- v.Massless = true
- if v ~= main then else
- continue
- end
- local w = Instance.new("Weld")
- w.Part0 = main
- w.Part1 = v
- w.C0 = w.Part0.CFrame:Inverse()
- w.C1 = w.Part1.CFrame:Inverse()
- w.Parent = w.Part1
- end
- end
- local w = Instance.new("Weld")
- w.Part0 = rarm
- w.Part1 = main
- w.Parent = w.Part1
- local gui = screen:FindFirstChildOfClass("SurfaceGui")
- local main_gui = gui.main
- local dot = main_gui.dot
- gui.LightInfluence = 0
- gui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- gui.PixelsPerStud = 50
- gui.Adornee = screen
- dot.Parent = nil
- local size = main_gui.AbsoluteSize
- local max_dots = size.X-1
- local cdot = 0
- local dots = {}
- local mon = Instance.new("Sound")
- mon.SoundId = 'rbxassetid://3929730934'
- mon.Volume = 0
- mon.Looped = true
- mon.Parent = main
- mon:Play()
- function update_screen()
- cdot += 1
- if cdot > max_dots then
- cdot = 1
- end
- local c = dots[cdot]
- if not c then
- c = dot:Clone()
- c.Parent = main_gui
- dots[cdot] = c
- end
- game:GetService("TweenService"):Create(c,TweenInfo.new(0),{
- BackgroundTransparency = 0
- }):Play()
- task.delay(0.3,function()
- game:GetService("TweenService"):Create(c,TweenInfo.new(1),{
- BackgroundTransparency = 1
- }):Play()
- end)
- local speed = 0
- if hum.Health > 0 then
- local m = (hum.Health/hum.MaxHealth)
- m = 1-math.clamp(m,0,1)
- speed = 1 + m*1.5
- end
- local t = os.clock()*speed
- local max = 100
- local y = 1000*math.pow(max,-1*(1+t%1))+math.sin(max*math.pi*t)
- y = math.clamp(y,0,max)
- mon.Volume = math.clamp(y/(max*2),0,1)*1
- c.Position = UDim2.new(0,cdot,0,(size.Y/2-1)-y)
- end
- model.Parent = char
- local ldot = 0
- local ldot_wait = 0.05
- local c
- c = game:GetService("RunService").Stepped:Connect(function()
- if char and char.Parent and hum then else
- c:Disconnect()
- return
- end
- if os.clock()-ldot >= ldot_wait then
- ldot = os.clock()
- update_screen()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement