You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I need the neck to turn but its not working -
What is the issue? Include screenshots / videos if possible!
(sorry for the long video the pausing didn’t work)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
tried to get some solutions on yt and dev forum but they dont work and when i try to do it myself the whole character starts turning
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
this is some of the code in it:
elseif input.KeyCode == Enum.KeyCode.Thumbstick2 then
if char then
if tomove[num] then
tomove[num] = CFrame.new(tomove[num].Position)*CFrame.Angles(0,math.rad(-thumbstickCurve(input.Position.X)*5),0)
else
tomove[num] = CFrame.Angles(0,math.rad(-thumbstickCurve(input.Position.X)*5),0)
end
tomovehead[num] = CFrame.Angles(math.rad(-thumbstickCurve(input.Position.Y)*5),0,math.rad(-thumbstickCurve(input.Position.X)*5))
end
end
for i,v in pairs(tomovehead) do
print(i,v)
if workspace:FindFirstChild("Player"..i) then
local player = workspace:FindFirstChild("Player"..i)
local y = player.Torso.Neck.C0.Y
player.Torso.Neck.C0 *= v * CFrame.Angles(0,y,0) * CFrame.Angles(3*math.pi/2,0,math.pi)
player.Torso.Neck.C1 *= v * CFrame.Angles(0,y,0) * CFrame.Angles(3*math.pi/2,0,math.pi)
end
end
(thumbstick curve function is in one of roblox’s moving scripts)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.