I have this game I'm trying to remake famous and this save script isn't working?It doesn't save data
Game: http://www.roblox.com/Galactic-Front-ALPHA-TELEPORT-GLITCH-PATCHED-place?id=178549718
Not Working Script:
debounce=false
function Save()
if debounce==false then
debounce=true
player=game.Players.LocalPlayer
script.Parent.Text="Saving..."
player:WaitForDataReady()
player:SaveNumber("Credit", player.Credit.Value)
inv=player:FindFirstChild("Inventory")
for saveinv=1,8 do
if inv~=nil then
saveslot=inv:FindFirstChild("Slot"..saveinv)
if saveslot~=nil then
player:SaveString(("Slot"..saveinv), saveslot.Value)
end
end
end
wait(2)
script.Parent.Text="Save"
debounce=false
end
end
script.Parent.MouseButton1Down:connect(Save)

3 comments
Please put your code into the Code Block. It will really help me answer your question.
There
Thanks.