local hibl = script.Parent.Background["Hale Interactive Box Logo"]
local ctc = script.Parent.Background.ClickToContinue
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

local stats = Instance.new("Folder", player)
stats.Name = "PlayerStats"

-- INTRO --
hibl:TweenPosition(UDim2.new(0.075, 0, 0.4, 0), "Out", "Quad", 4, false)
wait(5)
repeat
	ctc.TextTransparency = ctc.TextTransparency - .1
	wait(.1)
until ctc.TextTransparency == 0
mouse.Button1Down:Connect(function() -- LINE WITH THE PROBLEM
	hibl:TweenPosition(UDim2.new(0.075, 0, -0.7, 0), "Out", "Quad", 3, true)
	repeat
		ctc.TextTransparency = ctc.TextTransparency + .1
		wait(.1)
	until ctc.TextTransparency == 0
	wait(3)
end)

Why does nothing occur when I use Button1Down?

Any help is appreciated.

4 comments

0

is this a localscript? only local scripts can use game.Players.LocalPlayer

0

Yes, it is.

0

any errors?

0

Try MouseButton1Down