im trying to make a bomb which if its particles touches the player the player gets hurt but I do not know how to make its particles move correctly
this is the bomb code:
pnum=script.Parent.pnum.Value --its 6
pspeed=5
dreg=360/pnum --the problem I think is this
degx=dreg
degy=dreg
degz=dreg
pinfo={}
for i=0,pnum,1 do
pinfo[i]=Vector3.new(math.rad(degx),math.rad(degy),math.rad(degz))
c=Instance.new('Part')
c.Parent=workspace
c.Size=Vector3.new(1,1,1)
c.Position=script.Parent.Position
c.CFrame*=CFrame.Angles(pinfo[i].X,pinfo[i].Y,pinfo[i].Z)
c.Shape=Enum.PartType.Ball
c.Anchored=true
mover=game.ReplicatedStorage.pmover:Clone() mover.Parent=c
bong=Instance.new('IntValue') bong.Value=pspeed bong.Name='pspeed' bong.Parent=c
degx+=dreg
degy+=dreg
degz+=dreg
end
print(Enum.PartType.Ball)
this is the pmover code:
wait(0.1)
repeat
wait(5)
script.Parent.Position+=script.Parent.CFrame.LookVector*script.Parent.pspeed.Value
until Enum.CameraType.Scriptable==1
the pellets should move like this:
but they move somewhat like this :
my goal here was to make a bomb with customizable pellets so that I could make the pnum to 18 or any number and make it work
I would like for the particles to be visible and have gaps so the player can dodge it too
