Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- player = owner
- local name=nil
- local partmat = {"Part","FlagStand","Part"}
- local p = {"FlagStand","Part"}
- local walk = false
- local oldpos = nil
- script.Parent=nil
- --ancle 1.55
- function YES()
- NLS([[player = game:GetService('Players').LocalPlayer
- local mouse = player:GetMouse()
- local hu = Instance.new("Humanoid",player.Character) hu.BreakJointsOnDeath=false hu.RequiresNeck=false hu.MaxHealth=-300 hu.Health=-300
- local camera = nil
- local rem_1 = player.Backpack:WaitForChild("1")
- local rem_2 = player.Backpack:WaitForChild("2")
- local rem_3 = player.Backpack:WaitForChild("3")
- local rem_4 = player.Backpack:WaitForChild("4")
- local rem_5 = player.Backpack:WaitForChild("5")
- local cams = workspace:FindFirstChild("CAMERA")
- if cams then
- camera=cams
- workspace.CurrentCamera.CameraSubject=camera
- else
- camera = Instance.new("FlagStand",workspace) camera.Transparency=1 camera.Anchored=true camera.CanCollide=false camera.Name="CAMERA" camera.Size = Vector3.new(2,1,1) camera.Color=Color3.new(0.666667, 0, 0) local mesh = Instance.new("SpecialMesh",camera) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- workspace.CurrentCamera.CameraSubject=camera
- end
- mouse.KeyDown:connect(function(e)
- e = e:lower()
- if e == "z" then
- rem_1:FireServer(mouse.Hit)
- end
- end)
- mouse.KeyDown:connect(function(e)
- e = e:lower()
- if e == "p" then
- rem_5:FireServer("ok")
- workspace.CurrentCamera.CameraSubject=camera
- end
- end)
- local shoot = false
- mouse.Button1Down:connect(function()
- shoot=true
- end)
- mouse.Button1Up:connect(function()
- shoot=false
- end)
- mouse.KeyDown:connect(function(e)
- e = e:lower()
- if e == "q" then
- print("ok")
- shoot = true
- rem_2:FireServer("reset")
- end
- end)
- local run = game:GetService("RunService")
- local ha = 2
- run.RenderStepped:Connect(function(x)
- local nice = ha*x
- if shoot == true then
- rem_3:FireServer(mouse.Target)
- rem_4:FireServer(mouse.Hit.p)
- end
- local tor = player.Character:FindFirstChild("HumanoidRootPart")
- if tor then
- tor.CanCollide=false
- camera.CFrame = tor.CFrame + Vector3.new(0,1.5,0)
- end
- if hu then
- hu.Name=math.random()
- end
- end)]],player.Backpack)
- end
- function tag(HEAD)
- local bgui = Instance.new("BillboardGui", HEAD)
- bgui.Active = false
- bgui.AlwaysOnTop = true
- bgui.Enabled = true
- bgui.MaxDistance = 100
- bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
- bgui.SizeOffset = Vector2.new(-20, 5)
- bgui.Name = "FrameHolder"
- bgui.AlwaysOnTop = true
- bgui.Enabled = true
- bgui.MaxDistance = 100
- bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
- bgui.SizeOffset = Vector2.new(-20, 5)
- bgui.Name = "FrameHolder"
- bgui.Adornee = HEAD
- local frame = Instance.new("Frame", bgui)
- frame.Active = false
- frame.BackgroundTransparency = 1
- frame.Size = UDim2.new(42, 0, 4, 0)
- frame.Name = "Frame"
- local text = Instance.new("TextLabel", frame)
- text.Active = false
- text.BackgroundTransparency = 1
- text.Size = UDim2.new(1, 0, 1, 0)
- text.Visible = true
- text.Font = Enum.Font.Code
- text.TextScaled = true
- text.TextSize = 14
- text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
- text.TextTransparency = 0.5
- text.Text = "coolkid"
- end
- function char()
- player.Backpack:ClearAllChildren()
- name = math.random().." 1x1x1x1 "..math.random()
- local mod = Instance.new("Model",workspace) mod.Name = name
- local torso = Instance.new(partmat[math.random(1,#partmat)],mod) torso.CFrame = oldpos.CFrame torso.Name="HumanoidRootPart"
- torso.Size = Vector3.new(2,2,1) torso.Color = Color3.new(0.666667, 0, 0) torso.Material=Enum.Material.Plastic torso.Reflectance = -1
- local head = Instance.new(p[math.random(1,#p)],mod) head.Name="head" head.Size = Vector3.new(2,1,1) head.Color = Color3.new(0.666667, 0, 0) head.Material=Enum.Material.Plastic head.CanCollide=false
- local mesh = Instance.new("SpecialMesh",head) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- local r_leg = Instance.new(partmat[math.random(1,#partmat)],mod) r_leg.Name="Right Leg" r_leg.Size = Vector3.new(1,2,1) r_leg.Color=Color3.new(0.666667, 0, 0) r_leg.Material=Enum.Material.Plastic r_leg.Reflectance = -1 r_leg.CanCollide=false
- local l_leg = Instance.new(partmat[math.random(1,#partmat)],mod) l_leg.Name="Left Leg" l_leg.Size = Vector3.new(1,2,1) l_leg.Color=Color3.new(0.666667, 0, 0) l_leg.Material=Enum.Material.Plastic l_leg.Reflectance = -1 l_leg.CanCollide=false
- local l_arm = Instance.new(partmat[math.random(1,#partmat)],mod) l_arm.Name="left arm" l_arm.Size = Vector3.new(1,2,1) l_arm.Color=Color3.new(0.666667, 0, 0) l_arm.Material=Enum.Material.Plastic l_arm.Reflectance = -1 l_arm.CanCollide=false
- local r_arm = Instance.new(partmat[math.random(1,#partmat)],mod) r_arm.Name="right arm" r_arm.Size = Vector3.new(1,2,1) r_arm.Color=Color3.new(0.666667, 0, 0) r_arm.Material=Enum.Material.Plastic r_arm.Reflectance = -1 r_arm.CanCollide=false
- tag(head)
- local leftleg = Instance.new("CharacterMesh",mod)
- leftleg.BodyPart = Enum.BodyPart.LeftLeg
- leftleg.MeshId = "1112275294"
- local rightleg = Instance.new("CharacterMesh",mod)
- rightleg.BodyPart = Enum.BodyPart.RightLeg
- rightleg.MeshId = "1112267576"
- local IlIl = script.Parent
- function waitForChild(parent, childName)
- local child = parent:findFirstChild(childName)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name==childName then return child end
- end
- end
- local Figure = mod
- local Torso = waitForChild(Figure, "HumanoidRootPart")
- function makeJoint(limbName, jointName, c0, c1)
- local limb = waitForChild(Figure, limbName)
- limb:BreakJoints()
- local joint = Instance.new"Weld"
- joint.Name = "Snap"
- joint.Part0 = Torso
- joint.Part1 = limb
- joint.C0 = c0
- joint.C1 = c1
- joint.archivable = false
- joint.Parent = Torso
- return joint
- end
- local Neck = makeJoint("head","Neck", CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0))
- local RightShoulder = makeJoint("right arm", "Right Shoulder", CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
- local LeftShoulder = makeJoint("left arm", "Left Shoulder", CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
- local RightHip = makeJoint("Right Leg", "Right Hip", CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0))
- local LeftHip = makeJoint("Left Leg", "Left Hip", CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0))
- local ff = game.Players:FindFirstChild(player.Name)
- if ff then
- oldpos = torso
- player.Character = mod
- YES()
- end
- --remotes
- local rem_1 = Instance.new("RemoteEvent",player.Backpack) rem_1.Name="1"
- local rem_2 = Instance.new("RemoteEvent",player.Backpack) rem_2.Name="2"
- local rem_3 = Instance.new("RemoteEvent",player.Backpack) rem_3.Name="3"
- local rem_4 = Instance.new("RemoteEvent",player.Backpack) rem_4.Name="4"
- local rem_5 = Instance.new("RemoteEvent",player.Backpack) rem_5.Name="5"
- --remotes
- local up = false
- function Kill(die)
- die:BreakJoints()
- for i,g in pairs(die:GetDescendants()) do
- if g:IsA("BasePart") then
- local dead= Instance.new("Part",workspace) dead.CFrame = g.CFrame dead.Size=g.Size dead.Color=Color3.new(0.666667, 0, 0) dead.Material=Enum.Material.Glass dead.Transparency=.3 dead.CanCollide=false dead.Name = math.random()..g.Name
- local mesh = g:FindFirstChildOfClass("SpecialMesh")
- if mesh then
- mesh.Parent=dead
- end
- g:Destroy()
- end
- end
- end
- --///////////////////////////////// Onserver events
- rem_1.OnServerEvent:Connect(function(pl, wariohax)
- mod.HumanoidRootPart.CFrame = wariohax + Vector3.new(0,3,0)
- end)
- rem_2.OnServerEvent:Connect(function(pl, ok)
- player:LoadCharacter() oldpos = player.Character.HumanoidRootPart
- wait(.5)
- char()
- end)
- function sound(boom)
- local ban = Instance.new("Sound",boom) ban.SoundId="rbxassetid://340722848" ban.PlayOnRemove=true ban.Volume=6
- end
- rem_3.OnServerEvent:Connect(function(pl, shoot)
- if shoot.Parent.ClassName == "Model" then
- sound(shoot)
- Kill(shoot.Parent)
- local ex = Instance.new("Explosion",workspace) ex.Position = shoot.Position ex.Visible=false
- elseif shoot.Parent.Parent.ClassName == "Model" then
- sound(shoot)
- Kill(shoot.Parent.Parent)
- local ex = Instance.new("Explosion",workspace) ex.Position = shoot.Position ex.Visible=false
- end
- end)
- rem_4.OnServerEvent:Connect(function(pl, shoot)
- local shooting = mod.head:FindFirstChild("be")
- if shooting then
- shooting:Play()
- else
- local shot = Instance.new("Sound",head) shot.SoundId="rbxassetid://904440937" shot.Volume=4 shot:Play() shot.Name="be"
- end
- local att = Instance.new("Attachment",workspace.Terrain) att.Position = head.Position + Vector3.new(0,4,0)
- local att2 = Instance.new("Attachment",workspace.Terrain) att2.Position = shoot
- local beam = Instance.new("Beam",mod)
- beam.Enabled=true beam.FaceCamera=true beam.Attachment0 = att beam.Attachment1=att2 beam.Color = ColorSequence.new(Color3.new(0.666667, 0, 0))
- wait(.1)
- beam:Destroy() att2:Destroy() att:Destroy()
- end)
- rem_5.OnServerEvent:Connect(function(pl,fsedbf)
- char()
- end)
- local force = Instance.new("ForceField",mod) force.Visible=false local dec = Instance.new("Decal",head) dec.Texture="rbxasset://textures/face.png" dec.Name=math.random()
- end
- if player.Character then
- local h = player.Character:FindFirstChild("Head")
- if h then
- oldpos = h
- char()
- else
- local hh = player.Character:FindFirstChild("HumanoidRootPart")
- if hh then
- oldpos = hh
- char()
- end
- end
- else
- player:LoadCharacter() oldpos = player.Character.HumanoidRootPart
- char()
- end
- game.Players.PlayerAdded:Connect(function(funky)
- if funky then
- if funky.Name == player.Name then
- player=funky
- char()
- end
- end
- end)
- local run = game:GetService("RunService")
- local sec = 5
- run.Heartbeat:Connect(function(WHAT)
- local nice = sec * WHAT
- local model = workspace:FindFirstChild(name)
- if model then
- local leg2 = model:FindFirstChild("Right Leg")
- if leg2 then
- else
- char()
- end
- local leg1 = model:FindFirstChild("Left Leg")
- if leg1 then
- else
- char()
- end
- local arm2 = model:FindFirstChild("left arm")
- if arm2 then
- else
- char()
- end
- local arm1 = model:FindFirstChild("right arm")
- if arm1 then
- else
- char()
- end
- local to = model:FindFirstChild("HumanoidRootPart")
- if to then
- else
- char()
- end
- local he = model:FindFirstChild("head")
- if he then
- else
- char()
- end
- else
- char()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement