I want to make a repeat until loop until my bullet touches something. Here is my script so far `local function Ontrigger()
local bullet = script.Parent.Bullet:Clone()
local rotationz = bullet.Rotation.Z
local roationy = bullet.Rotation.Y
local rotationx = bullet.Rotation.X
bullet.Transparency = 0
bullet.Parent = game.Workspace
bullet.WeldConstraint:Destroy()
bullet.LinearVelocity.Enabled = true
repeat
print("not false")
bullet.Rotation = Vector3.new(rotationx,roationy,rotationz)
wait(0.05)
until *My bullet touches something*
end
script.Parent.Activated:Connect(Ontrigger)`
how would I do this?
any feedback appreciated!!!