Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone help out?

Ok im making a really cool king of the hill game and i need a shop script along with a kill points script I have made MANY attempts to make one but it ISNT WORKING SOMEONE HELP please? player = script.Parent.Parent.Parent.Parent.Parent gold = player.leaderstats.KOs upgradeStuff = game.Lighting.Dark Heart -- function buy() if gold.Value >= 700 then gold.Value = gold.Value - 700 --Leave the rest alone local a = upgradeStuff:clone() a.Parent = player.Backpack end end script.Parent.MouseButton1Down:connect(buy)

3 comments

0

Could you post one of your attempts? If not, this is considered as Not Constructive. Also, if you just try to make a script to get by, still not constructive.

0

sure here is the script

0

Put it in the Code Block..

1 answer

as far as your script showed this Still wont work... but I fixed all the errors :l

player = script.Parent.Parent.Parent.Parent.Parent gold = player.leaderstats.KOs
upgradeStuff = game.Lighting("Dark Heart")
function buy() if gold.Value >= 700 then gold.Value = gold.Value - 700 
local a = upgradeStuff:clone()
a.Parent = player.Backpack end end 
script.Parent.MouseButton1Down:connect(buy)

1 comment

0

Oh ok well back to the drawing board for that again

This discussion is preserved as it was. New answers, comments, and votes are closed.