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 » Scripters
Home Search
 

Learning something new

Previous Thread :: Next Thread 
Exzeption is not online. Exzeption
Joined: 01 Nov 2011
Total Posts: 1312
29 Jul 2015 03:00 PM
Trying to figure out how to make a part go down when it's touched.

gate.Touched:connect(function(hit)
if hit.Parent.ClassName == "Hat" then return end
if debounce == false then
debounce = true
local plrname = hit.Parent.Name
name.Name = plrname.."'s Tycoon"
while true do
wait(.01)
gate.CFrame = CFrame.new(gate.CFrame.x, gate.CFrame.y - .1, gate.CFrame.z)
gate.Rotation = rotation
end
end
end)

So you touch it, and the gate goes above the part on top of it, how do I actually make it go down?
Report Abuse
Exzeption is not online. Exzeption
Joined: 01 Nov 2011
Total Posts: 1312
29 Jul 2015 03:11 PM
bump
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Jul 2015 03:12 PM
'gate.Rotation = rotation' is causing the problem.
Report Abuse
Exzeption is not online. Exzeption
Joined: 01 Nov 2011
Total Posts: 1312
29 Jul 2015 03:19 PM
Before I did that the rotation went back to 0, I need it to work for all angles
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
29 Jul 2015 03:27 PM
Do this instead:

gate.CFrame = gate.CFrame + Vector3.new(0, -.1, 0)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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