part = script.Parent cloned = part:Clone() part.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then cloned.Parent = game.Workspace end end end end)
Try this, you put 2 extra "ends" in your script
part = script.Parent cloned = part:Clone() part.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then cloned.Parent = game.Workspace end end)