Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ServerScriptService ---
- local ChatSystem = game.ReplicatedStorage.ChatSystem
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(Message)
- if Message == "5" then
- if ChatSystem.ChatEnabled.Value == true and ChatSystem.CorrectFound.Value == false then
- ChatSystem.ChatEnabled.Value = false
- ChatSystem.CorrectFound.Value = true
- ChatSystem.PlayerName.Value = player.Name
- end
- end
- end)
- end)
- --- MainScript ---
- local ChatSystem = game.ReplicatedStorage.ChatSystem
- ChatSystem.ChatEnabled.Value = true
- for i = 30, 0, -1 do
- TimerValue.Value = i
- wait(1)
- if ChatSystem.CorrectFound.Value == true then
- break
- elseif i == 0 and ChatSystem.CorrectFound.Value == false then
- RandomPlayer.Character.Humanoid.Health = 0
- end
- end
- repeat wait(0.1) until ChatSystem.CorrectFound.Value == true or RandomPlayer.Character.Humanoid.Health == 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement