redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
|
| 08 Jun 2013 09:03 AM |
local p = Game.Players.LocalPlayer local c = p.Character local cam = Workspace.CurrentCamera local neck = c.Torso.Neck
local base = neck.Part0.Position + (neck.C0.p*1.5) local YVec = (cam.CoordinateFrame.p + cam.CoordinateFrame.lookVector*100) local set = CFrame.new(base, YVec) local oS = set:toObjectSpace(c.Torso.CFrame * neck.C0) neck.C1 = oS
I want it to only control UP/DOWN and not left/right. It glitches when it goes left and right.
How would it so this only controls up and down? (Y axis? Although I'm not sure since what I tried with .Y doesn't work) |
|
|
| Report Abuse |
|
|
redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
|
| 08 Jun 2013 09:44 AM |
| Someone please help me, I don't know how to do it ._. |
|
|
| Report Abuse |
|
|
redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
| |
|
redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
| |
|
iceywind
|
  |
| Joined: 10 Aug 2009 |
| Total Posts: 4424 |
|
|
| 09 Jun 2013 01:06 PM |
I'll fix it. Here you go:
local p = game.Players.LocalPlayer local c = p.Character local cam = Workspace.CurrentCamera local neck = c.Torso.Neck
local base = neck.Part0.Position + (neck.C0.p*1.5) local YVec = (cam.CoordinateFrame.p + cam.CoordinateFrame.lookVector*100) local set = CFrame.new(base, YVec) local oS = set:toObjectSpace(c.Torso.CFrame * neck.C0) neck.C1 = oS
Sorry if this doesn't work.
Making ROBLOX Better, One Forum Post at a Time™. |
|
|
| Report Abuse |
|
|