Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = owner
- local char = owner.Character
- local BillboardGui = Instance.new("BillboardGui")
- local TextLabel = Instance.new("TextLabel")
- BillboardGui.Name = "says"
- BillboardGui.Parent = char.Head
- BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui.AlwaysOnTop = true
- BillboardGui.ExtentsOffset = Vector3.new(0, 3, 0)
- BillboardGui.LightInfluence = 1
- BillboardGui.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Parent = BillboardGui
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = ""
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- char.Humanoid.WalkSpeed = 30
- char.Humanoid.Name = "Dead"
- local attacking = false
- local t = Instance.new("Tool")
- t.Name = "Electric gun"
- t.GripPos = Vector3.new(-0.037, -0.692, 3.651)
- local ha = Instance.new("Part",t)
- ha.Size = Vector3.new(0.5, 0.5, 10)
- ha.Name = "Handle"
- local m = Instance.new("SpecialMesh",ha)
- m.MeshId = "rbxassetid://445567359"
- m.TextureId = "rbxassetid://445567371"
- m.Offset = Vector3.new(0, 0, 3)
- t.Parent = owner.Character
- function onTouched(fire)
- if attacking == false then
- local enemy = fire.Parent:FindFirstChildOfClass("Humanoid")
- if enemy then
- if not(enemy.Name == "Dead") then
- attacking = true
- local m = Instance.new("Model", game.Workspace)
- m.Name = "Dead, "..enemy.Parent.Name
- local say = math.random(1,6)
- if say == 1 then
- TextLabel.Text = "Die nub lol."
- end
- if say == 2 then
- TextLabel.Text = "You are dead."
- end
- if say == 3 then
- TextLabel.Text = "Die!"
- end
- if say == 4 then
- TextLabel.Text = "You died nub."
- end
- if say == 5 then
- TextLabel.Text = "Goodbye, "..enemy.Parent.Name
- end
- if say == 6 then
- TextLabel.Text = "You died, "..enemy.Parent.Name.."!"
- end
- local h = Instance.new("Part",m)
- h.Name = "Head"
- local me = plr.Character.Head.Mesh:Clone()
- me.Parent = h
- local facee = plr.Character.Head.face:Clone()
- facee.Parent = h
- h.Size = plr.Character.Head.Size
- h:BreakJoints()
- h.CanCollide = false
- h.Position = enemy.Parent.Head.Position
- h.face.Texture = "http://www.roblox.com/asset/?id=1350110313"
- local t = Instance.new("Part",m)
- t.Name = "Torso"
- t.Size = plr.Character.Torso.Size
- t:BreakJoints()
- t.CanCollide = false
- t.Position = h.Position
- t.Position = t.Position - Vector3.new(0, 2, 0)
- local ra = Instance.new("Part",m)
- ra.Name = "Right Arm"
- ra.Size = plr.Character["Right Arm"].Size
- ra:BreakJoints()
- ra.Position = plr.Character["Right Arm"].Position
- ra.Position = ra.Position + Vector3.new(0, 10, 0)
- local la = Instance.new("Part",m)
- la.Name = "Left Arm"
- la.Size = plr.Character["Left Arm"].Size
- la:BreakJoints()
- la.Position = plr.Character["Left Arm"].Position
- la.Position = la.Position + Vector3.new(0, 10, 0)
- local ll = Instance.new("Part",m)
- ll.Name = "Left Leg"
- ll.Size = plr.Character["Left Leg"].Size
- ll:BreakJoints()
- ll.Position = plr.Character["Left Leg"].Position
- ll.Position = ll.Position + Vector3.new(0, 10, 0)
- local rl = Instance.new("Part",m)
- rl.Name = "Right Leg"
- rl.Size = plr.Character["Right Leg"].Size
- rl:BreakJoints()
- rl.Position = plr.Character["Right Leg"].Position
- rl.Position = rl.Position + Vector3.new(0, 10, 0)
- for i,v in pairs(m:GetChildren()) do
- v:BreakJoints()
- end
- local neck = Instance.new("Motor6D")
- neck.Name = "Neck"
- neck.Part0 = t
- neck.Part1 = h
- neck.Parent = t
- neck.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- neck.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- local rs = Instance.new("Motor6D")
- rs.Name = "Right Shoulder"
- rs.Part0 = t
- rs.Part1 = ra
- rs.Parent = t
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- local ls = Instance.new("Motor6D")
- ls.Name = "Left Shoulder"
- ls.Part0 = t
- ls.Part1 = la
- ls.Parent = t
- ls.C0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- ls.C1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local lh = Instance.new("Motor6D")
- lh.Name = "Left Hip"
- lh.Part0 = t
- lh.Part1 = ll
- lh.Parent = t
- lh.C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- lh.C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local rh = Instance.new("Motor6D")
- rh.Name = "Right Hip"
- rh.Part0 = t
- rh.Part1 = rl
- rh.Parent = t
- rh.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- rh.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- wait(0.000000000000001)
- h.BrickColor = BrickColor.new("Really black")
- ra.BrickColor = BrickColor.new("Really black")
- la.BrickColor = BrickColor.new("Really black")
- t.BrickColor = BrickColor.new("Really black")
- rl.BrickColor = BrickColor.new("Really black")
- ll.BrickColor = BrickColor.new("Really black")
- for i,v in pairs(enemy.Parent:GetChildren()) do
- v:Destroy()
- end
- local enemy = Instance.new("Humanoid", m)
- enemy.PlatformStand = true
- enemy.Name = "Dead"
- local shot = Instance.new("Sound", char.Head)
- shot.SoundId = "rbxassetid://186130717"
- shot.Volume = 1
- shot:Play()
- enemy.Parent.Torso["Left Hip"].Part1 = nil
- enemy.Parent.Torso["Left Shoulder"].Part1 = nil
- enemy.Parent.Torso["Right Hip"].Part1 = nil
- enemy.Parent.Torso["Right Shoulder"].Part1 = nil
- local c1 = Instance.new("Part", enemy.Parent)
- c1.Size = Vector3.new(1, 1 , 1)
- c1.Transparency = 1
- local c2 = Instance.new("Part", enemy.Parent)
- c2.Size = Vector3.new(1, 1 , 1)
- c2.Transparency = 1
- local c3 = Instance.new("Part", enemy.Parent)
- c3.Size = Vector3.new(1, 1 , 1)
- c3.Transparency = 1
- local c4 = Instance.new("Part", enemy.Parent)
- c4.Size = Vector3.new(1, 1 , 1)
- c4.Transparency = 1
- local weld1 = Instance.new("Weld", enemy.Parent)
- weld1.Part0 = enemy.Parent["Left Arm"]
- weld1.Part1 = c1
- local weld2 = Instance.new("Weld", enemy.Parent)
- weld2.Part0 = enemy.Parent["Left Leg"]
- weld2.Part1 = c2
- local weld3 = Instance.new("Weld", enemy.Parent)
- weld3.Part0 = enemy.Parent["Right Arm"]
- weld3.Part1 = c3
- local weld4 = Instance.new("Weld", enemy.Parent)
- weld4.Part0 = enemy.Parent["Right Leg"]
- weld4.Part1 = c4
- local j1 = Instance.new("Glue", enemy.Parent)
- j1.Part0 = enemy.Parent.Torso
- j1.Part1 = enemy.Parent["Right Arm"]
- j1.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- j1.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local j2 = Instance.new("Glue", enemy.Parent)
- j2.Part0 = enemy.Parent.Torso
- j2.Part1 = enemy.Parent["Right Leg"]
- j2.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- j2.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local j3 = Instance.new("Glue", enemy.Parent)
- j3.Part0 = enemy.Parent.Torso
- j3.Part1 = enemy.Parent["Left Arm"]
- j3.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- j3.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local j4 = Instance.new("Glue", enemy.Parent)
- j4.Part0 = enemy.Parent.Torso
- j4.Part1 = enemy.Parent["Left Leg"]
- j4.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- j4.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- wait(0.1)
- attacking = false
- wait(3)
- TextLabel.Text = ""
- end
- end
- end
- end
- ha.Touched:connect(onTouched)
- while true do
- wait()
- TextLabel.Rotation = math.random(-10,10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement