local Tear = game.ReplicatedStorage:WaitForChild("tear") local plr = game.Players.LocalPlayer local UserInputService = game:GetService("UserInputService") local speed = 110 UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent then -- if player is not typing if input.KeyCode == Enum.KeyCode.E then local char = plr.Character if not char or not char.Parent then -- if player's character hasn't loaded char = plr.CharacterAdded:Wait() end local tearclone = Tear:Clone() tearclone.Parent = workspace tearclone.CanCollide = true tearclone.Anchored = false tearclone.CFrame = char.Head.CFrame + char.Head.CFrame.LookVector tearclone.AssemblyLinearVelocity = tearclone.CFrame.LookVector * speed end end end)
theres a custom body velocity in the projectile too. when i try to put a damage script in the projectile, the script doesnt work. if i check the projectiles, i can see that the damage script is indeed in them but toesnt work for some reason. i dont want to modify the script above, it would be better in i could script the projectile instead.