no…
thats the same script just replace it
ooooh so wait, let me combine them and show you.
The skipbutton
part has a Orange Underline…
you need to define it
local skipbutton = location of the button
oh ok
local skipped = false
local skipbutton = game.StarterGui.Introduction.MainFrame.SkipButton
skipbutton.Visible = true
skipbutton.MouseButton1Click:Connect(function()
skipped = true
end)
local TweenService = game:GetService("TweenService")
local t = 0
repeat
task.wait(1)
t += 1
until skipped or t >= 55
local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()
define gui too
same way as skipbutton but local gui =
oh ok
local skipped = false
local skipbutton = game.StarterGui.Introduction.MainFrame.SkipButton
local gui = game.StarterGui.gui
skipbutton.Visible = true
skipbutton.MouseButton1Click:Connect(function()
skipped = true
end)
local TweenService = game:GetService("TweenService")
local t = 0
repeat
task.wait(1)
t += 1
until skipped or t >= 55
local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()
no you dont use startgui for gui scripts
where is your local script parented to?
In the Gui (character limit ehehehehehehehe)
where in the gui??
fhdhdhdhdhd
In StarterGui
? egweagersthe4qtefv
no…
the picture you sent a while up it shows the script is inside the surfacegui
so gui is equal to script.Parent.MainFrame
and skipbutton is equal to gui.SkipButton
ooooh wait
local skipped = false
local skipbutton = script.gui.SkipButton
local gui = script.Parent.MainFrame
skipbutton.Visible = true
skipbutton.MouseButton1Click:Connect(function()
skipped = true
end)
local TweenService = game:GetService("TweenService")
local t = 0
repeat
task.wait(1)
t += 1
until skipped or t >= 55
local t = TweenService:Create(gui, TweenInfo.new(0.5), { BackgroundTransparency = 1 })
t:Play()
t.Completed:Wait()
gui:Destroy()
??
yes that should work, try running it
I tried running it, It shows me an error saying "gui is not a valid member of LocalScript "Players.CalypsoGames.PlayerGui.Introduction.LocalScript"
not script.gui
just gui and place it below local gui =
what do you mean by that? (character limit)
local gui = script.Parent.MainFrame
local skipbutton = gui.SkipButton
ooooh ok thanks! Let me try to run it
It works tho, But it doesn’t seem like the SkipButton Do.