22ron
|
  |
| Joined: 17 Jun 2012 |
| Total Posts: 279 |
|
|
| 22 Aug 2014 09:06 PM |
This script was made to turn a peace in the game but it dose not rotate it... -----------------------------------------------------------------------------------
if game.Workspace:FindFirstChild("mouseThing") then
part = game.Workspace.mousething
script.Parent.Selected:connect(function(mouse) mouse.KeyDown:connect(function(key)
if key == "r" then part.CFrame = CFrame.new(0, 50, 0) * CFrame.Angles(0, math.pi, 0) end end) end) end |
|
|
| Report Abuse |
|
|
025110
|
  |
| Joined: 23 Nov 2012 |
| Total Posts: 57661 |
|
|
| 22 Aug 2014 09:08 PM |
Line 2 is wrong
you did mouseThing and mousething |
|
|
| Report Abuse |
|
|
22ron
|
  |
| Joined: 17 Jun 2012 |
| Total Posts: 279 |
|
|
| 22 Aug 2014 09:22 PM |
| Thanks but it still is not working... |
|
|
| Report Abuse |
|
|
|
| 22 Aug 2014 09:28 PM |
if game.Workspace:FindFirstChild("mousething") ~= nil then
part = game.Workspace.mousething
script.Parent.Selected:connect(function(mouse) mouse.KeyDown:connect(function(key)
if key == "r" then part.CFrame = CFrame.new(0, 50, 0) * CFrame.Angles(0, math.pi, 0) end end) end) end
---------------- Uh try that but I dunno |
|
|
| Report Abuse |
|
|