local rollspeed = 8 --Change this to control speed of rolling local rs = game:GetService("RunService") local event local char = game.Players.LocalPlayer.Character local hum = char.Humanoid local hrp = char.HumanoidRootPart hum.PlatformStand = true local bav = Instance.new("BodyAngularVelocity", hrp) bav.MaxTorque = Vector3.new(1/0,1/0,1/0) event = rs.Heartbeat:Connect(function() if hum.MoveDirection.Magnitude > 0 then local rollaxis = hum.MoveDirection:Cross(Vector3.yAxis) bav.AngularVelocity = rollaxis.Unit * -rollspeed else bav.AngularVelocity = Vector3.zero end end) local chatevent chatevent = game.TextChatService.SendingMessage:Connect(function(msg) if msg.Text == ";unroll" then hum.PlatformStand = false chatevent:Disconnect() chatevent = nil event:Disconnect() event = nil bav:Destroy() end end)