This is kinda linked to my past question. When I run the script to print the name of the game as follows:
local Name = game.Name print(game.Name)
It decides to print "Development @ 22 Feb 2019 17:21"
What i need to do is remove everything but the name "Development"
Bearing in mind this is being tested in studio so if this doesnt happen when run during an actual game please tell me that to.
use string.sub to cut off the rest of the name ((you may have to adjust this if the length of the actual place name changes
local originalName = game.Name local newName = string.sub(originalName,1,11)
I know I'm 3 years late but;
local Split = string.split(game.Name, " ") print(Split[1]) -- split pretty much returns a table of all given strings seperated via a space inbetween, but could be anything for example "-" or ".". Doesn't matter really.
Hope this helps too.
I'm not sure if this will answer your problem but this is what I did
local name = game.Name print(name)