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

How to have something happen if a player doesn't scroll their wheel?

Asked by 4 years ago
Edited 4 years ago

I'm making a horror game where you must scroll to keep your eyes closed, and if you stop scrolling, I want your eyes to start to open, then if you start scrolling again, the eyes shut again.

I have a script to close one eye lid when you scroll once.

local Mouse = game.Players.LocalPlayer:GetMouse()

Mouse.WheelBackward:Connect(function()
    script.Parent:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "In", "Sine", .75)
end)

It's pretty simple. If what I'm asking for is too complex,how would I go about having it if you stop scrolling for a certain period of time, your eyes completely open and you have to hold your scroll to keep yourself from dying.

Let me know if you have any questions. Thank you, guys!

Answer this question