Prephy

Shadow v7

May 2nd, 2021 (edited)
1,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 30.15 KB | None | 0 0
  1. wait()
  2. player=owner
  3. local running=false
  4. function run()
  5.  
  6.     if running==false then
  7.         running=true
  8.         local lerp=.25
  9.  
  10.  
  11.  
  12.  
  13.  
  14.         name=nil
  15.         oldpos = nil
  16.         NAme= string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  17.         camname =  "<<"..player.Name..">>"
  18.         local tweenservice = game:GetService("TweenService")
  19.         local debris = game:GetService("Debris")
  20.         HEA=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  21.         timeposition=0
  22.         armLeft=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  23.         armRight=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  24.         legLeft=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  25.         legRight=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  26.         torrso=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  27.         local remo1=false
  28.         local remo2=false
  29.         local remo3=false
  30.         local remo4=false
  31.         local remo5=false
  32.         local remo6=false
  33.         local remo7=false
  34.         local remo8=false
  35.         local remo9=false
  36.         local remo10=false
  37.         local remo11=false
  38.         local remo12=false
  39.         local shooting=false
  40.         partenum={"FlagStand","Part"}
  41.  
  42.  
  43.  
  44.  
  45.         function localscript()
  46.             NLS([[
  47.            
  48.             player = game:GetService("Players").LocalPlayer
  49. mouse = player:GetMouse()
  50. Speed=3 --moving speed
  51. camstuff = false
  52. forward=false
  53. backward=false
  54. left=false
  55. right=false
  56. up=false
  57. down=false
  58. shooting=false
  59. model = "<<"..player.Name..">>"
  60. script.Disabled=true
  61.  
  62.  
  63.  
  64. mouse.KeyDown:Connect(function(kk)
  65.     kk:lower()
  66.     if kk=="k" then
  67.         local camer = workspace.Terrain:FindFirstChild(model)
  68.         if camer then
  69.             local rem10 = camer:FindFirstChild('10')
  70.             if rem10 then
  71.                 rem10:FireServer('reset')
  72.             end
  73.         end
  74.     end
  75. end)
  76.  
  77.  
  78.  
  79. mouse.KeyDown:Connect(function(kk)
  80.     kk:lower()
  81.     if kk=="w" then
  82.         camstuff=false
  83.         forward=true
  84.     end
  85. end)
  86.  
  87. mouse.KeyUp:Connect(function(kk)
  88.     kk:lower()
  89.     if kk=="w" then
  90.         forward=false
  91.     end
  92. end)
  93.  
  94. mouse.KeyDown:Connect(function(kk)
  95.     kk:lower()
  96.     if kk=="s" then
  97.         camstuff=false
  98.         backward=true
  99.     end
  100. end)
  101.  
  102. mouse.KeyUp:Connect(function(kk)
  103.     kk:lower()
  104.     if kk=="s" then
  105.         backward=false
  106.     end
  107. end)
  108.  
  109. mouse.KeyDown:Connect(function(kk)
  110.     kk:lower()
  111.     if kk=="a" then
  112.         camstuff=false
  113.         left=true
  114.     end
  115. end)
  116.  
  117. mouse.KeyUp:Connect(function(kk)
  118.     kk:lower()
  119.     if kk=="a" then
  120.         left=false
  121.     end
  122. end)
  123.  
  124. mouse.KeyDown:Connect(function(kk)
  125.     kk:lower()
  126.     if kk=="d" then
  127.         camstuff=false
  128.         right=true
  129.     end
  130. end)
  131.  
  132. mouse.KeyUp:Connect(function(kk)
  133.     kk:lower()
  134.     if kk=="d" then
  135.         right=false
  136.     end
  137. end)
  138.  
  139. mouse.KeyDown:Connect(function(kk)
  140.     kk:lower()
  141.     if kk=="t" then
  142.         local camer = workspace.Terrain:FindFirstChild(model)
  143.         if camer then
  144.             local rem2 = camer:FindFirstChild('2')
  145.             if rem2 then
  146.                 rem2:FireServer('refit')
  147.  
  148.             end
  149.  
  150.         end
  151.     end
  152. end)
  153.  
  154. mouse.KeyDown:Connect(function(kk)
  155.     kk:lower()
  156.     if kk=="j" then
  157.         local camer = workspace.Terrain:FindFirstChild(model)
  158.         if camer then
  159.             local rem3 = camer:FindFirstChild('3')
  160.             if rem3 then
  161.                 rem3:FireServer(mouse.Target)
  162.  
  163.             end
  164.  
  165.         end
  166.     end
  167. end)
  168.  
  169.  
  170. mouse.KeyDown:Connect(function(kk)
  171.     kk:lower()
  172.     if kk=="m" then
  173.         local camer = workspace.Terrain:FindFirstChild(model)
  174.         if camer then
  175.             local rem7 = camer:FindFirstChild('7')
  176.             if rem7 then
  177.                 rem7:FireServer('get nilled')
  178.  
  179.             end
  180.  
  181.         end
  182.     end
  183. end)
  184.  
  185. mouse.KeyDown:Connect(function(kk)
  186.     kk:lower()
  187.     if kk=="n" then
  188.         local camer = workspace.Terrain:FindFirstChild(model)
  189.         if camer then
  190.             local rem4 = camer:FindFirstChild('4')
  191.             if rem4 then
  192.                 rem4:FireServer('hehe die')
  193.  
  194.             end
  195.  
  196.         end
  197.     end
  198. end)
  199.  
  200.  
  201.  
  202. mouse.KeyDown:Connect(function(kk)
  203.     kk:lower()
  204.     if kk=="l" then
  205.         camstuff=false
  206.         local camer = workspace.Terrain:FindFirstChild(model)
  207.         if camer then
  208.             local rem5 = camer:FindFirstChild('5')
  209.             if rem5 then
  210.                 rem5:FireServer('reset')
  211.  
  212.             end
  213.  
  214.         end
  215.     end
  216. end)
  217.  
  218. mouse.KeyDown:Connect(function(kk)
  219.     kk:lower()
  220.     if kk=="z" then
  221.         camstuff=false
  222.         local camer = workspace.Terrain:FindFirstChild(model)
  223.         if camer then
  224.             local rem6 = camer:FindFirstChild('6')
  225.             if rem6 then
  226.                 rem6:FireServer(mouse.Hit)
  227.  
  228.             end
  229.            
  230.         end
  231.     end
  232. end)
  233.  
  234.  
  235. mouse.KeyDown:Connect(function(kk)
  236.     kk:lower()
  237.     if kk=="e" then
  238.         camstuff=false
  239.         up=true
  240.     end
  241. end)
  242.  
  243. mouse.KeyUp:Connect(function(kk)
  244.     kk:lower()
  245.     if kk=="e" then
  246.         up=false
  247.     end
  248. end)
  249.  
  250. mouse.KeyDown:Connect(function(kk)
  251.     kk:lower()
  252.     if kk=="q" then
  253.         camstuff=false
  254.         down=true
  255.     end
  256. end)
  257.  
  258. mouse.KeyUp:Connect(function(kk)
  259.     kk:lower()
  260.     if kk=="q" then
  261.         down=false
  262.     end
  263. end)
  264.  
  265.  
  266.  
  267. mouse.Button1Down:Connect(function(kk)
  268.     shooting=true
  269.  
  270. end)
  271.  
  272. mouse.Button1Up:Connect(function(kk)
  273.     shooting=false
  274.  
  275. end)
  276.  
  277.  
  278.  
  279.  
  280. run = game:GetService("RunService")
  281. sec=2
  282. run.Heartbeat:Connect(function(ok)
  283.     local   WHAT=sec * ok
  284.     local   part = workspace.Terrain:FindFirstChild(model)
  285.     if part then
  286.  
  287.         if shooting==true then
  288.             --camstuff=true
  289.             local camer = workspace.Terrain:FindFirstChild(model)
  290.             if camer then
  291.                 local rem11 = camer:FindFirstChild('11')
  292.                 if rem11 then
  293.                     rem11:FireServer(mouse.Hit)
  294.  
  295.                 end
  296.                 local rem12 = camer:FindFirstChild('12')
  297.                 if rem12 then
  298.                     rem12:FireServer(mouse.Target)
  299.  
  300.                 end
  301.             end
  302.  
  303.         end
  304.     end
  305. end)
  306.  
  307. while true do
  308.     wait(0.03)
  309.     local part = workspace.Terrain:FindFirstChild(model)
  310.     if part then
  311.         local cam = workspace.CurrentCamera
  312.             cam.CameraSubject=part
  313.     local camOrientation = cam.CFrame-cam.CFrame.Position
  314.    
  315.         if forward==true then
  316.             local camer = workspace.Terrain:FindFirstChild(model)
  317.             if camer then
  318.                 local rem1 = camer:FindFirstChild('1')
  319.                 if rem1 then
  320.                 rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,0,-Speed))
  321.                 end
  322.                 end
  323.     end
  324.         if backward==true then
  325.            
  326.             local camer = workspace.Terrain:FindFirstChild(model)
  327.             if camer then
  328.                 local rem1 = camer:FindFirstChild('1')
  329.                 if rem1 then
  330.                     rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,0,Speed)*CFrame.Angles(0,3.15,0))
  331.                 end
  332.             end
  333.            
  334.     end
  335.         if left==true then
  336.             local camer = workspace.Terrain:FindFirstChild(model)
  337.             if camer then
  338.                 local rem1 = camer:FindFirstChild('1')
  339.                 if rem1 then
  340.                     rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(-Speed,0,0))
  341.                 end
  342.             end
  343.            
  344.            
  345.     end
  346.         if right==true then
  347.             local camer = workspace.Terrain:FindFirstChild(model)
  348.             if camer then
  349.                 local rem1 = camer:FindFirstChild('1')
  350.                 if rem1 then
  351.                     rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(Speed,0,0))
  352.                 end
  353.             end
  354.            
  355.            
  356.     end
  357.         if up==true then
  358.             local camer = workspace.Terrain:FindFirstChild(model)
  359.             if camer then
  360.                 local rem1 = camer:FindFirstChild('1')
  361.                 if rem1 then
  362.                     rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,Speed,0))
  363.                 end
  364.             end
  365.            
  366.     end
  367.         if down==true then
  368.             local camer = workspace.Terrain:FindFirstChild(model)
  369.             if camer then
  370.                 local rem1 = camer:FindFirstChild('1')
  371.                 if rem1 then
  372.                     rem1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,-Speed,0))
  373.                 end
  374.             end
  375.         end
  376.         end
  377. end
  378.  
  379.  
  380.            
  381.            
  382.            
  383.             ]],player.Backpack)
  384.         end
  385.  
  386.  
  387.  
  388.  
  389.         function Move(die)
  390.             for i,g in pairs(die:GetDescendants()) do
  391.                 if g:IsA("BasePart") then
  392.                     g.Position=Vector3.new(9e9,-100,9e9)
  393.                 end
  394.             end
  395.         end
  396.  
  397.         local kill=false
  398.         local died=nil
  399.         function Kill(g)
  400.             if g then
  401.                 local ccc = g.Parent:FindFirstChildOfClass('Humanoid')
  402.                 if ccc then
  403.                     local mo = ccc.Parent
  404.                     local HHa = workspace:FindFirstChild(NAme)
  405.                     if HHa then
  406.                         --[[
  407.                         for i,o in pairs(mo:GetDescendants()) do
  408.                             if o:IsA("BasePart") then
  409.                                 mo.Parent=HHa
  410.                             end
  411.                         end
  412.                         ]]
  413.                     --  mo.Parent=HHa
  414.                     end
  415.                     mo:BreakJoints()
  416.                
  417.  
  418.                     ccc:Destroy()
  419.                     for i,v in pairs(g.Parent:GetDescendants()) do
  420.                         if v:IsA("BasePart") then
  421.  
  422.                             v.Parent=HHa
  423.                             v.Material='Neon'
  424.                             v.Color = Color3.fromRGB(0, 0, 0)
  425.                             local info = TweenInfo.new(1.5)
  426.                             local goal = {}
  427.                             goal.Transparency = 1
  428.                             local t = tweenservice:Create(v,info,goal)
  429.                             t:Play()
  430.  
  431.                             local bp = Instance.new("BodyVelocity",v)
  432.                             bp.MaxForce = Vector3.new(0,9e9,0)
  433.  
  434.                             t.Completed:Connect(function()
  435.                                 local ball = Instance.new(partenum[math.random(1,#partenum)],HHa)
  436.                                 ball.Shape = Enum.PartType.Ball
  437.                                 ball.Size = Vector3.new(0,0,0)
  438.                                 ball.CFrame = v.CFrame
  439.                                 ball.Material = Enum.Material.Neon
  440.                                 ball.Color = Color3.fromRGB(0, 0, 0)
  441.                                 ball.Anchored = true
  442.                                 ball.CanCollide = false
  443.                                 ball.Massless = true
  444.                                 debris:AddItem(ball,5)
  445.  
  446.                                 local info2 = TweenInfo.new(1.5)
  447.                                 local goal2 = {}
  448.                                 goal2.Size = Vector3.new(4,4,4)
  449.                                 goal2.Transparency = 1
  450.                                 local t2 = tweenservice:Create(ball,info2,goal2)
  451.                                 t2:Play()
  452.                                 v:Destroy()
  453.                             end)
  454.  
  455.  
  456.                         end
  457.  
  458.  
  459.                     end
  460.                 else
  461.                     local HHa = workspace:FindFirstChild(NAme)
  462.                     if HHa then
  463.  
  464.                         g.Parent=HHa
  465.                         g.Material='Neon'
  466.                         g.Color = Color3.fromRGB(0, 0, 0)
  467.                         local info = TweenInfo.new(1.5)
  468.                         local goal = {}
  469.                         goal.Transparency = 1
  470.                         local t = tweenservice:Create(g,info,goal)
  471.                         t:Play()
  472.  
  473.                         local bp = Instance.new("BodyVelocity",g)
  474.                         bp.MaxForce = Vector3.new(9e9,9e9,9e9)
  475.  
  476.                         t.Completed:Connect(function()
  477.                             local ball = Instance.new(partenum[math.random(1,#partenum)],HHa)
  478.                             ball.Shape = Enum.PartType.Ball
  479.                             ball.Size = Vector3.new(0,0,0)
  480.                             ball.CFrame = g.CFrame
  481.                             ball.Material = Enum.Material.Neon
  482.                             ball.Color = Color3.fromRGB(0, 0, 0)
  483.                             ball.Anchored = true
  484.                             ball.CanCollide = false
  485.                             ball.Massless = true
  486.                             debris:AddItem(ball,5)
  487.  
  488.                             local info2 = TweenInfo.new(1.5)
  489.                             local goal2 = {}
  490.                             goal2.Size = Vector3.new(4,4,4)
  491.                             goal2.Transparency = 1
  492.                             local t2 = tweenservice:Create(ball,info2,goal2)
  493.                             t2:Play()
  494.                             g:Destroy()
  495.                         end)
  496.                     else
  497.                         g:Destroy()
  498.  
  499.                     end
  500.  
  501.                 end
  502.            
  503.             end
  504.  
  505.         end
  506.  
  507.  
  508.         local ran=false
  509.         local came = false
  510.         local run = game:GetService("RunService")
  511.         see=2
  512.         run.Heartbeat:Connect(function(ok)
  513.             local haha = see * ok
  514.  
  515.             local campart = workspace.Terrain:FindFirstChild(camname)
  516.             if campart then
  517.  
  518.                 local rem = campart:FindFirstChild('fgds')
  519.                 if rem then
  520.                     if came==true then
  521.                         came=false
  522.                         rem.OnServerEvent:Connect(function(pl, Position)
  523.                             local HHa = workspace:FindFirstChild(NAme)
  524.                             if HHa then
  525.                                 HHa.CFrame=Position
  526.                             end
  527.                         end)
  528.                     end
  529.                 else
  530.                     local camrem = Instance.new("RemoteEvent",campart) camrem.Name="fgds"
  531.                     came=true
  532.                 end
  533.  
  534.  
  535.                 local rem1 = campart:FindFirstChild('1')
  536.                 if rem1 then
  537.                     if remo1==true then
  538.                         remo1=false
  539.                         rem1.OnServerEvent:Connect(function(plr, ThePosition)
  540.                             local HHa = workspace:FindFirstChild(NAme)
  541.                             if HHa then
  542.                                 HHa.CFrame=HHa.CFrame:Lerp(ThePosition,lerp)   
  543.                             end
  544.                         end)
  545.                     end
  546.                 else
  547.                     remo1=true
  548.                     local rem_1 = Instance.new("RemoteEvent",campart) rem_1.Name="1"
  549.                 end
  550.  
  551.  
  552.                 local rem2 = campart:FindFirstChild('2')
  553.                 if rem2 then
  554.                     if remo2==true then
  555.                         remo2=false
  556.                         rem2.OnServerEvent:Connect(function(plr, ok)
  557.                             char()
  558.                         end)
  559.                     end
  560.                 else
  561.                     remo2=true
  562.                     local rem_2 = Instance.new("RemoteEvent",campart) rem_2.Name="2"
  563.                 end
  564.  
  565.  
  566.                 local rem3 = campart:FindFirstChild('3')
  567.                 if rem3 then
  568.                     if remo3==true then
  569.                         remo3=false
  570.  
  571.                         rem3.OnServerEvent:Connect(function(plr, target)
  572.                             if target.Parent.ClassName == "Model" then
  573.                                 Move(target.Parent)
  574.  
  575.                             elseif target.Parent.Parent.ClassName == "Model" then
  576.                                 Move(target.Parent.Parent)
  577.                             end
  578.                         end)
  579.                     end
  580.                 else
  581.                     remo3=true
  582.                     local rem_3 = Instance.new("RemoteEvent",campart) rem_3.Name="3"
  583.                 end
  584.  
  585.  
  586.                 local rem4 = campart:FindFirstChild('4')
  587.                 if rem4 then
  588.                     if remo4==true then
  589.                         remo4=false
  590.  
  591.                         rem4.OnServerEvent:Connect(function(plr, RIGHT)
  592.                         end)
  593.                     end
  594.                 else
  595.                     remo4=true
  596.                     local rem_4 = Instance.new("RemoteEvent",campart) rem_4.Name="4"
  597.                 end
  598.                 local rem5 = campart:FindFirstChild('5')
  599.                 if rem5 then
  600.                     if remo5==true then
  601.                         remo5=false
  602.  
  603.                         rem5.OnServerEvent:Connect(function(plr, YES)
  604.  
  605.                             campart:Destroy()
  606.                             local pla = workspace:FindFirstChild(NAme)
  607.                             if pla then
  608.                                 pla:Destroy()
  609.                             else
  610.                                 refit()
  611.                             end
  612.  
  613.  
  614.                         end)
  615.                     end
  616.                 else
  617.                     remo5=true
  618.                     local rem_5 = Instance.new("RemoteEvent",campart) rem_5.Name="5"
  619.                 end
  620.  
  621.                 local rem6 = campart:FindFirstChild('6')
  622.                 if rem6 then
  623.                     if remo6==true then
  624.                         remo6=false
  625.                         rem6.OnServerEvent:Connect(function(plr, pos)
  626.  
  627.                             local HHH = workspace:FindFirstChild(NAme)
  628.                             if HHH then
  629.                                 HHH.CFrame=pos + Vector3.new(0,5,0)
  630.                             end
  631.  
  632.                         end)
  633.                     end
  634.                 else
  635.                     remo6=true
  636.                     local rem_6 = Instance.new("RemoteEvent",campart) rem_6.Name="6"
  637.                 end
  638.  
  639.                 local rem7 = campart:FindFirstChild('7')
  640.                 if rem7 then
  641.                     if remo7==true then
  642.                         remo7=false
  643.                         rem7.OnServerEvent:Connect(function(plr, something)
  644.                             local pp=   game.Players:FindFirstChild(player.Name)
  645.                             if pp then
  646.                                 print('not in use')
  647.                             end
  648.                         end)
  649.                     end
  650.                 else
  651.                     remo7=true
  652.                     local rem_7 = Instance.new("RemoteEvent",campart) rem_7.Name="7" --not in use
  653.                 end
  654.  
  655.  
  656.  
  657.                 local rem8 = campart:FindFirstChild('8')
  658.                 if rem8 then
  659.                     if remo8==true then
  660.                         remo8=false
  661.  
  662.                         rem8.OnServerEvent:Connect(function(plr, something)
  663.                             --not in use
  664.                         end)
  665.                     end
  666.                 else
  667.                     remo8=true
  668.                     local rem_8 = Instance.new("RemoteEvent",campart) rem_8.Name="8" --not in use
  669.                 end
  670.  
  671.                 local rem9 = campart:FindFirstChild('9')
  672.                 if rem9 then
  673.                     if remo9==true then
  674.                         remo9=false
  675.  
  676.                         rem9.OnServerEvent:Connect(function(plr, lookvector)
  677.                             --local HHa = workspace:FindFirstChild(NAme)
  678.                             --if HHa then
  679.                             --  HHa.CFrame=lookvector  
  680.                             --end
  681.                         end)
  682.                     end
  683.                 else
  684.                     remo9=true
  685.                     local rem_9 = Instance.new("RemoteEvent",campart) rem_9.Name="9"
  686.                 end
  687.                 local rem10 = campart:FindFirstChild('10')
  688.                 if rem10 then
  689.                     if remo10==true then
  690.                         remo10=false
  691.                         rem10.OnServerEvent:Connect(function(plr, newpos)
  692.                             local Player = game.Players:FindFirstChild(player.Name)
  693.                             if Player then
  694.                                 player:LoadCharacter()  local hum = player.Character:FindFirstChild("HumanoidRootPart")
  695.                                 if hum then
  696.                                     oldpos=hum.CFrame
  697.                                 end
  698.                                 local HHa = workspace:FindFirstChild(NAme)
  699.                                 if HHa then
  700.                                     HHa.CFrame=oldpos
  701.  
  702.                                 end
  703.  
  704.                             else
  705.                                 local templat = workspace:FindFirstChildOfClass("Part")
  706.                                 if templat then
  707.                                     local HHa = workspace:FindFirstChild(NAme)
  708.                                     if HHa then
  709.                                         HHa.Position=templat.Position + Vector3.new(0,10,0)
  710.  
  711.                                     end
  712.                                 else
  713.                                     local HHa = workspace:FindFirstChild(NAme)
  714.                                     if HHa then
  715.                                         HHa.Position=Vector3.new(0,10,0)
  716.                                     end
  717.                                 end
  718.                             end
  719.                         end)
  720.                     end
  721.                 else
  722.                     remo10=true
  723.                     local rem_10 = Instance.new("RemoteEvent",campart) rem_10.Name="10"
  724.                 end
  725.  
  726.                 local rem11 = campart:FindFirstChild('11')
  727.                 if rem11 then
  728.                     attack=false
  729.                     if remo11==true then
  730.                         remo11=false
  731.                         rem11.OnServerEvent:Connect(function(plr, target)
  732.                             if shooting==true then
  733.                                 shooting=false
  734.  
  735.  
  736.                                 local HHa = workspace:FindFirstChild(NAme)
  737.                                 if HHa then
  738.                                     local arm = HHa:FindFirstChild(armRight)
  739.                                     if arm then
  740.                                         attack=true
  741.                                         local coll = ColorSequence.new(Color3.new(0, 0, 0))
  742.                                         local shot = HHa:FindFirstChild('boom')
  743.                                         if shot then
  744.                                             shot.TimePosition=.1
  745.                                             shot:Play()
  746.                                         else
  747.                                             local shot = Instance.new("Sound",HHa) shot.SoundId="rbxassetid://6012216349" shot.PlaybackSpeed=.4 shot.TimePosition=.1 shot.Volume=9 shot.Name='boom' shot:Play()
  748.                                         end
  749.                                         local att = Instance.new("Attachment",workspace.Terrain) att.CFrame = arm.CFrame*CFrame.new(0,-.6,0)
  750.                                         local att2 = Instance.new("Attachment",workspace.Terrain) att2.Position = target.Position
  751.                                         local beam = Instance.new("Beam",arm) beam.Enabled=true beam.Color = coll
  752.                                         beam.FaceCamera=true beam.Attachment0 = att beam.Attachment1=att2
  753.                                         wait(.1)
  754.                                         beam:Destroy() att2:Destroy() att:Destroy()
  755.                                     end
  756.  
  757.                                 else
  758.                                     print('nn')
  759.  
  760.                                 end
  761.                             end
  762.                         end)
  763.                     end
  764.  
  765.                 else
  766.                     remo11=true
  767.                     local rem_11 = Instance.new("RemoteEvent",campart) rem_11.Name="11"
  768.                 end
  769.  
  770.  
  771.                 local rem12 = campart:FindFirstChild('12')
  772.                 if rem12 then
  773.                     if remo12==true then
  774.                         remo12=false
  775.                         rem12.OnServerEvent:Connect(function(plr, target)
  776.                             if target then
  777.                                 local what =target.Size
  778.                                 local size =what.x
  779.                                 if what.y >= size then
  780.                                     size = what.y
  781.                                 end
  782.                                 if what.z >= size then
  783.                                     size = what.z
  784.                                 end
  785.                                 if size <= 30 then
  786.                                     local HHa = workspace:FindFirstChild(NAme)
  787.                                     if HHa then
  788.                                         if target.Parent==HHa then
  789.  
  790.                                         else
  791.                                             shooting=true
  792.                                             Kill(target)
  793.                                         end
  794.                                     end
  795.  
  796.                                 end
  797.  
  798.                                 --[[
  799.                                 if target.Parent.ClassName == "Model" then
  800.                                     Kill(target.Parent)
  801.                                 elseif target.Parent.Parent.ClassName == "Model" then
  802.                                     shooting=true
  803.                                     Kill(target.Parent.Parent)
  804.                                 end
  805.                                 ]]
  806.                             end
  807.                         end)
  808.                     end
  809.                 else
  810.                     remo12=true
  811.                     local rem_12 = Instance.new("RemoteEvent",campart) rem_12.Name="12"
  812.                 end
  813.  
  814.             end
  815.  
  816.  
  817.  
  818.             local pla = game.Players:FindFirstChild(player.Name)
  819.             if pla then
  820.                 local cha = workspace:FindFirstChild(player.Name)
  821.                 if cha then
  822.                     char()
  823.                     localscript()
  824.                 end
  825.             end
  826.         end)
  827.  
  828.  
  829.         function char()
  830.             local pla = game.Players:FindFirstChild(player.Name)
  831.             if pla then
  832.                 name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  833.                 local mod = Instance.new("Model") mod.Name=name mod.Parent=nil
  834.                 player.Character=mod
  835.  
  836.  
  837.  
  838.             end
  839.  
  840.         end
  841.  
  842.         function camera()
  843.             local cam = Instance.new("NegateOperation") cam.Name=camname cam.CanTouch=false cam.Size=Vector3.new(0,0,0) cam.Anchored=true cam.CanCollide=false
  844.             local HHa = workspace:WaitForChild(NAme)
  845.             if HHa then
  846.                 cam.CFrame=HHa.CFrame
  847.                 cam.Parent=workspace.Terrain
  848.             else
  849.                 cam.Parent=workspace.Terrain
  850.             end
  851.         end
  852.  
  853.         function refithead()
  854.             local HHa = workspace:FindFirstChild(NAme)
  855.             if HHa then
  856.                 HEA=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  857.                 local head = Instance.new(partenum[math.random(1,#partenum)],HHa) head.Name=HEA head.Size=Vector3.new(2,1,1)  head.Anchored=true head.Color=Color3.new() head.Material=Enum.Material.Neon head.Reflectance=-2 head.CanTouch=false
  858.                 local mesh = Instance.new("SpecialMesh",head) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25) mesh.Name="Mesh"
  859.             end
  860.         end
  861.  
  862.         function refit_torso()
  863.             local HHa = workspace:FindFirstChild(NAme)
  864.             if HHa then
  865.                 torrso=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  866.                 local rootpart = Instance.new(partenum[math.random(1,#partenum)],HHa) rootpart.Name=torrso rootpart.Anchored=true rootpart.CanCollide=true  rootpart.Size=Vector3.new(2,2,1)
  867.                 rootpart.Color=Color3.new() rootpart.Material=Enum.Material.Neon rootpart.Reflectance=-1 rootpart.CanTouch=false
  868.             end
  869.         end
  870.  
  871.  
  872.         function refit_rightleg()
  873.             local HHa = workspace:FindFirstChild(NAme)
  874.             if HHa then
  875.                 legRight=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  876.                 local rightleg = Instance.new(partenum[math.random(1,#partenum)],HHa) rightleg.Name=legRight rightleg.Size=Vector3.new(1,2,1) rightleg.Anchored=true
  877.                 rightleg.Color=Color3.new() rightleg.Material=Enum.Material.Neon rightleg.Reflectance=-1 rightleg.CanTouch=false
  878.             end
  879.  
  880.         end
  881.  
  882.  
  883.         function refit_leftleg()
  884.             local HHa = workspace:FindFirstChild(NAme)
  885.             if HHa then
  886.                 legLeft=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  887.                 local leftleg = Instance.new(partenum[math.random(1,#partenum)],HHa) leftleg.Name=legLeft leftleg.Size=Vector3.new(1,2,1) leftleg.Anchored=true
  888.                 leftleg.Color=Color3.new() leftleg.Material=Enum.Material.Neon leftleg.Reflectance=-1 leftleg.CanTouch=false
  889.             end
  890.         end
  891.  
  892.         function refit_rightarm()
  893.             local HHa = workspace:FindFirstChild(NAme)
  894.             if HHa then
  895.                 armRight=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  896.                 local armright = Instance.new(partenum[math.random(1,#partenum)],HHa) armright.Name=armRight armright.Size=Vector3.new(1,2,1) armright.Anchored=true
  897.                 armright.Color=Color3.new() armright.Material=Enum.Material.Neon armright.Reflectance=-1 armright.CanTouch=false
  898.  
  899.             end
  900.         end
  901.  
  902.  
  903.         function refit_leftarm()
  904.             local HHa = workspace:FindFirstChild(NAme)
  905.             if HHa then
  906.                 armLeft=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  907.                 local armleft = Instance.new(partenum[math.random(1,#partenum)],HHa) armleft.Name=armLeft armleft.Size=Vector3.new(1,2,1) armleft.Anchored=true
  908.                 armleft.Color=Color3.new() armleft.Material=Enum.Material.Neon armleft.Reflectance=-1 armleft.CanTouch=false
  909.             end
  910.         end
  911.  
  912.  
  913.  
  914.  
  915.         function refit()
  916.             NAme=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  917.             local rootpart = Instance.new(partenum[math.random(1,#partenum)]) rootpart.Name=NAme rootpart.Anchored=true rootpart.CanCollide=true rootpart.CFrame=oldpos rootpart.Size=Vector3.new(0,0,0) rootpart.Transparency=1
  918.             rootpart.CanTouch=false  rootpart.Locked=true rootpart.Parent=workspace
  919.  
  920.  
  921.  
  922.  
  923.         end
  924.  
  925.         game.Players.PlayerAdded:Connect(function(plr)
  926.             if plr.Name==player.Name then
  927.                 player=plr
  928.                 wait(1)
  929.                 char()
  930.                 localscript()
  931.  
  932.             end
  933.         end)
  934.  
  935.  
  936.         if player.Character then
  937.             local hum = player.Character:FindFirstChild("HumanoidRootPart")
  938.             if hum then
  939.                 oldpos=hum.CFrame
  940.                 char()
  941.             else
  942.                 print("too bad")
  943.             end
  944.         end
  945.  
  946.  
  947.  
  948.  
  949.  
  950.         second = 1
  951.         up=.24
  952.         thingy=false
  953.         legs=2
  954.         move=.4
  955.         leftright=-0.05
  956.         updown=0
  957.         fun = 0
  958.         Legs=1.9
  959.  
  960.  
  961.         --animation stuff
  962.         run.Heartbeat:Connect(function(HM)
  963.             local what = second * HM
  964.             wait(.54)
  965.             if thingy==false then
  966.                 if up<0.00 then
  967.                     thingy=true
  968.                 else
  969.                     updown=updown-0.001
  970.                     fun=fun+0.001
  971.                     leftright=leftright+0.001
  972.                     move=move-0.001
  973.                     legs=legs-0.001
  974.                     up=up-0.002
  975.                     Legs=Legs+0.0014
  976.  
  977.                 end
  978.             end
  979.  
  980.             if thingy==true then
  981.                 if up<0.25 then
  982.                     up=up+0.002
  983.                     fun=fun-0.001
  984.                     updown=updown+0.001
  985.                     leftright=leftright-0.001
  986.                     legs=legs+0.001
  987.                     move=move+0.001
  988.                     Legs=Legs-0.0014
  989.  
  990.  
  991.                 else
  992.                     thingy=false
  993.                 end
  994.             end
  995.         end)
  996.  
  997.  
  998.         local twist = .3
  999.         local look = 0
  1000.         local what = 0
  1001.         local gl=.5
  1002.         local GL=.5
  1003.         local aa=0
  1004.  
  1005.  
  1006.         --glitches
  1007.  
  1008.         run.Heartbeat:Connect(function(HM)
  1009.             local what = second * HM
  1010.             local change = math.random(1,100)
  1011.             if change==40 then
  1012.                 twist=-math.random()
  1013.                 wait()
  1014.                 twist=math.random()
  1015.                 twist=-math.random()
  1016.                 wait()
  1017.                 gl=math.random()
  1018.                 twist=math.random()
  1019.                 twist=.3
  1020.                 wait()
  1021.                 GL=-math.random()
  1022.                 aa=math.random()
  1023.                 gl=math.random()
  1024.                 gl=math.random()
  1025.                 wait()
  1026.                 GL=math.random()
  1027.                 aa=-math.random()
  1028.                 gl=math.random()
  1029.                 GL=-math.random()
  1030.                 gl=math.random()
  1031.                 wait()
  1032.                 gl=-math.random()
  1033.                 GL=math.random()
  1034.                 gl=math.random()
  1035.                 gl=.5
  1036.                 aa=0
  1037.                 GL=.5
  1038.  
  1039.             end
  1040.  
  1041.             if change==40 then
  1042.                 look=math.random()
  1043.                 wait()
  1044.                 look=-math.random()
  1045.                 wait()
  1046.                 look=math.random()
  1047.                 look=-math.random()
  1048.                 wait()
  1049.                 look=0
  1050.             end
  1051.  
  1052.             if change==60 then
  1053.                 wait()
  1054.                 what=math.random()
  1055.                 what=math.random()
  1056.                 what=-math.random()
  1057.                 what=math.random()
  1058.                 wait()
  1059.                 what=-math.random()
  1060.                 wait()
  1061.                 what=0
  1062.  
  1063.             end
  1064.  
  1065.         end)
  1066.  
  1067.  
  1068.         localscript()
  1069.  
  1070.  
  1071.         --Character setup and animation
  1072.  
  1073.         run.Heartbeat:Connect(function(HM)
  1074.             local what = second * HM
  1075.             local HHa = workspace:FindFirstChild(NAme)
  1076.             if HHa then
  1077.                 local cam = workspace.Terrain:FindFirstChild(camname)
  1078.                 if cam then
  1079.                     cam.CFrame=HHa.CFrame
  1080.                 else
  1081.                     camera()
  1082.                 end
  1083.  
  1084.                 local sound = HHa:FindFirstChildOfClass("Sound")
  1085.                 if sound then  
  1086.                     timeposition=sound.TimePosition
  1087.                 else
  1088.                     local music = Instance.new("Sound",HHa) music.Name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150)) music.SoundId='rbxassetid://645716375' music.Volume=5 music.Looped=true music:Play() music.TimePosition=timeposition music.PlayBackSpeed=.8
  1089.                 end
  1090.  
  1091.                 local Tor = HHa:FindFirstChild(torrso)
  1092.                 if Tor then
  1093.  
  1094.                     Tor.CFrame=HHa.CFrame*CFrame.Angles(-.3, 0, 0)*CFrame.new(leftright,updown,fun)
  1095.                     --joints
  1096.  
  1097.                     local RIGHTleg = HHa:FindFirstChild(legRight)
  1098.                     if RIGHTleg then
  1099.                         RIGHTleg.CFrame=Tor.CFrame*CFrame.new(-.5,-Legs,-.2)*CFrame.Angles(.2, 0, 0)
  1100.                     end
  1101.  
  1102.                     local LEFTleg = HHa:FindFirstChild(legLeft)
  1103.                     if LEFTleg then
  1104.                         LEFTleg.CFrame=Tor.CFrame*CFrame.new(.5,-Legs,-.2)*CFrame.Angles(.2, 0, 0)
  1105.                     end
  1106.  
  1107.                     local RIGHTarm = HHa:FindFirstChild(armRight)
  1108.                     if RIGHTarm then
  1109.                         local bbeam = RIGHTarm:FindFirstChildOfClass('Beam')
  1110.                         if bbeam then
  1111.                             attack=true
  1112.                         else
  1113.                             attack=false
  1114.                         end
  1115.                         if attack==false then
  1116.                             RIGHTarm.CFrame=HHa.CFrame*CFrame.new(-1.5,-up,-move)*CFrame.Angles(0,gl,0)
  1117.                         else
  1118.                             RIGHTarm.CFrame=HHa.CFrame*CFrame.new(-1.5,.24,-move)*CFrame.Angles(1.45,0,0)
  1119.  
  1120.                         end
  1121.                     end
  1122.  
  1123.                     local LEFTarm = HHa:FindFirstChild(armLeft)
  1124.                     if LEFTarm then
  1125.                         LEFTarm.CFrame=HHa.CFrame*CFrame.new(1.5,-up,-.4)*CFrame.Angles(0,GL,0)
  1126.                     end
  1127.  
  1128.                     local HEAD = HHa:FindFirstChild(HEA)
  1129.                     if HEAD then
  1130.                         HEAD.CFrame=Tor.CFrame*CFrame.new(0,1.5,what)*CFrame.Angles(twist, look, what)
  1131.                     end
  1132.                 end
  1133.  
  1134.             end
  1135.  
  1136.  
  1137.  
  1138.         end)
  1139.  
  1140.  
  1141.         function refit_mesh()
  1142.             local HH = workspace:FindFirstChild(NAme)
  1143.             if HH then
  1144.                 local hed = HH:FindFirstChild(HEA)
  1145.                 if hed then
  1146.                     local mesh = Instance.new("SpecialMesh",hed) mesh.MeshId="rbxassetid://1104623876" mesh.Scale = Vector3.new(1.25, 1.25, 1.25) mesh.Name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  1147.                 end
  1148.             end
  1149.  
  1150.         end
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.         run.Heartbeat:Connect(function(HM)
  1158.             local what = second * HM
  1159.             local HH = workspace:FindFirstChild(NAme)
  1160.             if HH then
  1161.                 HH.Transparency=1
  1162.                 oldpos=HH.CFrame
  1163.  
  1164.                 local Torso = HH:FindFirstChild(torrso)
  1165.                 if Torso then
  1166.                     Torso.Anchored=true
  1167.                     Torso.Color=Color3.new()
  1168.                 else
  1169.                     refit_torso()
  1170.                 end
  1171.  
  1172.                 local RightArm = HH:FindFirstChild(armRight)
  1173.                 if RightArm then
  1174.                     RightArm.Anchored=true
  1175.                     RightArm.Color=Color3.new()
  1176.                 else
  1177.                     refit_rightarm()
  1178.                 end
  1179.  
  1180.                 local LeftArm = HH:FindFirstChild(armLeft)
  1181.                 if LeftArm then
  1182.                     LeftArm.Anchored=true
  1183.                     LeftArm.Color=Color3.new()
  1184.                 else
  1185.                     refit_leftarm()
  1186.                 end
  1187.  
  1188.                 local LeftLeg = HH:FindFirstChild(legLeft)
  1189.                 if LeftLeg then
  1190.                     LeftLeg.Anchored=true
  1191.                     LeftLeg.Color=Color3.new()
  1192.                 else
  1193.                     refit_leftleg()
  1194.                 end
  1195.  
  1196.                 local RightLeg = HH:FindFirstChild(legRight)
  1197.                 if RightLeg then
  1198.                     RightLeg.Anchored=true
  1199.                     RightLeg.Color=Color3.new()
  1200.                 else
  1201.                     refit_rightleg()
  1202.                 end
  1203.  
  1204.                 local hhhead = HH:FindFirstChild(HEA)
  1205.                 if hhhead then
  1206.                     hhhead.Anchored=true
  1207.                     hhhead.Color=Color3.new()
  1208.                     local mesher = hhhead:FindFirstChildOfClass("SpecialMesh")
  1209.                     if mesher then
  1210.                     else
  1211.                         refit_mesh()
  1212.                     end
  1213.                     local fac = hhhead:FindFirstChildOfClass("Texture")
  1214.                     if fac then
  1215.                     else
  1216.                             local face = Instance.new("Texture",hhhead) --face.Name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
  1217.                     face.Texture='rbxassetid://26852961'
  1218.  
  1219.  
  1220.                         end
  1221.                 else
  1222.                     refithead()
  1223.                 end
  1224.  
  1225.  
  1226.  
  1227.                 HH.Anchored=true
  1228.                 oldpos=HH.CFrame
  1229.  
  1230.  
  1231.             else
  1232.                 refit()
  1233.             end
  1234.         end)
  1235.  
  1236.     end
  1237.  
  1238.  
  1239. end
  1240.  
  1241. run()
Add Comment
Please, Sign In to add comment