RepStorage = game:GetService("ReplicatedStorage")
Remote = RepStorage:WaitForChild("DashEvent")
Remote.OnServerEvent:Connect(function(Player)
local BV = Instance.new("BodyVelocity", Player.Character.HumanoidRootPart)
BV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BV.Velocity = Player.Character.HumanoidRootPart.CFrame.LookVector*100
game.Debris:AddItem(BV, 1)
local Clone = game.Lighting.DashEffect:Clone()
local hitpart = script.Parent.Parent.Handle:WaitForChild("HitPart")
local W = Instance.new("Weld")
W.Part0 = hitpart
W.Part1 = Clone
Clone.Parent = hitpart
Clone.CFrame = hitpart.Cframe*CFrame.new(0,0,-1)
i = Player.Character.Head.Orientation.Y
Clone.Orientation = Vector3.new(0,i,0)
local Clone = game.Lighting.DashEffect:Clone()
local W = Instance.new("Weld")
W.Part0 = hitpart
W.Part1 = Clone
Clone.Parent = hitpart
Clone.CFrame = hitpart.Cframe*CFrame.new(0,0,-1)
i = Player.Character.Head.Orientation.Y
Clone.Orientation = Vector3.new(0,i,0)
end)
so im trynna weld sumthing to a part in my tool but it doesnt work the part that i clone just spawns in workspace at 0,0,0 help is apreciated

4 comments
When you already have instantiated a variable, there is no need to set it twice, so you can remove the "local" from the second occurence of your variables there.
Also don't store things in game.Lighting that don't have anything to do with lighting
Also, you might not want to weld the part before you move it from 0,0,0
could you please be a lil more precise?