I am not sure how to compare CFrame.Position to a Value. I have tried this and it does not work. Any help in leading me in the right direction would be great. Thanks.
local rock = script.Parent.Parent.Stand4 if rock.CFrame.Position == Vector3(375.839966, -64.2299347, 694.550415) then end
To create a vector3, you need to do vector3.new() Theres two ways you can compare vector3's:
v3 = Vector3.new(375.839966, -64.2299347, 694.550415) local rock = script.Parent.Parent.Stand4 rockPos = rock.CFrame.Position --you can compare the vector3 values like this: if(rockPos == v3)then print("yes") else print("no") end --or you could compare the individual values: if(rockPos.X == v3.X and rockPos.Y == v3.Y and rockPos.Z == v3.Z)then print("yes") else print("no") end
don't rlly need to do option 2 but its a way of doing things