#Gui appears on Touch

63 messages · Page 1 of 1 (latest)

pure heath
#

send code, we will try to help.

#

and its simple

#

fireclient when touched

on client recieve it, use tween to make it smoothly appear

plucky viper
pure heath
fair breach
#

you said smoothly appeared probably tween should work can you clarify if you wan t like a fade in/ or maybe pop up from the bottom and what i would do is using tween on the gui frame if you want me to script it for free tell me here thats just my suggestion

fair breach
#

like the screen fades to black and fades back?

ionic anvilBOT
#

studio** You are now Level 1! **studio

fair breach
#

ok so

#

ill try and send something now..

#

this is the script i came up with. Place the script in a screen gui then in screen gui insert a frame called "Black" without double qoutes and size it to fit the entire screen the set its background transparency to 1 in the properties tab.

#

local part = game.Workspace.part --The part you want the player to touch to trigger the tween
local FadeIn = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2, Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Transparency = 0}) --The FadeIn tween
local FadeOut = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2, Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Transparency = 1}) --The FadeOut tween

part.Touched:Connect(function(hit) --Senses if the part is touched
FadeIn:Play() --Plays FadeIn
FadeIn.Completed:Wait() --Waits for FadeIn to complete
task.wait(2) --Waits two seconds before playing FadeOut change the number in the bracket's to change the duration(Seconds)
FadeOut:Play() --Plays fade out
end)

#

oh shit

#

place this befroe everything

#

local tweenService = game:GetService("TweenService")

#

@unreal spindle

ionic anvilBOT
#

studio** You are now Level 2! **studio

fair breach
#

ya there?

#

...

#

show the script and starter gui in the explorer

#

...

#

k

#

wait

#

bruh

#

do you have any experience with scripting?

#

wait sorry

#

ye i mistook something uhhh

#

im gonna be honest m lost

ionic anvilBOT
#

studio** You are now Level 2! **studio

fair breach
#

hmmmm

#

i dont know why it is not working

#

so any idea on why it is not workin on youre game....

#

is it the "Black" frame?

#

the big white

#

hmm

#

ye select the fram and untick enabled or in the view tab disable ui visibility

#

@unreal spindle \

#

first thing is if you want to make the ui bigger

#

select the frame and drag it to the top

#

in properties of "Black" untick enabled

#

or visible

#

try this script and do this

#

@unreal spindle

#

..

ionic anvilBOT
#

studio** You are now Level 3! **studio

fair breach
#

kk

fair breach
#

i mainly use hidden devs

#

bhigdUOAWNDAWd

#

sorry

#

select loading gui and untick enabled but remember to reenable it before rejoining

#

@unreal spindle

#

ill talk to you tommorow if you cant fix it i have to go now...

ionic anvilBOT
#

studio** You are now Level 3! **studio

fair breach
#

alright i hope i helped!

#

if youre ever stuck feel free to Dm me

#

Bye!

untold spindle
pure heath
#

swear it didnt work last time i tried

untold spindle
#

where was your local script

pure heath
#

that wasa probably an issue

#

as i think about it

#

anyways