Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I clone a tool that requires a value to clone?

Asked by 7 years ago

So I was wondering what's wrong with this code because I thought I made this correctly... see the code below

if Player.leaderstats.Strength.Value > 24 then game.Lighting["Wooden Domino Crown"]:Clone().Parent = game.StarterPack

If I don't get an answer don't worry I will probably figure it out and then I won't need help.

0
The most obvious thing is that it's missing a closing 'end'. Was there something else wrong with it, and if so, what error are you getting? vector3_zero 1056 — 7y
0
umm i think i forgot to add the end to it in here but not in the actual scripts... JohnerDev 27 — 7y

1 answer

Log in to vote
0
Answered by
dqxs 15
7 years ago
Edited 7 years ago
if Player.leaderstats.Strength.Value > 24 then
    -- Define player if you didn't first, game:GetService("Players").PLAYERNAME
    game.Lighting["Wooden Domino Crown"]:Clone().Parent = Player.StarterPack
end

Ad

Answer this question