Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onButton1Down(mouse)
- local p = mouse.Target.Parent:GetChildren()
- for i = 1, #p do
- if p[i].className == ("Humanoid") then
- script.Parent.Parent.Parent.Character = nil
- wait(0.1)
- script.Parent.Parent.Parent.Character = p[i].Parent
- end
- end
- end
- function onSelected(mouse)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement