Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Split Second Dilemma: How to prevent 'Label' from being shown for a split second?

Asked by 14 days ago

This question has been solved by the original poster.

This script allows players to rename.

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local createPartEvent = ReplicatedStorage:WaitForChild("CreatePartEvent")



function name(isEnterPushed,placeholder)

if isEnterPushed then

YourName = script.Parent.TextBox.Text

createPartEvent:FireServer(YourName)

elseif isEnterPushed == nil then

YourName = game.Players.LocalPlayer.Name

createPartEvent:FireServer(YourName)

end

end

script.Parent.TextBox.FocusLost:connect(name)

script.Parent.TextButton.MouseButton1Down: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?

0
is withouth any scripts, is the ui's text empty? starmaq 435 — 14d
0
Yeah, that's what it was, silly me. Thanks! sactman64 7 — 14d
0
np! starmaq 435 — 14d
0
can you please upvote one of my comments im on a grind starmaq 435 — 14d
0
sorry for begging starmaq 435 — 14d

Answer this question