I am trying to put Rich as a variable, in the middle of print("You are" + print(Rich + 1) + "Rich"). It's inside a function so that whenever the player makes a part, which is going to be money in this case, their richness goes up by one:
function createPart()
local Rich = 0
local myPart = Instance.new("Part")
print("You are" + print(Rich + 1) + "Rich")
myPart.Transparency = 0.5
myPart. Anchored = true
myPart.Position = Vector3.new(0,0,0)
myPart.CanCollide = true
myPart.Name = "lol" -- how to name a part after instance.new
myPart.Parent = game.Workspace
end
createPart()
I am stuck with that. Could I get an explanation as to how it would work?