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
 

Sorry

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Jul 2013 02:41 PM
function onactivated()
Player=Game.Players.LocalPlayer
Character=game.Player.Players.LocalPlayer.Character
B=Instance.new("BodyForce",Character.Torso)
B.force=Vector3.new(0,10,0)
end
script.Parent.Activated:connect(onactivated)





Sorry for eposting but I didn't get any answers on other
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
25 Jul 2013 02:43 PM
function onactivated()
Player = game.Players.LocalPlayer
Character = Player.Character
B = Instance.new("BodyForce",Character.Torso)
B.Force = Vector3.new(0,10,0)
end

script.Parent.Activated:connect(onactivated)

Plus it would need to be in a local script. I would also recommend increasing the upwards force, 10 is not enough
Report Abuse
Picosecond is not online. Picosecond
Joined: 08 Dec 2012
Total Posts: 2984
25 Jul 2013 02:44 PM
function onActivated()
Player=game.Players.LocalPlayer
Character=game.Players.LocalPlayer.Character
B=Instance.new("BodyForce",Character.Torso)
B.force=Vector3.new(0,10,0)
end
script.Parent.Activated:connect(onActivated)
Report Abuse
jetpack123456 is not online. jetpack123456
Joined: 24 Aug 2011
Total Posts: 141
25 Jul 2013 02:44 PM
Sorry but I don't know why.
I'm not the best scripter!

#YoloSwagBoat2013
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
25 Jul 2013 02:44 PM
First, is it a localscript?
Second replace line 2 with
Character = Player.Character

~+CClone+~
Report Abuse
cyclone3260 is not online. cyclone3260
Joined: 23 Aug 2010
Total Posts: 1038
25 Jul 2013 02:44 PM
wtf I was on this 2 seconds ago and already 5 more posts than mine?!?!

~+CClone+~
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Jul 2013 03:01 PM
With this script: the output says - Force is not a valid member of BodyForce

function onactivated()
Player = game.Players.LocalPlayer
Character = Player.Character
B = Instance.new("BodyForce",Character.Torso)
B.Force = Vector3.new(0,100,0)
end

script.Parent.Activated:connect(onactivated)
Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
25 Jul 2013 03:05 PM
My mistake. it is a lowercase f;

function onactivated()
Player = game.Players.LocalPlayer
Character = Player.Character
B = Instance.new("BodyForce",Character.Torso)
B.force = Vector3.new(0,100,0)
end

script.Parent.Activated:connect(onactivated)
Report Abuse
shayan414 is not online. shayan414
Joined: 11 Aug 2008
Total Posts: 8090
25 Jul 2013 03:08 PM
For some anonymous reason the 'force' property for BodyForce isn't capitalized.

function onactivated()
Player = game.Players.LocalPlayer
Character = Player.Character
B = Instance.new("BodyForce",Character.Torso)
B.force = Vector3.new(0,100,0) -- For capitalization purposes
end

script.Parent.Activated:connect(onactivated)
Report Abuse
shayan414 is not online. shayan414
Joined: 11 Aug 2008
Total Posts: 8090
25 Jul 2013 03:09 PM
Oh darn! Hibobb got it before me. :P
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Jul 2013 03:10 PM
Yeah I added a bodyForce object and I looked at it's property's and I found that out
Report Abuse
shayan414 is not online. shayan414
Joined: 11 Aug 2008
Total Posts: 8090
25 Jul 2013 03:11 PM
Alright, is it working now?
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
25 Jul 2013 03:14 PM
yeah
Report Abuse
jetpack123456 is not online. jetpack123456
Joined: 24 Aug 2011
Total Posts: 141
27 Jul 2013 11:20 AM
Lol what will this script even do?

#YoloSwagBoat2013
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