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: Need help...

Previous Thread :: Next Thread 
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 03:39 PM
No output

local floater = script.Parent
local button = floater.BodyVelocity
while true do
button.maxForce = Vector3.new(0,4000,0) -- Upward force
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(2.5)
button.maxForce = Vector3.new(0,3465,0) -- Low force value to slow the fall of part against gravity
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(.75)
end
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 04:18 PM
bump
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 04:43 PM
Seriously, cmon. =/
Report Abuse
C0D3Y is not online. C0D3Y
Joined: 24 Jul 2010
Total Posts: 1692
16 Apr 2012 04:46 PM
I read it, I just saw absolutely nothing wrong with it so I didn't bother posting.
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 04:48 PM
But it wont work.
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 04:52 PM
I tested it. It does work. Which part doesn't work for you?
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 05:01 PM
Still doesnt work

local floater = script.Parent
local button = floater.BodyVelocity
floater.Touched:connect(function()
while true do
button.maxForce = Vector3.new(0,4000,0) -- Upward force
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(2.5)
button.maxForce = Vector3.new(0,3465,0) -- Low force value to slow the fall of part against gravity
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(.75)
end)
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
16 Apr 2012 05:11 PM
Make sure you haven't paused the environment.
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 05:11 PM
That new script needs another end.
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 05:25 PM
Ok found out what was wrong. The brick was anchored.
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 05:32 PM
use:

local floater = script.Parent
local button = floater.BodyVelocity
floater.Touched:connect(function()
floater.Anchored = false
while true do
button.maxForce = Vector3.new(0,4000,0) -- Upward force
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(2.5)
button.maxForce = Vector3.new(0,3465,0) -- Low force value to slow the fall of part against gravity
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(.75)
end)
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 05:52 PM
EDIT:
Use


local floater = script.Parent
local button = floater.BodyVelocity
function onTouched(hit)
if hit.Parent:findFirstChild("Humanoid") ~= nil then
floater.Anchored = false
while true do
button.maxForce = Vector3.new(0,5000,0) -- Upward force
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(2.5)
button.maxForce = Vector3.new(0,4000,0) -- Low force value to slow the fall of part against gravity
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(.75)
end
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 05:56 PM
so this wont work?

local floater = script.Parent
local button = floater.BodyVelocity
floater.Touched:connect(function()
floater.Anchored = false
while true do
button.maxForce = Vector3.new(0,5000,0) -- Upward force
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(2.5)
button.maxForce = Vector3.new(0,4000,0) -- Low force value to slow the fall of part against gravity
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(.75)
end
end)
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 05:58 PM
No because when it hits the ground the ground will make another touched function run at the same time as the first one making the timing go off. You have to remove the while true do to make that work
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 06:06 PM
did that and still wont work


local floater = script.Parent
local button = floater.BodyVelocity
floater.Touched:connect(function()
floater.Anchored = false
button.maxForce = Vector3.new(0,5000,0) -- Upward force
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(2.5)
button.maxForce = Vector3.new(0,4000,0) -- Low force value to slow the fall of part against gravity
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(.75)
end)
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 06:11 PM
because now there's no function
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 06:12 PM
floater.Touched:connect(function()
Report Abuse
Torcus is not online. Torcus
Joined: 22 Feb 2012
Total Posts: 885
16 Apr 2012 06:14 PM
Wait, no anchor?

Add this (May be wrong):

brick.NameOfThePartHere.Parent.Anchored = false

Now, it may be wrong. I barely read any of the posts.
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 06:23 PM
nah, bump of need reply from teapot boi
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 06:29 PM
lol just use the one i gave you, there's nothing more i can do
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 06:33 PM
tell me why it wouldnt work

i do have a function
the floater.Touched:connect(function()
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 06:35 PM
no idea
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 06:38 PM
I don't want to just use a script. Since I'm learning I want to know why, how, and for it to be explained.
Report Abuse
hyyt8 is not online. hyyt8
Joined: 02 May 2007
Total Posts: 1760
16 Apr 2012 06:53 PM
Explanation:
If you look closely at the if statement you will see that it checks to see if there is a humanoid in the parent of the part that hits the brick. As you may already know, your left leg is part of your character which contains your humanoid. This statement make sure that the script only allows players to use it.
If it doesn't work just boost up the velocity, otherwise, I have no idea what's wrong.
Report Abuse
wwemaniac99 is not online. wwemaniac99
Joined: 10 Mar 2010
Total Posts: 41496
16 Apr 2012 06:58 PM
y dis no work

local floater = script.Parent
local button = floater.BodyVelocity
floater.Touched:connect(function(brick)
local player = brick.Parent:findFirstChild("Humanoid")
if (player ~= nil) then
floater.Anchored = false
button.maxForce = Vector3.new(0,5000,0) -- Upward force
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(2.5)
button.maxForce = Vector3.new(0,4000,0) -- Low force value to slow the fall of part against gravity
button.velocity = Vector3.new(0,1,0) -- Positive Velocity
wait(.75)
end
end)
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