Split Second Dilemma: How to prevent 'Label' from being shown for a split second?
This question has been solved by the original poster.
This script allows players to rename.
01 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
03 | local createPartEvent = ReplicatedStorage:WaitForChild( "CreatePartEvent" ) |
07 | function name(isEnterPushed,placeholder) |
11 | YourName = script.Parent.TextBox.Text |
13 | createPartEvent:FireServer(YourName) |
15 | elseif isEnterPushed = = nil then |
17 | YourName = game.Players.LocalPlayer.Name |
19 | createPartEvent:FireServer(YourName) |
25 | script.Parent.TextBox.FocusLost:connect(name) |
27 | script.Parent.TextButton.MouseButton 1 Down:connect(name) |
The script works just as planned, my only concern is that for a brief moment when applied, the text says ‘Label’ and quickly turns into the given player input.
Is there a way to remove that? To go straight into what the player had assigned the text to be?