Prephy

a loud script i made back then

May 4th, 2021 (edited)
171
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait()
  2. player=owner
  3. local Nam = "block"..math.random()
  4. local name=nil
  5. local partmat = {"Part","FlagStand","Part"}
  6. local p = {"FlagStand","Part"}
  7. local walk = false
  8. local oldpos = nil
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. function char()
  19.    
  20.     player.Backpack:ClearAllChildren()
  21.     name = math.random().." 1x1x1x1 "..math.random()   
  22.     local mod = Instance.new("Model",workspace) mod.Name = name
  23.     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 = 0
  24.     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 local dec = Instance.new("Decal",head) dec.Texture="http://www.roblox.com/asset/?id=26852961" dec.Name=math.random() head.CanCollide=false
  25.     local mesh = Instance.new("SpecialMesh",head) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  26.     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 = 0 r_leg.CanCollide=false
  27.     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 = 0 l_leg.CanCollide=false
  28.     local l_arm = Instance.new(partmat[math.random(1,#partmat)],mod) l_arm.Name="left arm" l_arm.Size = Vector3.new(2,1,1) l_arm.Color=Color3.new(0.666667, 0, 0) l_arm.Material=Enum.Material.SmoothPlastic l_arm.Reflectance = 0 l_arm.CanCollide=false
  29.     local r_arm = Instance.new(partmat[math.random(1,#partmat)],mod) r_arm.Name="right arm" r_arm.Size = Vector3.new(2,1,1) r_arm.Color=Color3.new(0.666667, 0, 0) r_arm.Material=Enum.Material.SmoothPlastic r_arm.Reflectance = 0 r_arm.CanCollide=false
  30.     local rainb = Instance.new("PointLight",head) rainb.Name=math.random() rainb.Brightness=8
  31.  
  32.    
  33.    
  34.    
  35.    
  36.    
  37.    
  38.     local bgui = Instance.new("BillboardGui", head)
  39.     bgui.Active = false
  40.     bgui.AlwaysOnTop = true
  41.     bgui.Enabled = true
  42.     bgui.MaxDistance = 100
  43.     bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  44.     bgui.SizeOffset = Vector2.new(-20, 5)
  45.     bgui.Name = "FrameHolder"
  46.     bgui.AlwaysOnTop = true
  47.     bgui.Enabled = true
  48.     bgui.MaxDistance = 500
  49.     bgui.Size = UDim2.new(0.5, 0, 0.5, 0)
  50.     bgui.SizeOffset = Vector2.new(-20, 5)
  51.     bgui.Name = "FrameHolder"
  52.     bgui.Adornee = head
  53.     local frame = Instance.new("Frame", bgui)
  54.     frame.Active = false
  55.     frame.BackgroundTransparency = 1
  56.     frame.Size = UDim2.new(42, 0, 4, 0)
  57.     frame.Name = "Frame"
  58.     local text = Instance.new("TextLabel", frame)
  59.     text.Active = false
  60.     text.BackgroundTransparency = 1
  61.     text.Size = UDim2.new(1, 0, 1, 0)
  62.     text.Visible = true
  63.     text.Font = Enum.Font.Code
  64.     text.TextScaled = true
  65.     text.TextSize = 14
  66.     text.TextColor3 = Color3.new(255/255, 0/255, 0/255)
  67.     text.TextTransparency = -1
  68.     text.Text = "coolkid"
  69.    
  70.    
  71.    
  72.  
  73.     local force = Instance.new("ForceField",mod) force.Visible=false
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.     local IlIl = script.Parent
  82.     function waitForChild(parent, childName)
  83.         local child = parent:findFirstChild(childName)
  84.         if child then return child end
  85.         while true do
  86.             child = parent.ChildAdded:wait()
  87.             if child.Name==childName then return child end
  88.         end
  89.     end
  90.  
  91.  
  92.     local Figure = mod
  93.     local Torso = waitForChild(Figure, "HumanoidRootPart")
  94.  
  95.     function makeJoint(limbName, jointName, c0, c1)
  96.         local limb = waitForChild(Figure, limbName)
  97.         limb:BreakJoints()
  98.         local joint = Instance.new"Weld"
  99.         joint.Name = "Snap"
  100.         joint.Part0 = Torso
  101.         joint.Part1 = limb
  102.         joint.C0 = c0
  103.         joint.C1 = c1
  104.         --joint.MaxVelocity = 0.2
  105.         joint.archivable = false
  106.         joint.Parent = Torso
  107.         return joint
  108.     end
  109.    
  110.     function MakeJoint(limbName, jointName, c0, c1)
  111.         local limb = waitForChild(Figure, limbName)
  112.         limb:BreakJoints()
  113.         local joint = Instance.new"Motor"
  114.         joint.Name = jointName
  115.         joint.Part0 = Torso
  116.         joint.Part1 = limb
  117.         joint.C0 = c0
  118.         joint.C1 = c1
  119.         joint.MaxVelocity = 2
  120.         joint.archivable = false
  121.         joint.Parent = Torso
  122.         return joint
  123.     end
  124.  
  125.     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))
  126.     local RightShoulder = makeJoint("right arm", "Right Shoulder", CFrame.new(1.5, 1, 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))
  127.     local LeftShoulder = makeJoint("left arm", "Left Shoulder", CFrame.new(-1.5, 1, 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))
  128.     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))
  129.     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))
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.     local ff = game.Players:FindFirstChild(player.Name)
  137.     if ff then
  138.         oldpos = torso
  139.         player.Character = mod
  140.         NLS([[
  141.        
  142. player = game:GetService('Players').LocalPlayer
  143. mod = player.Character
  144. local mouse = player:GetMouse()
  145. local hu = Instance.new("Humanoid",player.Character) hu.BreakJointsOnDeath=false hu.RequiresNeck=false hu.MaxHealth=-300  hu.Health=-300 hu.WalkSpeed=60
  146. local camera = nil
  147. local rem_1 = player.Backpack:WaitForChild("1")
  148. local rem_2 = player.Backpack:WaitForChild("2")
  149. local rem_3 = player.Backpack:WaitForChild("3")
  150. local rem_4 = player.Backpack:WaitForChild("4")
  151. local rem_5 = player.Backpack:WaitForChild("5")
  152. local rem_6 = player.Backpack:WaitForChild("6")
  153. local rem_7 = player.Backpack:WaitForChild("7")
  154. local cams = workspace:FindFirstChild("CAMERA")
  155.  
  156. local talk = {"cringe..","hecc","no..","press F in chat","trash","go away >:("}
  157.  
  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. if cams then
  167.     camera=cams
  168.     workspace.CurrentCamera.CameraSubject=camera
  169.  
  170. else
  171.     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)
  172.  
  173. workspace.CurrentCamera.CameraSubject=camera   
  174. end
  175.  
  176. mouse.KeyDown:connect(function(e)
  177.     e = e:lower()
  178.     if e == "z" then
  179.        
  180.         rem_1:FireServer(mouse.Hit)
  181.     end
  182. end)
  183.  
  184.  
  185. function templat()
  186. local temp = workspace:FindFirstChild("Templ")
  187.     if temp then
  188.         local aaa = player.Character:FindFirstChild("HumanoidRootPart")
  189.         if aaa then
  190.             temp.Position = aaa.Position + Vector3.new(0,-3.2,0)
  191.         end
  192.     temp.TouchEnded:Connect(function()
  193.         local a = player.Character:FindFirstChild("HumanoidRootPart")
  194.         if a then
  195.             temp.Position = a.Position + Vector3.new(0,-3.2,0)
  196.         end
  197.     end)
  198.    
  199.    
  200.    
  201. else
  202.    
  203.    
  204.    
  205.         local templ = Instance.new("Part",workspace) templ.Size=Vector3.new(9, 0.5, 9) templ.Material="ForceField" templ.Anchored=true templ.Name="Templ" templ.CastShadow=false templ.Color=Color3.new()
  206.         local aaaa = player.Character:FindFirstChild("HumanoidRootPart")
  207.         if aaaa then
  208.             templ.Position = aaaa.Position + Vector3.new(0,-3.2,0)
  209.         end
  210.         templ.TouchEnded:Connect(function()
  211.            
  212.         local aa = player.Character:FindFirstChild("HumanoidRootPart")
  213.         if aa then
  214.             templ.Position = aa.Position + Vector3.new(0,-3.2,0)
  215.         end
  216.     end)
  217.    
  218.    
  219.    
  220. end
  221.  
  222. end
  223.  
  224. templat()
  225.  
  226. mouse.KeyDown:connect(function(w)
  227.     w = w:lower()
  228.     if w == "v" then
  229.         local template = workspace:FindFirstChild("Templ")
  230.         if template then
  231.         else
  232.             templat()
  233.         end
  234.     end
  235. end)
  236.  
  237.  
  238. mouse.KeyDown:connect(function(e)
  239.     e = e:lower()
  240.     if e == "l" then
  241.  
  242.         rem_6:FireServer("d")
  243.     end
  244. end)
  245.  
  246.     mouse.KeyDown:connect(function(e)
  247.  
  248.         e = e:lower()
  249.     if e == "p" then
  250.         rem_5:FireServer("ok")
  251.         workspace.CurrentCamera.CameraSubject=camera
  252.         end
  253.    
  254. end)
  255.  
  256. mouse.KeyDown:connect(function(e)
  257.     e = e:lower()
  258.     if e == "n" then
  259.  
  260.         rem_7:FireServer("Hello...")
  261.     end
  262. end)
  263.  
  264. mouse.KeyDown:connect(function(e)
  265.     e = e:lower()
  266.     if e == "m" then
  267.  
  268.         rem_7:FireServer("die now...")
  269.     end
  270. end)
  271.  
  272.  
  273.  
  274. mouse.KeyDown:connect(function(e)
  275.     e = e:lower()
  276.     if e == "b" then
  277.  
  278.         rem_7:FireServer(talk[math.random(1,#talk)])
  279.     end
  280. end)
  281.  
  282.  
  283. mouse.KeyDown:connect(function(e)
  284.     e = e:lower()
  285.     if e == "k" then
  286.  
  287.         rem_7:FireServer("Cringe...")
  288.     end
  289. end)
  290.  
  291.  
  292.  
  293.  
  294. local shoot = false
  295.  
  296.  
  297. mouse.Button1Down:connect(function(e)
  298.    
  299.     shoot=true
  300.     shooot()
  301.  
  302. end)
  303.  
  304. mouse.Button1Up:connect(function(E)
  305.    
  306.     shoot=false
  307.    
  308. end)
  309.  
  310.  
  311. mouse.KeyDown:connect(function(e)
  312.     e = e:lower()
  313.     if e == "q" then
  314.         rem_2:FireServer("reset")
  315.     end
  316. end)
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324. local run = game:GetService("RunService")
  325. local ha = 2
  326.  
  327. run.RenderStepped:Connect(function(x)
  328.     local nice = ha*x
  329.    
  330.    
  331.    
  332.    
  333.    
  334.    
  335.     local tor = player.Character:FindFirstChild("HumanoidRootPart")
  336.     if tor then
  337.         tor.CanCollide=false
  338.         camera.CFrame = tor.CFrame + Vector3.new(0,1.5,0)
  339.     end
  340.    
  341.     if hu then
  342.     hu.Name=math.random()
  343.     end
  344. end)
  345.  
  346. function shooot()
  347. while true do
  348.     wait(.01)
  349.  
  350.  
  351.     if shoot == true then
  352.         rem_3:FireServer(mouse.Target)
  353.             rem_4:FireServer(mouse.Hit.p)
  354.         else
  355.             break
  356.     end
  357. end
  358. end
  359.  
  360. ]],player.Backpack)
  361.     else
  362.         torso.Anchored=true
  363.     end
  364.  
  365.     --remotes
  366.     local rem_1 = Instance.new("RemoteEvent",player.Backpack) rem_1.Name="1"   
  367.     local rem_2 = Instance.new("RemoteEvent",player.Backpack) rem_2.Name="2"
  368.     local rem_3 = Instance.new("RemoteEvent",player.Backpack) rem_3.Name="3"
  369.     local rem_4 = Instance.new("RemoteEvent",player.Backpack) rem_4.Name="4"
  370.     local rem_5 = Instance.new("RemoteEvent",player.Backpack) rem_5.Name="5"
  371.     local rem_6 = Instance.new("RemoteEvent",player.Backpack) rem_6.Name="6"
  372.     local rem_7 = Instance.new("RemoteEvent",player.Backpack) rem_7.Name="7"
  373.  
  374.     --remotes
  375.  
  376.  
  377.  
  378.  
  379.     function Kill(die)
  380.         die:BreakJoints()
  381.         for i,g in pairs(die:GetDescendants()) do
  382.             if g:IsA("BasePart") then
  383.                 local dies = Instance.new("Sound",g) dies.SoundId="rbxassetid://340722848" dies.PlayOnRemove=true dies.Volume=10
  384.                 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
  385.                 local effect = Instance.new("Explosion",workspace) effect.Position=dead.Position effect.Visible=false
  386.                 local mesh = g:FindFirstChildOfClass("SpecialMesh")
  387.                 if mesh then
  388.                     mesh.Parent=dead
  389.                 end
  390.                 g:Destroy()
  391.             end
  392.         end
  393.     end
  394.  
  395.  
  396.    
  397.  
  398.  
  399.  
  400.  
  401.     --///////////////////////////////// Onserver events
  402.     rem_1.OnServerEvent:Connect(function(pl, wariohax)
  403.         torso.CFrame = wariohax + Vector3.new(0,3,0)
  404.     end)
  405.  
  406.     rem_2.OnServerEvent:Connect(function(pl, ok)
  407.         player:LoadCharacter() oldpos = player.Character.HumanoidRootPart
  408.         wait(.5)
  409.         char()
  410.  
  411.     end)
  412.  
  413.     rem_3.OnServerEvent:Connect(function(pl, shoot)
  414.  
  415.         if shoot.Parent.ClassName == "Model" then
  416.             Kill(shoot.Parent)
  417.         elseif shoot.Parent.Parent.ClassName == "Model" then
  418.             Kill(shoot.Parent.Parent)
  419.         end
  420.  
  421.     end)
  422.  
  423.  
  424. local bem = nil
  425.  
  426.     rem_4.OnServerEvent:Connect(function(pl, shoot)
  427.         local one = math.random(0,220)
  428.         local two = math.random(0,220)
  429.         local three = math.random(0,220)
  430.         local coll = ColorSequence.new(Color3.new(one,two,three))
  431. local shot=mod.head:FindFirstChildOfClass('Sound')
  432. if shot then
  433. shot:Play()
  434. else
  435.         local shot = Instance.new("Sound",mod.head) shot.SoundId="rbxassetid://904440937" shot.Volume=9
  436. end
  437.  
  438.         local att = Instance.new("Attachment",workspace.Terrain) att.Position = mod.head.Position + Vector3.new(0,4,0)
  439.  
  440.         local att2 = Instance.new("Attachment",workspace.Terrain) att2.Position = shoot
  441.         local beam = Instance.new("Beam",workspace.Terrain) beam.Enabled=true beam.Color = coll
  442.          beam.FaceCamera=true beam.Attachment0 = att beam.Attachment1=att2
  443.         wait(.1)
  444.         beam:Destroy() att2:Destroy() att:Destroy()
  445.  
  446.     end)
  447.  
  448.     rem_5.OnServerEvent:Connect(function(pl,fsedbf)
  449.         char()
  450.     end)
  451.    
  452.     rem_6.OnServerEvent:Connect(function(n,N)
  453.         local r=workspace.Terrain:FindFirstChild(Nam)
  454.         if r then
  455.             r:Destroy()
  456.         end
  457.     end)
  458.    
  459.     local talk = false
  460.     rem_7.OnServerEvent:Connect(function(pl,TEXT)
  461.         if talk == false then
  462.             talk=true
  463.             text.Text=TEXT
  464.             wait(2)
  465.             talk=false
  466.             text.Text = "coolkid"
  467.         end
  468.        
  469.     end)
  470.  
  471. end
  472.  
  473.  
  474. if player.Character then
  475.  
  476.     local h = player.Character:FindFirstChild("HumanoidRootPart")
  477.     if h then
  478.         oldpos = h
  479.         char()
  480.     else
  481.         local hez = player.Character:FindFirstChild("Head")
  482.         if hez then
  483.             oldpos = hez
  484.             char()
  485.         else
  486.             char()
  487.         end
  488.     end
  489. else
  490.     char()
  491. end
  492.  
  493.  
  494. game.Players.PlayerAdded:Connect(function(funky)
  495.     if funky then
  496.         if funky.Name == player.Name then
  497.             player=funky
  498.             local faker = workspace:FindFirstChild(name)
  499.             if faker then
  500.                 faker:Destroy()
  501.             end
  502.             oldpos=player.Character:WaitForChild("HumanoidRootPart")
  503.  
  504.            
  505.             char()
  506.             wait()
  507.         end
  508.     end
  509. end)
  510.  
  511. local fonts = Enum.Font:GetEnumItems()
  512.  
  513. local muu = {"rbxassetid://435019840","rbxassetid://5983321651","rbxassetid://4849992951","rbxassetid://844654533"}
  514.  
  515. local run = game:GetService("RunService")
  516. local sec = 5
  517. run.Heartbeat:Connect(function(WHAT)
  518.     local nice = sec * WHAT
  519.    
  520.     local rain =  Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))--BrickColor.r--colors[math.random(1,#colors)]
  521.     local model = workspace:FindFirstChild(name)
  522.     if model then
  523.        
  524.         local leg2 = model:FindFirstChild("Right Leg")
  525.         if leg2 then
  526.             leg2.Color=rain
  527.  
  528.         else
  529.             char()
  530.         end
  531.         local leg1 = model:FindFirstChild("Left Leg")
  532.         if leg1 then
  533.             leg1.Color=rain
  534.         else
  535.             char()
  536.         end
  537.         local arm2 = model:FindFirstChild("left arm")
  538.         if arm2 then
  539.             arm2.Color=rain
  540.         else
  541.             char()
  542.         end
  543.         local arm1 = model:FindFirstChild("right arm")
  544.         if arm1 then
  545.             arm1.Color=rain
  546.         else
  547.             char()
  548.         end
  549.         local to = model:FindFirstChild("HumanoidRootPart")
  550.         if to then
  551.             local musicp = workspace.Terrain:FindFirstChild(Nam)
  552.             if musicp then
  553.                 musicp.Position=to.Position
  554.                 local sn = musicp:FindFirstChildOfClass("Sound")
  555.                 if sn then
  556.                     if sn.IsPlaying==false then
  557.                          musicp:Destroy()
  558.                     end
  559.                 else
  560.                     local s = Instance.new("Sound",musicp) s.SoundId="rbxassetid://5983321651" s:Play() s.Volume=10  s.Name="musc"
  561.  
  562.                 end
  563.             else
  564.                 local MM = Instance.new("FlagStand",workspace.Terrain) MM.Name = Nam  MM.Transparency=1 MM.CanCollide=false MM.Anchored=true MM.Size=Vector3.new(0,0,0)
  565.                 local s = Instance.new("Sound",MM) s.SoundId=muu[math.random(1,#muu)] s:Play() s.Volume=9  s.Name="musc"
  566.                
  567.             end
  568.            
  569.             to.Color=rain
  570.             local funky = to:FindFirstChildOfClass("Motor")
  571.             if funky then
  572.                     funky.DesiredAngle=math.random(-1000,1000)
  573.             end
  574.         else
  575.             char()
  576.             end
  577.            
  578.         local he = model:FindFirstChild("head")
  579.         if he then
  580.             local li = he:FindFirstChildOfClass("PointLight")
  581.             if li then
  582.                 li.Color=rain
  583.             end
  584.             local face = he:FindFirstChildOfClass("Decal")
  585.             if face then
  586.                 face.Color3=Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
  587.             end
  588.             local fr = he:FindFirstChild("FrameHolder")
  589.             if fr then
  590.                 local fram = fr:FindFirstChild("Frame")
  591.                 if fram then
  592.                     local FR = fram:FindFirstChild("TextLabel")
  593.                     if FR then
  594.                         FR.Font = fonts[math.random(1,#fonts)]
  595.  
  596.                         FR.TextColor3=rain
  597.                     end
  598.                 end
  599.                 end
  600. he.Color=rain
  601.  
  602.         else
  603.             char()
  604.         end
  605.     else
  606.         char()
  607.     end
  608.  
  609. end)
RAW Paste Data