Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bin = script.Parent
- local backpack = script.Parent.Parent
- local eraser = script:FindFirstChild("Erase"):Clone()
- function onButton1Down(mouse)
- if (backpack:FindFirstChild("Holkrath")) then
- local model = bin.HealthRay:clone()
- model.Parent = game.Workspace
- model:MakeJoints()
- model:MoveTo(mouse.hit.p)
- script.Parent:Destroy()
- eraser.Parent = model
- end
- end
- function onSelected(mouse)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- bin.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement