vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
|
| 05 Apr 2015 07:13 AM |
orig=CFrame.new(0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0)-- Change the last 9 numbers for crazy effects.
getPos=function(Pos,Pos2) return Vector3.new(Pos.x,Pos2.y,Pos.z) end
Turn=function(mouse,Barrel) local offset=(Barrel.Position.y-mouse.Hit.p.y)/100 local mag=(Barrel.Position-mouse.Hit.p).magnitude/80 offset=offset/mag local neck=Barrel.Motor6D neck.C0=orig*CFrame.fromAxisAngle(orig:vectorToWorldSpace(Vector3.new(-1,0,0)),offset) end
--Step1 Make a Motor6D in your part to be crazyfied. Make a part to join it to. Execute this line in the script above Turn(game.Players.LocalPlayer:GetMouse(),path to your part |
|
|
| Report Abuse |
|
vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
|
| 05 Apr 2015 07:19 AM |
http://www.roblox.com/games/173109171/vat21ss-Place-Number-22 You can see it in the picture, It does not work server side. |
|
|
| Report Abuse |
|