generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Magnitude, why you so hard .-.

Previous Thread :: Next Thread 
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
05 Mar 2013 10:31 AM
why doesn't this work?

function lol(m)
if (player.Character.Torso.Position - m.Target.Position) <= 10 then
end
end

while true do
wait()
lol(m)
end
Report Abuse
Moolah101 is not online. Moolah101
Joined: 22 Sep 2010
Total Posts: 614
05 Mar 2013 10:34 AM
Kk, you forgot to add .magnitude and the <=

function lol(m)
if (player.Character.Torso.Position - m.Target.Position).magnitude <= 10 then
end
end

while true do
wait()
lol(m)
end
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
05 Mar 2013 10:34 AM
You forgot .magnitude:

if (player.Character.Torso.Position - m.Target.Position) <= 10 then


Should be:

if (player.Character.Torso.Position - m.Target.Position).magnitude <= 10 then
Report Abuse
Moolah101 is not online. Moolah101
Joined: 22 Sep 2010
Total Posts: 614
05 Mar 2013 10:35 AM
^

OWNED!!
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
05 Mar 2013 10:37 AM
Who cares? It's only a time issue.

ROBLOX should really have an updating thread system, where it updates the thread while you post a reply - and they should have a quick reply system.
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
05 Mar 2013 10:37 AM
[ Content Deleted ]
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
05 Mar 2013 10:39 AM
It wouldn't.

Think about it, auto-updating threads so while you're typing a reply you can check if someone's already posted a reply

For the quick-reply, they could either just add a quick-reply box in, or modify it so the thread is shown and auto-updates on the reply page.
Report Abuse
Soundcrusher is not online. Soundcrusher
Joined: 25 Aug 2011
Total Posts: 559
05 Mar 2013 10:43 AM
Both thank for helping, it works now :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image