You can write your topic however you want, but you need to answer these questions:
trying to assign a bool value when the joystick is past a certain point
I spawn in and it just loops it even if i only slightly touch the stick
I’m not really sure whats wrong the only thing i could thing of is that i did the wrong < or >
UserInputService.InputChanged:Connect(function(input, processed)
if input.UserInputType == Enum.UserInputType.Gamepad1 then
if input.KeyCode == Enum.KeyCode.Thumbstick1 then
if input.Position.X >= -.9 then
left = true
print("left = true")
elseif input.Position.X <= -.8 then
left = false
print("left = false")
end
end
end
end)
UserInputService.InputChanged:Connect(function(input, processed)
if input.UserInputType == Enum.UserInputType.Gamepad1 then
if input.KeyCode == Enum.KeyCode.Thumbstick1 then
if input.Position.X >= .9 then
right = true
print("right = true")
elseif input.Position.X <= .8 then
right = false
print("right = false")
end
end
end
end)