Advertisement
Runixer

WAAP Furniture Mod

Dec 30th, 2019
3,006
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mouse = plr:GetMouse()
  3. mouse.KeyDown:connect(function(key)
  4. if key == "f" then
  5. local Item = game.Players.LocalPlayer:GetMouse().Target.Parent
  6. local Size = Item.PrimaryPart.Size.Y
  7. Item.PrimaryPart.Size = Vector3.new(0,0,0)
  8. local Rotate
  9. local Tilt
  10. Rotate = 0
  11. Tilt = 0
  12. plr = game.Players.LocalPlayer
  13. mouse = plr:GetMouse()
  14. mouse.KeyDown:connect(function(key)
  15. if key == "r" then
  16. Rotate = Rotate + 22.5
  17. end
  18. end)
  19. plr = game.Players.LocalPlayer
  20. mouse = plr:GetMouse()
  21. mouse.KeyDown:connect(function(key)
  22. if key == "t" then
  23. Tilt = Tilt + 22.5
  24. end
  25. end)
  26. spawn(function()
  27. while game:GetService("RunService").RenderStepped:Wait() do
  28. game.Players.LocalPlayer:GetMouse().TargetFilter = Item
  29. Item:SetPrimaryPartCFrame(CFrame.new(math.floor(game.Players.LocalPlayer:GetMouse().Hit.X)+.03,math.ceil(game.Players.LocalPlayer:GetMouse().Hit.Y+(Size/2)-1),math.floor(game.Players.LocalPlayer:GetMouse().Hit.Z)-.03) * CFrame.Angles(math.rad(0),math.rad(Rotate),math.rad(Tilt)))
  30. end
  31. end)
  32. end
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement