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
 

Help

Previous Thread :: Next Thread 
king4000000 is not online. king4000000
Joined: 22 Oct 2011
Total Posts: 397
18 Sep 2013 04:23 PM
16:23:07.191 - Workspace.LinkedSword.Script:11: attempt to perform arithmetic on global 'lookVector' (a nil value)
16:23:07.194 - Script 'Workspace.LinkedSword.Script', Line 11
16:23:07.198 - stack end



function onActivated()
for i = 1, 100 do
p = script.Parent.Handle:Clone()
p.Parent = game.workspace
p.CanCollide = false
p.Position = script.Parent.Handle.Position + Vector3.new((math.random(-10,10)),0,(math.random(-10,10)))
s = Instance.new("BodyVelocity")
s.Parent = p
wait(0)
p.Anchored = true
s.velocity = Vector3.new(lookVector *10,lookVector *10,lookVector *10)
wait(1)
end
p.Anchored = false

end

script.Parent.Activated:connect(onActivated)
Report Abuse
R8N is not online. R8N
Joined: 07 Aug 2013
Total Posts: 1164
18 Sep 2013 04:32 PM
Local?
Report Abuse
king4000000 is not online. king4000000
Joined: 22 Oct 2011
Total Posts: 397
18 Sep 2013 04:32 PM
no
Report Abuse
R8N is not online. R8N
Joined: 07 Aug 2013
Total Posts: 1164
18 Sep 2013 04:33 PM
It has to be or it can't get lookVector.
Report Abuse
king4000000 is not online. king4000000
Joined: 22 Oct 2011
Total Posts: 397
18 Sep 2013 04:34 PM
k
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