I have problem with tweening mesh part, i tried all solutions, including removing other tweens before this tween or changing Orientation to CFrame.Angles, Basically tween should make mesh part spin, but it wont work, this is so weird.
And some scripter with 6 year experience also tried to help but results is still the same.
Here is Code
fireballevent.OnServerEvent:Connect(function(plr, eq)
local char = plr.Character
local fireball = ss:FindFirstChild("GreatFireball"):Clone()
fireball.Parent = char
local attack = fireball:FindFirstChild("attack")
fireball:FindFirstChild("Fireball").CFrame = char:FindFirstChild("Head").CFrame * CFrame.new(0, 1, -5.75)
local vel = Instance.new("BodyVelocity", fireball:FindFirstChild("Fireball"))
vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
vel.Velocity = char:FindFirstChild("HumanoidRootPart").CFrame.LookVector * 3
local fire = fireball:FindFirstChild("fire")
local fireball2 = fireball:FindFirstChild("Fireball")
--[[ local anim1 = ts:Create(fireball:FindFirstChild("Fireball"), TweenInfo.new(1.25), {Transparency = 0.45})
anim1:Play()
local anim2 = ts:Create(fire, TweenInfo.new(1.25), {Transparency = 0})
anim2:Play()
--]]
local anim4 = ts:Create(fireball:FindFirstChild("fire"), TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In, 0, false, 0), {Orientation = Vector3.new(0, 180, 0)})
anim4:Play()
--[[spawn(function()
while true do
wait()
anim4:Play()
end
end)--]]
fireball:FindFirstChild("Fireball").Touched:Connect(function(target)
if target.Parent:FindFirstChild("HumanoidRootPart") and attack.Value == true and target.Parent ~= char then
if target.Parent:FindFirstChild("Dodging").Value == true then
local anim1 = target.Parent:FindFirstChild("Humanoid"):LoadAnimation(target.Parent:FindFirstChild("Dodging").Dodge)
local anim2 = target.Parent:FindFirstChild("Humanoid"):LoadAnimation(target.Parent:FindFirstChild("Dodging").Dodge2)
local number = math.random(1, 2)
attack.Value = false
if number == 1 then
print("1!")
anim1:Play()
else
print("2!")
anim2:Play()
end
return
end
attack.Value = false
target.Parent:FindFirstChild("Humanoid"):TakeDamage(25)
end
end)
end)