Places in my Universe wont kick

MPS = game:GetService(“MarketplaceService”)
oldInfo = MPS:GetProductInfo(5344134856)
update = false

game.Players.PlayerAdded:Connect(function(player)
if update then
player:Kick(“The Wasteland: Loading Update”)
end
end)

–Loop
while wait(5) do
local newInfo = MPS:GetProductInfo(5344134856)
if oldInfo.Updated ~= newInfo.Updated then
update = true
for i,player in pairs(game.Players:GetPlayers()) do
player:Kick(“The Wasteland: Loading Update”)
end
print(“Game Update”)
end
end

My Starting Place works fine, every other place in my “Universe” returns the print but wont kick anyone already in the server.

1 Like

you didn’t set it to true on the player added so that’s why it wont kick

it HAS to == true? ive seen code without adding the == true.

if update then means if update == true then

update is set to true in the 15th line

well its not set to true on the player added event

its not supposed to be set to true until the game description changes

also, it is not kicking the players already in the server

There’s no point in adding == true in that event when you see the dev-console showing the :Kick() message in it.