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
 

Re: Float script doesn't work.

Previous Thread :: Next Thread 
Evess is not online. 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
su8qqingcuzbanned is not online. su8qqingcuzbanned
Joined: 28 Jul 2012
Total Posts: 164
22 Aug 2012 11:30 AM
you do get errors
learn to use output next time
Report Abuse
jmr11b is not online. 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 is not online. 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 is not online. 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
su8qqingcuzbanned is not online. su8qqingcuzbanned
Joined: 28 Jul 2012
Total Posts: 164
22 Aug 2012 11:34 AM
learn to use it plz

then ill fix that up for u
Report Abuse
Evess is not online. 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
su8qqingcuzbanned is not online. su8qqingcuzbanned
Joined: 28 Jul 2012
Total Posts: 164
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 is not online. 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 is not online. 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 is not online. 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
su8qqingcuzbanned is not online. su8qqingcuzbanned
Joined: 28 Jul 2012
Total Posts: 164
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 is not online. 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
su8qqingcuzbanned is not online. su8qqingcuzbanned
Joined: 28 Jul 2012
Total Posts: 164
22 Aug 2012 11:51 AM
just use bodyposition and set it to torso position x,z and y to 151
Report Abuse
Evess is not online. 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
su8qqingcuzbanned is not online. su8qqingcuzbanned
Joined: 28 Jul 2012
Total Posts: 164
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
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