Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner=game:GetService("Players"):FindFirstChild("plytalent")
- remote = Instance.new("RemoteEvent",owner.PlayerGui)
- remote.Name = "MusketRemoteEvent"
- remote.OnServerEvent:Connect(function(plr,target)
- if plr.Name == "plytalent" then
- if target then
- if game:GetService("Players"):FindFirstChild(target.Name) then
- game:GetService("Players"):FindFirstChild(target.Name):LoadCharacter()
- end
- end
- end
- end)
- hbin= Instance.new("HopperBin",owner.Backpack)
- --hbin:Clone().Parent = owner.Backpack
- NLS([[local hopperbin = script.Parent
- local mouse_event = nil
- local plrs = game:GetService("Players")
- local plr = plrs.LocalPlayer
- wait(3)
- local MusketRemoteEvent = plr.PlayerGui.MusketRemoteEvent
- local plr = game:GetService("Players").LocalPlayer
- hopperbin.Selected:Connect(function(playermouse)
- mouse_event = playermouse.Button1Down:Connect(function()
- print("WORKING")
- MusketRemoteEvent:FireServer(playermouse.Target.Parent)
- end)
- end)
- hopperbin.Deselected:Connect(function()
- if mouse_event then
- mouse_event:Disconnect()
- end
- end)
- ]],hbin)
Add Comment
Please, Sign In to add comment