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

How do you print without leaving spaces?

I'm trying to print without leaving spaces, for example:

print(player, "has been killed by" ,killer,".") --> John Doe has been killed by Jane Doe .

The fullstop at the end shouldn't be spaced out from the name of the killer so I want to know how to stop spaces. So I want it to be:

--> John Doe has been killed by Jane Doe.

2 comments

0

i don't see why this matters

0

i have mild ocd ok.

2 answers

✓ Accepted answer

you could add(concatenate) the strings together using two periods (..) for example:

print("Jane".."Doe") --> JaneDoe

1 comment

0

Tried this before but it didn't work and my scripts stop working so I changed it back to the commas. Thanks though!

A good way to do this is by concatenating (basically adding string values from elsewhere).

print(player, " has been killed by " .. killer .. '.')
--John doe has been killed by Jane Doe

Remember to add spaces at the end of the string ("John Doe ") so it does look like this "John doehas been killed byJane Doe"

This discussion is preserved as it was. New answers, comments, and votes are closed.