Advertisement
OnFireRobloxScriptin

Respawn Handler Script

Dec 14th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. --//Services
  2. local replicatedStorage = game:GetService("ReplicatedStorage")
  3.  
  4. --//Variables
  5. local tool = replicatedStorage:WaitForChild("Flash Light")
  6. local respawnToolEvent = replicatedStorage:WaitForChild("RespawnTool")
  7. local blnTool = workspace.Tool
  8.  
  9. --//Respawn
  10. respawnToolEvent.OnServerEvent:Connect(function(player)
  11.     if blnTool.Value == false then
  12.         blnTool.Value = true
  13.         local newTool = tool:Clone()
  14.         newTool.Parent = workspace
  15.     end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement