of     1   

robloxboy54
#139543890Monday, July 07, 2014 5:24 PM GMT

I was playing around with ROBLOX scripting and stuff so I decided to make an elevator, I copied the exact script in another model's elevator to make mine with the same things, yet the elevator wont work, can someone tell me how to fix this? So I named the part that goes up and down, "Car1". My Up script is: s = script g = game.Workspace Car = s.Parent.Parent.Car1 ------------------------- function Clickit() Car.BodyVelocity.velocity = Vector3.new(0, 3, 0) end script.Parent.ClickDetector.MouseClick:connect(Clickit) My Down script is: s = script g = game.Workspace Car = s.Parent.Parent.Car1 ------------------------- function Clickit() Car.BodyVelocity.velocity = Vector3.new(0, -3, 0) end script.Parent.ClickDetector.MouseClick:connect(Clickit) My stop script is: s = script g = game.Workspace Car = s.Parent.Parent.Car1 ------------------------- function Clickit() Car.BodyVelocity.velocity = Vector3.new(0, 0, 0) end script.Parent.ClickDetector.MouseClick:connect(Clickit)
robloxboy54
#139545808Monday, July 07, 2014 5:44 PM GMT

Bump*
robloxboy54
#139578441Monday, July 07, 2014 10:41 PM GMT

Bump Bump Bump Bumpity god damn bump!
SpazzMan502
#139579995Monday, July 07, 2014 10:55 PM GMT

function clickit?!? its onClick() make sure theres a clickdetector in the button block, or wherever you need to click
robloxboy54
#139582624Monday, July 07, 2014 11:19 PM GMT

Actually it could be anything cant it?
purplescheer9
#139582883Monday, July 07, 2014 11:21 PM GMT

Yeah. onClick is just a popular name for it. it can eve be function iWasLateForSchoolToday() Car.BodyVelocity.velocity = Vector3.new(0,0,0) end ~I like trees
good_evening
#139582889Monday, July 07, 2014 11:21 PM GMT

No, then it will act as another property that can not be found.
Hakupa
#139583541Monday, July 07, 2014 11:27 PM GMT

Nah, the function could have any name you want. I think the problem is that you used one event for multiple functions. Here is what I would do ( all in one script ): num = 0 s = script g = game.Workspace Car = s.Parent.Parent.Car1 function Up() Car.BodyVelocity.velocity = Vector3.new(0, 3, 0) end function Down() Car.BodyVelocity.velocity = Vector3.new(0, -3, 0) end function Stop() Car.BodyVelocity.velocity = Vector3.new(0, 0, 0) end script.Parent.ClickDetector.MouseClick:connect(function() num = num + 1 if num == 1 then Up() elseif num == 2 then Stop() elseif num == 3 then Down() num = 0 end end) Hope this works for you
Hakupa
#139583655Monday, July 07, 2014 11:29 PM GMT

Also, capitalize every 'velocity'.
robloxboy54
#139617713Tuesday, July 08, 2014 5:25 AM GMT

THX!!

    of     1