Hello scripting helpers,
I recently just made this script:-
for _,Playervaluesremove1 in pairs(game.Players:GetPlayers()) do -- Goes through all players if Playervaluesremove1:FindFirstChild("IsChaser") then -- If the player has the value "IsChaser" then Playervaluesremove1:Destroy() -- Destroys the value end end
This is how the script inserts it. The Chaser bit of this script is chosen randomly by another part of the script, thus doesn't need fixing.
Instance.new("IntValue", Chaser).Name = "IsChaser"
The value is located under:-
game -- Game Players -- Players tab Player -- Players name IsChaser --[[[ Value (int)]]]
What it's supposed to do is destroy the value within the player. However, it removes the player all together. It basically kicks them.
Please help! :]
Thanks, Nathan.