of     1   

utabon
#129434567Monday, March 31, 2014 2:14 AM GMT

I asked a question: "How would I make it so when people getting into a certain area(In my case "Space") it will run a script" Someone replied with magnitude. I searched it up on the roblox wiki...It made no sense. So I am just wondering how does magnitude work? Thanks -Utabon
Delones
#129434811Monday, March 31, 2014 2:17 AM GMT

Magnitude is like, the distance between object A and object B. To run a script if someone is within 20 studs, you would do something along the lines of: if (A.Position - B.Position).magnitude <= 20 then script.Disabled = false end Time is a tool you can put on a wall, or wear it on your rizd.
cntkillme
#129434836Monday, March 31, 2014 2:17 AM GMT

It's just the length of a vector.
utabon
#129435210Monday, March 31, 2014 2:21 AM GMT

Thanks so much :) :) :). But one thing...Will that example work or does it have to "have more to it" Its been months since my last script sorry :/
Delones
#129435291Monday, March 31, 2014 2:22 AM GMT

I think it'll work. If it doesn't report back here so we can fix it. Time is a tool you can put on a wall, or wear it on your rizd.
utabon
#129436043Monday, March 31, 2014 2:31 AM GMT

I tried to do it but it didnt work. I think you have to set a vector (I think if I remember correctly) and it looks something like vector = (123,123,123) and then let it equal b and a? Yes I am really stupid...

    of     1