Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- I made this all by myself {:
- --[[
- Epic Duck!
- By: PenguinAnonymous
- Features: Being an evil duck
- Version: 1.0
- ]]--
- function getClass(obj,class)
- local ret = {}
- local c = obj:GetChildren()
- for i=1,#c do
- if c[i]:IsA(class) then
- table.insert(ret,c[i])
- end
- local e = getClass(c[i],class)
- for j=1,#e do
- table.insert(ret,e[j])
- end
- end
- return ret
- end
- local pl = game:GetService("Players").LocalPlayer
- local o1 = Instance.new("Part")
- local o2 = Instance.new("SpecialMesh")
- o1.Parent = pl.Character
- o1.Material = Enum.Material.Slate
- o1.BrickColor = BrickColor.new("Dark stone grey")
- o1.Position = Vector3.new(-6.5, 0.600004971, -11.5)
- o1.Size = Vector3.new(1, 1.20000005, 1)
- o1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o1.Position = Vector3.new(-6.5, 0.600004971, -11.5)
- o1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o2.Parent = o1
- o2.MeshId = "http://www.roblox.com/asset/?id=14810664"
- o2.TextureId = "http://www.roblox.com/asset/?id=14810649"
- o2.MeshType = Enum.MeshType.FileMesh
- o2.Scale = Vector3.new(7,7,7)
- local s = Instance.new("Sound",o1)
- s.EmitterSize = 100
- s.Volume = 10
- s.SoundId = "rbxassetid://464979976"
- local m = Instance.new("Sound",o1)
- m.EmitterSize = 10
- m.Volume = 10
- m.SoundId = "rbxassetid://130768080"
- m.Looped = true
- m:Play()
- local weld = Instance.new("Weld",o1)
- weld.Part0 = o1
- weld.Part1 = pl.Character.HumanoidRootPart
- local parts = getClass(pl.Character,"Part")
- for i=1,#parts do
- parts[i].Transparency = 1
- parts[i].Touched:connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- if hum~=nil and hum.Parent~=pl.Character and hum.Health>0 then
- hum.Health = 0
- pcall(function() s:Play() end)
- end
- end)
- end
- local hum = getClass(pl.Character,"Humanoid")[1]
- if hum~=nil then
- hum.MaxHealth = math.huge
- hum.Health = math.huge
- hum.WalkSpeed = 50
- end
- o1.Transparency = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement