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’m trying to make a DBD Movement.
example:
robloxapp 20210508 2014001 - YouTube -
What is the issue? Include screenshots / videos if possible!
Issue is, i want to know how they do it. Slowing down the rotation or either slowly build up the speed when changing turn. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I searched in Google for realistic turning or slowing down rotation, the answer is either custom movement or bodyangularvelocity(bodyangularvelocity doesnt help though)
I made a custom movement with the keybinds of UJHK as a WASD and using Humanoid:Move(), it seems to slow down my rotation;
one of my friend said that the rotation is fast and i dont know why.
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!
local player = game.Players.LocalPlayer
repeat wait() until player.Character.Humanoid
local char = player.Character
local currentpos = Vector3.new()
local UIS = game:GetService("UserInputService")
local camera = workspace.CurrentCamera
--player.Character.Humanoid.WalkSpeed = 0
--local direction = camera.LookVector * Vector3.new(2,0,0) + camera.RightVector * Vector3.new(0,0,2)
--[[
UIS.InputBegan:Connect(function(input,Gameprocess)
if input.KeyCode == Enum.KeyCode.W then
print("yes")
char.Humanoid:Move(Vector3.new(0,0,-15),true)
end
end)
--]]
player.Character:SetPrimaryPartCFrame(player.Character.Torso.CFrame*CFrame.new(0,0,1))
player.Character.HumanoidRootPart.Position = Vector3.new(player.Character.HumanoidRootPart.Position.X,player.Character.HumanoidRootPart.Position.Y,player.Character.HumanoidRootPart.Position.Z+1.34)
local movez = 0
local movex = 0
local move = true
--[[
wait(0.0002)
player.Character:SetPrimaryPartCFrame(player.Character.Torso.CFrame*CFrame.new(0,0,-1))
player.Character.HumanoidRootPart.Position = Vector3.new(player.Character.HumanoidRootPart.Position.X,player.Character.HumanoidRootPart.Position.Y,player.Character.HumanoidRootPart.Position.Z-1.34)
--]]
--[[
UIS.InputBegan:Connect(function(input,gameProccesed)
if input.KeyCode == Enum.KeyCode.W then
move = true
movez=-5
end
end)
UIS.InputBegan:Connect(function(input,gameProccesed)
if input.KeyCode == Enum.KeyCode.S then
--currentpos = player.Character.Torso.Position
move = true
movez=5
end
end)
UIS.InputBegan:Connect(function(input,gameProccesed)
if input.KeyCode == Enum.KeyCode.A then
move = true
movex=-5
end
end)
UIS.InputBegan:Connect(function(input,gameProccesed)
if input.KeyCode == Enum.KeyCode.D then
move = true
movex=5
end
end)
--]]
--[[input ended]]--
--[[
UIS.InputEnded:Connect(function(input,gameProccesed)
if input.KeyCode == Enum.KeyCode.W then
movez+=5
--player.Character.HumanoidRootPart.Position = player.Character.Torso.Position
end
end)
UIS.InputEnded:Connect(function(input,gameProccesed)
print("hello")
if input.KeyCode == Enum.KeyCode.S then
movez-=5
--player.Character.HumanoidRootPart.Position = player.Character.Torso.Position
end
end)
UIS.InputEnded:Connect(function(input,gameProccesed)
if input.KeyCode == Enum.KeyCode.A then
--player.Character.HumanoidRootPart.Position = player.Character.Torso.Position
movex+=5
end
end)
UIS.InputEnded:Connect(function(input,gameProccesed)
if input.KeyCode == Enum.KeyCode.D then
--player.Character.HumanoidRootPart.Position = player.Character.Torso.Position
movex-=5
end
end)
--]]
while wait(0)do
--[[
player:Move(Vector3.new(-3,1,5),true)
wait(0.1)
player:Move(Vector3.new(0,1,5),true)
--]]
if move == true then
player:Move(Vector3.new(movex,0,movez), true)
end
--[[player:Move(camera.CFrame.lookVector * movez + camera.CFrame.rightVector * movex, false) --or set true]]
end
take note i commented the keybind of WASD/UJHK and set the move to true since i found out that even if it was commented or removed; my rotation is still slowed down