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

Why won't this spin and jump dash rotate me with shiftlock enabled?

I've attempted to make a sort of spin jump dash but it will not spin if the player has Shiftlock turned on. Any ideas on how to fix this issue?

local Player = game.Players.LocalPlayer
local Character = Player.Character
function ok()
local direction=Character.HumanoidRootPart.CFrame.lookVector
local vv=Instance.new("BodyVelocity")
		vv.P=8000
		vv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
		vv.Parent=Character.HumanoidRootPart
		vv.velocity=Vector3.new(0,10,0)+direction*45
local rv=Instance.new("BodyAngularVelocity")
		rv.AngularVelocity=Vector3.new(0,20,0)
		rv.Parent=Character.Torso
		rv.MaxTorque=Vector3.new(math.huge,math.huge,math.huge) 
		rv.P=8000
		wait(.3)
		rv:Destroy()
		vv:Destroy()	
end

wait(2.5)

ok()

1 answer

Disable shiftlock ... ?

EDIT:

Probably the fact that shiftlock over-rides the users camera direction, making their character face it. Just a guess on why.

1 comment

0

No but I want players to be able to use shiftlock in my game.

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