Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function punish(player)
- if player == "all" then
- for i,v in pairs (game.Players:GetChildren()) do
- if v.Character then
- v.Character.Parent = game.Lighting
- end
- end
- elseif player == "others" then
- for i,v in pairs (game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- if v.Character then
- v.Character.Parent = game.Lighting
- end
- end
- end
- elseif player == "me" then
- workspace[game.Players.LocalPlayer.Name].Parent = game.Lighting
- else
- workspace[player].Parent = game.Lighting
- end
- end
- function unpunish(player)
- if player == "all" then
- for i,v in pairs (game.Lighting:GetChildren()) do
- if v.Character then
- v.Character.Parent = game.Players
- end
- end
- elseif player == "others" then
- for i,v in pairs (game.Lighting:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- if v.Character then
- v.Character.Parent = game.Players
- end
- end
- end
- elseif player == "me" then
- game.Lighting[game.Players.LocalPlayer.Name].Parent = game.Players
- else
- game.Lighting[player].Parent = game.Players
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement