Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What is pos?

I keep seeing (Postion - pos) come up in scripts, but I have no idea what pos is. What is it and why would I use it?

1 comment

0

They post likely have a variable that defines to it some part's position.

1 answer

Usually "pos" is a name of a variable about Positions, normally it used with another target position.

Example:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local target = mouse.Target
local pos

local pTarget = game.Workspace:FindFirstChild(target.Parent.Name) -- Detecting target player from one of his own part

pos = pTarget.Torso.Position

print(pos)

This discussion is preserved as it was. New answers, comments, and votes are closed.