i am trying to make a planet name generator so heres the code:
local PlanetNameHolder = script.Parent
local NameGenerate = math.random(1,3)
local SurnameGenerate = math.random(1,3)
if NameGenerate == 1
then local Name = "LOL"
elseif NameGenerate == 2
then local Name = "Bad"
elseif NameGenerate == 3
then local Name = "Nice"
if SurnameGenerate == 1
then local Surname = "Planet"
elseif NameGenerate == 2
then local Surname = "Rock"
elseif NameGenerate == 3
then local Surname = "Ball"
PlanetNameHolder.Name = (Name)(Surname)
end
end
what i am having problem with is i have no idea how to put space on variables and i tried searching for it but still no answer so any help appreciated Any help appreciated!

1 comment
this is EASIER