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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
26 Sep 2011 10:56 AM
[ Content Deleted ]
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
26 Sep 2011 11:04 AM
[ Content Deleted ]
Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
26 Sep 2011 11:08 AM
Samples where to use, some cannons, auto humanoid walks etc.

How to use
print(tostring(game.Workspace.Part.CFrame.lookVector))

You should use multiplication with Vector3, like



game.Workspace.Part.CFrame.lookVector * Vector3.new(10,10,10)
And if you set BodyVelocity's velolcity to it parents lookvector multiplicated the part
would move direction of the front face.
Report Abuse
rangersmash is not online. rangersmash
Joined: 18 Nov 2009
Total Posts: 2891
26 Sep 2011 11:11 AM
[ Content Deleted ]
Report Abuse
nike6330 is not online. nike6330
Joined: 11 Feb 2009
Total Posts: 154
26 Sep 2011 11:15 AM
Umm some thing like this


local Hitted=false
speed = 15


script.Parent.Touched:connect(function(part)
if part.Name == "Torso" then
if Hitted == false then
Hitted = true
end
end)

while true do
if Hitted then
script.Parent.BodyVelocity.velocity = Vector3.new(0,0,0)
else
script.Parent.BodyVelocity.velocity = script.Parent.CFrame.lookVector * Vector3.new(speed,speed,speed)
end
end
Report Abuse
deividaxas is not online. deividaxas
Joined: 20 Feb 2009
Total Posts: 1054
26 Sep 2011 12:19 PM
^ script.Parent.CFrame.lookVector*speed would work just fine
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