Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Are my player rotation scrpits broken?

Hey, i have a weird problem

sometime ago i made these scripts that worked, but now they don't, i wasn't changing anything in them

Scripts:


local waist = script.Parent:WaitForChild("UpperTorso"):WaitForChild("Waist")
local ev = script.Parent.Camera

function answears(plr,newLook)
	waist.C0 = waist.C0:lerp(CFrame.new(waist.C0.p) * newLook, 0.1)
end

ev.OnServerEvent:Connect(answears)

local chr = script.Parent local waist = chr:WaitForChild("UpperTorso"):WaitForChild("Waist") local ev = chr.Camera

function fire() local look, origin = game.Workspace.CurrentCamera.CFrame, chr.HumanoidRootPart.CFrame look = look:ToWorldSpace(CFrame.new(0, 1.5, 0)) local x,y,z = look:ToEulerAnglesXYZ() local rx,ry,rz = origin:ToEulerAnglesXYZ()

x = math.clamp(x, -72, 72)
local newLook = CFrame.Angles(x,y,z)
local newOrig = CFrame.Angles(rx,ry,rz)
newLook = newOrig:ToObjectSpace(newLook)

ev:FireServer(newLook)
waist.C0 = waist.C0:lerp(CFrame.new(waist.C0.p) * newLook, 0.1)

end

game:GetService'RunService'.RenderStepped:connect(fire)


btw, i also have an event named Camera, all of these things are in StarterPlayerScripts folder

1 answer

I have no idea what a "scrpit" is.

4 comments

0

Today's your lucky day to find out what it is! It's an accidental misspelling of "script", often caused by people who either type too fast, didn't look at their keyboard, or just did it on purpose. We also like to tell people who make fun of it, what it is!

0

Oh, thank you!

0

thanks mr.helpful

0

Hmm?

This discussion is preserved as it was. New answers, comments, and votes are closed.