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: What is wrong with this script?

Previous Thread :: Next Thread 
IAmItYouAreIn is not online. IAmItYouAreIn
Joined: 20 Feb 2011
Total Posts: 304
09 Jul 2011 09:42 PM
[ Content Deleted ]
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
09 Jul 2011 09:43 PM
What's it supposed to do?
Report Abuse
RobotWallE is not online. RobotWallE
Joined: 17 Jan 2009
Total Posts: 498
09 Jul 2011 09:44 PM
Put the wait time longer.
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
09 Jul 2011 09:47 PM
function onTouched(hit)
  for i, v in pairs(Workspace["MP"]:GetChildren()) do
    if v:IsA("BasePart") then
      coroutine.resume(coroutine.create(function()
        for i = 1, 8 do
          v.Position = v.Position - Vector3.new(1, 0, 0)
        end
      end))
    end
  end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
09 Jul 2011 09:48 PM
FORGOT THE WAIT AAAAAARGH -RAGES-

function onTouched(hit)
  for i, v in pairs(Workspace["MP"]:GetChildren()) do
    if v:IsA("BasePart") then
      coroutine.resume(coroutine.create(function()
        for i = 1, 8 do
          v.Position = v.Position - Vector3.new(1, 0, 0)
          wait(.25)
        end
      end))
    end
  end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
09 Jul 2011 09:49 PM
Argh I made another mistake D:

function onTouched(hit)
  for i, v in pairs(Workspace["MP"]:GetChildren()) do
    if v:IsA("BasePart") then
      coroutine.resume(coroutine.create(function()
        for c = 1, 8 do
          v.Position = v.Position - Vector3.new(1, 0, 0)
          wait(.25)
        end
      end))
    end
  end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
IAmItYouAreIn is not online. IAmItYouAreIn
Joined: 20 Feb 2011
Total Posts: 304
09 Jul 2011 09:51 PM
[ Content Deleted ]
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
09 Jul 2011 09:53 PM
You mean a brick mover? I think I have one of those.... I tweaked it...
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
09 Jul 2011 09:54 PM
OH COME ON! Can't anybody see my script?!
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
09 Jul 2011 09:55 PM
I saw it, I was merely pointing out that I have one that's a bit simpler...
Report Abuse
Spectrumw is not online. Spectrumw
Joined: 04 Aug 2009
Total Posts: 13510
09 Jul 2011 09:56 PM
But mine does exactly what he wants :c
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
09 Jul 2011 09:57 PM
So would mine.
Report Abuse
IAmItYouAreIn is not online. IAmItYouAreIn
Joined: 20 Feb 2011
Total Posts: 304
09 Jul 2011 10:14 PM
[ Content Deleted ]
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
09 Jul 2011 10:17 PM
How did you indent (tab) in the forum? O_o
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
09 Jul 2011 10:17 PM
I feel bad for the threadcreator, he typed all that when it could have been much shorter D:

Just replace your script with spectrum's and it should work fine.
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
09 Jul 2011 10:19 PM
If this worked, then he indented with spaces.
Report Abuse
IAmItYouAreIn is not online. IAmItYouAreIn
Joined: 20 Feb 2011
Total Posts: 304
09 Jul 2011 10:54 PM
[ Content Deleted ]
Report Abuse
Jinxy is not online. Jinxy
Joined: 04 Aug 2007
Total Posts: 18317
09 Jul 2011 10:59 PM
I think you just place it in the brick/model you want to move.
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