The StarterGui is actually in relation to the server’s side (And other players that’ll be replicated to their side), & if you’re attempting to play this from the client then you won’t be able to look at the changes
You can define it as using script.Parent.Parent (Etc) and a LocalScript instead for a more smooth transition, I’d also recommend using TweenService to accomplish this
local TS = game:GetService("TweenService")
local FadeObject --Define it here
local FadeTween = TS:Create(FadeObject, TweenInfo.new(1), {BackgroundTransparency = 1})
FadeTween:Play()
If that’s the case then, you could just use the MouseButton1Down/MouseButton1Click Events if it’s a GuiButton that you want to click
Certain objects do have these kind of events to make it easier to detect when a specific object is interacted with, not sure if this is what you’d want though:
local Button --Define the Button to click on here
local FadeObject --Define the Object you want to Fade here
local TS = game:GetService("TweenService")
local function Clicked()
local FadeTween = TS:Create(FadeObject, TweenInfo.new(1), {BackgroundTransparency = 1})
FadeTween:Play()
end
Button.MouseButton1Down:Connect(Clicked)
Your for loop is set to run for about one second (100 x 0.01 = 1 second) so it’s probably just going too fast for you to notice the change. But do what other posters have said and use a Tween.
Can I see the current script you’re using, and possibly a picture of where your Frame that’s gonna fade is in your Explorer? I’d appreciate it if you can do that
I’m 100% I don’t have any duplicates, and I’ve been trying multiple methods, I think it’s the script, and not anything else, just what I did, because when I reset it turns dark ofc, and shows the screengui.