Why do you need two functions? It doesn't seem necessary.
How you could combine them is like how I get the character:
local character = game.Players.LocalPlayer and (game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait())
But only you could implement it into your script:
if hum.WalkSpeed > 1 and (LeftRoot.Orientation >= num or RightFoot.Orientation >= num) then
-- code
end
Instead of usin two separate functions. Other than that, I don't see your problem; Although, if you're trying to check if the player is runnin (or walkin), the `Running` function has an argument.
Running:Connect(function(speed)
if speed > 1 then
-- code
end
end) |