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: Is it possible to make the velocity to work if its anchored?

Previous Thread :: Next Thread 
machoX5 is not online. machoX5
Joined: 14 Sep 2011
Total Posts: 8840
26 Nov 2013 05:54 AM
I'm trying to make it so it will be able to float without falling.
But yet if I anchore the object, the velocity won't work.

-The script- [ This is for hopperbin ]


player = script.Parent.Parent.Parent
bin = script.Parent
enabled = true
Amt = 5

function onButton1Down(mouse)
if enabled == true then
enabled = false
if mouse.Target ~= nil then hit = mouse.Target
if hit.Name == "TP" or hit.Name == "Parter" then
if hit.Name == "TP" and hit.Finder.Value == player.Name or hit.Name == "Parter" and hit.Owner.Value == player.Name then
g = Instance.new("Part")
c = Instance.new("StringValue")
c.Name = "Owner"
c.Value = player.Name
print("VALUE:" ..c.Value)
g.Name = "Parter"
c.Parent = g
g.FormFactor = 0
g.Size = Vector3.new(1,1,1)
g.Velocity = Vector3.new(0, 50, 0)
g.Anchored = false
g.CanCollide = true

=Fewd i awsom=
Report Abuse
MemoryAddress is not online. MemoryAddress
Joined: 20 Apr 2013
Total Posts: 1297
26 Nov 2013 08:46 AM
[ Content Deleted ]
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
26 Nov 2013 09:09 AM
"Disregards physics"
What about touching things / things touching it?
It only disregards moving (Unless you change its position / CFrame, but then you are really just fixing it into another place)
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
26 Nov 2013 09:10 AM
Oh also, unanchor the part and use a body force
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
26 Nov 2013 10:27 AM
part = script.Parent
BodyForce.force = Vector3.new(0,196.2*part:GetMass(),0)

Maybe this helps ;)
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
26 Nov 2013 11:06 AM
No it doesn't help that makes it weightless not float up
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
26 Nov 2013 12:35 PM
'I'm trying to make it so it will be able to float without falling'

Does that say it has to float up? NO!
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
26 Nov 2013 01:32 PM
"I'm trying to make it so it will be able to float without falling."
Plus he set the velocity to something that would make the part go up
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
26 Nov 2013 01:37 PM
Yes, that means he wants the part to go up with a constant speed, simpel as that!
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
26 Nov 2013 01:44 PM
Thats not what you did though. You made it stay in one place unless something forced it up.
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
26 Nov 2013 02:58 PM
yes i know, I also didn't say I gave the whole script. I only said that those 2 lines may help him... ARE YOU STUPID OR WHAT THAT YOU CAN'T UNDERSTAND THAT IDIOT! NOW SHUT THE HELL UP ABOUT THIS ALREADY!!!
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
26 Nov 2013 03:16 PM
You get angry easily. Take a chill pill. You didn't help with the 2 lines you posted.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
26 Nov 2013 03:19 PM
If you're dealing with velocity, of course anchored would not be affected by velocity.



Although, on the contrary, you need to anchor the part to change it's velocity if it is already "moving..." then you set it back to off.

Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
27 Nov 2013 12:36 AM
I dont think you have to anchor the part... scripts for example which use velocity to jump the player in the air dont anchor the characters parts and still its going up...

And scriptural, youre just annoying, a better cure for me would be that youd just go out of this thread... And dude, I werent supposed to help you with those 2 lines, because youre obviously unhelpable xD
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
27 Nov 2013 12:51 AM
It wasn't meant to help me now was it smartass? It was supposed to help op and it didn't.
All you ever do is post crap scripts and rage, why don't you just leave? You aren't helpful and don't want help. You have no reason to be here.
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
27 Nov 2013 03:21 PM
How do you know it didn't help him? He didn't even reply. Or was that just an argument you made up because you can't come with anything better? xD Just shut the hell up yourself and go away. Basing your argumentation on stuff you don't even know is the worst you can do. Get the hell out idiot!
Report Abuse
chicka123 is not online. chicka123
Joined: 05 Jul 2008
Total Posts: 25356
27 Nov 2013 03:24 PM
sycips, please stop acting like a 12 year old snob.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
27 Nov 2013 05:18 PM
I couldn't come up with something better?
I posted the same thing (Without providing the code, and your code didn't do what he wanted but at least implied to use bodyforce) right before you posted.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
27 Nov 2013 05:21 PM
Use a BodyPosition object. :)
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
28 Nov 2013 02:08 AM
But Scriptural, if i did the exact same thing as you, but you only didn't give the code, then what the hack is your problem? how did I not help and you did if we did the same thing?
Report Abuse
qrrrq is not online. qrrrq
Joined: 27 Jan 2013
Total Posts: 1252
28 Nov 2013 02:10 AM
I love how Agent is the only one who helped the OP.

#GoodGuyAgent
Report Abuse
izzatnasruna is not online. izzatnasruna
Joined: 09 Jun 2009
Total Posts: 1927
28 Nov 2013 02:12 AM
@sycips & Scriptural

You both get out. Stop bringing fights where ever you go. From the op's problem is finished, then there's another problem that has been created.
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
28 Nov 2013 06:18 AM
@Izz
He starts every problem by acting like a stuck up know it all.

And you didn't help because what you posted was already said.
Report Abuse
sycips is not online. sycips
Joined: 21 Mar 2011
Total Posts: 1368
28 Nov 2013 10:46 AM
Excuse me for going into a 'fight' with Scriptural.

Yes, I didn't know the op wanted that... I didn't understand the question, so I gave wrong help, I'm sorry for that...

Scriptural, You're still a jackass and you'll always be. The fact that you posted 'earlier' doesn't mean I didn't help... I just gave the same help (in a different way btw).

I'll get out of this thread now, unless scriptural keeps offending me! I'm good in general, but I don't like being offended and I won't take it if such a baby as him is saying stuff like 'You're scripts are rubbish'!

Again, I'm sorry if some posters/readers read all this. I didn't mean to annoy anyone D:

~sycips~
Report Abuse
mic144 is not online. mic144
Joined: 14 Oct 2009
Total Posts: 1598
28 Nov 2013 10:50 AM
woot forum fight!! EVERYONE GATHER AROUND A CIRCLE AND LET THE GRAMMAR FEST BEGIN!



-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ --
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