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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Jul 2013 02:44 PM |
Sorry but I don't know why. I'm not the best scripter!
#YoloSwagBoat2013 |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2013 02:44 PM |
First, is it a localscript? Second replace line 2 with Character = Player.Character
~+CClone+~ |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 11 Aug 2008 |
| Total Posts: 8090 |
|
|
| 25 Jul 2013 03:09 PM |
| Oh darn! Hibobb got it before me. :P |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 11 Aug 2008 |
| Total Posts: 8090 |
|
|
| 25 Jul 2013 03:11 PM |
| Alright, is it working now? |
|
|
| Report Abuse |
|
|
thetacah
|
  |
| Joined: 18 Jan 2013 |
| Total Posts: 16026 |
|
| |
|
|
| 27 Jul 2013 11:20 AM |
Lol what will this script even do?
#YoloSwagBoat2013 |
|
|
| Report Abuse |
|
|