i need help so when you buy it auto save the weapon and plays a sound.
01 | local player = script.Parent.Parent.Parent.Parent.Parent |
02 | local price = 0 |
03 | local tool = game.Lighting:findFirstChild( "GrappleHook" ) |
04 |
05 | function buy() |
06 | wait( 0.1 ) |
07 | local money = player.leaderstats.KOs |
08 | if money.Value > = price then |
09 | local a = tool:clone() |
10 | a.Parent = player.Backpack |
11 | else |
12 | end |
13 | end |
14 |
15 | script.Parent.MouseButton 1 Down:connect(buy) |
and if you know any auto saving Kos/Wos leader board script plz send me a message and link on roblox. ---Answered
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)