hello. i have been making a projectile shooting mechanism. works preety fine! localscript:
local sound = script.fire local tweenservice = game:GetService("TweenService") local plr = game.Players.LocalPlayer
local tear1 = game.ReplicatedStorage.Player1tear local UIS = game:GetService("UserInputService") UIS.InputBegan:connect(function(input) if input.KeyCode == Enum.KeyCode.E then print("Working") sound:Play() local clonetear = tear1:Clone() clonetear.Parent = game.Workspace clonetear.CFrame = plr.Character.HumanoidRootPart.CFrame + plr.Character.HumanoidRootPart.CFrame.lookVector * 5 tweenservice:Create(clonetear,TweenInfo.new(1,0,0),{CFrame = plr.Character.HumanoidRootPart.CFrame + plr.Character.HumanoidRootPart.CFrame.lookVector * 40,Transparency = 1},Enum.EasingStyle.Quint,Enum.EasingDirection.Out):Play() end end)
keep in mind, i keep the projectile in replicatedstorage. now i wanna make the projectiles actually damage on touch. for some reason, this doesnt work. any help?

8 comments
it doesn't work. half of the things are red lined.
ohhh so maybe i forgot to put end somewhere,ill try to done the script inside studio when i bring my laptop with me
okay thanks anyway!
ay man tell me the things i ask u so i can help ya better ;)
well its a ball, i want it to have limited range but also dissapear when it touches anything, including a wall or an npc
i tried the new script. doesnt work on my projectile. for some reason it works on normal parts
erm if ur ball is a model,then u have to make a square as the hitbox,and add the script inside that "hitbox",and i changed the script to work
the ball isnt a model, its just a part inside replicated storage