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

Why won't this check the GUIs position?

Asked by 9 years ago
local player = game.Players.LocalPlayer

while true do
    if player:WaitForChild("PlayerGui").StartGui.StartFrame.Position == Vector3.new(0.4,0,1.01,0) then
        player:WaitForChild("PlayerGui").StartGui.StartFrame.Visible = false
        player:WaitForChild("PlayerGui").StartGui.ClasssFrame.Visible = true
    end
    wait(1)
end

why won't this work? it should check out the guis position is that and the change the properties to the guis.

1 answer

Log in to vote
1
Answered by
Muoshuu 580 Moderation Voter
9 years ago

GUIs use UDim2 not Vector3

Ad

Answer this question