#can someone help me script this rq
1 messages · Page 1 of 1 (latest)
sir this isnt chatgpt
?
this channel is to help with code not do it for you...
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
ya looks fine you probably just aren't setting the value somewhere
check output window for errors etc
idk why but the ball isnt spawning when intro is done
are you sure you wrote
if (condition) then
and not
if (condition)
then
uuuhhhhh you can just use https://pastebin.com/
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
that works
how do i use it
you copy and paste the whole script in there, then you just share the link of said paste here
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
** You are now Level 8! **
riight but what are the pads?
and so the exact moment the player touches said pads the scoreboard should become visible, and when they stop it disappears
correct?
yeah
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
its still isnt showing the ScreenGUI
well
the MainFrame
ima send a vid rq
@blazing cargo when im on the spot it should make the MianFrame for scoreboard gui visable = true
Mabye its because the script can't find the gui in the first place
usually, when a player spawns, theres a keyframe object named "PlayerGUI" or something like that, and it has all of the guis that are inside StarterGUI.
It should be visible in the player service while testing
try doing scoreboard = LocalPlayer.{name of said keyframe object}.Scoreboard
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)
what do i do tho
i suggest however you don't use a .Touched event to switch the .Visible property and instead use the HopOn button's .MouseClick event
can u send the file back so i can see?