I’ll make your code look smoother if you don’t mind since it’s going to be easier for us to read your code. I’d also ask if you get any errors in the output and if you have tried to use breakpoints before?
local Clicked = false
local Player = game.Players.LocalPlayer
local TeleportService = game:GetService("TeleportService")
local GameId = 5356825192
local object = script.Parent.Parent.Parent.Blackout
object.AnchorPoint = Vector2.new(0,0)
object.Position = UDim2.new(1, 0, 0, 0)
object.Visible = true
local function BeginCollectingSequence()
local StarterGui = Player.PlayerGui
StarterGui.Shop.Enabled = false
end
script.Parent.MouseButton1Down:Connect(function()
wait(1)
BeginCollectingSequence()
game.ReplicatedStorage.OtherSounds.Click:Play()
object.BackgroundTransparency = 0
object:TweenPosition(UDim2.new(0,0,0,0), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce)
wait(0.5)
TeleportService:Teleport(GameId)
end)
I just made your script clean but make sure that you have open the output window inside of a studio since it’s going to tell you what’s wrong with the scripts. Also, breakpoints are a nice thing to know how to use since you can look at what your script does step by step.