Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || PRESS R TO RESPAWN || ONLY CHANGE THE KEY CODE NOTHING ELSE!
- ]]
- local UserInputService = game:GetService("UserInputService")
- local Respawn = game:GetService("ReplicatedStorage").RE
- local TriggerKey = Enum.KeyCode.R
- UserInputService.InputBegan:Connect(function(key)
- if key.KeyCode == TriggerKey then -- If the key is pressed
- Respawn:FireServer() -- Makes the player respawn
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement