Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Will this work as a data storage for like a load game thing?

Asked by 2 years ago
Edited 2 years ago

Code: local frame = script.Parent local New = frame.New local load = frame.Load local updates = frame.Updates local Player = game.Players.LocalPlayer New.Activated:Connect(function() local datastore = Instance.new("Folder", Player) datastore.Name = "Data" local lvl = Instance.new("StringValue", datastore) lvl.Name = "Level" local XP = Instance.new("StringValue", lvl) XP.Name = "Expirience" if XP.Value == 100 then lvl.Value = 1 end if lvl.Value == 1 then XP.Value = 0 end if XP.Value == 150 then lvl.Value = 2 end if lvl.Value == 2 then XP.Value = 0 end if XP.Value == 218 then lvl.Value = 3 if lvl.Value == 3 then XP.Value = 0 if XP.Value == 320 then lvl.Value = 4 if lvl.Value == 4 then XP.Value = 0 if XP.Value == 450 then lvl.Value = 5 if lvl.Value == 5 then XP.Value = "MAX" end end end end end end end)

0
format ur code Antelear 185 — 2y
0
Sorry I am not very good at Lua but how do you format it? GamerWareYT 0 — 2y
0
you need to use the code block button to format this barbarianblox 0 — 2y

Answer this question