Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AllowedPeeps = {game.Players.LocalPlayer,"Player1","timetodie23232223"}
- ffmodel = Instance.new("Model",workspace)
- ff = Instance.new("Part",workspace)
- ff.Shape = "Ball"
- ff.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
- ff.Size = Vector3.new(20,20,20)
- ff.CanCollide = false
- ff.Transparency = 0.7
- ff.BrickColor = BrickColor.Black()
- ff.Parent = ffmodel
- ff.TopSurface = Enum.SurfaceType.Smooth
- ff.BottomSurface = Enum.SurfaceType.Smooth
- ff.Locked = true
- ff.Name = "Head"
- b = Instance.new('BodyPosition')
- b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- b.D = 25
- b.Parent = ff
- yum = Instance.new("Sound",ff)
- yum.SoundId = "rbxassetid://142937769"
- yum.Volume = 1
- ffmodel.Parent = game.Players.LocalPlayer.Character
- function onTouched(hit)
- local h = hit
- if h.Name ~= "Base" then
- if h.Name ~= "Handle" then
- for index in ipairs(AllowedPeeps) do
- print(index.." "..AllowedPeeps[index])
- print (h.Parent.Name)
- if h.Parent.Name ~= "Torso" then
- if h.Parent.Name ~= AllowedPeeps[index] then
- h:Destroy()
- yum:Play()
- print("Ate "..h.Name.." and he was as yummy as Red Robin")
- end
- end
- end end end
- end
- ff.Touched:connect(onTouched)
- local plrhealth = game.Players.LocalPlayer.Character.Humanoid
- local attempt = 0
- while true do
- if plrhealth.Health ~= 0 then
- attempt = 0
- ffmodel.Parent = game.Players.LocalPlayer.Character
- x = game.Players.LocalPlayer.Character.Torso.Position.X
- y = game.Players.LocalPlayer.Character.Torso.Position.Y
- z = game.Players.LocalPlayer.Character.Torso.Position.Z
- b.Position = Vector3.new(x,y,z)
- else
- attempt = attempt + 1
- ffmodel.Parent = workspace
- warn ("Player is nil! ForceField was placed in "..ffmodel.Parent.Name..". Attempt: "..attempt)
- wait(1)
- end
- wait(0.01)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement