script.Parent.MouseButton1Click:connect(function() if game.Players.LocalPlayer.DataReady == true then local house = game.ReplicatedStorage.AverageHouse:Clone() --Miscellaneous code game.Players.LocalPlayer:SaveInstance("House", house) game.Players.LocalPlayer.PlayerGui.HouseGUI:Destroy() else print("wait") end end)
This script is in a button. When I click the button, a house model should show up in workspace and be saved via data persistence. However, it never works because DataReady never becomes true! What's going on here?
If you are trying to use "DataReady" with a guest (AKA a user with a "UserId" less then 0) then that user's "DataReady" property will never equal true!