|
| 21 Oct 2012 10:38 AM |
This works: while wait() do script.Parent.CFrame = CFrame.new(script.Parent.Position,game.Workspace.Partt.Position) end
But this doesn't: m = game.Players:GetPlayerFromCharacter(script.Parent):GetMouse() m.Move:connect(function() game.Workspace.Body.CFrame = CFrame.new(game.Workspace.Body.Position,m.X) -- line 3 wait() end)
I don't get why, but it doesn't work, the only difference is that it's in a different format.
Output: 11:35:53 - Workspace.Player1.Mouse:3: bad argument #2 to 'new' (Vector3 expected, got number) 11:35:53 - Script "Workspace.Player1.Mouse", Line 3 11:35:53 - stack end 11:35:53 - Disconnected event because of exception
http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 21 Oct 2012 10:40 AM |
| m.X returns an Integer/number, CFrame.new() requires a Vector3 or CFrame. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 10:41 AM |
m.Hit.p.x? I tried that.
http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 21 Oct 2012 10:41 AM |
| What are you trying to accomplish? |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 10:43 AM |
Turret, visit su8's Tank battle to get the full idea.
http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 10:53 AM |
-_-, help..
http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|