Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

TEXTBOX IS UNNATURAL CAN SOMEONE HELP?

Asked by 5 years ago
Edited 5 years 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 718 — 5y
1
iim "00" percent sure we need the rest of your script to answer your question Fad99 286 — 5y
0
I don't really see anything wrong with the script, so can you show the whole script? CjayPlyz 643 — 5y
0
I want to write 0 but that appear 0 User#27461 0 — 5y
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. DeceptiveCaster 3761 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago
Edited 5 years 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 User#27461 0 — 5y
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 396 — 5y
0
lmao the grind Fad99 286 — 5y
0
To the top! Creacoz 210 — 5y
Ad
Log in to vote
0
Answered by
Mr_Unlucky 1085 Moderation Voter
5 years 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