Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My script is saying this Destroy is not a valid member of BoolValue "Players.jamlineking.InMenu?

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)

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.