Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why are no scripts working inside my projectiles?

Asked by 2 years ago
01local Tear = game.ReplicatedStorage:WaitForChild("tear")
02local plr = game.Players.LocalPlayer
03 
04local UserInputService = game:GetService("UserInputService")
05 
06local speed = 110
07 
08UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
09    if not gameProcessedEvent then -- if player is not typing
10        if input.KeyCode == Enum.KeyCode.E then
11            local char = plr.Character
12            if not char or not char.Parent then -- if player's character hasn't loaded
13                char = plr.CharacterAdded:Wait()
14            end
15 
View all 26 lines...

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.

0
Can you try using print("test") to narrow in on the problem so we know what line is breaking?? theking66hayday 841 — 2y
0
ill try pakancina 19 — 2y
0
i modified the script above to print "works" and it does work, i don't know what to put in the projectile but i tried just print("works2") and it does not work. pakancina 19 — 2y

Answer this question