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

How do I fix this? [closed]

Asked by 9 years ago
if pl.Dragonz.Value ~= nil then
    script.Parent.Name = "Dragon Unspawn"
else
    script.Parent.Name = "Dragon"
    pok = pl.Dragonz.Value

Locked by MessorAdmin, YellowoTide, and Shawnyg

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Relatch 550 Moderation Voter
9 years ago

Pretty sure you forgot an end. Don't forget those! The end is needed from your if statement on line 1, if pl.Dragonz.Value ~= nil then. To fix this, just simply add an end on line 6.

if pl.Dragonz.Value ~= nil then
    script.Parent.Name = "Dragon Unspawn"
else
    script.Parent.Name = "Dragon"
    pok = pl.Dragonz.Value
end
Ad