DataReady is never true?
1 | script.Parent.MouseButton 1 Click:connect( function () |
2 | if game.Players.LocalPlayer.DataReady = = true then |
3 | local house = game.ReplicatedStorage.AverageHouse:Clone() |
5 | game.Players.LocalPlayer:SaveInstance( "House" , house) |
6 | game.Players.LocalPlayer.PlayerGui.HouseGUI:Destroy() |
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?