Prephy

mr.Warden

May 1st, 2021 (edited)
926
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 29.21 KB | None | 0 0
  1. --have we met before?
  2. --made by Protofer_S
  3.  
  4. wait()
  5. player =  owner
  6. script.Parent=nil
  7. local Name = ">>>"..player.Name.."<<<"
  8. local posname = '<<<<'..player.Name..'>>>>'
  9. local attack=false
  10. local shooting=false
  11. local run = game:GetService("RunService")
  12. local rate_second = 60
  13. local oldpos=nil
  14. local timeposition=0
  15. local soundid='rbxassetid://1986764073'
  16. partenum={"FlagStand","Part"}
  17. --local lerp=.8
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. function localscript()
  26.     NLS([[
  27.    
  28. player = game:GetService("Players").LocalPlayer
  29. local run = game:GetService("RunService")
  30. local speed = .2
  31. local name = '>>>'..player.Name..'<<<'
  32. local posname= '<<<<'..player.Name..'>>>>'
  33. local rate = 50
  34. mouse = player:GetMouse()
  35. local shooting=false
  36. local forward=false
  37. local backward=false
  38. local Left=false
  39. local Right=false
  40. local up=false
  41. local down=false
  42. local position=nil
  43. local attack=false
  44.  
  45.  
  46. mouse.KeyDown:Connect(function(key)
  47.    
  48.     key:lower()
  49.     if key=='m' then
  50.         local rempart = game.Chat:FindFirstChild(name)
  51.         if rempart then
  52.             local rem4 = rempart:FindFirstChild('4')
  53.             if rem4 then
  54.                 if attack==false then
  55.                     attack=true
  56.                     rem4:FireServer(true)
  57.                 else
  58.                     attack=false
  59.                     rem4:FireServer(false)
  60.  
  61.                 end
  62.             end
  63.             end
  64.         end
  65. end)
  66.  
  67.  
  68. run.RenderStepped:Connect(function(ok)
  69.     local whats_this = rate*ok
  70.    
  71.    
  72. end)
  73.  
  74.  
  75. mouse.KeyDown:Connect(function(key)
  76.     key:lower()
  77.     if key=='l' then
  78.         local rempart = game.Chat:FindFirstChild(name)
  79.         if rempart then
  80.             local rem2 = rempart:FindFirstChild('2')
  81.             if rem2 then
  82.                 rem2:FireServer('switch')
  83.             end
  84.         end
  85.     end
  86. end)
  87.  
  88. mouse.KeyDown:Connect(function(key)
  89.     key:lower()
  90.     if key=='x' then
  91.         local rempart = game.Chat:FindFirstChild(name)
  92.         if rempart then
  93.             local rem3 = rempart:FindFirstChild('3')
  94.             if rem3 then
  95.                 rem3:FireServer('refit')
  96.             end
  97.         end
  98.     end
  99. end)
  100.  
  101. mouse.KeyDown:Connect(function(key)
  102.     key:lower()
  103.     if key=='w' then
  104.         forward=true
  105.     end
  106. end)
  107.  
  108. mouse.KeyUp:Connect(function(key)
  109.     key:lower()
  110.     if key=='w' then
  111.         forward=false
  112.     end
  113. end)
  114.  
  115. mouse.KeyDown:Connect(function(key)
  116.     key:lower()
  117.     if key=='s' then
  118.         backward=true
  119.     end
  120. end)
  121.  
  122. mouse.KeyUp:Connect(function(key)
  123.     key:lower()
  124.     if key=='s' then
  125.         backward=false
  126.     end
  127. end)
  128.  
  129. mouse.KeyDown:Connect(function(key)
  130.     key:lower()
  131.     if key=='a' then
  132.         Left=true
  133.     end
  134. end)
  135.  
  136. mouse.KeyUp:Connect(function(key)
  137.     key:lower()
  138.     if key=='a' then
  139.         Left=false
  140.     end
  141. end)
  142.  
  143. mouse.KeyDown:Connect(function(key)
  144.     key:lower()
  145.     if key=='d' then
  146.         Right=true
  147.     end
  148. end)
  149.  
  150. mouse.KeyUp:Connect(function(key)
  151.     key:lower()
  152.     if key=='d' then
  153.         Right=false
  154.     end
  155. end)
  156.  
  157. mouse.KeyDown:Connect(function(key)
  158.     key:lower()
  159.     if key=='e' then
  160.         up=true
  161.     end
  162. end)
  163.  
  164. mouse.KeyUp:Connect(function(key)
  165.     key:lower()
  166.     if key=='e' then
  167.         up=false
  168.     end
  169. end)
  170.  
  171. mouse.KeyDown:Connect(function(key)
  172.     key:lower()
  173.     if key=='q' then
  174.         down=true
  175.     end
  176. end)
  177.  
  178. mouse.KeyUp:Connect(function(key)
  179.     key:lower()
  180.     if key=='q' then
  181.         down=false
  182.     end
  183. end)
  184.  
  185. mouse.Button1Down:Connect(function()
  186.    
  187.         shooting=true  
  188.    
  189.        
  190.        
  191. end)
  192.  
  193.  
  194. mouse.Button1Up:Connect(function()
  195. shooting=false
  196.    
  197. end)
  198.  
  199.  
  200. mouse.KeyDown:Connect(function(key)
  201.     key:lower()
  202.     if key=='n' then
  203.         local rempart = game.Chat:FindFirstChild(name)
  204.         if rempart then
  205.             local rem5 = rempart:FindFirstChild('5')
  206.             if rem5 then
  207.                 rem5:FireServer('nil')
  208.             end
  209.         end end
  210. end)
  211.  
  212. local camname=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))
  213.  
  214.  
  215. mouse.KeyUp:Connect(function(key)
  216.     key:lower()
  217.     if key=='b' then
  218.         local campart = workspace:FindFirstChild(camname)
  219.         if campart then
  220.             campart:Destroy()
  221.         else
  222.             cam()
  223.         end
  224.     end
  225. end)
  226.  
  227. mouse.KeyUp:Connect(function(key)
  228.     key:lower()
  229.     if key=='z' then
  230.         local hh = workspace:FindFirstChild(camname)
  231.         if hh then
  232.             hh.Position=mouse.Hit.p + Vector3.new(0,5,0)
  233.         end
  234.     end
  235. end)
  236.  
  237. mouse.KeyDown:Connect(function(key)
  238.     key:lower()
  239.     if key=='k' then
  240.         local hh = workspace:FindFirstChild(camname)
  241.         if hh then
  242.            
  243.             local templ = workspace:FindFirstChildOfClass('Part')
  244.             if templ then
  245.                 hh.Position=templ.Position+Vector3.new(0,4,0)
  246.             else
  247.                 hh.Position=Vector3.new(0,4,0)
  248.             end
  249.            
  250.            
  251.         end
  252.        
  253.     end
  254. end)
  255.  
  256.  
  257. function cam()
  258.     camname=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))
  259.     local camera = Instance.new('FlagStand') camera.Name=camname camera.Anchored=true camera.Size=Vector3.new(0,0,0)  camera.Transparency=1
  260.     local pos=workspace.Terrain:FindFirstChild(posname)
  261.     if pos then
  262.         position=pos
  263.         camera.CFrame=pos.CFrame
  264.         camera.Parent=workspace
  265.         pos:Destroy()
  266.     else
  267.         camera.Parent=workspace camera.CFrame=position.CFrame  
  268.  
  269.     end
  270.    
  271.    
  272.    
  273.    
  274. end
  275.  
  276.  
  277.  
  278.  
  279. run.RenderStepped:Connect(function(ok)
  280.     local whats_this = rate*ok
  281.     local Came = workspace.CurrentCamera
  282.     local camOrientation = Came.CFrame-Came.CFrame.Position
  283.  
  284.     local campart = workspace:FindFirstChild(camname)
  285.     if campart then
  286.         campart.Anchored=true
  287.         campart.CanCollide=false
  288.         campart.Transparency=1
  289.         position=campart
  290.         Came.CameraSubject=campart
  291.         if forward==true then
  292.             campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,0,-speed)
  293.        
  294.         end
  295.        
  296.         if backward==true then
  297.             campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,0,speed)*CFrame.Angles(0,3.15,0)
  298.  
  299.         end
  300.        
  301.         if Left==true then
  302.             campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(-speed,0,0)
  303.  
  304.         end
  305.        
  306.         if Right==true then
  307.             campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(speed,0,0)
  308.  
  309.         end
  310.        
  311.         if up==true then
  312.             campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,speed,0)
  313.  
  314.         end
  315.        
  316.         if down==true then
  317.             campart.CFrame=CFrame.new(campart.Position)*camOrientation*CFrame.new(0,-speed,0)
  318.  
  319.         end
  320.        
  321.         local rempart = game.Chat:FindFirstChild(name)
  322.         if rempart then
  323.             local move = rempart:FindFirstChild('1')
  324.             if move then
  325.                 move:FireServer(campart.CFrame)
  326.             end
  327.         end
  328.     else
  329.        
  330.         cam()
  331.     end
  332. end)
  333.  
  334. while true do wait(.1)
  335.     if attack==true then
  336.         if shooting==true then
  337.             local rempart = game.Chat:FindFirstChild(name)
  338.             if rempart then
  339.             local fire = rempart:FindFirstChild('shooter')
  340.             if fire then
  341.                     fire:FireServer(mouse.Target)
  342.                     end
  343.             end
  344.         end
  345.     end
  346.    
  347. end
  348.    
  349.    
  350.     ]],player.Backpack)
  351. end
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361. function gon()
  362.     local model= Instance.new("Model",workspace) player.Character=model model.Parent=nil
  363.    
  364. end
  365.  
  366. localscript()
  367.  
  368. function positioner(position)
  369.     local pos = Instance.new("NegateOperation",workspace.Terrain)  pos.Name=posname pos.Anchored=true pos.Transparency=1 pos.CanCollide=false pos.Size=Vector3.new(0,0,0)
  370.     pos.Position=position
  371.    
  372. end
  373.  
  374.  
  375.  
  376.  
  377.  
  378. function remotepart()
  379. local PART =    Instance.new("NegateOperation",game.Chat) PART.Name=Name
  380. end
  381.  
  382.  
  383. local Head_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))
  384. function HeaD(tor)
  385.     Head_name = 'head'  local hed = Instance.new(partenum[math.random(1,#partenum)],tor) hed.Name=Head_name hed.Size=Vector3.new(1.2, 1.2, 1.2) hed.Anchored=true hed.Color=Color3.new() hed.CanTouch=false hed.Locked=true hed.CanCollide=false
  386.     local mesh = Instance.new("SpecialMesh",hed) mesh.MeshId="rbxassetid://4904532191"mesh.TextureId='http://www.roblox.com/asset/?id=4904528793' mesh.Scale = Vector3.new(1, 1, 1) 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))
  387.  
  388.  
  389.  
  390. end
  391.  
  392. function top(Mod)
  393.     local Top = Instance.new(partenum[math.random(1,#partenum)],Mod) Top.Size=Vector3.new(1.097, 1.251, 1.221) Top.Name='Top' Top.Shape=Enum.PartType.Cylinder Top.Material='Neon' Top.Color=Color3.new()  Top.Anchored=true Top.CanTouch=false Top.Locked=true Top.CanCollide=false
  394. end
  395.  
  396. function hat(Mod)
  397.     local Hat = Instance.new(partenum[math.random(1,#partenum)],Mod) Hat.Name='Hat' Hat.Size=Vector3.new(0.131, 1.961, 1.961) Hat.Shape=Enum.PartType.Cylinder Hat.Anchored=true Hat.Color=Color3.new() Hat.CanTouch=true Hat.Locked=true Hat.Material='Neon' Hat.CanCollide=false
  398. end
  399.  
  400.  
  401. function mesh(h)
  402.     local mesh = Instance.new("SpecialMesh",h) mesh.MeshId="rbxassetid://4904532191"mesh.TextureId='http://www.roblox.com/asset/?id=4904528793' mesh.Scale = Vector3.new(1, 1, 1) 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))
  403. end
  404.  
  405. local model_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))
  406. function model()
  407.     model_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))
  408.     local mod = Instance.new("Model",workspace) mod.Name=model_name
  409.     local shirt = Instance.new("Shirt",mod) shirt.ShirtTemplate='rbxassetid://676428254'
  410.     local pant = Instance.new("Pants",mod) pant.PantsTemplate='rbxassetid://1723127756'
  411. end
  412.  
  413. function shirt(m)
  414.     local shirt = Instance.new("Shirt",m) shirt.ShirtTemplate='rbxassetid://676428254'
  415. end
  416.  
  417. function pant(m)
  418.     local pant = Instance.new("Pants",m) pant.PantsTemplate='rbxassetid://1723127756'
  419. end
  420.  
  421. local Torso_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))
  422. function torso(mod)
  423.     Torso_name = 'Torso'    local Torso = Instance.new(partenum[math.random(1,#partenum)],mod) Torso.Name=Torso_name Torso.Anchored=true Torso.Size=Vector3.new(2,2,1)  Torso.Locked=true  Torso.CanTouch=false
  424.     local mus = Instance.new("Sound",Torso) mus.Volume=2 mus.Looped=true mus.SoundId=soundid mus.TimePosition=timeposition mus:Play()
  425. end
  426.  
  427. arm1 = 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))
  428. function leftarm(mod)
  429.     arm1 ='Left Arm'local armle = Instance.new(partenum[math.random(1,#partenum)],mod) armle.Name=arm1 armle.Size=Vector3.new(1,2,1) armle.Anchored=true
  430.     armle.CanTouch=false armle.Locked=true armle.CanCollide=false
  431. end
  432.  
  433. armr = 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))
  434. function rightarm(mod)
  435.     armr = 'Right Arm'local righta = Instance.new(partenum[math.random(1,#partenum)],mod) righta.Size=Vector3.new(1,2,1) righta.Name=armr righta.Anchored=true righta.CanTouch=false righta.Locked=true righta.CanCollide=false
  436. end
  437.  
  438. eye_one= 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))
  439. function eyeone(h)
  440.     eye_one= 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))
  441.     local eye = Instance.new(partenum[math.random(1,#partenum)],h) eye.Size=Vector3.new(0.1, 0.65, 0.261) eye.Material='Neon' eye.Anchored=true eye.Name=eye_one eye.CanTouch=false eye.Locked=true
  442.     local eyemesh = Instance.new("SpecialMesh",eye) eyemesh.MeshType=Enum.MeshType.Sphere eye.CanCollide=false
  443. end
  444.  
  445. eye_two= 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))
  446. function eyetwo(h)
  447.     eye_two= 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))
  448.     local eye = Instance.new(partenum[math.random(1,#partenum)],h) eye.Size=Vector3.new(0.1, 0.65, 0.261) eye.Material='Neon' eye.Anchored=true eye.Name=eye_two  eye.CanTouch=false eye.Locked=true
  449.     local eyemesh = Instance.new("SpecialMesh",eye) eyemesh.MeshType=Enum.MeshType.Sphere eye.CanCollide=false
  450.  
  451. end
  452.  
  453.  
  454. rightname = 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))
  455. function rightleg(mod)
  456.     rightname = 'Right Leg' local rightle = Instance.new(partenum[math.random(1,#partenum)],mod) rightle.Size=Vector3.new(1,2,1) rightle.Name=rightname rightle.Anchored=true
  457.     rightle.CanTouch=true rightle.Locked=true rightle.CanCollide=false
  458.  
  459. end
  460.  
  461. leftname = 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))
  462. function leftleg(mod)
  463.     leftname = 'Left Leg'
  464.         local leftle = Instance.new(partenum[math.random(1,#partenum)],mod) leftle.Size=Vector3.new(1,2,1) leftle.Name=leftname leftle.Anchored=true
  465.     leftle.CanTouch=false leftle.Locked=true leftle.CanCollide=false
  466.     end
  467.  
  468.  
  469. function Kill(victim)
  470.    
  471.     local Model = workspace:FindFirstChild(model_name)
  472.     if Model then
  473.         local armr = Model:FindFirstChild(rightname)
  474.         if armr then
  475.        
  476.  
  477.             local size = victim.Size local CF = victim.CFrame local pos = victim.Position
  478.         victim.CFrame=CFrame.new(10e10,10e10,10e10)
  479.         victim:Destroy()
  480.         if victim then
  481.             local attach1 = Instance.new("Attachment",workspace.Terrain) attach1.Position=pos + Vector3.new(0,200,0)
  482.                 local attach2 = Instance.new("Attachment",workspace.Terrain) attach2.Position=pos + Vector3.new(math.random(-5,5),math.random(10,39),math.random(-5,5))
  483.                 local attach3 = Instance.new("Attachment",workspace.Terrain) attach3.Position=attach2.Position + Vector3.new(math.random(-5,5),math.random(10,39),math.random(-5,5))
  484.                 local attach4 = Instance.new("Attachment",workspace.Terrain) attach4.CFrame=CF
  485.                 local shot = Instance.new(partenum[math.random(1,#partenum)],Model) shot.Anchored=true shot.Position=attach4.Position shot.CanCollide=false shot.Size=Vector3.new(0,0,0)
  486.                 local mes = Instance.new("SpecialMesh",shot) mes.MeshId='rbxassetid://20329976' mes.Scale=Vector3.new(0.8, 0.3, 0.8)
  487.  
  488.             local beam1 = Instance.new("Beam",workspace.Terrain) beam1.Enabled=true beam1.Color=ColorSequence.new(Color3.new()) beam1.FaceCamera=true beam1.Attachment0=attach1 beam1.Attachment1=attach2
  489.             local beam2 = Instance.new("Beam",workspace.Terrain) beam2.Enabled=true beam2.Color=ColorSequence.new(Color3.new()) beam2.FaceCamera=true beam2.Attachment0=attach2 beam2.Attachment1=attach3
  490.             local beam3 = Instance.new("Beam",workspace.Terrain) beam3.Enabled=true beam3.Color=ColorSequence.new(Color3.new()) beam3.FaceCamera=true beam3.Attachment0=attach3 beam3.Attachment1=attach4
  491.             local dead = Instance.new(partenum[math.random(1,#partenum)],Model) dead.Size=size dead.CFrame=CF dead.Material='Glass' dead.Color=Color3.new(0.666667, 0, 0)  dead.CanCollide=false
  492.                 wait(.2)
  493.                 attach1:Destroy() attach2:Destroy() attach3:Destroy() attach4:Destroy()
  494.                 wait(.1)
  495.                 shot.Transparency=shot.Transparency+.2
  496.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  497.                 wait(.1)
  498.                 shot.Transparency=shot.Transparency+.2
  499.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  500.                 wait(.1)
  501.                 shot.Transparency=shot.Transparency+.2
  502.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  503.                 wait(.1)
  504.                 shot.Transparency=shot.Transparency+.2
  505.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  506.                 wait(.1)
  507.                 shot.Transparency=shot.Transparency+.2
  508.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  509.                 wait(.1)
  510.                 shot.Transparency=shot.Transparency+.2
  511.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  512.                 wait(.1)
  513.                 shot.Transparency=shot.Transparency+.2
  514.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  515.                 wait(.1)
  516.                 shot.Transparency=shot.Transparency+.2
  517.                 mes.Scale=mes.Scale+Vector3.new(.1,0,.1)
  518.                 wait(.1)
  519.                 shot:Destroy()
  520.                
  521.             end
  522.             end
  523.     end
  524.         end
  525.    
  526.    
  527.  
  528.  
  529.  
  530.  
  531. local rem_one=false
  532. local rem_two=false
  533. local rem_three=false
  534. local rem_four=false
  535. local rem_five=false
  536. local rem_six=false
  537.  
  538. local root = player.Character:FindFirstChild('HumanoidRootPart')
  539. if root then
  540.     oldpos=root.Position
  541.     positioner(oldpos)
  542. else
  543.     local hed = player.Character:FindFirstChild("Head")
  544.     if hed then
  545.         oldpos=hed.Position
  546.         positioner(oldpos)
  547.     end
  548. end
  549.  
  550.  
  551.  
  552. twist1 = 0 --*looks up: owo whats this?
  553. twist2 = 0 --moves head left and right
  554. twist3 = 0  --looks left and right*
  555. local twist4 = -.4
  556. local twist5=.2
  557. local twist6 = .4  
  558.  
  559. local stuff = {'.03','0','-.06','-.02','.05','-.08','.04','.06','.08','0'}
  560.  
  561. local twister1 = {'-.36','-.45','-.42','-.46','-.34','-.44'}
  562. local twister2 = {'.36','.45','.42','.46','.34','.44'}
  563. local twister3 = {'.26','.25','.22','.26','.14','.24'}
  564.  
  565. --twist haha i suck at animating
  566. run.Heartbeat:Connect(function(ok)
  567.     local h = rate_second*ok
  568.     twist1 =    stuff[math.random(#stuff)]
  569.     twist2 = stuff[math.random(#stuff)]
  570.     twist3 = stuff[math.random(#stuff)]
  571.     twist4 = twister1[math.random(#twister1)]
  572.     twist5 = twister2[math.random(#twister2)]
  573.     twist6 = twister3[math.random(#twister3)]
  574. end)
  575.  
  576. local torso_updown=2
  577. local thingy=false
  578.  
  579. local updownleg=2
  580. local updown=2
  581. local arm = 0.05
  582. run.Heartbeat:Connect(function(HM)
  583.     local what = rate_second * HM
  584.  
  585.     if thingy==false then
  586.         if torso_updown<1.5 then
  587.             thingy=true
  588.         else
  589.             torso_updown=torso_updown-0.005
  590.             updownleg=updownleg-0.0025
  591.             updown=updown-0.0014
  592.             arm=arm+0.002
  593.         end
  594.     end
  595.  
  596.     if thingy==true then
  597.         if torso_updown<2 then
  598.             torso_updown=torso_updown+0.005
  599.             updownleg=updownleg+0.0025
  600.             updown=updown+0.0014
  601.             arm=arm-0.002
  602.  
  603.  
  604.         else
  605.             thingy=false
  606.         end
  607.     end
  608. end)
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621. local Fire = false
  622.  
  623. local one=1
  624. local color= BrickColor.Random()
  625. Material = {Enum.Material.Neon,Enum.Material.Cobblestone,Enum.Material.Ice,Enum.Material.Brick,Enum.Material.Marble,Enum.Material.Wood,Enum.Material.WoodPlanks,Enum.Material.DiamondPlate,Enum.Material.Foil,Enum.Material.Granite,Enum.Material.Grass,Enum.Material.SmoothPlastic,Enum.Material.Plastic,Enum.Material.Sand,Enum.Material.Glass}
  626. --texture = {'rbxassetid://51995052','rbxassetid://235171742','rbxassetid://257526039','rbxassetid://463119983','rbxassetid://93908406','rbxassetid://1036132544','rbxassetid://430724035','rbxassetid://6199643524','rbxassetid://5219111979','rbxassetid://67331799'}
  627. local move = CFrame.new(0,0,0)
  628. run.Heartbeat:Connect(function(ok)
  629.     local noice = rate_second*ok
  630.  
  631.     local char = workspace:FindFirstChild(player.Name)
  632.     if char then
  633.         gon()
  634.         wait(.2)
  635.         localscript()
  636.     end
  637.    
  638.    
  639.    
  640.    
  641.    
  642.    
  643.    
  644.    
  645.    
  646.    
  647.    
  648.    
  649.     local Model = workspace:FindFirstChild(model_name)
  650.     if Model then
  651.         local Pant=Model:FindFirstChildOfClass('Pants')
  652.         if Pant then
  653.            
  654.         else
  655.             pant(Model)
  656.         end
  657.        
  658.         local Shirt=Model:FindFirstChildOfClass('Shirt')
  659.         if Shirt then
  660.            
  661.         else
  662.             shirt(Model)
  663.         end
  664.        
  665.         local hum = Model:FindFirstChildOfClass('Humanoid')
  666.         if hum then
  667.             hum.DisplayName=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))
  668.         else
  669.             local h = Instance.new("Humanoid",Model) h.Name=model_name h.MaxHealth=0 h.Health=0 h.HealthDisplayType=Enum.HumanoidHealthDisplayType.AlwaysOff
  670.         end
  671.     local torsopart = Model:FindFirstChild(Torso_name)
  672.             if torsopart then
  673.                
  674.  
  675.             torsopart.Transparency=0
  676.             local music = torsopart:FindFirstChildOfClass('Sound')
  677.             if music then
  678.                 if music.IsPlaying then
  679.                     timeposition=music.TimePosition
  680.                     else
  681.                     music:Play() music.TimePosition=timeposition
  682.                 end
  683.                 music.SoundId=soundid
  684.             else
  685.                 local mus = Instance.new("Sound",torsopart) mus.Volume=2 mus.Looped=true mus.SoundId=soundid mus.TimePosition=timeposition mus:Play()
  686.             end
  687.         color=BrickColor.Random()
  688.         --remotestuff
  689.     local Remotepart = game.Chat:FindFirstChild(Name)
  690.             if Remotepart then
  691.                
  692.                 local shoot = Remotepart:FindFirstChild('shooter')
  693.                 if shoot then
  694.                     if Fire==true then
  695.                         Fire=false
  696.                         shoot.OnServerEvent:Connect(function(pl, target)
  697.                             if target then
  698.                                 local what =target.Size
  699.                                 local size =what.x
  700.                                 if what.y >= size then
  701.                                     size = what.y
  702.                                 end
  703.                                 if what.z >= size then
  704.                                     size = what.z
  705.                                 end
  706.                                 if size <= 30 then
  707.                                     local HHa = workspace:FindFirstChild(model_name)
  708.                                     if HHa then
  709.                                         if target.Parent.Parent.Parent==HHa  then
  710.                                        
  711.  
  712.                                         else
  713.                                             if target.Parent.Parent==HHa then
  714.                                                
  715.                                             else
  716.                                                 if target.Parent==HHa then
  717.                                                 else
  718.                                                     Kill(target)
  719.                                                 end
  720.                                             end
  721.                                            
  722.                                             --Kill(target)
  723.                                        
  724.                                         end
  725.                                         end
  726.  
  727.                                 end
  728.  
  729.  
  730.  
  731.                             end
  732.                                
  733.                                
  734.                         end)
  735.                     end
  736.                    
  737.                 else
  738.                     local rem = Instance.new("RemoteEvent",Remotepart) rem.Name='shooter'
  739.                     Fire=true
  740.                 end
  741.                
  742.                
  743.                
  744.                
  745.                 local rem_5 = Remotepart:FindFirstChild('5')
  746.                 if rem_5 then
  747.                    
  748.                     if rem_five==true then
  749.                         rem_five=false
  750.                         rem_5.OnServerEvent:Connect(function(hm, nill)
  751.                             local pp=   game.Players:FindFirstChild(player.Name)
  752.                             if pp then
  753.                                 print('not in use')
  754.                             end
  755.                         end)
  756.                     end
  757.                 else
  758.                     local rem5 = Instance.new("RemoteEvent",Remotepart) rem5.Name='5'
  759.                     rem_five=true
  760.                 end
  761.                
  762.                 local rem4 = Remotepart:FindFirstChild('4')
  763.                 if rem4 then
  764.                     if rem_four==true then
  765.                         rem_four=false
  766.                         rem4.OnServerEvent:Connect(function(pl,falsetrue)
  767.                             attack=falsetrue
  768.                        
  769.                         end)
  770.                
  771.                        
  772.                     end
  773.                 else
  774.                     local rem_4 = Instance.new("RemoteEvent",Remotepart) rem_4.Name='4'
  775.                     rem_four=true
  776.                 end
  777.                
  778.                 local rem3 = Remotepart:FindFirstChild('3')
  779.                 if rem3 then
  780.                     if rem_three==true then
  781.                         rem_three=false
  782.                         rem3.OnServerEvent:Connect(function(pl,something)
  783.                             local mm = workspace:FindFirstChild(model_name)
  784.                             if mm then
  785.                                 mm:Destroy()
  786.                             end
  787.  
  788.                         end)
  789.                     end
  790.                    
  791.                    
  792.                 else
  793.                     local rem_3 = Instance.new("RemoteEvent",Remotepart) rem_3.Name='3'
  794.                     rem_three=true
  795.                 end
  796.                 local rem2 = Remotepart:FindFirstChild('2')
  797.                 if rem2 then
  798.                     if rem_two==true then
  799.                         rem_two=false
  800.                         rem2.OnServerEvent:Connect(function(pl,music)
  801.                             if one==1 then
  802.                                 one=2
  803.                                 soundid='rbxassetid://4700081056'
  804.                             else
  805.                                 if one==2 then
  806.                                     one=3
  807.                                     soundid='rbxassetid://943961217'
  808.                                 else
  809.                                     if one==3 then
  810.                                         one=4
  811.                                         soundid='rbxassetid://2630792822'
  812.                                     else
  813.                                         if one==4 then
  814.                                             one=5
  815.                                             soundid='rbxassetid://6506375470'
  816.                                         else
  817.                                             if one==5 then
  818.                                                 one=6
  819.                                                 soundid='rbxassetid://5983321651'  
  820.                                             else
  821.                                                 soundid='rbxassetid://1986764073'
  822.                                                 one=1
  823.                                             end
  824.                                         end
  825.                                    
  826.                                        
  827.                                     end
  828.                                    
  829.                                 end
  830.                             end
  831.                         end)
  832.                     end
  833.                 else
  834.                     local rem2 = Instance.new("RemoteEvent",Remotepart) rem2.Name='2'
  835.                     rem_two=true
  836.  
  837.                 end
  838.         local rem1 = Remotepart:FindFirstChild('1')
  839.         if rem1 then
  840.             if rem_one==true then
  841.                 rem_one=false
  842.                     rem1.OnServerEvent:Connect(function(pl,Position)
  843.                         move=Position
  844.                             --torsopart.CFrame=Position + Vector3.new(0,-2,0)
  845.                 end)
  846.             end
  847.            
  848.         else
  849.             local rem_1 = Instance.new("RemoteEvent",Remotepart) rem_1.Name='1'
  850.             rem_one=true
  851.         end
  852.        
  853.        
  854.     else
  855.         remotepart()
  856.         end
  857.         --remotestuff
  858.        
  859.  
  860.        
  861.         --character and stuff
  862.  
  863.  
  864.                                -- torsopart.CFrame=torsopart.CFrame:Lerp(move +  Vector3.new(0,-torso_updown,0),lerp)    
  865.                 torsopart.CFrame=move + Vector3.new(0,-torso_updown,0)
  866.             local a = move.X - torsopart.CFrame.X
  867.                
  868.                
  869.             if a >=50  then
  870.                 Model:Destroy()
  871.             end
  872.  
  873.             if a<= -50 then
  874.                 Model:Destroy()
  875.             end
  876.            
  877.             torsopart.Size=Vector3.new(2,2,1)
  878.             torsopart.Material=Enum.Material.Glass
  879.             torsopart.BrickColor=BrickColor.new("Medium stone grey")
  880.        
  881.         local Head = Model:FindFirstChild(Head_name)
  882.             if Head then
  883.                 Head.Material=Enum.Material.Plastic
  884.                 Head.BrickColor=BrickColor.new("Medium stone grey")
  885.                 Head.Size=Vector3.new(1.2, 1.2, 1.2)
  886.                 Head.CFrame=torsopart.CFrame*CFrame.new(0,1.5,0)*CFrame.Angles(twist2,twist3,twist1)
  887.                 local a = move.X - Head.CFrame.X
  888.                 if a >=50  then
  889.                     Model:Destroy()
  890.                 end
  891.  
  892.                 if a<= -50 then
  893.                     Model:Destroy()
  894.                 end
  895.  
  896.                 local Hat1 = Head:FindFirstChild('Hat')
  897.                 if Hat1 then
  898.                     Hat1.Color=Color3.new()
  899.                     Hat1.Material=Enum.Material.Neon
  900.                     Hat1.Size=Vector3.new(0.131, 1.961, 1.961)
  901.                     Hat1.Transparency=0
  902.                     Hat1.CFrame=Head.CFrame*CFrame.new(0,.26,0)*CFrame.Angles(0,0,1.64)
  903.                     local a = move.X - Hat1.CFrame.X
  904.                     if a >=50  then
  905.                         Model:Destroy()
  906.                     end
  907.  
  908.                     if a<= -50 then
  909.                         Model:Destroy()
  910.                     end
  911.                     local Hat2 = Hat1:FindFirstChild('Top')
  912.                     if Hat2 then
  913.                         Hat2.Color=Color3.new()
  914.                         Hat2.Material=Enum.Material.Neon
  915.                         Hat2.Transparency=0
  916.                         Hat2.Size=Vector3.new(1.097, 1.251, 1.221)
  917.                         Hat2.CFrame=Hat1.CFrame*CFrame.new(.6,0,0)*CFrame.Angles(0,0,0)
  918.                         local a = move.X - Hat2.CFrame.X
  919.                         if a >=50  then
  920.                             Model:Destroy()
  921.                         end
  922.  
  923.                         if a<= -50 then
  924.                             Model:Destroy()
  925.                         end
  926.                     else
  927.                         top(Hat1)
  928.                     end
  929.                 else
  930.                     hat(Head)
  931.                 end
  932.            
  933.                
  934.             local eye_1 = Head:FindFirstChild(eye_one)
  935.                 if eye_1 then
  936.                     eye_1.Transparency=0
  937.                     eye_1.BrickColor=color
  938.                     eye_1.Size=Vector3.new(0.1, 0.65, 0.261)
  939.                     eye_1.CFrame=Head.CFrame*CFrame.new(.16,.1,-.47)   
  940.                     local a = move.X - eye_1.CFrame.X
  941.                     if a >=50  then
  942.                         Model:Destroy()
  943.                     end
  944.  
  945.                     if a<= -50 then
  946.                         Model:Destroy()
  947.                     end
  948.                 else
  949.                 eyeone(Head)
  950.             end
  951.            
  952.             local eye_2 = Head:FindFirstChild(eye_two)
  953.                 if eye_2 then
  954.                     eye_2.Transparency=0
  955.                     eye_2.BrickColor=color
  956.                     eye_2.Size=Vector3.new(0.1, 0.65, 0.261)
  957.                     eye_2.CFrame=Head.CFrame*CFrame.new(-.16,.1,-.47)  
  958.                     local a = move.X - eye_2.CFrame.X
  959.                     if a >=50  then
  960.                         Model:Destroy()
  961.                     end
  962.  
  963.                     if a<= -50 then
  964.                         Model:Destroy()
  965.                     end
  966.             else
  967.                 eyetwo(Head)
  968.             end
  969.             local hmmesh = Head:FindFirstChildOfClass('SpecialMesh')
  970.             if hmmesh then
  971.                     hmmesh.Scale = Vector3.new(1, 1, 1)
  972.             else
  973.                 mesh(Head)
  974.             end
  975.         else
  976.             HeaD(Model)
  977.         end
  978.        
  979.         local rightArm = Model:FindFirstChild(armr)
  980.             if rightArm then
  981.                 rightArm.Material=Enum.Material.Glass
  982.                 rightArm.BrickColor=BrickColor.new("Medium stone grey")
  983.                 rightArm.Size=Vector3.new(1,2,1)
  984.                 rightArm.Transparency=0
  985.                 if attack==true then
  986.                     rightArm.CFrame=torsopart.CFrame*CFrame.new(1.4,1,-.4)*CFrame.Angles(-4,twist4,twist6)
  987.  
  988.                 else
  989.                     rightArm.CFrame=torsopart.CFrame*CFrame.new(1.4,-arm,0)*CFrame.Angles(twist5,twist4,twist6)
  990.  
  991.                 end
  992.                 local a = move.X - rightArm.CFrame.X
  993.                 if a >=50  then
  994.                     Model:Destroy()
  995.                 end
  996.  
  997.                 if a<= -50 then
  998.                     Model:Destroy()
  999.                 end
  1000.             else
  1001.             rightarm(Model)
  1002.         end
  1003.        
  1004.         local leftArm = Model:FindFirstChild(arm1)                      
  1005.             if leftArm then
  1006.                 leftArm.Material=Enum.Material.Glass
  1007.                 leftArm.BrickColor=BrickColor.new("Medium stone grey")
  1008.                 leftArm.Size=Vector3.new(1,2,1)
  1009.                 leftArm.Transparency=0
  1010.                 leftArm.CFrame=torsopart.CFrame*CFrame.new(-1,0,.4)*CFrame.Angles(twist4,twist5,twist6)
  1011.                 local a = move.X - leftArm.CFrame.X
  1012.                 if a >=50  then
  1013.                     Model:Destroy()
  1014.                 end
  1015.  
  1016.                 if a<= -50 then
  1017.                     Model:Destroy()
  1018.                 end
  1019.         else
  1020.             leftarm(Model)
  1021.         end
  1022.        
  1023.         local leftLeg = Model:FindFirstChild(leftname)
  1024.             if leftLeg then
  1025.                 leftLeg.Material=Enum.Material.Glass
  1026.                 leftLeg.BrickColor=BrickColor.new("Medium stone grey")
  1027.                 leftLeg.Size=Vector3.new(1,2,1)
  1028.                 leftLeg.Transparency=0
  1029.                 leftLeg.CFrame=torsopart.CFrame*CFrame.new(-.5,-updown,.1)*CFrame.Angles(-.15,.05,0)
  1030.                 local a = move.X - leftLeg.CFrame.X
  1031.                 if a >=50  then
  1032.                     Model:Destroy()
  1033.                 end
  1034.  
  1035.                 if a<= -50 then
  1036.                     Model:Destroy()
  1037.                 end
  1038.  
  1039.         else
  1040.             leftleg(Model)
  1041.         end
  1042.        
  1043.         local RightLeg = Model:FindFirstChild(rightname)
  1044.             if RightLeg then
  1045.                 RightLeg.Material=Enum.Material.Glass
  1046.                 RightLeg.BrickColor=BrickColor.new("Medium stone grey")
  1047.                 RightLeg.Size=Vector3.new(1,2,1)
  1048.                 RightLeg.Transparency=0
  1049.                 RightLeg.CFrame=torsopart.CFrame*CFrame.new(.5,-updownleg, -.3)*CFrame.Angles(-.2,-.2,0)
  1050.                 local a = move.X - RightLeg.CFrame.X
  1051.                 if a >=50  then
  1052.                     Model:Destroy()
  1053.                 end
  1054.  
  1055.                 if a<= -50 then
  1056.                     Model:Destroy()
  1057.                 end
  1058.  
  1059.         else
  1060.             rightleg(Model)
  1061.         end
  1062.        
  1063.        
  1064.     else
  1065.         torso(Model)
  1066.         end
  1067.     else
  1068.         model()
  1069.     end
  1070.  
  1071. end)
Comments
Add Comment
Please, Sign In to add comment