Okay so essentially I am saying if there is no such thing as the gravity controller then reload the character.
if not game.ReplicatedStorage:FindFirstChild("GravityController") then game.Players.PlayerAdded:connect(function(player) wait(1) player:LoadCharacter() print("Player.Name..was Refreshed") end) end
This is because your not supposed to add a wait when the player joins because the player will already have joined within 0 seconds.WaitForChild
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:FindFirstChild("Humanoid") if not game.ReplicatedStorage:WaitForChild("GravityController") then player:LoadCharacter() print("Player.Name..was Refreshed") end) end
game:GetService('Players').PlayerAdded:Connect(function(plr) if not game:GetService('ReplicatedStorage'):FindFirstChild('GravityController') then wait(1) plr:LoadCharacter() print(plr.Name..' was refreshed!') end end)