function onClick(mouse) game.Players:GetChildren(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:GetChildren(player).Leaderboard.ROBUX limited = script.Parent.Parent.Parent.Parent.Parent.StarterPack:GetChildren(limited) wait(0.1) leader.Value = - game.Lighting:GetChildren(limited) end
script.Parent.MouseButton1Click:connect(onClick)
it's soppost to go into the leaderstats remove the robux needed to buy the item then, go into lighting and retrieve a limited intvalue then inject it into starterpack
function onClick(mouse) game.Players:GetChildren(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:GetChildren(player).Leaderboard.ROBUX limited = script.Parent.Parent.Parent.Parent.Parent.StarterPack:GetChildren(limited) wait(0.1) leader.Value = - game.Lighting:GetChildren(limited) end
script.Parent.MouseButton1Click:connect(onClick)