local Button = script.Parent
local camera = rooms:WaitForChild("Camera1")
Button.MouseButton1Click:connect(function()
p:WaitForDataReady()
if p:LoadInstance("Toon3") == nil then
game.Workspace.CurrentCamera.CameraSubject = camera
game.Workspace.CurrentCamera.CameraType = "Scriptable"
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(Camera1.Postion,CFrame.new(20,20,20))
game.ReplicatedStorage["CreateAToonGui"]:clone().Parent = game.Players.LocalPlayer.PlayerGui
end
What i tried to do is make the local script read of the player has any save instances called toon3 which is a custom morph inside the player. If there is none it should redirect the camera to a room and give them a gui. But its not working when i play the actual game as save instance does not work in studio. Thanks anyone that knows where i went wrong.
