Advertisement
DreamGamer_real

My plane Spawner

Jul 19th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. --DreamGmaer_real
  2.  
  3.  
  4.  
  5. --Info: To Use This Just Inset A Model Inside This Tool And Change The Name Where It Says Below
  6.  
  7.  
  8.  
  9. bin = script.Parent
  10.  
  11.  
  12. function onButton1Down(mouse)
  13.  
  14.  
  15.  
  16. local model = bin.melykszagvan:clone()
  17.  
  18.  
  19. model.Parent = game.Workspace
  20.  
  21. model:MakeJoints()
  22.  
  23. model:MoveTo(mouse.hit.p)
  24.  
  25.  
  26. end
  27.  
  28.  
  29. function onSelected(mouse)
  30.  
  31. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  32.  
  33. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  34.  
  35. end
  36.  
  37.  
  38.  
  39.  
  40.  
  41. bin.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement