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: Door Script

Previous Thread :: Next Thread 
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
29 Sep 2012 11:07 PM
You never parented m, and every "Cframe" should be "CFrame".

¤ ¤ † K M X D † ¤ ¤
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
29 Sep 2012 11:07 PM
Did you get it from a free model?
Is there an output?
Expected/occurring behaviors?

Give us something to work with.
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
29 Sep 2012 11:10 PM
@aboy
Not from a free model, 100% original
No output that I can give you
And no behavior at all
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
29 Sep 2012 11:11 PM
@Knightmare
Thanks for the help
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
29 Sep 2012 11:11 PM
Expected behavior pls
Report Abuse
aboy5643 is not online. aboy5643
Joined: 08 Oct 2010
Total Posts: 5458
29 Sep 2012 11:13 PM
jk problem solved.
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