View difference between Paste ID: j7bCFZ4i and EKH0EFeZ
SHOW: | | - or go back to the newest paste.
1-
local AllowedPeeps = {game.Players.LocalPlayer,"Player1","TheFlamingBlaster"}
1+
local AllowedPeeps = {game.Players.LocalPlayer,"Player1","timetodie23232223"}
2
ffmodel = Instance.new("Model",workspace)
3
ff = Instance.new("Part",workspace)
4
ff.Shape = "Ball"
5
ff.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
6
ff.Size = Vector3.new(20,20,20)
7
ff.CanCollide = false
8
ff.Transparency = 0.7
9
ff.BrickColor = BrickColor.Black()
10
ff.Parent = ffmodel
11
ff.TopSurface = Enum.SurfaceType.Smooth
12
ff.BottomSurface = Enum.SurfaceType.Smooth
13
ff.Locked = true
14
ff.Name = "Head"
15
b = Instance.new('BodyPosition')
16
b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
17
b.D = 25
18
b.Parent = ff
19
yum = Instance.new("Sound",ff)
20
yum.SoundId = "rbxassetid://142937769"
21
yum.Volume = 1
22
ffmodel.Parent = game.Players.LocalPlayer.Character
23
function onTouched(hit) 
24
	local h = hit
25
	if h.Name ~= "Base" then
26
		if h.Name ~= "Handle" then
27
			for index in ipairs(AllowedPeeps) do
28
				print(index.." "..AllowedPeeps[index])
29
				print (h.Parent.Name)
30
					if h.Parent.Name ~= "Torso" then
31
						if h.Parent.Name ~= AllowedPeeps[index] then
32
				    						h:Destroy()	
33
											yum:Play()
34
											print("Ate "..h.Name.." and he was as yummy as Red Robin")
35
			end
36
					
37
		end
38
		end end end
39
	end
40
ff.Touched:connect(onTouched)
41
local plrhealth = game.Players.LocalPlayer.Character.Humanoid
42
local attempt = 0
43
while true do
44
	if plrhealth.Health ~= 0 then
45
		attempt = 0
46
		ffmodel.Parent = game.Players.LocalPlayer.Character
47
		x = game.Players.LocalPlayer.Character.Torso.Position.X
48
		y = game.Players.LocalPlayer.Character.Torso.Position.Y
49
		z = game.Players.LocalPlayer.Character.Torso.Position.Z
50
		b.Position = Vector3.new(x,y,z)
51
	else
52
		attempt = attempt + 1
53
		ffmodel.Parent = workspace
54
		warn ("Player is nil! ForceField was placed in "..ffmodel.Parent.Name..". Attempt: "..attempt)
55
		wait(1)
56
	end
57
	wait(0.01)
58
end