I dont get an error or anything so idk what isnt working
script.Parent.TextBox.Text = script.Parent.Parent.Parent.Character.Humanoid.WalkSpeed
I dont get an error or anything so idk what isnt working
script.Parent.TextBox.Text = script.Parent.Parent.Parent.Character.Humanoid.WalkSpeed
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
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
script.Parent.TextBox.Text = game:GetService('Players').LocalPlayer.Character.Humanoid.Walkspeed
Edit - This will not work at all if not in a Local Script
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
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
No Screengui isn't a Child of Player, PlayerGui is a child of Player
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
both the script and textbox is a parent of screengui