SebTDZ

Untitled

Apr 28th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local Part = game.Workspace:FindFirstChild(owner.Name).HumanoidRootPart
  2. dc = false
  3. owner:GetMouse().WheelForward:connect(function()
  4.     dc = true
  5. end)
  6. owner:GetMouse().WheelBackward:connect(function()
  7.     dc = false
  8. end)
  9. while Part.Parent == game.Workspace:FindFirstChild(owner.Name) do
  10.     if dc == false then
  11.         Part.CFrame = Part.CFrame + Vector3.new(0, 5, 0)
  12.     end
  13.     wait(0.01)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment