|
| 29 Sep 2012 11:05 PM |
My door isn't opening.
The script below is under game>Workspace>Door>Open1>LocalScript
Can anyone tell me why nothing happens?
local open2 = script.Parent.Open2 local door1 = script.Parent.Door1 local door2 = script.Parent.Door2 active = false m = Instance.new("Message")
function onClicked() m.Text = "Running Door Open" if active ~= true then active = true m.Text = "Opening" script.Parent.Transparency = 1 script.Parent.CanCollide = false open2.Transparency = 1 open2.CanCollide = false door1.Cframe = Cframe.new(-48.5, 4.7, 2.3) door2.Cframe = Cframe.new(-48.5, 4.7, -2.3) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 2.6) door2.Cframe = Cframe.new(-48.5, 4.7, -2.6) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 2.9) door2.Cframe = Cframe.new(-48.5, 4.7, -2.9) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 3.2) door2.Cframe = Cframe.new(-48.5, 4.7, -3.2) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 3.5) door2.Cframe = Cframe.new(-48.5, 4.7, -3.5) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 3.5) door2.Cframe = Cframe.new(-48.5, 4.7, -3.5) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 3.8) door2.Cframe = Cframe.new(-48.5, 4.7, -3.8) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 4.1) door2.Cframe = Cframe.new(-48.5, 4.7, -4.1) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 4.4) door2.Cframe = Cframe.new(-48.5, 4.7, -4.4) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 4.7) door2.Cframe = Cframe.new(-48.5, 4.7, -4.7) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 5) door2.Cframe = Cframe.new(-48.5, 4.7, -5) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 5.3) door2.Cframe = Cframe.new(-48.5, 4.7, -5.3) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 5.6) door2.Cframe = Cframe.new(-48.5, 4.7, -5.6) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 6) door2.Cframe = Cframe.new(-48.5, 4.7, -6) wait(.3) wait(3) door1.Cframe = Cframe.new(-48.5, 4.7, 5.6) door2.Cframe = Cframe.new(-48.5, 4.7, -5.6) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 5.3) door2.Cframe = Cframe.new(-48.5, 4.7, -5.3) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 5) door2.Cframe = Cframe.new(-48.5, 4.7, -5) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 4.7) door2.Cframe = Cframe.new(-48.5, 4.7, -4.7) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 4.4) door2.Cframe = Cframe.new(-48.5, 4.7, -4.4) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 4.1) door2.Cframe = Cframe.new(-48.5, 4.7, -4.1) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 3.8) door2.Cframe = Cframe.new(-48.5, 4.7, -3.8) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 3.5) door2.Cframe = Cframe.new(-48.5, 4.7, -3.5) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 3.2) door2.Cframe = Cframe.new(-48.5, 4.7, -3.2) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 2.9) door2.Cframe = Cframe.new(-48.5, 4.7, -2.9) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 2.6) door2.Cframe = Cframe.new(-48.5, 4.7, -2.6) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 2.3) door2.Cframe = Cframe.new(-48.5, 4.7, -2.3) wait(.3) door1.Cframe = Cframe.new(-48.5, 4.7, 2) door2.Cframe = Cframe.new(-48.5, 4.7, -2) wait(.3) script.Parent.Transparency = 0 script.Parent.CanCollide = true open2.Transparency = 0 open2.CanCollide = true active = false end
script.Parent.ClickDetector.MouseClick:connect(onClicked) m.Text = "Loaded"
Please? |
|
|
| Report Abuse |
|