Script doesn't seem to be working for anything in StarterGui?
When the player's character sits on a chair, some text labels, text buttons, and images show up for a decision to go fast or slow, in a folder in ScreenGui called Decision. The labels are set to visible = false but when I sit on a chair, no errors show in the output but the labels don't become visible. Any help? Here's the script (It's in StarterCharacterScripts)
01 | local fast = game.StarterGui.ScreenGui.Decision.Fast |
02 | local slow = game.StarterGui.ScreenGui.Decision.Slow |
03 | local hum = script.Parent.Humanoid |
04 | hum:GetPropertyChangedSignal( "Sit" ):Connect( function (sit) |
06 | if hum [ "Sit" ] = = true then |
07 | for _, child in pairs (game.StarterGui.ScreenGui.Decision:GetChildren()) do |
11 | fast.Activated:Connect(fastt) |
12 | slow.Activated:Connect(sloww) |
15 | if hum [ "Sit" ] = = false then |
16 | for _, child in pairs (game.StarterGui.ScreenGui.Decision:GetChildren()) do |