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: script not working :(

Previous Thread :: Next Thread 
Rage4EvA is not online. Rage4EvA
Joined: 29 Oct 2011
Total Posts: 145
22 Dec 2012 04:10 PM
function BrickTouch(part)
part.Position = Vector3.new(-2.965, 57.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 58.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 59.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 57.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 58.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 59.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 60.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 61.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 62.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 63.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 64.8, -89.87)
Wait(1/30)
part.Position = Vector3.new(-2.965, 65.8, -89.87)
end

script.Parent.Touched:connect(BrickWasTouched)





I want it so when you touch this brick it moves up little by little so it looks like a animation
Report Abuse
LUVMARIOLUIGI10000 is not online. LUVMARIOLUIGI10000
Joined: 16 May 2009
Total Posts: 1244
22 Dec 2012 04:18 PM
Your connection is wrong.
Here you go:
script.Parent.Touched:connect(BrickTouch)

~LUV, LuaLearners Teacher(+2)~
Report Abuse
Rage4EvA is not online. Rage4EvA
Joined: 29 Oct 2011
Total Posts: 145
22 Dec 2012 04:23 PM
ooh ok thx
Report Abuse
Strieken is not online. Strieken
Joined: 17 Jun 2011
Total Posts: 3058
22 Dec 2012 04:23 PM
Holy.. Here, let me make this a LOT easier for you:

script.Parent.Touched:connect(function(part)
for i = 57.8, 65.8, 1 do
wait(1/30)
script.Parent.Position = Vector3.new(-2.965, i, -89.87)
end
end)

:[Contact me if you would like to request a script/model through Electric Developments - more info within my profile]:
Report Abuse
Strieken is not online. Strieken
Joined: 17 Jun 2011
Total Posts: 3058
22 Dec 2012 04:27 PM
Also, you should probably use CFrame instead of Vector3.

:[Contact me if you would like to request a script/model through Electric Developments - more info within my profile]:
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