Calling a starter gui from a local script?

So I made a sliding mechanic that includes a cooldown. The problem is that I also want a frame to popup if the user tries to slide again telling them there is a cooldown but I’m not sure how I can execute this. The sliding mechanic is in the StarterCharacterScripts and is also a local script. Any idea as to how I can accomplish this?

When the player attempts to do that, make the frame’s visibility equal to true, put text then wait for a few seconds and hide it
It would be something like this:

-- cooldown is cooldown time, frame is what you want to show up, TextLabel is a TextLabel object inside the frame

if cooldown > 0 then
frame.Visible = true
frame.TextLabel.Text = "You need to wait for "..cooldown.." more seconds before sliding again!"
task.wait(n)
frame.Visible = false
--frame.TextLabel.Text = "" (if you want to clear the text) 
end