Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you tween a GUI into the screen then back off?

Asked by 5 years ago

I have a part that if touched, awards the player who touched it some cash. I am stuck trying to tween the GUI I have made onto the screen then back of again. Please help!!!

01--Basically checks if the toucher of the button is a player, then adds money to that player.
02 
03local ting = 0 --debouncer
04 
05local gui = game.StarterGui.ParkourCompleted.Main
06 
07 
08function onTouched(hit)
09 
10    if ting == 0 then --debounce check
11    ting = 1 --activate debounce
12    local check = hit.Parent:FindFirstChild("Humanoid") --Find the human that touched the button
13 
14    if check ~= nil then --If a human is found, then
15 
View all 35 lines...
0
this is a script, so it cannot change things that are local like the playergui TheRealPotatoChips 793 — 5y
0
So if I changed the scipt to a Local Scipt, would it work? Krystal_Kyle 47 — 5y
0
change line 5 to the script.Parent version of the path greatneil80 2647 — 5y
0
Thank you soooo much!!! Krystal_Kyle 47 — 5y

Answer this question