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: CFrame Addition?

Previous Thread :: Next Thread 
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2011 10:42 AM
Script:
Door1 = script.Parent
Door2 = script.Parent.Parent.Door2
Door1.Touched:connect(function()
for i = 1,10 do
wait(0.1)
Door1.CFrame = Door1.CFrame + CFrame.new(i,0,0)
Door2.CFrame = Door2.CFrame + CFrame.new(-i,0,0)
end
end)


Output: Workspace.Building V1.Doors.Door1.Script:6: bad argument #2 to '?' (Vector3 expected, got userdata)

To my opinion, why would a CFrame be asking for a Vector3?
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2011 10:48 AM
I tried making Door1.CFrame + CFrame.new(i,0,0) to Door1.Position + Vector3.new(i,0,0)
Report Abuse
TrueSoulWolf is not online. TrueSoulWolf
Joined: 02 Apr 2011
Total Posts: 460
15 Jul 2011 10:50 AM
Noone's responding..
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