Hello! So I just made a bomb that turns red after 3 seconds and then explodes after 3 seconds. I was wondering if there was a way to change it's Vector3 position after it explodes... but I do not know how to change the Vector3 to a random location.
Here is my code for the bomb.
local terrain = game.Workspace.Terrain
local bomb = game.Workspace.bomb
local bomby = Instance.new("Explosion")
bomb.BrickColor = BrickColor.White()
bomb.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")
then wait(3) bomb.BrickColor = BrickColor.Red()
wait(3)
bomby = Instance.new("Explosion")
bomby.Position = bomb.Position
bomby.Parent = game.Workspace
bomb.BrickColor = BrickColor.White()
end
end)
Also, if my coding is bad it's because I just started coding 3 days ago. Lol TYVM for your time and effort for helping me! It makes me so inspired and happy!

3 comments
In game math.randomseed(tick()) and os.time() don't make much of a difference .
loll. Your new, but your super good at it already, to me atleast. TYVM
Your welcome!