local textLabel = script.Parent:WaitForChild("start"):WaitForChild("Text")
local Number = math.random(1000, 9999)
local Player = game.Players.Playername
wait(5)
local function typewrite(object,text)
for i =1,#text,1 do
object.Text = string.sub(text,1,i)
wait(0.05)
end
end
typewrite(textLabel,"Hello Subject",Number,"you were identified as",Player)```
#Self written text doesnt work
1 messages · Page 1 of 1 (latest)
The text in this case is "Hello Subject"
And pretty sure you wanna start from string length
And move your way down to 1
local str = 'asdsadsadas'
for i = #str, 1, -1 do
print(string.sub(str, i, #str))
end
yes
Does it work?
no sadly not
Look at this
And see if you can spot the difference between yours and mine
And if you wanna concatenate your strings then do 'string' .. number
its Player.Name not .Playername
This aswell^
when I change that theres the error massege: Player is not a valid member of Players "Players"
What is Player
Yeah, theres multiple Players in game.Players. Is assume that's a LocalScript and you want the current player?
Your own player or?
if it's a local script and you want the local players name it's Players.LocalPlayer
thankjs no I dont get errror anymore
but the other problem is stilll there
You are passing 5 parameters to a function that only accepts 2, you gotta do typewrite(textLabel, "Hello Subject " .. tostring(Number) .. resthere)
That's what he meant with concatenate
ITS WORKING!
Niceee
thank you guys so much
Anytime
Game.Players is a service; not a real player