I have question which is, how do you detect when the player is scrolling through a scrolling frame and WHERE IT IS LOCATED and to see if it prompts and Security Class error.
Any answers are appreciated. I saw this was 100% possible, just asking here now.
Hey, yea. But I’m trying to check like, with a singular local script and a loop which will attempt to get the current scrolling frame the player is scrolling on without needing an assigned instance
local frame = Instance.new("ScrollingFrame")
local canvaLocation = frame.CanvasPosition
frame:GetPropertyChangedSignal("CanvasPosition"):Connect(function() -- When It changes
end)
“I’m trying to check like, with a singular local script and a loop which will attempt to get the current scrolling frame the player is scrolling on without needing an assigned instance”
StarterGui:GetGuiObjectsAtPosition(Mouse.Position.X, Mouse.Position.Y-36) will return the GUI object under the mouse. If there are any you can check if that is a “ScrollingFrame” by using :IsA() then perform the necessary actions using the events that @Quantantus linked
I’m trying to detect wheter the player is scrolling through an COREGUI SCROLLING FRAME or PLAYERGUI SCROLLING FRAME which would be an awesome thing to detect exploit UIs which have scrolling frames. It’s 100% possible as i’ve saw like 2 anti exploits do it.
There are various scrolling objects in the CoreGui aside from exploit ones. You should try to use newproxy() to detect them instead. And IIRC core gui isn’t accessible. You cant connect events to its descendants