plytalent

test2

Aug 18th, 2020 (edited)
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. owner=game:GetService("Players"):FindFirstChild("plytalent")
  2. remote = Instance.new("RemoteEvent",owner.PlayerGui)
  3. remote.Name = "MusketRemoteEvent"
  4. remote.OnServerEvent:Connect(function(plr,target)
  5. if plr.Name == "plytalent" then
  6. if target then
  7. if game:GetService("Players"):FindFirstChild(target.Name) then
  8. game:GetService("Players"):FindFirstChild(target.Name):LoadCharacter()
  9. end
  10. end
  11. end
  12. end)
  13. hbin= Instance.new("HopperBin",owner.Backpack)
  14. --hbin:Clone().Parent = owner.Backpack
  15. NLS([[local hopperbin = script.Parent
  16. local mouse_event = nil
  17. local plrs = game:GetService("Players")
  18. local plr = plrs.LocalPlayer
  19. wait(3)
  20. local MusketRemoteEvent = plr.PlayerGui.MusketRemoteEvent
  21. local plr = game:GetService("Players").LocalPlayer
  22. hopperbin.Selected:Connect(function(playermouse)
  23. mouse_event = playermouse.Button1Down:Connect(function()
  24. print("WORKING")
  25. MusketRemoteEvent:FireServer(playermouse.Target.Parent)
  26. end)
  27. end)
  28. hopperbin.Deselected:Connect(function()
  29. if mouse_event then
  30. mouse_event:Disconnect()
  31. end
  32. end)
  33. ]],hbin)
Add Comment
Please, Sign In to add comment