Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i=1,25 do
- local fbdysg = Instance.new("Part",workspace)
- fbdysg.Anchored = true
- fbdysg.Position = Vector3.new(math.random(-500,500),math.random(25,100),math.random(-500,500))
- end
- owner = game.Players.TheOfficialSeb
- function add(p2)
- local p1 = owner.Character.HumanoidRootPart
- local NewPart = Instance.new("Part")
- NewPart.Parent = workspace
- NewPart.Material = "ForceField"
- NewPart.Name = "Tracker"
- NewPart.BrickColor = BrickColor.new("Bright blue")
- NewPart.Anchored = true
- NewPart.CanCollide = false
- NewPart.Size = Vector3.new(0.25, 0.25, 0.25)
- coroutine.resume(coroutine.create(function()
- while p2.Parent ~= nil and p1 ~= nil do
- local magnitude = (p2.Position - p1.Position).Magnitude
- NewPart.Size = Vector3.new(0.25, 0.25, magnitude)
- NewPart.CFrame = CFrame.new(p1.Position,p2.Position) * CFrame.new(0, 0, tonumber("-" .. string.format(magnitude/2)))
- wait(0.005)
- end
- NewPart:Remove()
- end))
- end
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.ClassName == "Part" then
- add(v)
- end
- end
Add Comment
Please, Sign In to add comment