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: How can I make this work?

Previous Thread :: Next Thread 
joe199998293 is not online. joe199998293
Joined: 12 May 2009
Total Posts: 733
21 Sep 2013 06:15 AM
function onClicked()
Movement = CFrame.new(-0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
Movementa = CFrame.new(0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
game.Workspace.BigDoors.Left.Pillar:GetChildren().CFrame = game.Workspace.BigDoors.Left.Pillar:GetChildren().CFrame * Movement
wait (0.01)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
joe199998293 is not online. joe199998293
Joined: 12 May 2009
Total Posts: 733
21 Sep 2013 06:15 AM
(line 3 and 4 are all one line, forum split it up)
Report Abuse
Drak0Master is not online. Drak0Master
Joined: 10 Aug 2009
Total Posts: 836
21 Sep 2013 06:18 AM
:GetChildren().CFrame is invalid.
Report Abuse
joe199998293 is not online. joe199998293
Joined: 12 May 2009
Total Posts: 733
21 Sep 2013 06:25 AM
Could you fix this?

function onClicked()
Movement = CFrame.new(-0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
Movementa = CFrame.new(0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
local Pillar = game.Workspace.BigDoors.Left.Pillar:getChildren()
Pillar.CFrame = Pillar.CFrame * Movement
wait (0.01)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
Drak0Master is not online. Drak0Master
Joined: 10 Aug 2009
Total Posts: 836
21 Sep 2013 06:28 AM
The CFrame of a model is not feasible.
Report Abuse
joe199998293 is not online. joe199998293
Joined: 12 May 2009
Total Posts: 733
21 Sep 2013 06:31 AM
What im trying to do is find the children of game.Workspace.BigDoors.Left.Pillar. I want to find the children in 'pillar' and then make the children move.
Report Abuse
Drak0Master is not online. Drak0Master
Joined: 10 Aug 2009
Total Posts: 836
22 Sep 2013 05:46 AM
children = model:GetChildren()
for i = 1, #children do
children[i].CFrame = children[i].CFrame + Vector3.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
end
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