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

How to find a gui which in middle of screen or any position?

Asked by 5 years ago
Edited 5 years ago

Hello

for i,v in pairs(script.Parent.Unboxing.inner:GetChildren()) do
    if v.Position.X.Offset >= -150 and v.Position.X.Offset <= -230 then
        print("Found")
        ReplicatedStorage.Case:FireServer(v.Name)
    end
end

I am making case unboxing system so after spinning I need to take the gui which is stop on middle of screen This script isn't working what is my wrong?. or is there any alternative to find that

Thanks advance.

0
It's only running once, this probably runs before the case actually finishes spinning so you should add a loop. YabaDabaD0O 505 — 5y
0
No no. It's running after spinning over. VladimrLenin 17 — 5y
0
Why are you using negative offset? That's off the screen. KingLoneCat 2642 — 5y
0
I meant middle of screengui VladimrLenin 17 — 5y

Answer this question