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: And this won't work because...

Previous Thread :: Next Thread 
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
26 Feb 2012 07:18 AM
script.Parent.ClickDetector.MouseClick(function()
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * CFrame.new(15,0,0)
wait(5)
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * CFrame.new(-15,0,0)
end)
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
26 Feb 2012 07:23 AM
Hello?
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
26 Feb 2012 07:41 AM
script.Parent.ClickDetector.MouseClick(function()
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector.new(15,0,0)
wait(5)
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector3.new(-15,0,0)
end)

http://wiki.roblox.com/index.php/CFrame#Operators

~UFAIL2 Novice Coder~
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
26 Feb 2012 07:43 AM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=63473967

really duuud?
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
26 Feb 2012 07:49 AM
This script still wont work:

script.Parent.ClickDetector.MouseClick:connect(function()
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector.new(15,0,0)
wait(5)
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector3.new(-15,0,0)
end)

Report Abuse
noobkid is not online. noobkid
Joined: 17 Sep 2007
Total Posts: 649
26 Feb 2012 07:52 AM
Multiply cframe with cframe not vector3 :P
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
26 Feb 2012 07:56 AM
That doesn't work either.
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
26 Feb 2012 09:33 AM
Hello?
Report Abuse
noobkid is not online. noobkid
Joined: 17 Sep 2007
Total Posts: 649
26 Feb 2012 09:36 AM
Post the script what you are using currently
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
26 Feb 2012 10:09 AM
script.Parent.ClickDetector.MouseClick:connect(function()
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector.new(15,0,0)
wait(5)
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector3.new(-15,0,0)
end)

Report Abuse
noobkid is not online. noobkid
Joined: 17 Sep 2007
Total Posts: 649
26 Feb 2012 10:16 AM
script.Parent.ClickDetector.MouseClick:connect(function()
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * CFrame.new(15,0,0)
wait(5)
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * CFrame.new(-15,0,0)
end)
Report Abuse
Ravenshield is not online. Ravenshield
Joined: 21 Nov 2007
Total Posts: 4143
26 Feb 2012 10:18 AM
The reason is:

game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame

First you are using game.Workspace.ButtonBench.Door, then using game.Workspace.Door.
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
27 Feb 2012 06:57 AM
Let me check

(checks)

script.Parent.ClickDetector.MouseClick:connect(function()
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector.new(15,0,0)
wait(5)
game.Workspace.ButtonBench.Door.CFrame = game.Workspace.Door.CFrame * Vector3.new(-15,0,0)
end)

WOW YOUR CORRECT! Now let me put in the proper thing and...

it still doesn't work.
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
27 Feb 2012 07:01 AM
I GOT IT WORKING!! I forgot to test noobkids script.
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