My problem here is that when try to add a print statement each time a part appears an error occurs but when I do not add the print statement in my code, it work perfectly fine. How do I add a print statement without receiving any errors?
local yelo = workspace.yaalow
local function createpart(gello)
local gello = Instance.new("Part")
local particle = Instance.new("ParticleEmitter")
gello.Parent = workspace
particle.Parent = gello
task.wait(2)
gello:Destroy()
end
yelo.Touched:Connect(function(otherpart)
local op = otherpart.Parent:FindFirstChild("Humanoid")
if op then
createpart(yelo)
print("nnn")
end
end)