View difference between Paste ID: JTts26cm and H8tLmM1W
SHOW: | | - or go back to the newest paste.
1
local it = Instance.new
2
local part = it("Part", game.Workspace)
3
part.Anchored = false
4
5
local function partcreate()
6
	while true do
7
	it("Part", game.Workspace)
8-
it("Part", game.Workspace)
8+
9-
it("Part", game.Workspace)
9+
function onTouched(part)
10-
it("Part", game.Workspace)
10+
 local h = part.Parent:findFirstChild("Humanoid")
11-
it("Part", game.Workspace)
11+
 if h~=nil then
12-
it("Part", game.Workspace)
12+
wait(0.001)
13-
it("Part", game.Workspace)
13+
 h.Health = 0
14-
it("Part", game.Workspace)
14+
15-
it("Part", game.Workspace)
15+
 end
16-
it("Part", game.Workspace)
16+
17-
it("Part", game.Workspace)
17+
     end
18-
it("Part", game.Workspace)
18+
19-
it("Part", game.Workspace)
19+
script.Parent.Touched:connect(onTouched)