Is it possible to do something like this? I can’t find anything…
if humrp.Position ~= -22.1, 84, -803.2
Is it possible to do something like this? I can’t find anything…
if humrp.Position ~= -22.1, 84, -803.2
It is definitely possible except you would do it something like this.
if humrp.Position ~= Vector3.new(-22.1, 84, -803.2) then
--Your code
end
You have to reference the Vector3
constructor
Also it would be entirely exact, I would prob use math.round()
to have a better chance of detecting specific Positions like those (Unless if you wanna keep it highly specific)
local RoundedX = math.round(humrp.Position.X)
local RoundedY = math.round(humrp.Position.Y)
local RoundedZ = math.round(humrp.Position.Z)
if Vector3.new(RoundedX, RoundedY, RoundedZ) ~= Vector3.new(-22, 84, -803) then
--Something
end