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)
COMMUNITY QUESTION
Can someone help out?
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.

3 comments
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.
sure here is the script
Put it in the Code Block..