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

How can i make my script update the text in my text button?

Asked by 5 years ago

I dont get an error or anything so idk what isnt working

script.Parent.TextBox.Text = script.Parent.Parent.Parent.Character.Humanoid.WalkSpeed
0
both the script and textbox is a parent of screengui Gameplayer365247v2 1055 — 5y

1 answer

Log in to vote
0
Answered by
AizakkuZ 226 Moderation Voter
5 years ago
Edited 5 years ago

Ur not locating the Player you're locating nothing as ur telling ur script to find Character in ScreenGui which isn't valid instead do lua game:GetService('Players').LocalPlayer.Character.Humanoid.Walkspeed Also this will not work at all (Meaning this script will not work at all if this is a server sided script) Also edit for the entire line ```lua script.Parent.TextBox.Text = game:GetService('Players').LocalPlayer.Character.Humanoid.Walkspeed

0
Edit - This will not work at all if not in a Local Script AizakkuZ 226 — 5y
0
I cant turn off experimental mode or i can atleast not find where it is, ive searched in game settings and in roblox game settings Gameplayer365247v2 1055 — 5y
0
and i am telling my script to locate the character because i find the player since the screengui is a child of the player once you play so it does work Gameplayer365247v2 1055 — 5y
0
No Screengui isn't a Child of Player, PlayerGui is a child of Player AizakkuZ 226 — 5y
Ad

Answer this question