Advertisement
plytalent

reset local remote

Mar 27th, 2019
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. local remote = Instance.new("RemoteEvent",owner.PlayerGui)
  2. remote.Name = "REMOTE EVENT"
  3. remote.OnServerEvent:Connect(function(player,type,target)
  4. print(player.name.." has fired this event")
  5. if type == "resetme" then
  6. player:LoadCharacter()
  7. end
  8. if type =="reset" then
  9. game:GetService("Players")[target]:LoadCharacter()
  10. end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement