so ive been trying to switch over from user input service to the new action input system roblox made but for some reason the function never works, i even changed it to uis and it worked fine with that but not with the action input
local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hum:Humanoid = char:WaitForChild("Humanoid")
local rep = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local twe = game:GetService("TweenService")
local starter = game:GetService("StarterPack")
local tweek = TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.In)
local sprinti = twe:Create(hum,tweek,{WalkSpeed = 32})
local keybind = require(rep.Keybind)
local tosprint = keybind.GetAction("Surv movement","sprint")
tosprint.KeyboardBinding.KeyCode = Enum.KeyCode.LeftShift
keybind.EnableContext("Surv movement")
print(tosprint.KeyboardBinding.KeyCode)
local function sppp ()
print("work")
--sprinti:Play()
--hum.WalkSpeed = 32
--wait(1
--)
--hum.WalkSpeed = 16
end
tosprint.Pressed:Connect(function()
sprinti:Play()
hum.WalkSpeed = 32
wait(1
)
hum.WalkSpeed = 16
end)
btw im using a module, tell me if i should also add it here