and I got no errors----------------------
@Alucard_Fahrenheit, Do the following
- Place DeathPoll In ReplicatedStorage
- Put the ServerScript inside of ServerScriptService
- Paste this code inside the server script
local DeathPoll = game:GetService("ReplicatedStorage"):FindFirstChild("DeathPoll")
DeathPoll:GetPropertyChangedSignal("Value"):Connect(function()
if DeathPoll.Value == 0 or DeathPoll.Value < 0 then
print(DeathPoll.Value)
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
v:Kick("Game ended, because u killed the enemy team.")
end
end
end)
1 Like
IT worked! --------------------------
thank you for sticking by so long to help me
1 Like
No problem! -------------------------
1 Like