SebTDZ

Untitled

Apr 26th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local Part = Instance.new("Part", game.Workspace)
  2. Part.Anchored = true
  3. Part.CanCollide = false
  4. Part.Size = Vector3.new(5, 5, 20)
  5. Part.Position = Vector3.new(0, 5, 0)
  6. --game.Debris:AddItem(Part, 5)
  7. while Part.Parent == game.Workspace do
  8.     local np = (Vector3.new(0, 5, 0) - game.Workspace:FindFirstChild(owner.Name).Head.Position).magnitude
  9.     Part.CFrame = CFrame.new(Vector3.new(0, 5, 0) , game.Workspace:FindFirstChild(owner.Name).Head.Position)
  10.     Part.Size = Vector3.new(5, 5, (Part.Position - game.Workspace:FindFirstChild(owner.Name).Head.Position).magnitude)
  11.     wait(0.01)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment