Evess
|
  |
| Joined: 27 May 2012 |
| Total Posts: 25583 |
|
|
| 22 Aug 2012 11:28 AM |
This script is supposed to make the player float in the water if his torso is on the water. It is given through StarterPack.
while true do wait(0.1) if script.Parent.Parent.Character.Torso.Position.Y <= 150 then script.Parent.Parent.Character.Torso.Position.Y = 151 end end
I get no errors.
Please help. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2012 11:30 AM |
you do get errors learn to use output next time |
|
|
| Report Abuse |
|
|
jmr11b
|
  |
| Joined: 19 Aug 2010 |
| Total Posts: 806 |
|
|
| 22 Aug 2012 11:31 AM |
| How about you try putting an onTouch in the water? |
|
|
| Report Abuse |
|
|
Stealthah
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 288 |
|
|
| 22 Aug 2012 11:31 AM |
| You need to identify Humanoid for it to work properly. |
|
|
| Report Abuse |
|
|
Evess
|
  |
| Joined: 27 May 2012 |
| Total Posts: 25583 |
|
|
| 22 Aug 2012 11:33 AM |
"you do get errors learn to use output next time"
18:29:07 - Script "Players.Player.Backpack.Script", Line 4 18:29:07 - stack end
That's all the output says when I run it. |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2012 11:34 AM |
learn to use it plz
then ill fix that up for u |
|
|
| Report Abuse |
|
|
Evess
|
  |
| Joined: 27 May 2012 |
| Total Posts: 25583 |
|
|
| 22 Aug 2012 11:36 AM |
"learn to use it plz then ill fix that up for u"
what are you talking about |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2012 11:38 AM |
the error is above the stack end line
and the error is pretty obvious
but
because you're a retard ill fix it up for you
while true do wait(0.1) if script.Parent.Parent.Character.Torso.Position.Y <= 150 then script.Parent.Parent.Character.Torso.Position = Vector3.new(script.Parent.Parent.Character.Torso.Position.X,151,script.Parent.Parent.Character.Torso.Position.Z) end end
and btw, get back to lmad or other ignorantforum k |
|
|
| Report Abuse |
|
|
Stealthah
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 288 |
|
|
| 22 Aug 2012 11:38 AM |
| The output is telling you what you did wrong, firstly; didn't you read my post? |
|
|
| Report Abuse |
|
|
Evess
|
  |
| Joined: 27 May 2012 |
| Total Posts: 25583 |
|
|
| 22 Aug 2012 11:39 AM |
"You need to identify Humanoid for it to work properly."
what does the humanoid have to do with the torso position?
@scripter
thank you.. I guess |
|
|
| Report Abuse |
|
|
Evess
|
  |
| Joined: 27 May 2012 |
| Total Posts: 25583 |
|
|
| 22 Aug 2012 11:41 AM |
su8
all it does is kill me because the torso gets unconnected to the head |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2012 11:42 AM |
while true do wait(0.1) if script.Parent.Parent.Character.Torso.Position.Y <= 150 then script.Parent.Parent.Character:MoveTo(Vector3.new(script.Parent.Parent.Character.Torso.Position.X,151,script.Parent.Parent.Character.Torso.Position.Z)) end end |
|
|
| Report Abuse |
|
|
Evess
|
  |
| Joined: 27 May 2012 |
| Total Posts: 25583 |
|
|
| 22 Aug 2012 11:46 AM |
su8
this one keeps me floating
until the fall speed gets so high so my screen messes up and I get below -600 and die
how do I keep the fall speed zero? |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2012 11:51 AM |
| just use bodyposition and set it to torso position x,z and y to 151 |
|
|
| Report Abuse |
|
|
Evess
|
  |
| Joined: 27 May 2012 |
| Total Posts: 25583 |
|
|
| 22 Aug 2012 11:51 AM |
>is stupid C&Ger
how do i do that |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2012 12:11 PM |
local bodypos = Instance.new("BodyPosition",character.Torso) while(wait())do bodypos.position = Vector3.new(character.Torso.Position.X,151,character.Torso.Position.>) end
Also, you might want to add force. |
|
|
| Report Abuse |
|
|