#ts stresing me out nothing works bro

1 messages · Page 1 of 1 (latest)

misty cove
#

im trying to check if this move directions script works and it isnt even working
local moveforward = false
local movebackward= false
local moveright = false
local moveleft = false

if forwardDot > 0.5 then
moveforward = true
elseif forwardDot < -0.5 then
movebackward = true
elseif moveDir:Dot(rootpart.CFrame.RightVector) > 0.5 then
moveright = true
elseif moveDir:Dot(rootpart.CFrame.RightVector) < -0.5 then
moveleft = true

if moveforward == true then
    print("forward")
elseif movebackward == true then 
    print("backward")
elseif moveright == true then 
    print("right")
elseif moveleft == true then 
    print("left")
end

end
i checked script activity and it only has 1 uppont testing and then blank

#

i swear everything i do never works no errors no syntax errors no bugs nothing and still i dont understand how people put shit toghether

stone stratus
#

do you intend for this to be indented within the if statement?

if moveforward == true then
    print("forward")
elseif movebackward == true then 
    print("backward")
elseif moveright == true then 
    print("right")
elseif moveleft == true then 
    print("left")
end
#

move it outside elseif moveDir:Dot(rootpart.CFrame.RightVector) < -0.5 then and you should be getting the print statements

eternal rain
misty cove
#

Byt

#

I also need it for an input began service

#

Idk if its gonna check if im moving left right front and back within the frame of an input

#

I tried making it so that if holdw is false which is the w key and in the input began function if I press w it turns true and if I pres m and w is true something happens wich was a directional dash byt it didn't work it didn't even print when the win put began

misty cove