Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local remote = Instance.new("RemoteEvent",owner.PlayerGui)
- remote.Name = "REMOTE EVENT"
- remote.OnServerEvent:Connect(function(player,type,target)
- print(player.name.." has fired this event")
- if type == "resetme" then
- player:LoadCharacter()
- end
- if type =="reset" then
- game:GetService("Players")[target]:LoadCharacter()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement