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

Not sure what to call this?

Asked by
iNicklas 215 Moderation Voter
9 years ago

If i like want text to be a value and then poop and then another value, how would i do that?

script.Parent.Text = ..Player.Name " Poop" .. Player.userId

2 answers

Log in to vote
1
Answered by
xPolarium 1388 Moderation Voter
9 years ago

You almost had it. Try this.

script.Parent.Text =  Player.Name.. "Poop" ..Player.userId
0
Ah, you beat me to it Shawnyg 4330 — 9y
0
Ha, sorry. At least you gave an explanation. I assumed he knew about this and also I was on my phone. xPolarium 1388 — 9y
0
Don't be sorry lol. He can accept your answer, I'll just leave mine up, incase he doesn't know Shawnyg 4330 — 9y
0
Oh, i see :D iNicklas 215 — 9y
Ad
Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
9 years ago

Well, what you're using is reffered to as Concatenation. It's used to put more than one string together, in one string. It's signaled by .., as you already know. The problem with your line is that you for got .. after Player.Name. Here is your fixed code:

script.Parent.Text = ..Player.Name.. " Poop" .. Player.userId

Answer this question