What's a good way to make a FFA gamemode?

From what I remember, the changed connection for the value will remain. Correct me if I’m wrong. Also, exploiters can sort of edit scripts by copying & changing the code and replacing the old script. :confused:

not really editing it basically just creating/running a new script. those extra steps they could of just used the inapp script runner

and all connections binded to an object and its descendants are disconnected after it gets destroyed

Okay, thank you for the explanation! I don’t want to be spreading any misinformation. :slight_smile:

Players.PlayerAdded:Connect(function(plr)
    v:WaitForChild("leaderstats"):WaitForChild("Kills").Changed:Connect(function() Check(v) end)
end)
--  ^ this v is undefined

just copied it over replace ‘v’ with ‘plr’

Oh okay, thank you I appreciate it that works. How would I go about resetting all players kills? I looked into it a bunch and couldn’t find anything. My guess would be to loop through players and then reset each one but I don’t know.

just loop through them all and reset their stats

local Players = game:GetService("Players")

for i, v in pairs(Plauers:GetPlayers()) do
    if v:FindFirstChild("leaderstats") then
        if v.leaderstats:FindFirstChild("Kills") then
             v.leaderstats.Kills.Value = 0
        end
    end
end

Thank you, so much man. I got everything to work I really appreciate your help. :grin:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.