Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Uranium = Instance.new("Part")
- Uranium.Material = "Neon"
- Uranium.Parent = Workspace
- Uranium.BrickColor = BrickColor.new(0,1,0)
- Uranium.Position = owner.Character.HumanoidRootPart.Position
- Sr = Instance.new("Part")
- Sr.Parent = Uranium
- Sr.Size = Vector3.new(10,10,10)
- Sr.Transparency = 1
- Sr.CanCollide = false
- Sr.CanTouch = true
- Sr.Position = Uranium.Position
- Weld = Instance.new("WeldConstraint",Uranium)
- Weld.Part0 = Sr
- Weld.Part1 = Uranium
- maxdis = 50
- Sound = Instance.new("Sound",Uranium)
- Sound.Looped = true
- Sound.SoundId = "rbxassetid://8009580020"
- Sound.EmitterSize = 5
- Sound.Looped = true
- function uraniumTick()
- Sr.Size = Uranium.Size * 10
- local Parts = Sr:GetTouchingParts()
- local Players = {}
- local connection = Sr.Touched:Connect(function() end)
- for i=1, #Parts do
- if Parts[i].Parent:FindFirstChild("Humanoid") then
- Players[#Players+1] = Parts[i].Parent
- end
- end
- Sound.Playing = (#Players ~= 0)
- for i=1, #Players do
- local distance = Uranium.Position - Players[i].HumanoidRootPart.Position
- distance = distance.X + distance.Y + distance.Z
- distance = 0 - math.abs(distance)
- distance = distance + 10
- distance = distance * 0.6
- Players[i].Humanoid.Health -= distance
- end
- end
- while wait(0.2) do
- uraniumTick()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement