Hello, I wanted to know why when I use this code, my mesh character’s Tweening was delayed so severely. Any ideas of what it could be I would love to hear.
It only recently to happen when I put in it’s debounce, without it though, the Tweening return can be, well, borken… sorry for the bad format. CODE BELOW
game.Players.PlayerAdded:Connect(function(plr)
local playerName = plr.Name
local workPlayer = game.Workspace:WaitForChild(playerName)
local humanoid = workPlayer:WaitForChild("Humanoid")
local db = false
humanoid:GetPropertyChangedSignal("Jump"):Connect(function()
print(humanoid.Jump)
if humanoid.Jump == true then
if db == false then
db = true
local tweenService = game:GetService("TweenService")
local rootPart = workPlayer:WaitForChild("HumanoidRootPart")
local tweeningInformation = TweenInfo.new(
0.25,
Enum.EasingStyle.Sine,
Enum.EasingDirection.InOut,
0,
true,
0.05
)
local partProperties = {
Size = Vector3.new(3.996, 4.1, 4)
}
local Tween = tweenService:Create(rootPart,tweeningInformation,partProperties)
Tween:Play()
wait(0.55)
db = false
else
end
end
end)
end)