#can someone help me script this rq

1 messages · Page 1 of 1 (latest)

tardy widget
#

can someone help me rq bru

honest fox
#

sir this isnt chatgpt

tardy widget
honest fox
#

this channel is to help with code not do it for you...

tardy widget
#

i did some of the fucking code

#

its just not working

honest fox
tardy widget
#
local player = Players.LocalPlayer

local gameData = player:WaitForChild("GameData")
local courtValue = gameData:WaitForChild("Court")
local scoreboard = script.Parent
local mainFrame = scoreboard:WaitForChild("MainFrame") 

local function updateScoreboard()
    
    if courtValue.Value ~= "" and courtValue.Value:lower() ~= "practice" then
        mainFrame.Visible = true
    else
        mainFrame.Visible = false
    end
end

courtValue.Changed:Connect(updateScoreboard)

updateScoreboard()```
#

this is the handler code

#

in the Scoreboard gui

#

@honest fox

honest fox
#

ya looks fine you probably just aren't setting the value somewhere

#

check output window for errors etc

tardy widget
blazing cargo
tardy widget
#

can i just send u a file

#

@blazing cargo

blazing cargo
#

that works

tardy widget
blazing cargo
#

you copy and paste the whole script in there, then you just share the link of said paste here

tardy widget
latent copperBOT
#

studio** You are now Level 8! **studio

tardy widget
#

@blazing cargo

blazing cargo
#

riight but what are the pads?

tardy widget
#

@blazing cargo

blazing cargo
#

and so the exact moment the player touches said pads the scoreboard should become visible, and when they stop it disappears

#

correct?

tardy widget
#

yeah

blazing cargo
#

well in that case
ScreenGUI objects don't have a visible property, but instead have a Enabled propety, which is essentially just the same thing, so in the script you showed me yu just have to change the .Visible in the function to .Enabled

tardy widget
#

its still isnt showing the ScreenGUI

#

well

#

the MainFrame

#

ima send a vid rq

blazing cargo
tardy widget
#

@blazing cargo

#

it will be easier if u could look in the output

blazing cargo
# tardy widget

okay i think i figured it out
the problem is just how you're handiling the whole operation in the first place
it triggers when the player themselves touch the pad, but not when they press the HopOn button

#

...apparently it is not the same thing

#

im guessing its because you disabled Animate on the main script of the court (i think)

tardy widget
#

what do i do tho

blazing cargo
#

i suggest however you don't use a .Touched event to switch the .Visible property and instead use the HopOn button's .MouseClick event

tardy widget
#

can u send the file back so i can see?

blazing cargo
#

i haven't done much, but sure

#

gimme a sec