i didnt make the gun yet, but i made the ammo also the Touched event fires immiediently when i join the game
Note:
the ammo will run immiediently when joining game
rocketlauncher.rbxl (60.9 KB)
i didnt make the gun yet, but i made the ammo also the Touched event fires immiediently when i join the game
Note:
the ammo will run immiediently when joining game
rocketlauncher.rbxl (60.9 KB)
I figured out the issue. It goes WAY too fast for the human eye to see. Heres something I did to make it so u can see it
rocketlauncher 2.rbxl (60.7 KB)
hmmm gonna try this thankssssss
Also if you want to make it be effected by gravity(make it go down) then just do this and remove the body velocity. The reason why it went fast was because of how big r was. So it went fast
local function Shoot()
script.Parent.Velocity = CFrame.new(script.Parent.Position, script.Parent.pos.Value).LookVector * 100
script.Parent.Touched:Connect(function(part)
local boom = Instance.new("Explosion")
boom.Position = script.Parent.Position
boom.Visible = true
--TESTING
local redpart = Instance.new("Part",game.Workspace)
redpart.Color = Color3.new(1, 0, 0.0156863)
redpart.Anchored = true
redpart.Position = script.Parent.Position
print("Touched!")
boom.Parent = game.Workspace
script.Parent:Destroy()
end)
end
Shoot()
yooo it works thanks, now it works as it should! (cant give you 2 solutions, so you get one)