A menu GUI that has a "Play" Button only But when pressed
It runs as a client to spawnplayers() Functions When the Play button is pressed/click, The player gets delete.
function spawnPlayer(player)
player:LoadCharacter()
if not player.Character then player.CharacterAdded:wait() end
if not player.Character:FindFirstChild("Torso") then
repeat wait(0) until player.Character:FindFirstChild("Torso")
end
if not player.Character:FindFirstChild("Head") then
repeat wait(0) until player.Character:FindFirstChild("Head")
end
serverG.Plugins.gameCycle.spawnPlayer(player)
serverG.Plugins.advHealth.setupPlayer(player)
end
function removePlayer(player)
player.Character.Parent = nil
end
And my output results gets these warnings:
22:54:37.713 - Player:Move called, but player currently has no humanoid. (x891)

1 comment
yo, do player.Character:Remove() as remove function, that's all