Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

Nothing occurs when Button1Down is used?

Asked by 6 years ago
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.

0
is this a localscript? only local scripts can use game.Players.LocalPlayer fanofpixels 718 — 6y
0
Yes, it is. SchonATL 15 — 6y
0
any errors? PoePoeCannon 519 — 6y
0
Try MouseButton1Down MachoPiggies 526 — 6y

Answer this question