Im trying to make the part tween outwards towards the direction the player is looking, it works when i face the direction the player faces when spawning but whenever i face any other direction if messes up
local rp = game:GetService("ReplicatedStorage") local Fireball = rp:WaitForChild("Events"):WaitForChild("Fire"):WaitForChild("FlameWall") local Animations = script:WaitForChild("Animations") local Meshes = script:WaitForChild("Meshes") local Debris = game:GetService("Debris") local TweenService = game:GetService("TweenService") local speed = script:GetAttribute("Speed") local Damage = script:GetAttribute("Damage") Fireball.OnServerEvent:Connect(function(Player,direction) local Character = Player.Character local Humanoid = Character:WaitForChild("Humanoid") local humrp = Character:WaitForChild("HumanoidRootPart") local effectsFold = Instance.new("Folder",workspace) effectsFold.Name = Player.Name.." Effects" Debris:AddItem(effectsFold,6) local FB = Meshes:WaitForChild("Wall"):Clone() FB.Size = Vector3.new(1,0.1,1) FB.CFrame = humrp.CFrame * CFrame.new(0,-3,-4) FB.Orientation = FB.Orientation + Vector3.new(0,0,0) FB.Parent = effectsFold local Egoal = {} Egoal.Size = FB.Size + Vector3.new(15,0.3,60) Egoal.Position = FB.Position + Vector3.new(0,0,-30) local Einfo = TweenInfo.new(1) local Etween = TweenService:Create(FB,Einfo,Egoal) Etween:Play() end)
u can make the fireball orientation = player humanoid root part.Orientation and use velocity instead of tween service? u can use the look vector with velocity to shoot it towards the direction the fireball is facing, then u can destroy it( im not a pro and i may don’t understand your problem, maybe its because some complicated stuff that u don’t use this method)