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

Twitter code how do I make it redeem once only and perm saved??

Asked by 6 years ago

local gear = game.ReplicatedStorage:WaitForChild('RocketLauncher') script.Parent.MouseButton1Click:connect(function() if script.Parent.Parent.Input.Text == 'a321312' then gear:Clone().Parent = game.Players.LocalPlayer.Backpack gear:Clone().Parent = game.Players.LocalPlayer.StarterGear script.Parent.Parent.Input.Text = '' script.Parent.Text = 'Success!' wait(1) script.Parent.Text = 'Submit' else script.Parent.Parent.Input.Text = '' script.Parent.Text = 'Invalid Code!' wait(1) script.Parent.Text = 'Submit' end

end)

How do I make it redeem once only and perm saved?

0
You would need to use Data Store. OfcPedroo 396 — 6y
0
Either use a datastore for the code or use a datastore to save the gear and have the script check if the gear is in the backpack already. Viking359 161 — 6y
1
As others have said, you could use a datastore, there is a tutorial on the roblox wiki about it: http://wiki.roblox.com/index.php?title=Saving_Player_Data turtle2004 167 — 6y

Answer this question