why are no scripts working inside my projectiles?
01 | local Tear = game.ReplicatedStorage:WaitForChild( "tear" ) |
02 | local plr = game.Players.LocalPlayer |
04 | local UserInputService = game:GetService( "UserInputService" ) |
08 | UserInputService.InputBegan:Connect( function (input, gameProcessedEvent) |
09 | if not gameProcessedEvent then |
10 | if input.KeyCode = = Enum.KeyCode.E then |
11 | local char = plr.Character |
12 | if not char or not char.Parent then |
13 | char = plr.CharacterAdded:Wait() |
16 | local tearclone = Tear:Clone() |
17 | tearclone.Parent = workspace |
19 | tearclone.CanCollide = true |
20 | tearclone.Anchored = false |
21 | tearclone.CFrame = char.Head.CFrame + char.Head.CFrame.LookVector |
23 | tearclone.AssemblyLinearVelocity = tearclone.CFrame.LookVector * speed |
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.