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
 

Re: May someone plz Explain to me why this is not working!

Previous Thread :: Next Thread 
koolkid8099 is not online. koolkid8099
Joined: 12 Jul 2011
Total Posts: 25
05 May 2015 04:11 PM
Here is my script

Left = game.Workspace.LockdownGate.LeftLock
Mid = game.Workspace.LockdownGate.MiddleLock
Right = game.Workspace.LockdownGate.RightLock
Win1 = game.Workspace.Window.Left
Win2 = game.Workspace.Window.Middle
Win3 = game.Workspace.Window.Right
LeftDoor = game.Workspace.DoorLeft
RightDoor = game.Workspace.DoorRight
function onClick(Brick)
LeftDoor.CanCollide = true
RightDoor.CanCollide = true
wait()
LeftDoor.CanCollide = false
Left.BodyPosition.postion = Win1.Position
wait(3)
Win2.CanCollide = false
Mid.BodyPosition.position = Win2.Position
wait(3)
Win3.CanCollide = false
Right.BodyPosition.position = Win3.Position
end

script.Parent.ClickDetector.MouseClick:connect(onClick)


Output keeps saying that "Cancollide is not a valid member of Part" for LeftDoor.CanCollide = false. PLZ HELP ME THIS IS VERY FRUSTRATING
Report Abuse
koolkid8099 is not online. koolkid8099
Joined: 12 Jul 2011
Total Posts: 25
05 May 2015 04:21 PM
Correction:
Left = game.Workspace.LockdownGate.LeftLock
Mid = game.Workspace.LockdownGate.MiddleLock
Right = game.Workspace.LockdownGate.RightLock
Win1 = game.Workspace.Window.Left
Win2 = game.Workspace.Window.Middle
Win3 = game.Workspace.Window.Right
LeftDoor = game.Workspace.DoorLeft
RightDoor = game.Workspace.DoorRight
function onClick(Brick)
LeftDoor.CanCollide = true
RightDoor.CanCollide = true
wait()
Win1.CanCollide = false
Left.BodyPosition.postion = Win1.Position
wait(3)
Win2.CanCollide = false
Mid.BodyPosition.position = Win2.Position
wait(3)
Win3.CanCollide = false
Right.BodyPosition.position = Win3.Position
end

script.Parent.ClickDetector.MouseClick:connect(onClick)
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