#Getting this error message

14 messages · Page 1 of 1 (latest)

pulsar wasp
#

This is my script (the part in > < is the part thats highlighted by the error):


local playButton = menuScreen:WaitForChild("Buttons"):WaitForChild("Play")
playButton.>MouseButton1Click<:Connect(function()
    hideAllScreens()

    local fadeTween = TweenService:Create(background3, tweenInfoFade, {Transparency = 1})
    fadeTween.Completed:Connect(function()
        background3.Visible = false
        teamSelectScreen.Visible = true
    end)
end)

local creditsFrame = menuScreen.Popups.Credits

local backButtonOne = menuScreen.Popups.Credits.Frame.Back.TextButton
backButtonOne.MouseButton1Click:Connect(function()
    creditsFrame.Visible = false
end)```

error message is this
minor oak
#

only textButtons and imageButtons do

pulsar wasp
#

hmmm

#

Ok i think ik what to do

#

I gotta change menuScreen:WaitForChild to smth to do with the button

#

maybe

#

🗣️🗣️🗣️

pulsar wasp
minor oak
#

invisible button

#

and detect the event from that

pulsar wasp
#

ye if i remember correct that's what i have

#

eh ill figure this out tmrw