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.

4 comments

0

It's only running once, this probably runs before the case actually finishes spinning so you should add a loop.

0

No no. It's running after spinning over.

0

Why are you using negative offset? That's off the screen.

0

I meant middle of screengui