hello again! ive been looking at gui scripts and tween stuff in the forums looking for help and even just watching lessons but i havent really found anything with this so here i go…
ive been learning and looking on how to link guis to do stuff on click and now i want it to all fade out but i also made the buttons move and fade in at different timings for effect heres my screen and my gui setup…
as i think and hoped i stated above ive found nothing on the forums and i dont think i understand scripting to were i can identify it from youtube tutorials.
ive tried tweening it which broke it so i redid it but i think its having a frame appear over the buttons or somehow disable it so they cant light up when my mouse still runs over it or make a noise when i click it and a exit button on the frame so it like reverses if that makes sense lol
my main idea in general is to make the 3 bottom image buttons have a different thing on click but when the click everything fades for a whole new gui ut there is an exit button this is my code for it to glow when my mouse runs over it
local TweenService = game:GetService("TweenService") -- this will get tweenservice
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
script.Parent.MouseEnter:Connect(function()
TweenService:Create(script.Parent, tweenInfo, {ImageTransparency = 0}):Play()
end)
script.Parent.MouseLeave:Connect(function()
TweenService:Create(script.Parent, tweenInfo, {ImageTransparency = 0.5}):Play()
end)
this is my code for it to fade in on start (ITS ALL different for the image buttons and label
local pressed = true
local TweenService = game:GetService("TweenService") -- this will get tweenservice
local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
repeat wait() until game:IsLoaded()
wait(4.5)
TweenService:Create(script.Parent, tweenInfo, {ImageTransparency = 0.5}):Play()
wait(1) -- This will wait for the tween to be done.
local pressed = false
well in all honestly, i dont know how it would work or how it would but im trying to make the buttons fade and not work so i can have a new gui and exit button
I think what you should do is define a book value inside one of the frames, and whenever one button is clicked change the value to false so any of the tweens tween I’ve buttons stop and don’t break anything. From there, you should be able to just tween the three text transparencies.
Since it’s all on different scripts, you would do that to store if one of the three has been pressed inside of a bool value instance, so you would be able to check for that and not highlight the other buttons when you hover over them.