Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I fix this?

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

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.