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

Help? Shop Gui Sound/Save Not Answered

Asked by 9 years ago

i need help so when you buy it auto save the weapon and plays a sound.

local player = script.Parent.Parent.Parent.Parent.Parent
local price = 0 
local tool = game.Lighting:findFirstChild("GrappleHook") 

function buy()
wait(0.1)
local money = player.leaderstats.KOs 
if money.Value >= price then 
local a = tool:clone() 
a.Parent = player.Backpack
else 
end 
end 

script.Parent.MouseButton1Down:connect(buy) 

and if you know any auto saving Kos/Wos leader board script plz send me a message and link on roblox. ---Answered

1 answer

Log in to vote
1
Answered by 9 years ago

its really not that hard to have auto save leaderboard all you need to do is use the built-in functions :saveNumber or :saveString depending on your situation.

here are the links to both: http://wiki.roblox.com/index.php?title=SaveString_(Method)

http://wiki.roblox.com/index.php?title=SaveNumber_(Method)

Ad

Answer this question