I have problem it says Frame is not valid member of Frame what do i do? here my script
script.Parent.Frame.RebirthButton.MouseButton1Click:connect(function()
if player.leaderstats.Cash.Value >= ((player.leaderstats.Rebirths.Value+1)*1000000)then
game.ReplicatedStorage.RemoteEvents.Rebirth:FireServer()
script.Parent.Frame.RebirthButton.Text = "Rebirth Successful!"
wait(2)
script.Parent.Frame.Visible = false
open = false
script.Parent.Frame.RebirthButton.Text = "Rebirth"
end
end)
im starter to scripting

5 comments
where is ur script located at?
Please put your code in lua blocks.
Here you go! Pitched_mobile
well idk if ur script is located in the screenGui or in the frame itself
i put it in the frame it self