limited = game.Lighting:GetChildren(IntValue.math.random)

function onClick(mouse)
	game.Players:WaitForChild(player).leaderstats.ROBUX.Value = limited.Value or limited.Value+
	limited:clone()
	wait(0.1)
	limited.Parent = script.Parent.Parent.Parent.Parent.Parent.StarterPack
    wait(0.1)
	leader = game.Players:WaitForChild(player).Leaderboard.ROBUX
	limited2 = script.Parent.Parent.Parent.Parent.Parent.StarterPack:GetChildren(limited)
	wait(0.1)
	leader.Value = - game.Lighting:WaitForChild(limited)
end

script.Parent.MouseButton1Click:connect(onClick)

6 comments

0

Place in a code block please and add information to what you're trying to accomplish.

0

ok, so the script is soppost to make the player use money and buy a item that gets put into there starterpack

0

theeere

0

where is IntValue defined? this cannot be the whole script if there are no errors.

0

The intvalue is in lighting.

0

it isn't defined in the script.