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

TEXTBOX IS UNNATURAL CAN SOMEONE HELP?

Asked by 10 days ago
Edited 9 days ago

text box visible = true but its not appears when i click "play". i am 0 sure for the script that i wrote

script.Parent.Parent.StarterGui.ScreenGui.TextBox.Visible = true

thats a part of my game so don't say "you only click visible instead script" when script work, textbox is not appear and im checking properties for if text box visible. when i see textbox's visible = true and its not in my screen i try again try again try again and try again for make it work. (of course, that doesn't work) can someone explain it

0
spoopy, any errors? fanofpixels 584 — 10d
1
iim "00" percent sure we need the rest of your script to answer your question Fad99 20 — 10d
0
I don't really see anything wrong with the script, so can you show the whole script? CjayPlyz 207 — 10d
0
I want to write 0 but that appear 0 EzgiGamerBabaPro 5 — 9d
View all comments (2 more)
0
To be strict here, TextBoxes are artificial GUIs made by mankind. Nature had nothing to do with creating the GUI. RobloxWhizYT 1852 — 9d

2 answers

Log in to vote
1
Answered by 10 days ago
Edited 10 days ago
`script.Parent.Parent.StarterGui.ScreenGui.TextBox.Visible` `=`  `true`

so first of all you should make a new script in that ScreenGui it would make the code a lot less messy. Make sure its player gui too here's what it would look like if you did NOT make a new script in the screengui:

script.Parent.Parent.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("TextBox").Visible = true

if you do make a script in the new screen gui which you should it would look like this:

script.Parent:WaitForChild("TextBox").Visible = true
0
Ok i will try that tomorrow EzgiGamerBabaPro 5 — 9d
0
you should upvote it pls im trying to get to next rank also accept answer so no one else trys to answer it mattchew1010 310 — 9d
0
lmao the grind Fad99 20 — 9d
0
To the top! Creacoz 62 — 9d
Ad
Log in to vote
0
Answered by 9 days ago

The reason why it won't work is because you're going into the StarterGui service. The startergui service clones itself into the player, so any changes you do in there won't replicate to the other players.

local Player = game:GetService("Players").LocalPlayer --We get the player in this variable.

Player:WaitForChild("PlayerGui").ScreenGui.TextBox.Visible = true --We find all of the GUIs in the player, which is located in the PlayerGui, and then find the specific GUI we want, and then change the visible property of the TextBox inside the ScreenGui to true.

Answer this question