game.Players.PlayerAdded:Connect(function(player)
local InMenu = Instance.new("BoolValue")
InMenu.Name = "InMenu"
InMenu.Parent = player
end)
game.ReplicatedStorage.MenuPlay.OnServerEvent:Connect(function(player)
if player:FindFirstChild("InMenu") then
player.InMenu:Destory()
end
end)
✓ ANSWER ACCEPTED
My script is saying this Destroy is not a valid member of BoolValue "Players.jamlineking.InMenu?
2 answers
✓ Accepted answer
You're calling ":Destory()," not ":Destroy()."
You made a typo, man. Type Destroy:() not Destory:()
This discussion is preserved as it was. New answers, comments, and votes are closed.
