Advertisement
LPGhatguy

Another script for tyridge77@ROBLOX

Jan 28th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.56 KB | None | 0 0
  1. local bin = script.Parent
  2. local backpack = script.Parent.Parent
  3. local eraser = script:FindFirstChild("Erase"):Clone()
  4.  
  5. function onButton1Down(mouse)
  6.     if (backpack:FindFirstChild("Holkrath")) then
  7.         local model = bin.HealthRay:clone()
  8.         model.Parent = game.Workspace
  9.         model:MakeJoints()
  10.         model:MoveTo(mouse.hit.p)
  11.         script.Parent:Destroy()
  12.         eraser.Parent = model
  13.     end
  14. end
  15.  
  16. function onSelected(mouse)
  17.     mouse.Icon = "rbxasset://textures\\GunCursor.png"
  18.     mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  19. end
  20.  
  21. bin.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement