So, i was making my new game called “super duper annoying block” and when writing the script i was done. and it didnt work at all. but when i added print() at these scripts it suddenly worked? how. i would keep them but it would just clog up my output. any ideas?
this might be a bug, but ive tried restarting studio,reinstalling it.
the “annoy” script
while true do
print()
local smthtoannoy = script.Parent.Parent.stuffforannoying:GetChildren()[math.random(1,#script.Parent.Parent.stuffforannoying:GetChildren())]
smthtoannoy.annoy:Fire()
smthtoannoy.Stopped.Event:Wait()
task.wait(5)
print()
end
and the lasers.
local function touch(humanoid)
if humanoid.Parent:FindFirstChild("Humanoid") and script.Parent.Laser.Transparency == 0 then
humanoid.Parent.Humanoid:TakeDamage(100)
end
end
script.Parent.Laser.Touched:Connect(touch)
script.Parent.Laser2.Touched:Connect(touch)
script.Parent.annoy.Event:Connect(function()
print()
script.Parent.Laser.Transparency = 0
script.Parent.Laser2.Transparency = 0
task.wait(2)
script.Parent.Laser.Transparency = 1
script.Parent.Laser2.Transparency = 1
script.Parent.Stopped:Fire()
print()
end)
Proof:
the video