Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
6 years ago
Edited 6 years ago

Disable shiftlock ... ?

EDIT:

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

0
No but I want players to be able to use shiftlock in my game. Akkendran 16 — 6y
Ad

Answer this question