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: Sliding Block Script Needed

Previous Thread :: Next Thread 
Kaizoman is not online. Kaizoman
Joined: 28 Sep 2008
Total Posts: 49
26 Jul 2009 07:37 AM
I need a script for blocks that when pushed from one side, they will slide across the ground until they hit something (besides a player), but can only slide in straight lines and will not push whatever they hit. On a side note, I need a floor switch that becomes pushed and opens when a block is on it and closes the door when the block is not.
Report Abuse
Kaizoman is not online. Kaizoman
Joined: 28 Sep 2008
Total Posts: 49
26 Jul 2009 09:53 AM
Bump.
Report Abuse
Kaizoman is not online. Kaizoman
Joined: 28 Sep 2008
Total Posts: 49
27 Jul 2009 07:12 AM
Bump.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 07:54 AM
p = Instance.new("Part")
p.Parent = game.Workspace
p.Position = Vector3.new(position, position, position)
p.Size = Vector3.new(size, size, size)
p.Velocity = Vector3.new(velocity, velocity, velocity)
wait(10)
p.Parent = nil
Easy as pie.
Report Abuse
Kaizoman is not online. Kaizoman
Joined: 28 Sep 2008
Total Posts: 49
27 Jul 2009 08:27 AM
It didn't work. -_-'

Or maybe it did, but I don't want the box turning while its sliding.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 08:28 AM
p = Instance.new("Part")
p.Parent = game.Workspace
p.Position = Vector3.new(-3, 2, 5)
p.Size = Vector3.new(15, 15, 15)
p.Velocity = Vector3.new(50, 0, 0)
wait(10)
p.Parent = nil

Change the Position Vector because thatll end up dead before it even arrives.
Report Abuse
Kaizoman is not online. Kaizoman
Joined: 28 Sep 2008
Total Posts: 49
27 Jul 2009 09:35 AM
Well, it made a block appear, but thats not what I needed... What I needed was a script to put into a block to make it slide when pushed from 1 of the 4 sides until it hits something, and it wont turn while being pushed or sliding.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:35 AM
function onTouched(part)
script.Parent.Velocity = Vector3.new(0, 0, 30)
wait(2)
script.Parent.Velocity = Vector3.new(0, 0, 0)
end
script.Parent.Touched:connect(onTouched)

is that what you want?
Report Abuse
ipod525 is not online. ipod525
Joined: 15 Sep 2007
Total Posts: 8973
27 Jul 2009 10:38 AM
@ soul

You suck at scripting

You need to use magnitude in there somwhere. I could make one easy, but it would come out with so many blocks it would be lag mania.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:40 AM
SHUT UP
Nub above me.

i CAN script!
AND I DONT SUCK AT IT!
IF I SUCK HOW DID I MAKE THAT FLYING COMMAND ROBOT IN MY TEST LABZ!
Report Abuse
ipod525 is not online. ipod525
Joined: 15 Sep 2007
Total Posts: 8973
27 Jul 2009 10:40 AM
With free model strings and functions.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:41 AM
I DONT USE FREE MODELS!
I MAKE MY OWN STUFF NUB!
Report Abuse
ipod525 is not online. ipod525
Joined: 15 Sep 2007
Total Posts: 8973
27 Jul 2009 10:42 AM
If you knew anything about the internet, you would know I would think you're lying.

Also, you need to know perfect grammar to script.
Report Abuse
Blobboy13 is not online. Blobboy13
Joined: 10 Sep 2008
Total Posts: 6199
27 Jul 2009 10:43 AM
No, You don't.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:44 AM
Look in my 'Test Labz' And you will see it you nub. -Nub means Noob and Newbie-NUB
Report Abuse
ipod525 is not online. ipod525
Joined: 15 Sep 2007
Total Posts: 8973
27 Jul 2009 10:45 AM
Noob isn't a word, newbie is slang for new person.
Also, you may want to work on maturity.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:46 AM
!! Noob is in the dictionary !!

For your information im only 3 so shut up. LOL
Report Abuse
ipod525 is not online. ipod525
Joined: 15 Sep 2007
Total Posts: 8973
27 Jul 2009 10:46 AM
It's in the german dictionary, not the english.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:48 AM
Yeah so!
I never said it was in the English dictionary did I!
Report Abuse
ipod525 is not online. ipod525
Joined: 15 Sep 2007
Total Posts: 8973
27 Jul 2009 10:48 AM
Well we aren't speaking in german, are we?
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:50 AM
I said:
!! Noob is in the dictionary !!
I didn't say:
!! Noob is in the German dictionary !!
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:51 AM
OK LETS STOP THE FLAMMING WAR! I WIN OK! SO JUST CRAWL BACK IN YOUR HIDEY HOLE, IF YOU NEVER SAID I SUCKED AT SCRIPTING WE WOULDN'T BE THIS FAR DOWN THIS THREAD SO SHUT ------ UP
Report Abuse
ipod525 is not online. ipod525
Joined: 15 Sep 2007
Total Posts: 8973
27 Jul 2009 10:56 AM
Well, if you knew anything about ROLua, then you would know that your onTouched function would not fit the requested.
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2009 10:59 AM
function onTouched(part)
script.Parent.Velocity = Vector3.new(0, 0, 30)
wait(2)
script.Parent.Velocity = Vector3.new(0, 0, 0)
end
script.Parent.Touched:connect(onTouched)

THAT WOULD YOU NUB.

AND IF I NO NOTHING ABOUT RX_LUA THEN I WOULDN'T BE ABLE TO DO THAT. Ok then. Script what he requested. Lets see how dumb you are.
Report Abuse
Blobboy13 is not online. Blobboy13
Joined: 10 Sep 2008
Total Posts: 6199
27 Jul 2009 11:00 AM
Ipod, he tried his best, no need to flame.
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