✓ Accepted answer
#Very Good (and unclear) Instructions
- Do a dance with variables like this example:
maggie = (xyz_A-xyz_B).magnitude
-- xyz1 and xyz2 could be "workspace.PartThingy.Position" (as an example)
- Make a funny face at math and use this as an example:
if maggie <= 2.53 then
print(i.." is near an object within its radius of 2.53!")
end
- Ask the Lua nerd next to you. He may tell you to combine that with your code, like this:
maggie = (xyz_A-xyz_B).magnitude
for _, i in pairs(game.Players:GetPlayers())
if maggie <= 2.53 then
print(i.." is near an object within its radius of 2.53!")
end
end
and then that same Lua nerd will let you do the rest.
1 comment
btw u forgot the do after game.Players:GetChildren also u should use GetChildren not getplayers