if pl.Dragonz.Value ~= nil then
script.Parent.Name = "Dragon Unspawn"
else
script.Parent.Name = "Dragon"
pok = pl.Dragonz.Value
COMMUNITY QUESTION
How do I fix this?
1 answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
