Advertisement
Prephy

C00lKidd

Mar 22nd, 2021 (edited)
1,130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.82 KB | None | 0 0
  1. wait()
  2. player = owner
  3. local name=nil
  4. local partmat = {"Part","FlagStand","Part"}
  5. local p = {"FlagStand","Part"}
  6. local walk = false
  7. local oldpos = nil
  8. script.Parent=nil
  9.    
  10. --ancle  1.55
  11.  
  12. function YES()
  13.     NLS([[player = game:GetService('Players').LocalPlayer
  14. local mouse = player:GetMouse()
  15. local hu = Instance.new("Humanoid",player.Character) hu.BreakJointsOnDeath=false hu.RequiresNeck=false hu.MaxHealth=-300  hu.Health=-300
  16. local camera = nil
  17. local rem_1 = player.Backpack:WaitForChild("1")
  18. local rem_2 = player.Backpack:WaitForChild("2")
  19. local rem_3 = player.Backpack:WaitForChild("3")
  20. local rem_4 = player.Backpack:WaitForChild("4")
  21. local rem_5 = player.Backpack:WaitForChild("5")
  22. local cams = workspace:FindFirstChild("CAMERA")
  23. if cams then
  24.     camera=cams
  25.     workspace.CurrentCamera.CameraSubject=camera
  26.  
  27. else
  28.     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)
  29.  
  30. workspace.CurrentCamera.CameraSubject=camera   
  31. end
  32.  
  33. mouse.KeyDown:connect(function(e)
  34.     e = e:lower()
  35.     if e == "z" then
  36.        
  37.         rem_1:FireServer(mouse.Hit)
  38.     end
  39.     end)
  40.    
  41.     mouse.KeyDown:connect(function(e)
  42.  
  43.         e = e:lower()
  44.     if e == "p" then
  45.         rem_5:FireServer("ok")
  46.         workspace.CurrentCamera.CameraSubject=camera
  47.         end
  48.    
  49. end)
  50.  
  51. local shoot = false
  52.  
  53.  
  54. mouse.Button1Down:connect(function()
  55.    
  56.     shoot=true
  57.  
  58. end)
  59.  
  60.  
  61. mouse.Button1Up:connect(function()
  62.    
  63.     shoot=false
  64.  
  65. end)
  66.  
  67. mouse.KeyDown:connect(function(e)
  68.     e = e:lower()
  69.     if e == "q" then
  70.         print("ok")
  71.         shoot = true
  72.         rem_2:FireServer("reset")
  73.     end
  74. end)
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86. local run = game:GetService("RunService")
  87. local ha = 2
  88.  
  89. run.RenderStepped:Connect(function(x)
  90.     local nice = ha*x
  91. if shoot == true then
  92. rem_3:FireServer(mouse.Target)
  93.     rem_4:FireServer(mouse.Hit.p)
  94. end
  95.     local tor = player.Character:FindFirstChild("HumanoidRootPart")
  96.     if tor then
  97. tor.CanCollide=false
  98.         camera.CFrame = tor.CFrame + Vector3.new(0,1.5,0)
  99.     end
  100.    
  101.     if hu then
  102.     hu.Name=math.random()
  103.     end
  104. end)]],player.Backpack)
  105. end
  106.  
  107.  
  108. function tag(HEAD)
  109.     local bgui = Instance.new("BillboardGui", HEAD)
  110.     bgui.Active = false
  111.     bgui.AlwaysOnTop = true
  112.     bgui.Enabled = true
  113.     bgui.MaxDistance = 100
  114.     bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  115.     bgui.SizeOffset = Vector2.new(-20, 5)
  116.     bgui.Name = "FrameHolder"
  117.     bgui.AlwaysOnTop = true
  118.     bgui.Enabled = true
  119.     bgui.MaxDistance = 100
  120.     bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  121.     bgui.SizeOffset = Vector2.new(-20, 5)
  122.     bgui.Name = "FrameHolder"
  123.     bgui.Adornee = HEAD
  124.     local frame = Instance.new("Frame", bgui)
  125.     frame.Active = false
  126.     frame.BackgroundTransparency = 1
  127.     frame.Size = UDim2.new(42, 0, 4, 0)
  128.     frame.Name = "Frame"
  129.     local text = Instance.new("TextLabel", frame)
  130.     text.Active = false
  131.     text.BackgroundTransparency = 1
  132.     text.Size = UDim2.new(1, 0, 1, 0)
  133.     text.Visible = true
  134.     text.Font = Enum.Font.Code
  135.     text.TextScaled = true
  136.     text.TextSize = 14
  137.     text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  138.     text.TextTransparency = 0.5
  139.     text.Text = "coolkid"
  140. end
  141.  
  142.  
  143.  
  144. function char()
  145.  
  146. player.Backpack:ClearAllChildren()
  147. name = math.random().." 1x1x1x1 "..math.random()   
  148.     local mod = Instance.new("Model",workspace) mod.Name = name
  149.     local torso = Instance.new(partmat[math.random(1,#partmat)],mod) torso.CFrame = oldpos.CFrame torso.Name="HumanoidRootPart"  
  150. torso.Size = Vector3.new(2,2,1) torso.Color = Color3.new(0.666667, 0, 0) torso.Material=Enum.Material.Plastic torso.Reflectance = -1
  151.     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
  152.     local mesh = Instance.new("SpecialMesh",head) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  153.     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
  154.     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
  155.     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
  156.     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
  157. tag(head)
  158.  
  159. local leftleg = Instance.new("CharacterMesh",mod)
  160. leftleg.BodyPart = Enum.BodyPart.LeftLeg
  161. leftleg.MeshId = "1112275294"
  162. local rightleg = Instance.new("CharacterMesh",mod)
  163. rightleg.BodyPart = Enum.BodyPart.RightLeg
  164. rightleg.MeshId = "1112267576"
  165.    
  166.     local IlIl = script.Parent
  167.     function waitForChild(parent, childName)
  168.         local child = parent:findFirstChild(childName)
  169.         if child then return child end
  170.         while true do
  171.             child = parent.ChildAdded:wait()
  172.             if child.Name==childName then return child end
  173.         end
  174.     end
  175.  
  176.  
  177.     local Figure = mod
  178.     local Torso = waitForChild(Figure, "HumanoidRootPart")
  179.  
  180.     function makeJoint(limbName, jointName, c0, c1)
  181.         local limb = waitForChild(Figure, limbName)
  182.         limb:BreakJoints()
  183.         local joint = Instance.new"Weld"
  184.         joint.Name = "Snap"
  185.         joint.Part0 = Torso
  186.         joint.Part1 = limb
  187.         joint.C0 = c0
  188.         joint.C1 = c1
  189.         joint.archivable = false
  190.         joint.Parent = Torso
  191.         return joint
  192.     end
  193.  
  194.     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))
  195.     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))
  196.     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))
  197.     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))
  198.     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))
  199.    
  200.    
  201.    
  202.    
  203.  
  204.    
  205.     local ff = game.Players:FindFirstChild(player.Name)
  206.     if ff then
  207.         oldpos = torso
  208.         player.Character = mod
  209.         YES()
  210.  
  211.  
  212.     end
  213.    
  214.     --remotes
  215.     local rem_1 = Instance.new("RemoteEvent",player.Backpack) rem_1.Name="1"   
  216.     local rem_2 = Instance.new("RemoteEvent",player.Backpack) rem_2.Name="2"
  217.     local rem_3 = Instance.new("RemoteEvent",player.Backpack) rem_3.Name="3"
  218.     local rem_4 = Instance.new("RemoteEvent",player.Backpack) rem_4.Name="4"
  219.     local rem_5 = Instance.new("RemoteEvent",player.Backpack) rem_5.Name="5"
  220.     --remotes
  221.     local up = false
  222.    
  223.    
  224.    
  225.    
  226.     function Kill(die)
  227.         die:BreakJoints()
  228.         for i,g in pairs(die:GetDescendants()) do
  229.             if g:IsA("BasePart") then
  230.                 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
  231.                 local mesh = g:FindFirstChildOfClass("SpecialMesh")
  232.                 if mesh then
  233.                     mesh.Parent=dead
  234.                 end
  235.                 g:Destroy()
  236.             end
  237.         end
  238.     end
  239.    
  240.    
  241.    
  242.    
  243.    
  244.    
  245.    
  246.    
  247.  
  248.  
  249.    
  250.    
  251.     --///////////////////////////////// Onserver events
  252.     rem_1.OnServerEvent:Connect(function(pl, wariohax)
  253.         mod.HumanoidRootPart.CFrame = wariohax + Vector3.new(0,3,0)
  254.     end)
  255.    
  256.     rem_2.OnServerEvent:Connect(function(pl, ok)
  257.         player:LoadCharacter() oldpos = player.Character.HumanoidRootPart
  258.         wait(.5)
  259.         char()
  260.        
  261.     end)
  262.  
  263. function sound(boom)
  264. local ban = Instance.new("Sound",boom) ban.SoundId="rbxassetid://340722848" ban.PlayOnRemove=true ban.Volume=6
  265. end
  266.    
  267.     rem_3.OnServerEvent:Connect(function(pl, shoot)
  268.        
  269.             if shoot.Parent.ClassName == "Model" then
  270.                 sound(shoot)
  271.                 Kill(shoot.Parent)
  272. local ex = Instance.new("Explosion",workspace) ex.Position = shoot.Position ex.Visible=false
  273.             elseif shoot.Parent.Parent.ClassName == "Model" then
  274.                  sound(shoot)
  275.                 Kill(shoot.Parent.Parent)
  276. local ex = Instance.new("Explosion",workspace) ex.Position = shoot.Position ex.Visible=false
  277.  
  278.             end
  279.  
  280.        
  281.     end)
  282.    
  283.     rem_4.OnServerEvent:Connect(function(pl, shoot)
  284. local shooting = mod.head:FindFirstChild("be")
  285. if shooting then
  286. shooting:Play()
  287. else
  288.         local shot = Instance.new("Sound",head) shot.SoundId="rbxassetid://904440937" shot.Volume=4 shot:Play() shot.Name="be"
  289.  
  290. end
  291.         local att = Instance.new("Attachment",workspace.Terrain) att.Position = head.Position + Vector3.new(0,4,0)
  292.         local att2 = Instance.new("Attachment",workspace.Terrain) att2.Position = shoot
  293.         local beam = Instance.new("Beam",mod)
  294.         beam.Enabled=true beam.FaceCamera=true beam.Attachment0 = att beam.Attachment1=att2 beam.Color = ColorSequence.new(Color3.new(0.666667, 0, 0))
  295.         wait(.1)
  296.             beam:Destroy() att2:Destroy() att:Destroy()
  297.            
  298.     end)
  299.    
  300.     rem_5.OnServerEvent:Connect(function(pl,fsedbf)
  301.         char()
  302.     end)
  303.  
  304.  
  305.  
  306. 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()
  307.  
  308. end
  309.  
  310.  
  311. if player.Character then
  312.  
  313.     local h = player.Character:FindFirstChild("Head")
  314.     if h then
  315.         oldpos = h
  316.         char()
  317. else
  318. local hh = player.Character:FindFirstChild("HumanoidRootPart")
  319. if hh then
  320. oldpos = hh
  321. char()
  322. end
  323.  
  324.     end
  325. else
  326.     player:LoadCharacter() oldpos = player.Character.HumanoidRootPart
  327. char()
  328. end
  329.  
  330.  
  331. game.Players.PlayerAdded:Connect(function(funky)
  332.     if funky then
  333.         if funky.Name == player.Name then
  334.             player=funky
  335.             char()
  336.         end
  337.     end
  338. end)
  339.  
  340. local run = game:GetService("RunService")
  341. local sec = 5
  342. run.Heartbeat:Connect(function(WHAT)
  343.     local nice = sec * WHAT
  344.     local model = workspace:FindFirstChild(name)
  345.     if model then
  346.         local leg2 = model:FindFirstChild("Right Leg")
  347.         if leg2 then
  348.         else
  349.             char()
  350.         end
  351.         local leg1 = model:FindFirstChild("Left Leg")
  352.         if leg1 then
  353.         else
  354.             char()
  355.         end
  356.         local arm2 = model:FindFirstChild("left arm")
  357.         if arm2 then
  358.         else
  359.             char()
  360.         end
  361.         local arm1 = model:FindFirstChild("right arm")
  362.         if arm1 then
  363.         else
  364.             char()
  365.         end
  366.         local to = model:FindFirstChild("HumanoidRootPart")
  367.         if to then
  368.         else
  369.             char()
  370.         end
  371.         local he = model:FindFirstChild("head")
  372.         if he then
  373.            
  374.         else
  375.             char()
  376.         end
  377.     else
  378.         char()
  379.     end
  380.    
  381. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement