Your title should be specific! Describe your problem concisely.?
Asked by
5 years ago Edited 5 years ago
It was just saying Your title should be specific! Describe your problem concisely.
And i didn't know what to make the title. Any way, here is the question:
can you help me with this code? There are no errors in the code but it output "Bad Id"
01 | function onTouched(hit) |
02 | local player = game.Players:GetPlayerFromCharacter(hit.Parent) |
04 | local gametp = math.random( 4500000000 , 3999000000 ) |
06 | local name = (game:GetService( "MarketplaceService" ):GetProductInfo(gametp).Name) |
09 | if string.match(name, "'s Place" ) then |
11 | local gametp = math.random( 4500000000 , 3999000000 ) |
13 | game:GetService( "TeleportService" ):Teleport(gametp, player) |
20 | script.Parent.Touched:connect(onTouched) |
I dont know what causes it. I tried changing
1 | local gametp = math.random( 4500000000 , 3999000000 ) |
To
1 | local gametp = math.random( 3999000000 , 4500000000 ) |
But it then also dont works.
Got any help?
Sorry for my bad english.