Advertisement
ceater_nerd

japanpsygen

Jun 25th, 2023 (edited)
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 81.35 KB | None | 0 0
  1. -- Lost Psygen by Ietahuoy
  2. -- edited by ikonikbruh
  3. -- effect fixed by ceat
  4. -- ported by ceat
  5.  
  6. wait(1/60)
  7. script.Parent=nil
  8. NLS=NLS or require(13482937602)()
  9. owner=owner
  10. local plrr = game:GetService("RunService"):IsStudio() and game:GetService("Players"):GetPlayers()[1] or owner
  11. do
  12.     local gunmodel = Instance.new("Model", script)
  13.     gunmodel.Name = "GunModel"
  14.    
  15.     local joint = Instance.new("Part", gunmodel)
  16.     joint.Size = Vector3.new(0.1, 0.1, 0.1)
  17.     joint.Transparency = 1
  18.     joint.CanCollide = false
  19.     joint.Name = "Joint"
  20.    
  21.     local hole = Instance.new("Part", gunmodel)
  22.     hole.Size = Vector3.new(0.1, 0.1, 0.1)
  23.     hole.Transparency = 1
  24.     hole.CanCollide = false
  25.     hole.Name = "Hole"
  26.    
  27.     local body = Instance.new("Part", gunmodel)
  28.     body.Color = Color3.fromRGB(99, 95, 98)
  29.     body.Size = Vector3.new(4.7, 4.3, 0.8)
  30.     body.CanCollide = false
  31.     body.Name = "Handle"
  32.    
  33.     local mesh = Instance.new("SpecialMesh", body)
  34.     mesh.MeshId = "rbxassetid://4615369575"
  35.     mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  36.    
  37.     local bodyweld = Instance.new("Weld", joint)
  38.     bodyweld.Part0 = joint
  39.     bodyweld.Part1 = body
  40.     bodyweld.C0 = CFrame.new(-0.937, 0.582, -0.167) * CFrame.fromEulerAnglesYXZ(0, math.rad(165), math.rad(45))
  41.    
  42.     local holeweld = Instance.new("Weld", joint)
  43.     holeweld.Part0 = joint
  44.     holeweld.Part1 = hole
  45.     holeweld.C0 = CFrame.new(-1.68, 0.693, -0.5) * CFrame.fromEulerAnglesYXZ(math.rad(-90), 0, 0)
  46.    
  47.     gunmodel.PrimaryPart = joint
  48. end
  49. do
  50.     local knifemodel = Instance.new("Model", script)
  51.     knifemodel.Name = "KnifeModel"
  52.    
  53.     local joint = Instance.new("Part", knifemodel)
  54.     joint.Size = Vector3.new(0.1, 0.1, 0.1)
  55.     joint.Transparency = 1
  56.     joint.CanCollide = false
  57.     joint.Name = "Joint"
  58.    
  59.     local blade = Instance.new("Part", knifemodel)
  60.     blade.Size = Vector3.new(0.781, 3.647, 1.386)
  61.     blade.Transparency = 1
  62.     blade.CanCollide = false
  63.     blade.Name = "Blade"
  64.     Instance.new("BlockMesh", blade).Scale = Vector3.zero
  65.    
  66.     local a1 = Instance.new("Attachment", blade)
  67.     a1.CFrame = CFrame.new(0, -0.174, 0.993)
  68.    
  69.     local a2 = Instance.new("Attachment", blade)
  70.     a2.CFrame = CFrame.new(0, 0.161, -0.964)
  71.    
  72.     local trail = Instance.new("Trail", knifemodel)
  73.     trail.Attachment0 = a1
  74.     trail.Attachment1 = a2
  75.     trail.Color = ColorSequence.new(Color3.fromRGB(255, 251, 248))
  76.     trail.FaceCamera = false
  77.     trail.LightEmission = 1
  78.     trail.LightInfluence = 1
  79.     trail.Texture = ""
  80.     trail.TextureLength = 1
  81.     trail.TextureMode = Enum.TextureMode.Stretch
  82.     trail.Transparency = NumberSequence.new({
  83.         NumberSequenceKeypoint.new(0, 0),
  84.         NumberSequenceKeypoint.new(0.5, 0),
  85.         NumberSequenceKeypoint.new(1, 1)
  86.     })
  87.     trail.Enabled = false
  88.     trail.Lifetime = 1
  89.     trail.MaxLength = 0
  90.     trail.MinLength = 0
  91.     trail.WidthScale = NumberSequence.new({
  92.         NumberSequenceKeypoint.new(0, 1),
  93.         NumberSequenceKeypoint.new(0.5, 1),
  94.         NumberSequenceKeypoint.new(1, 0)
  95.     })
  96.    
  97.     local body = Instance.new("Part", knifemodel)
  98.     body.Color = Color3.new()
  99.     body.Size = Vector3.new(0.781, 3.647, 1.386)
  100.     body.CanCollide = false
  101.     body.Name = "Sword"
  102.    
  103.     local mesh = Instance.new("SpecialMesh", body)
  104.     mesh.MeshId = "rbxassetid://1996456880"
  105.     mesh.Scale = Vector3.new(2, 2.42, 2)
  106.    
  107.     local bodyweld = Instance.new("Weld", joint)
  108.     bodyweld.Part0 = joint
  109.     bodyweld.Part1 = body
  110.     bodyweld.C0 = CFrame.new(-2.831, 0.025, 0.017) * CFrame.fromEulerAnglesYXZ(math.rad(87.622), math.rad(90), math.rad(-180))
  111.    
  112.     local bladeweld = Instance.new("Weld", joint)
  113.     bladeweld.Part0 = joint
  114.     bladeweld.Part1 = blade
  115.     bladeweld.C0 = CFrame.new(28.028, -0.442, -7.281) * CFrame.fromEulerAnglesYXZ(math.rad(-89.903), math.rad(-90), math.rad(180))
  116.    
  117.     knifemodel.PrimaryPart = joint
  118. end
  119. local charr = plrr.Character
  120. local name = charr.Name
  121. local MainPosition=CFrame.new(0,0,0)
  122. if charr and charr:FindFirstChildOfClass("Part") then
  123.     MainPosition = charr:FindFirstChildOfClass("Part").CFrame
  124. elseif workspace:FindFirstChildOfClass("Part") then
  125.     MainPosition = workspace:FindFirstChildOfClass("Part").CFrame*CFrame.new(0,2,0)
  126. else
  127.     MainPosition = CFrame.new(0,4,0)
  128. end
  129. local names = {string.reverse(name),"GOd",string.upper(name),string.lower(name),"ImMorTalItY","dIE","ImmOrTal","KILLeR","pSyChO",string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255)),string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255)),string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255))..string.char(math.random(1,255)),"","hate",string.sub(name,math.random(0,string.len(name)))}
  130. local accs = {} local f = nil local face = nil
  131. for _, acc in pairs(charr:GetDescendants()) do
  132.     if acc:IsA'Accessory' or acc:IsA'Hat' or acc:IsA'BodyColors' or acc:IsA'Shirt' or acc:IsA'Pants' or acc:IsA'ShirtGraphic' or acc:IsA'CharacterMesh' then
  133.         table.insert(accs,acc:Clone())
  134.     elseif acc:IsA'Part' and acc.Name == "Head" and acc:FindFirstChildOfClass'Decal' then
  135.         f = acc:FindFirstChildOfClass'Decal'.Texture
  136.     end
  137. end
  138. local sn = 0
  139. local attacking = false
  140. local repeatkey = false
  141. local repeatmouse = false
  142. local Neck=CFrame.new(0,0,0)
  143. local Torso=CFrame.new(0,0,0)
  144. local LeftArm=CFrame.new(0,0,0)
  145. local RightArm=CFrame.new(0,0,0)
  146. local LeftLeg=CFrame.new(0,0,0)
  147. local RightLeg=CFrame.new(0,0,0)
  148. local GunW=CFrame.new(0,0,0)
  149. local KnifeW=CFrame.new(0,0,0)
  150. function InstanceNW(typp,anth)
  151.     local part = Instance.new(typp)
  152.     if anth ~= nil then for i,v in next, anth do pcall(function() part[i] = v end) end end
  153.     return part
  154. end
  155. function alerp(tble,animspeed)
  156.     animspeed=math.min(animspeed,1)
  157.     Torso=Torso:Lerp(tble[1],animspeed)
  158.     Neck=Neck:Lerp(tble[2],animspeed)
  159.     LeftArm=LeftArm:Lerp(tble[3],animspeed)
  160.     RightArm=RightArm:Lerp(tble[4],animspeed)
  161.     LeftLeg=LeftLeg:Lerp(tble[5],animspeed)
  162.     RightLeg=RightLeg:Lerp(tble[6],animspeed)
  163.     GunW=GunW:Lerp(tble[7],animspeed)
  164.     KnifeW=KnifeW:Lerp(tble[8],animspeed)
  165. end
  166. function loop(dur,f)
  167.     local start = os.clock()
  168.     repeat
  169.         f(game:GetService("RunService").Heartbeat:wait())
  170.     until os.clock()-start > dur
  171. end
  172. local stoped = false
  173. local W,A,S,D=false,false,false,false
  174. local fallingspeed = 0
  175. local falling = true
  176. local stopeffects = false
  177. local walkspeed = 8 local CCF=nil
  178. local goreSounds = {3739362156,4459576935,3739364168,4459571224,4459570664,4459572763,4459571342,4459571443,4459573960,3847883680,3929462189,3739335394,3929462677}
  179. local MainModel = Instance.new("Model",workspace) MainModel.Name = name MainModel.Archivable=true
  180. local EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
  181. local h=Instance.new("Part",MainModel)h.Size=Vector3.new(2,1,1)h.Color=Color3.new() h.Transparency=0 h.Anchored=true h.CanCollide=true h.Name="Head"
  182. local m=Instance.new("SpecialMesh",h)m.MeshType="Head"m.Scale=Vector3.new(1.25,1.25,1.25)
  183. local t=Instance.new("Part",MainModel)t.Material="Plastic"t.Size=Vector3.new(2,2,1)t.Color=Color3.new() t.Transparency=0 t.Anchored=true t.CanCollide=true t.Name="Torso"
  184. local ll=Instance.new("Part",MainModel)ll.Material="Plastic"ll.Size=Vector3.new(1,2,1)ll.Color=Color3.new() ll.Transparency=0 ll.Anchored=true ll.CanCollide=true ll.Name="Left Leg"
  185. local rl=Instance.new("Part",MainModel)rl.Material="Plastic"rl.Size=Vector3.new(1,2,1)rl.Color=Color3.new() rl.Transparency=0 rl.Anchored=true rl.CanCollide=true rl.Name="Right Leg"
  186. local la=Instance.new("Part",MainModel)la.Material="Plastic"la.Size=Vector3.new(1,2,1)la.Color=Color3.new() la.Transparency=0 la.Anchored=true la.CanCollide=true la.Name="Left Arm"
  187. local ra=Instance.new("Part",MainModel)ra.Material="Plastic"ra.Size=Vector3.new(1,2,1)ra.Color=Color3.new() ra.Transparency=0 ra.Anchored=true ra.CanCollide=true ra.Name="Right Arm"
  188. local hum=Instance.new("Humanoid",MainModel) hum.Name = "" hum.HealthDisplayType = "AlwaysOff"
  189. local hairat = Instance.new("Attachment") hairat.Parent = h hairat.Position = Vector3.new(0,0.6,0) hairat.Name = "HairAttachment"
  190. local hatat = Instance.new("Attachment") hatat.Parent = h hatat.Position = Vector3.new(0,0.6,0) hatat.Name = "HatAttachment"
  191. local ffat = Instance.new("Attachment") ffat.Parent = h ffat.Position = Vector3.new(0,0,-0.6) ffat.Name = "FaceFrontAttachment"
  192. local fcat = Instance.new("Attachment") fcat.Parent = h fcat.Position = Vector3.new(0,0,0) fcat.Name = "FaceCenterAttachment"
  193. local bbat = Instance.new("Attachment") bbat.Parent = t bbat.Position = Vector3.new(0,0,0.5) bbat.Name = "BodyBackAttachment"
  194. local bfat = Instance.new("Attachment") bfat.Parent = t bfat.Position = Vector3.new(0,0,-0.5) bfat.Name = "BodyFrontAttachment"
  195. local lcat = Instance.new("Attachment") lcat.Parent = t lcat.Position = Vector3.new(-1,1,0) lcat.Name = "LeftCollarAttachment"
  196. local necat = Instance.new("Attachment") necat.Parent = t necat.Position = Vector3.new(0,1,0) necat.Name = "NeckAttachment"
  197. local rcat = Instance.new("Attachment") rcat.Parent = t rcat.Position = Vector3.new(1,1,0) rcat.Name = "RightCollarAttachment"
  198. local wbat = Instance.new("Attachment") wbat.Parent = t wbat.Position = Vector3.new(0,-1,0.5) wbat.Name = "WaistBackAttachment"
  199. local wcat = Instance.new("Attachment") wcat.Parent = t wcat.Position = Vector3.new(0,-1,0) wcat.Name = "WaistCenterAttachment"
  200. local wfat = Instance.new("Attachment") wfat.Parent = t wfat.Position = Vector3.new(0,-1,-0.5) wfat.Name = "WaistFrontAttachment"
  201. local wfat = Instance.new("Attachment") wfat.Parent = ll wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftFootAttachment"
  202. local wfat = Instance.new("Attachment") wfat.Parent = rl wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightFootAttachment"
  203. local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,1,0) wfat.Name = "RightShoulderAttachment"
  204. local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightGripAttachment"
  205. local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,1,0) wfat.Name = "LeftShoulderAttachment"
  206. local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftGripAttachment"
  207. local cam = Instance.new("Part",workspace) cam.Name = ">["..plrr.Name.."]<" cam.Anchored=true cam.CanCollide=false cam.Transparency=1 cam.Size=Vector3.new()
  208. local playmus = true local mus = Instance.new("Sound") mus.Volume = 10 mus.Pitch = 0.85 mus.EmitterSize = 100 mus.SoundId = "rbxassetid://12616491652" mus.Parent = t mus.Playing = playmus mus.Looped = true
  209. local muspos = nil muspos = mus.TimePosition local fixmus = false
  210. local GunBackup = script.GunModel:Clone() script.GunModel:Destroy() local Gun = GunBackup:Clone() Gun.Parent=MainModel
  211. --for _, c in pairs(Gun:GetChildren()) do if c:IsA("BasePart") then c.Anchored = false c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) if c ~= Gun.PrimaryPart then local weldd = Instance.new("ManualWeld") weldd.Part0 = Gun.PrimaryPart weldd.Part1 = c weldd.C0 = CFrame.new() weldd.C1 = c.CFrame:inverse() * Gun.PrimaryPart.CFrame weldd.Parent = Gun.PrimaryPart end c.Locked = true end end
  212. local gw = InstanceNW("Weld",{Part0 = ra, Part1 = Gun.PrimaryPart, C0 = GunW, C1 = CFrame.new(0,0,0), Parent = Gun})
  213. local KnifeBackup = script.KnifeModel:Clone() script.KnifeModel:Destroy() local Knife = KnifeBackup:Clone() Knife.Parent=MainModel
  214. --for _, c in pairs(Knife:GetChildren()) do if c:IsA("BasePart") then c.Anchored = false c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) if c ~= Knife.PrimaryPart then local weldd = Instance.new("ManualWeld") weldd.Part0 = Knife.PrimaryPart weldd.Part1 = c weldd.C0 = CFrame.new() weldd.C1 = c.CFrame:inverse() * Knife.PrimaryPart.CFrame weldd.Parent = Knife.PrimaryPart end c.Locked = true end end
  215. local kw = InstanceNW("Weld",{Part0 = la, Part1 = Knife.PrimaryPart, C0 = KnifeW, C1 = CFrame.new(0,0,0), Parent = Knife})
  216. local EventBackup = Instance.new("RemoteEvent")
  217. EventBackup.Name = "JPInputEventFrom"..plrr.Name
  218. local CamBackup = Instance.new("RemoteEvent")
  219. CamBackup.Name = "JPCamEventFrom"..plrr.Name
  220. local inputScript = [[
  221.  
  222. local Player = game:GetService("Players").LocalPlayer
  223. local Mouse = Player:GetMouse()
  224. local Event = game:GetService("JointsService"):WaitForChild("JPInputEventFrom"..Player.Name)
  225. local CEvent = game:GetService("JointsService"):WaitForChild("JPCamEventFrom"..Player.Name)
  226. local UIS = game:GetService("UserInputService")
  227. local h,t = Mouse.Hit,Mouse.Target
  228. local input = function(io,a)
  229.     if a then return end
  230.     local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}
  231.     Event:FireServer(io)
  232. end
  233. UIS.InputBegan:Connect(input)
  234. UIS.InputEnded:Connect(input)
  235. while wait(1/30) do
  236.     CEvent:FireServer(workspace.Camera.CoordinateFrame)
  237.     local cam = workspace.Camera
  238.     cam.CameraSubject = workspace:FindFirstChild(">["..Player.Name.."]<")
  239.     cam.CameraType = "Custom"
  240.     cam.HeadLocked = true
  241.     cam.HeadScale = 1
  242.     cam.FieldOfView = 70  
  243.     if h~=Mouse.Hit or t~=Mouse.Target then
  244.         Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit})
  245.         h,t=Mouse.Hit,Mouse.Target
  246.     end
  247. end
  248.  
  249. ]]
  250. NLS(inputScript, plrr:WaitForChild("PlayerGui")).Name = "Input"
  251. local EventBackupC = EventBackup:Clone()
  252. local CamBackupC = CamBackup:Clone()
  253. local InputEvent = Instance.new("RemoteEvent")
  254. InputEvent.Name = "JPInputEventFrom"..plrr.Name
  255. InputEvent.Parent = game:GetService("JointsService")
  256. local CamEvent = Instance.new("RemoteEvent")
  257. CamEvent.Name = "JPCamEventFrom"..plrr.Name
  258. CamEvent.Parent = game:GetService("JointsService")
  259. CamEvent.OnServerEvent:Connect(function(plr, e)
  260.     CCF=e
  261. end)
  262. local CAS = {Actions={}}
  263. local fakeEvent = function()
  264.     local t = {_fakeEvent=true}
  265.     t.Connect = function(self,f)self.Function=f end
  266.     t.connect = t.Connect
  267.     return t
  268. end
  269. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  270. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  271. function CAS:BindAction(name,fun,touch,...)
  272.     CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  273. end
  274. function CAS:UnbindAction(name)
  275.     CAS.Actions[name] = nil
  276. end
  277. local function te(self,ev,...)
  278.     local t = m[ev]
  279.     if t and t._fakeEvent and t.Function then
  280.         t.Function(...)
  281.     end
  282. end
  283. local Mouse,mouse,UserInputService,ContextActionService
  284. do
  285.     m.TrigEvent = te
  286.     UIS.TrigEvent = te
  287.     InputEvent.OnServerEvent:Connect(function(plr,io)
  288.         if plr~=plrr then return end
  289.         if io.isMouse then
  290.             m.Target = io.Target
  291.             m.Hit = io.Hit
  292.         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  293.             if io.UserInputState == Enum.UserInputState.Begin then
  294.                 m:TrigEvent("Button1Down")
  295.             else
  296.                 m:TrigEvent("Button1Up")
  297.             end
  298.         else
  299.             for n,t in pairs(CAS.Actions) do
  300.                 for _,k in pairs(t.Keys) do
  301.                     if k==io.KeyCode then
  302.                         t.Function(t.Name,io.UserInputState,io)
  303.                     end
  304.                 end
  305.             end
  306.             if io.UserInputState == Enum.UserInputState.Begin then
  307.                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  308.                 UIS:TrigEvent("InputBegan",io,false)
  309.             else
  310.                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  311.                 UIS:TrigEvent("InputEnded",io,false)
  312.             end
  313.         end
  314.     end)
  315.     Mouse,mouse,UserInputService,ContextActionService,mausee = m,m,UIS,CAS,m
  316. end
  317. function EndScript() if plrr:FindFirstChild"PlayerGui" and plrr.PlayerGui:FindFirstChild"Input" then plrr.PlayerGui.Input:Destroy() end script:ClearAllChildren() script.Disabled = true script:Destroy() stoped=true EventBackup:Destroy() CamBackupC:Destroy() EventBackupC:Destroy() pcall(function() game:GetService("JointsService")["JPInputEventFrom"..plrr.Name]:Destroy() game:GetService("JointsService")["JPCamEventFrom"..plrr.Name]:Destroy() end) end
  318. game.Players.PlayerRemoving:Connect(function(p)if p == plrr or p.Name == plrr.Name then EndScript() end end)
  319. function onChatted(msg)
  320.     if (msg == ".Stop" or msg == ".stop" or msg == "/e .Stop" or msg == "/e .stop" or msg == "/e get/nog sr" or msg == "get/nog sr") then EndScript() return end
  321.     if (msg:match("^/e") or msg:match("^/w")) then return end
  322.     if (not h and not h:IsDescendantOf(workspace)) then return end
  323. end
  324. local chattedcon = plrr.Chatted:connect(onChatted)
  325. function system()
  326.     game:GetService("RunService").Heartbeat:Connect(function(delta)
  327.         if stoped == false and game.Players:FindFirstChild(plrr.Name) then sn=sn+30*delta
  328.             if plrr and plrr.Character then local ch = plrr.Character plrr.Character=nil ch:Destroy() end
  329.  
  330.             if MainModel == nil or MainModel.Parent ~= workspace or MainModel.Parent == nil or not MainModel then
  331.                 MainModel = Instance.new("Model",workspace) MainModel.Name = name MainModel.Archivable=true
  332.                 EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
  333.             end
  334.             if EffectModel == nil or EffectModel.Parent ~= MainModel or EffectModel.Parent == nil or not EffectModel then
  335.                 EffectModel = Instance.new("Model",MainModel) EffectModel.Name = "EffectModel" MainModel.Archivable=true
  336.             end
  337.             if cam == nil or cam.Parent ~= workspace or cam.Parent == nil or not cam then
  338.                 cam = Instance.new("Part",workspace) cam.Name = ">["..plrr.Name.."]<" cam.Anchored=true cam.CanCollide=false cam.Transparency=1 cam.Size=Vector3.new()
  339.             end
  340.             if h == nil or h.Parent ~= MainModel or h.Parent == nil or not h then
  341.                 h=Instance.new("Part",MainModel)h.Size=Vector3.new(2,1,1)h.Color=Color3.new() h.Transparency=0 h.Anchored=true h.CanCollide=true h.Name="Head"
  342.                 local m=Instance.new("SpecialMesh",h)m.MeshType="Head"m.Scale=Vector3.new(1.25,1.25,1.25)
  343.                 local hairat = Instance.new("Attachment") hairat.Parent = h hairat.Position = Vector3.new(0,0.6,0) hairat.Name = "HairAttachment"
  344.                 local hatat = Instance.new("Attachment") hatat.Parent = h hatat.Position = Vector3.new(0,0.6,0) hatat.Name = "HatAttachment"
  345.                 local ffat = Instance.new("Attachment") ffat.Parent = h ffat.Position = Vector3.new(0,0,-0.6) ffat.Name = "FaceFrontAttachment"
  346.                 local fcat = Instance.new("Attachment") fcat.Parent = h fcat.Position = Vector3.new(0,0,0) fcat.Name = "FaceCenterAttachment"      
  347.                 if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
  348.             end
  349.             if t == nil or t.Parent ~= MainModel or t.Parent == nil or not t then
  350.                 t=Instance.new("Part",MainModel)t.Material="Plastic"t.Size=Vector3.new(2,2,1)t.Color=Color3.new() t.Transparency=0 t.Anchored=true t.CanCollide=true t.Name="Torso"
  351.                 local bbat = Instance.new("Attachment") bbat.Parent = t bbat.Position = Vector3.new(0,0,0.5) bbat.Name = "BodyBackAttachment"
  352.                 local bfat = Instance.new("Attachment") bfat.Parent = t bfat.Position = Vector3.new(0,0,-0.5) bfat.Name = "BodyFrontAttachment"
  353.                 local lcat = Instance.new("Attachment") lcat.Parent = t lcat.Position = Vector3.new(-1,1,0) lcat.Name = "LeftCollarAttachment"
  354.                 local necat = Instance.new("Attachment") necat.Parent = t necat.Position = Vector3.new(0,1,0) necat.Name = "NeckAttachment"
  355.                 local rcat = Instance.new("Attachment") rcat.Parent = t rcat.Position = Vector3.new(1,1,0) rcat.Name = "RightCollarAttachment"
  356.                 local wbat = Instance.new("Attachment") wbat.Parent = t wbat.Position = Vector3.new(0,-1,0.5) wbat.Name = "WaistBackAttachment"
  357.                 local wcat = Instance.new("Attachment") wcat.Parent = t wcat.Position = Vector3.new(0,-1,0) wcat.Name = "WaistCenterAttachment"
  358.                 local wfat = Instance.new("Attachment") wfat.Parent = t wfat.Position = Vector3.new(0,-1,-0.5) wfat.Name = "WaistFrontAttachment"  
  359.                 if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
  360.             end
  361.             if ll == nil or ll.Parent ~= MainModel or ll.Parent == nil or not ll then
  362.                 ll=Instance.new("Part",MainModel)ll.Material="Plastic"ll.Size=Vector3.new(1,2,1)ll.Color=Color3.new() ll.Transparency=0 ll.Anchored=true ll.CanCollide=true ll.Name="Left Leg"
  363.                 local wfat = Instance.new("Attachment") wfat.Parent = ll wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftFootAttachment"
  364.                 if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
  365.             end
  366.             if rl == nil or rl.Parent ~= MainModel or rl.Parent == nil or not rl then
  367.                 rl=Instance.new("Part",MainModel)rl.Material="Plastic"rl.Size=Vector3.new(1,2,1)rl.Color=Color3.new() rl.Transparency=0 rl.Anchored=true rl.CanCollide=true rl.Name="Right Leg"
  368.                 local wfat = Instance.new("Attachment") wfat.Parent = rl wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightFootAttachment"
  369.                 if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
  370.             end
  371.             if la == nil or la.Parent ~= MainModel or la.Parent == nil or not la then
  372.                 la=Instance.new("Part",MainModel)la.Material="Plastic"la.Size=Vector3.new(1,2,1)la.Color=Color3.new() la.Transparency=0 la.Anchored=true la.CanCollide=true la.Name="Left Arm"
  373.                 local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,1,0) wfat.Name = "LeftShoulderAttachment"
  374.                 local wfat = Instance.new("Attachment") wfat.Parent = ra wfat.Position = Vector3.new(0,-1,0) wfat.Name = "LeftGripAttachment"
  375.                 if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
  376.             end
  377.             if ra == nil or ra.Parent ~= MainModel or ra.Parent == nil or not ra then
  378.                 ra=Instance.new("Part",MainModel)ra.Material="Plastic"ra.Size=Vector3.new(1,2,1)ra.Color=Color3.new() ra.Transparency=0 ra.Anchored=true ra.CanCollide=true ra.Name="Right Arm"
  379.                 local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,1,0) wfat.Name = "RightShoulderAttachment"
  380.                 local wfat = Instance.new("Attachment") wfat.Parent = la wfat.Position = Vector3.new(0,-1,0) wfat.Name = "RightGripAttachment"     
  381.                 if MainModel:FindFirstChildOfClass("BodyColors") then MainModel:FindFirstChildOfClass("BodyColors"):Destroy() end
  382.             end
  383.             if hum == nil or hum.Parent ~= MainModel or hum.Parent == nil or not hum then
  384.                 hum=Instance.new("Humanoid",MainModel) hum.Name = "" hum.HealthDisplayType = "AlwaysOff"
  385.             end
  386.             if face == nil or face.Parent ~= h or face.Parent == nil or not face then
  387.                 face = InstanceNW("Decal",{Parent=h,Face="Front",Texture=f})
  388.             end
  389.             if Gun == nil or Gun.Parent ~= MainModel or Gun.Parent == nil or not Gun then
  390.                 Gun = GunBackup:Clone() Gun.Parent=MainModel
  391.                 for _, c in pairs(Gun:GetChildren()) do if c:IsA("BasePart") then c.Anchored = false c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) if c ~= Gun.PrimaryPart then local weldd = Instance.new("ManualWeld") weldd.Part0 = Gun.PrimaryPart weldd.Part1 = c weldd.C0 = CFrame.new() weldd.C1 = c.CFrame:inverse() * Gun.PrimaryPart.CFrame weldd.Parent = Gun.PrimaryPart end c.Locked = true end end
  392.                 gw = InstanceNW("Weld",{Part0 = ra, Part1 = Gun.PrimaryPart, C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)), C1 = CFrame.new(0,0,0), Parent = Gun})
  393.             end
  394.             if Knife == nil or Knife.Parent ~= MainModel or Knife.Parent == nil or not Knife then
  395.                 Knife = KnifeBackup:Clone() Knife.Parent=MainModel
  396.                 for _, c in pairs(Knife:GetChildren()) do if c:IsA("BasePart") then c.Anchored = false c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) if c ~= Knife.PrimaryPart then local weldd = Instance.new("ManualWeld") weldd.Part0 = Knife.PrimaryPart weldd.Part1 = c weldd.C0 = CFrame.new() weldd.C1 = c.CFrame:inverse() * Knife.PrimaryPart.CFrame weldd.Parent = Knife.PrimaryPart end c.Locked = true end end
  397.                 kw = InstanceNW("Weld",{Part0 = la, Part1 = Knife.PrimaryPart, C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-10)), C1 = CFrame.new(0,0,0), Parent = Knife})
  398.             end
  399.             if MainModel:FindFirstChildOfClass("Accessory") == nil then for i=1,#accs do if accs[i]:IsA'Accessory' then accs[i]:Clone().Parent=MainModel end end end
  400.             if MainModel:FindFirstChildOfClass("Hat") == nil then for i=1,#accs do if accs[i]:IsA'Hat' then accs[i]:Clone().Parent=MainModel end end end
  401.             if MainModel:FindFirstChildOfClass("BodyColors") == nil then for i=1,#accs do if accs[i]:IsA'BodyColors' then accs[i]:Clone().Parent=MainModel end end end
  402.             if MainModel:FindFirstChildOfClass("Shirt") == nil then for i=1,#accs do if accs[i]:IsA'Shirt' then accs[i]:Clone().Parent=MainModel end end end
  403.             if MainModel:FindFirstChildOfClass("Pants") == nil then for i=1,#accs do if accs[i]:IsA'Pants' then accs[i]:Clone().Parent=MainModel end end end
  404.             if MainModel:FindFirstChildOfClass("ShirtGraphic") == nil then for i=1,#accs do if accs[i]:IsA'ShirtGraphic' then accs[i]:Clone().Parent=MainModel end end end
  405.             if MainModel:FindFirstChildOfClass("CharacterMesh") == nil then for i=1,#accs do if accs[i]:IsA'CharacterMesh' then accs[i]:Clone().Parent=MainModel end end end
  406.             cam.CFrame=MainPosition*CFrame.new(0,1.5,0) cam.Anchored=true cam.CanCollide=false cam.Transparency=1 cam.Size=Vector3.new()
  407.             local chrrr = MainModel:GetChildren() for i=1,#chrrr do
  408.                 if chrrr[i] == EffectModel or chrrr[i] == h or chrrr[i] == t or chrrr[i] == rl or chrrr[i] == hum or chrrr[i] == ll or chrrr[i] == ra or chrrr[i] == la or chrrr[i] == mus or chrrr[i] == Gun or chrrr[i] == Knife or chrrr[i]:IsA'Accessory' or chrrr[i]:IsA'Hat' or chrrr[i]:IsA'Shirt' or chrrr[i]:IsA'Pants' or chrrr[i]:IsA'BodyColors' or chrrr[i]:IsA'ShirtGraphic' or chrrr[i]:IsA'CharacterMesh' then else chrrr[i]:Destroy() end
  409.             end
  410.             if plrr and plrr:WaitForChild('Backpack') then plrr:WaitForChild('Backpack'):ClearAllChildren() end
  411.             local rc=Ray.new(MainPosition.Position,(CFrame.new(0,-1-math.max(fallingspeed*delta,0),0).Position).unit*4)
  412.             local pos,hit=workspace:FindPartOnRayWithIgnoreList(rc,{MainModel,cam},false,true)
  413.             if pos~=nil then falling=false fallingspeed=0 MainPosition=MainPosition*CFrame.new(0,hit.Y-MainPosition.Y+3,0)
  414.             else falling=true fallingspeed=fallingspeed+196.2*delta MainPosition=MainPosition-Vector3.new(0,fallingspeed*delta,0)end
  415.             if W or A or S or D then MainPosition=CFrame.new(MainPosition.p,Vector3.new(CCF.x,MainPosition.y,CCF.z))end
  416.             local oldMainPosition=MainPosition
  417.             if W then MainPosition=MainPosition*CFrame.new(0,0,walkspeed*delta)end
  418.             if S then MainPosition=MainPosition*CFrame.new(0,0,-walkspeed*delta)end
  419.             if A then MainPosition=MainPosition*CFrame.new(walkspeed*delta,0,0)end
  420.             if D then MainPosition=MainPosition*CFrame.new(-walkspeed*delta,0,0)end
  421.             if not falling then
  422.                 if(MainPosition.X~=oldMainPosition.X or MainPosition.Z~=oldMainPosition.Z)then MainPosition=CFrame.new(MainPosition.p,oldMainPosition.p)
  423.                     if attacking == false then
  424.                         alerp({CFrame.new(0,0+0.075*math.sin(sn/8),0)*CFrame.Angles(math.rad(2.5-1*math.cos(sn/8)),math.rad(180-5*math.cos(sn/8)),math.rad(0-2.5*math.cos(sn/8))),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-10+1*math.cos(sn/8)),math.rad(0+5*math.cos(sn/8)),math.rad(0+2.5*math.cos(sn/8))),CFrame.new(-1.5,0-0.1*math.cos(sn/8),0+0.25*math.sin(sn/8))*CFrame.Angles(math.rad(0-15*math.sin(sn/8)),math.rad(0+5*math.cos(sn/8)),0),
  425.                             CFrame.new(1.5,0+0.1*math.cos(sn/8),0-0.5*math.sin(sn/8))*CFrame.Angles(math.rad(0+30*math.sin(sn/8)),math.rad(0-10*math.cos(sn/8)),0),CFrame.new(-.5,-2+0.2*math.cos(sn/8),0-1*math.sin(sn/8))*CFrame.Angles(math.rad(-10+40*math.sin(sn/8)),math.rad(10-2.5*math.cos(sn/36)),math.rad(0+1*math.cos(sn/18))),CFrame.new(.5,-2-0.2*math.cos(sn/8),0+1*math.sin(sn/8))*CFrame.Angles(math.rad(-10-40*math.sin(sn/8)),math.rad(0-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  426.                             CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90+10*math.cos(sn/8))),CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-10+15*math.cos(sn/8)))},delta*10)
  427.                     end
  428.                 else
  429.                     if attacking == false then
  430.                         alerp({CFrame.new(0,0+0.075*math.sin(sn/18),0)*CFrame.Angles(math.rad(5-2.5*math.cos(sn/36)),math.rad(180),math.rad(0-1*math.cos(sn/18))),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-10-5*math.cos(sn/18)),math.rad(0-5*math.sin(sn/18)),math.rad(0+2.5*math.cos(sn/36))),CFrame.new(-1.05,0-0.025*math.sin(sn/18),0.45)*CFrame.Angles(math.rad(-10-5*math.sin(sn/18)),math.rad(50+15*math.sin(sn/36)),math.rad(0+5*math.sin(sn/18))),
  431.                             CFrame.new(1.5,0+0.025*math.sin(sn/18),0)*CFrame.Angles(math.rad(35-10*math.sin(sn/36)),math.rad(-10+5*math.sin(sn/36)),math.rad(25+5*math.sin(sn/18))),CFrame.new(-.5,-2-0.075*math.sin(sn/18),-0.15)*CFrame.Angles(math.rad(0-2.5*math.cos(sn/36)),math.rad(25-2.5*math.cos(sn/36)),math.rad(0+1*math.cos(sn/18))),CFrame.new(.5,-2-0.075*math.sin(sn/18),-0.05)*CFrame.Angles(math.rad(2.5-2.5*math.cos(sn/36)),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  432.                             CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90+10*math.cos(sn/18)),math.rad(90-5*math.cos(sn/18))),CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90-15*math.cos(sn/36)),math.rad(-10+10*math.cos(sn/18)))},delta*10)
  433.                     end
  434.                 end
  435.             elseif falling then
  436.                 if(MainPosition.X~=oldMainPosition.X or MainPosition.Z~=oldMainPosition.Z) then MainPosition=CFrame.new(MainPosition.p,oldMainPosition.p)end
  437.                 if attacking == false then
  438.                     if fallingspeed>0 then
  439.                         alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(15-10*math.cos(sn/9)),math.rad(180),0),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20-10*math.cos(sn/9)),0,0),CFrame.new(-1.75,0.25,-0.15)*CFrame.Angles(math.rad(15+10*math.sin(sn/9)),0,math.rad(-35-10*math.sin(sn/9))),
  440.                             CFrame.new(1.75,0.25,-0.15)*CFrame.Angles(math.rad(15+10*math.sin(sn/9)),0,math.rad(35+10*math.sin(sn/9))),CFrame.new(-.5,-2,0)*CFrame.Angles(math.rad(-5+2.5*math.cos(sn/9)),math.rad(10),0),CFrame.new(.5,-1,-0.25)*CFrame.Angles(math.rad(-10-5*math.sin(sn/9)),math.rad(-5),0),
  441.                             CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(70+15*math.cos(sn/9))),CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-50+5*math.cos(sn/9)))},delta*10)
  442.                     else
  443.                         alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(-5-5*math.cos(sn/9)),math.rad(180),0),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(5-10*math.cos(sn/9)),0,0),CFrame.new(-1.5,0.5,-0.75)*CFrame.Angles(math.rad(95+10*math.sin(sn/9)),0,math.rad(-0-5*math.sin(sn/9))),
  444.                             CFrame.new(1.5,0.5,-0.75)*CFrame.Angles(math.rad(95+10*math.sin(sn/9)),0,math.rad(0+5*math.sin(sn/9))),CFrame.new(-.5,-1.5,-0.15)*CFrame.Angles(math.rad(-10+5*math.cos(sn/9)),math.rad(5),0),CFrame.new(.5,-0.5,-0.35)*CFrame.Angles(math.rad(-20-10*math.sin(sn/9)),0,0),
  445.                             CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(120-15*math.cos(sn/9))),CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(90),math.rad(-70-5*math.cos(sn/9)))},delta*10)
  446.                     end
  447.                 end
  448.             end
  449.             if MainPosition.Y<=-200 then fallingspeed=0 MainPosition=MainPosition+Vector3.new(0,250,0)end
  450.             t.CFrame=MainPosition*Torso
  451.             h.CFrame=t.CFrame*Neck
  452.             ll.CFrame=t.CFrame*LeftLeg
  453.             rl.CFrame=t.CFrame*RightLeg
  454.             la.CFrame=t.CFrame*LeftArm
  455.             ra.CFrame=t.CFrame*RightArm
  456.             gw.C0=GunW
  457.             kw.C0=KnifeW
  458.             if t.Transparency > 0 or h.Transparency > 0 or ll.Transparency > 0 or rl.Transparency > 0 or la.Transparency > 0 or ra.Transparency > 0 then
  459.                 t.Transparency=0 h.Transparency=0 ll.Transparency=0 rl.Transparency=0 la.Transparency=0 ra.Transparency=0
  460.             end
  461.             if math.random(1,100) == 1 then
  462.                 LightningBolt({startp=Gun:FindFirstChild'Hole'.CFrame,endp=Gun:FindFirstChild'Hole'.CFrame*CFrame.new(math.random(1,3),math.random(-1,1),math.random(-1,1)),rdm=0.25,ss=0.25,tran=25,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Cylinder",parts=true,wait=0.025,size=1,size2=0,crtn=true})
  463.             end
  464.             if math.random(1,200) == 1 then
  465.                 LightningBolt({startp=Knife:FindFirstChild'Blade'.CFrame,endp=Knife:FindFirstChild'Joint'.CFrame,rdm=1,ss=0.5,tran=50,clr=Color3.new(0,0,0),clr2=Color3.new(0.203922, 0.203922, 0.203922),mesh="Cylinder",parts=true,wait=0,size=1,size2=0,crtn=true})
  466.             end
  467.             if math.random(1,50) == 1 then
  468.                 spawn(function()
  469.                     for i = 1, math.random(1,#names) do game:GetService("RunService").Heartbeat:wait()
  470.                         MainModel.Name = names[math.random(1,#names)]
  471.                         if math.random(1,2) == 1 then
  472.                             local a,b = math.random(-45,45),math.random(-45,45)
  473.                             Neck=Neck:Lerp(CFrame.new(-b/200,1.5,a/200)*CFrame.Angles(math.rad(a),math.rad(b),0),1)
  474.                         end
  475.                     end
  476.                     MainModel.Name = name
  477.                 end)
  478.             end
  479.             if mus.Parent == nil or mus.Parent ~= t or mus == nil or not mus then
  480.                 mus = Instance.new("Sound") mus.Volume = 10 mus.Pitch = 0.85 mus.EmitterSize = 100 mus.SoundId = "rbxassetid://12616491652" mus.Parent = t mus.Playing = playmus mus.Looped = true mus.TimePosition = muspos fixmus = true
  481.             elseif fixmus == false then
  482.                 mus.Playing = playmus
  483.                 muspos = mus.TimePosition
  484.             else
  485.                 fixmus = false
  486.             end
  487.             if plrr and not plrr:WaitForChild("PlayerGui"):FindFirstChild("Input") then
  488.                 NLS(inputScript, plrr:WaitForChild("PlayerGui")).Name = "Input"
  489.             end
  490.             if plrr and plrr:WaitForChild("PlayerGui"):FindFirstChild("Input") then
  491.                 plrr.PlayerGui.Input.Disabled = false
  492.             end
  493.             if plrr and game:GetService("JointsService"):FindFirstChild("JPInputEventFrom"..plrr.Name) == nil then
  494.                 local NewInput = EventBackupC:Clone()
  495.                 NewInput.Parent = game:GetService("JointsService")
  496.                 do
  497.                     m.TrigEvent = te
  498.                     UIS.TrigEvent = te
  499.                     NewInput.OnServerEvent:Connect(function(plr,io)
  500.                         if plr~=plrr then return end
  501.                         if io.isMouse then
  502.                             m.Target = io.Target
  503.                             m.Hit = io.Hit
  504.                         elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  505.                             if io.UserInputState == Enum.UserInputState.Begin then
  506.                                 m:TrigEvent("Button1Down")
  507.                             else
  508.                                 m:TrigEvent("Button1Up")
  509.                             end
  510.                         else
  511.                             for n,t in pairs(CAS.Actions) do
  512.                                 for _,k in pairs(t.Keys) do
  513.                                     if k==io.KeyCode then
  514.                                         t.Function(t.Name,io.UserInputState,io)
  515.                                     end
  516.                                 end
  517.                             end
  518.                             if io.UserInputState == Enum.UserInputState.Begin then
  519.                                 m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  520.                                 UIS:TrigEvent("InputBegan",io,false)
  521.                             else
  522.                                 m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  523.                                 UIS:TrigEvent("InputEnded",io,false)
  524.                             end
  525.                         end
  526.                     end)
  527.                     Mouse,mouse,UserInputService,ContextActionService,mausee = m,m,UIS,CAS,m
  528.                 end
  529.                 if plrr and plrr:WaitForChild("PlayerGui"):FindFirstChild("Input") then
  530.                     plrr:WaitForChild("PlayerGui"):FindFirstChild("Input"):Destroy()
  531.                 end    
  532.             end
  533.             if plrr and game:GetService("JointsService"):FindFirstChild("JPCamEventFrom"..plrr.Name) == nil then
  534.                 local NewCam = CamBackupC:Clone()
  535.                 NewCam.Parent = game:GetService("JointsService")
  536.                 NewCam.OnServerEvent:Connect(function(plr, e)
  537.                     CCF=e
  538.                 end)
  539.             end
  540.         elseif stoped == true or plrr == nil or not plrr or game.Players:FindFirstChild(plrr.Name) == nil or not game.Players:FindFirstChild(plrr.Name) then
  541.             if MainModel then MainModel:Destroy() end
  542.             if cam then cam:Destroy() end
  543.         end
  544.     end)
  545. end
  546. spawn(system)
  547. function r(o,dir,ran,ignor)
  548.     return workspace:FindPartOnRayWithIgnoreList(Ray.new(o, dir.unit * ran), ignor)
  549. end
  550. function cr(pos,dir,ran,ignor)
  551.     local ray = Ray.new(pos,(dir-pos).unit*ran)
  552.     local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignor or {MainModel,EffectModel},false,true)
  553.     return part,pos,norm,(pos and (pos-pos).magnitude)
  554. end
  555. function Sound(i,p,v,pi,por)
  556.     local s = nil
  557.     coroutine.resume(coroutine.create(function()
  558.         s = InstanceNW("Sound",{Parent=p,Volume=v,Pitch=pi,SoundId ="rbxassetid://"..i})
  559.         s:play()
  560.         if por == true then
  561.             s.PlayOnRemove=true
  562.             s:Destroy()
  563.         end
  564.     end))
  565.     return s
  566. end
  567. --Effect({cf=MainPosition,moveto=Mouse.Hit.p,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="Box",waits=100,size=Vector3.new(3,3,3),size2=Vector3.new(3,3,3),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0,tran2=1,bmr=true,sbm=50,mbm=50})
  568. function Effect(tblee)
  569.     coroutine.resume(coroutine.create(function()
  570.         local origpos = (tblee.cf or nil)
  571.         local moveto = (tblee.moveto or nil)
  572.         local color = (tblee.clr or Color3.new(0,0,0))
  573.         local color2 = (tblee.clr2 or nil)
  574.         local defaultsize = (tblee.size or Vector3.new(2,2,2))
  575.         local material = (tblee.mat or "Neon")
  576.         local locker = (tblee.lock or false)
  577.         local rotateX = (tblee.radX or 0)
  578.         local rotateY = (tblee.radY or 0)
  579.         local rotateZ = (tblee.radZ or 0)
  580.         local secondsize = (tblee.size2 or Vector3.new(4,4,4))
  581.         local acttime = (tblee.waits or 100)
  582.         local truetime = acttime/60
  583.         local transpar = (tblee.tran or 0)
  584.         local transpar2 = (tblee.tran2 or 1)
  585.         local typeofmesh = (tblee.mtype or "S")
  586.         local boomerang = (tblee.bmr or false)
  587.         local sizeboomerang = (tblee.sbm or 0)
  588.         local moveboomerang = (tblee.mbm or 0)
  589.         local movingspeed = nil
  590.         local mesh = nil
  591.         local endsize = nil
  592.         local endtranpar = nil
  593.         local b1 = 1+moveboomerang/50
  594.         local b2 = 1+sizeboomerang/50
  595.         if typeof(origpos) == "Vector3"then origpos=CFrame.new(origpos) end
  596.         if typeof(moveto) == "CFrame"then moveto=moveto.Position end
  597.         if typeof(color) == "BrickColor"then color=color.Color end
  598.         if typeof(color2) == "BrickColor"then color2=color2.Color end
  599.         if origpos then
  600.             local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=origpos p.Material=material p.Size=Vector3.new(1,1,1)p.CanCollide=false p.Transparency=transpar p.CastShadow=false p.Locked=true
  601.             if typeofmesh == "Box" or typeofmesh == "B" or typeofmesh == "1" then
  602.                 mesh=Instance.new("BlockMesh",p)mesh.Scale=defaultsize
  603.             elseif typeofmesh == "Sphere" or typeofmesh == "S" or typeofmesh == "2" then
  604.                 mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Sphere"mesh.Scale=defaultsize
  605.             elseif typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
  606.                 mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Cylinder"mesh.Scale=defaultsize
  607.             end
  608.             if locker == true then
  609.                 p.Position = origpos.p
  610.                 if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
  611.                     p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(p.Size.Z/1.5))*CFrame.Angles(0,math.rad(90),0)
  612.                 else
  613.                     p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(p.Size.Z/1.5))
  614.                 end
  615.             else
  616.                 if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
  617.                     p.CFrame = origpos*CFrame.Angles(0,math.rad(90),0)
  618.                 else
  619.                     p.CFrame = origpos
  620.                 end
  621.             end
  622.             if mesh then
  623.                 if moveto then
  624.                     if boomerang then
  625.                         movingspeed=(origpos.p - moveto).Magnitude/acttime*b1
  626.                     else
  627.                         movingspeed=(origpos.p - moveto).Magnitude/acttime
  628.                     end
  629.                 end
  630.                 if boomerang then
  631.                     endsize=(defaultsize - secondsize)*b2
  632.                 else
  633.                     endsize=(defaultsize - secondsize)
  634.                 end
  635.                 endtranpar=transpar-transpar2
  636.                 if boomerang then
  637.                     local s = os.clock()
  638.                     loop(truetime,function(delta)
  639.                         local i = (os.clock()-s)/truetime*acttime
  640.                         mesh.Scale=mesh.Scale-(Vector3.new((endsize.X)*((1 - (i/acttime)*b2)),(endsize.Y)*((1 - (i/acttime)*b2)),(endsize.Z)*((1 - (i/acttime)*b2)))*b2)/acttime*delta*60
  641.                         p.Transparency = p.Transparency - endtranpar/acttime*delta*60
  642.                         p.CFrame=p.CFrame*CFrame.Angles(math.rad(rotateX*delta*60),math.rad(rotateY*delta*60),math.rad(rotateZ*delta*60))
  643.                         if color2 then
  644.                             p.Color = color:Lerp(color2,i/acttime*delta*60)
  645.                         end
  646.                         if moveto ~= nil then
  647.                             local a = p.Orientation
  648.                             if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
  649.                                 p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(movingspeed)*((1-(i/acttime)*b1)))*CFrame.Angles(0,math.rad(90),0)
  650.                             else
  651.                                 p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(movingspeed)*((1-(i/acttime)*b1)))
  652.                             end
  653.                             p.Orientation = a
  654.                         end
  655.                     end)
  656.                     --for i = 1, acttime+1 do
  657.                     --  game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
  658.                     --  mesh.Scale=mesh.Scale-(Vector3.new((endsize.X)*((1 - (i/acttime)*b2)),(endsize.Y)*((1 - (i/acttime)*b2)),(endsize.Z)*((1 - (i/acttime)*b2)))*b2)/acttime
  659.                     --  p.Transparency = p.Transparency - endtranpar/acttime
  660.                     --  p.CFrame=p.CFrame*CFrame.Angles(math.rad(rotateX),math.rad(rotateY),math.rad(rotateZ))
  661.                     --  if color2 then
  662.                     --      p.Color = color:Lerp(color2,i/acttime)
  663.                     --  end
  664.                     --  if moveto ~= nil then
  665.                     --      local a = p.Orientation
  666.                     --      if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
  667.                     --          p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(movingspeed)*((1-(i/acttime)*b1)))*CFrame.Angles(0,math.rad(90),0)
  668.                     --      else
  669.                     --          p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-(movingspeed)*((1-(i/acttime)*b1)))
  670.                     --      end
  671.                     --      p.Orientation = a
  672.                     --  end
  673.                     --end
  674.                 else
  675.                     local s = os.clock()
  676.                     loop(truetime,function(delta)
  677.                         local i = (os.clock()-s)/truetime*acttime
  678.                         mesh.Scale=mesh.Scale-endsize/acttime*delta*60
  679.                         p.Transparency = p.Transparency - endtranpar/acttime*delta*60
  680.                         p.CFrame=p.CFrame*CFrame.Angles(math.rad(rotateX*delta*60),math.rad(rotateY*delta*60),math.rad(rotateZ*delta*60))
  681.                         if color2 then
  682.                             p.Color = color:Lerp(color2,i/acttime*delta*60)
  683.                         end
  684.                         if moveto ~= nil then
  685.                             local a = p.Orientation
  686.                             if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
  687.                                 p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-movingspeed)*CFrame.Angles(0,math.rad(90),0)
  688.                             else
  689.                                 p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-movingspeed)
  690.                             end
  691.                             p.Orientation = a
  692.                         end
  693.                     end)
  694.                     --for i = 1, acttime+1 do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
  695.                     --  mesh.Scale=mesh.Scale-endsize/acttime
  696.                     --  p.Transparency = p.Transparency - endtranpar/acttime
  697.                     --  p.CFrame=p.CFrame*CFrame.Angles(math.rad(rotateX),math.rad(rotateY),math.rad(rotateZ))
  698.                     --  if color2 then
  699.                     --      p.Color = color:Lerp(color2,i/acttime)
  700.                     --  end
  701.                     --  if moveto ~= nil then
  702.                     --      local a = p.Orientation
  703.                     --      if typeofmesh == "Cylinder" or typeofmesh == "C" or typeofmesh == "3" then
  704.                     --          p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-movingspeed)*CFrame.Angles(0,math.rad(90),0)
  705.                     --      else
  706.                     --          p.CFrame = CFrame.new(p.Position,moveto)*CFrame.new(0,0,-movingspeed)
  707.                     --      end
  708.                     --      p.Orientation = a
  709.                     --  end
  710.                     --end
  711.                 end
  712.                 p:Destroy()
  713.             end
  714.         elseif origpos == nil then
  715.             warn("Origpos is nil!")
  716.         end
  717.     end))
  718. end
  719. --LightningBolt({startp=MainPosition,endp=Mouse.Hit.p,rdm=3,ss=2,tran=100,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Cylinder",parts=true,wait=0,size=1,size2=0,crtn=true})
  720. function LightningBolt(tblee)
  721.     local startpos = (tblee.startp or nil)
  722.     local endpos = (tblee.endp or nil)
  723.     local randomz = (tblee.rdm or 1)
  724.     local segmentsize = (tblee.ss or 2)
  725.     local fadetime = (tblee.tran or 75)
  726.     local color = (tblee.clr or Color3.new(0,0,0))
  727.     local color2 = (tblee.clr2 or Color3.new(0,0,0))
  728.     local segmentwaiting = (tblee.wait or 0)
  729.     local defaultsize = (tblee.size or 1)
  730.     local corout = (tblee.crtn or false)
  731.     local meshtype = (tblee.mesh or "Box")
  732.     local secondsize = (tblee.size2 or 1)
  733.     local endparts = (tblee.parts or true)
  734.     local endsize = (defaultsize-secondsize)
  735.     if typeof(color) == "BrickColor"then color=color.Color end
  736.     if typeof(startpos) == "CFrame"then startpos=startpos.Position end
  737.     if typeof(endpos) == "CFrame"then endpos=endpos.Position end
  738.     if startpos and endpos then
  739.         local magnitude = (startpos-endpos).magnitude local cframe = CFrame.new(startpos,endpos)
  740.         if corout == true then
  741.             coroutine.resume(coroutine.create(function()
  742.                 local oldsegment = nil
  743.                 for i=1,magnitude+1,segmentsize do if stopeffects == true then break end
  744.                     local ex=CFrame.Angles(math.rad(math.random(360)),math.rad(math.random(360)),math.rad(math.random(360)))*CFrame.new(math.random(randomz*100)/100,0,0)
  745.                     local new=cframe*CFrame.new(0,0,-i/magnitude*magnitude)*ex
  746.                     if oldsegment then
  747.                         if meshtype == nil or meshtype == "Box" then
  748.                             local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)p.Material="Neon"p.Size=Vector3.new(0.05,0.05,0.05)p.CanCollide=false p.CastShadow=false p.Locked=true
  749.                             local mesh=Instance.new("BlockMesh",p)mesh.Scale=Vector3.new(10*defaultsize,10*defaultsize,(new.p-oldsegment.p).magnitude*20)
  750.                             coroutine.resume(coroutine.create(function()
  751.                                 loop(fadetime/60,function(delta)
  752.                                     if color2 then
  753.                                         p.Color = color:Lerp(color2,i/fadetime*delta*60)
  754.                                     end
  755.                                     mesh.Scale=mesh.Scale-Vector3.new(10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60),0)
  756.                                     p.Transparency=p.Transparency+1/fadetime*delta*60
  757.                                 end)
  758.                                 p:Destroy()
  759.                             end))
  760.                         elseif meshtype == "Cylinder" then
  761.                             local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)*CFrame.Angles(0,math.rad(90),0) p.Material="Neon"p.Size=Vector3.new(0.05,0.05,0.05)p.CanCollide=false p.CastShadow=false p.Locked=true
  762.                             local mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Cylinder"mesh.Scale=Vector3.new((new.p-oldsegment.p).magnitude*20,10*defaultsize,10*defaultsize)
  763.                             local p2=nil local m=nil
  764.                             if endparts == true then
  765.                                 p2=Instance.new("Part",EffectModel)p2.Anchored=true p2.CanCollide=false p2.Color=color p2.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude) p2.Material="Neon"p2.Size=Vector3.new(0.05,0.05,0.05)p2.CanCollide=false
  766.                                 m=Instance.new("SpecialMesh",p2)m.MeshType="Sphere"m.Scale=Vector3.new(10*defaultsize,10*defaultsize,10*defaultsize)
  767.                             end
  768.                             coroutine.resume(coroutine.create(function()
  769.                                 loop(fadetime/60,function(delta)
  770.                                     if color2 then
  771.                                         p.Color = color:Lerp(color2,i/fadetime*delta*60)
  772.                                         if endparts == true then
  773.                                             p2.Color = color:Lerp(color2,i/fadetime*delta*60)
  774.                                         end
  775.                                     end
  776.                                     if endparts == true then
  777.                                         m.Scale=m.Scale-Vector3.new(10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60))
  778.                                         p2.Transparency=p2.Transparency+1/fadetime*delta*60
  779.                                     end
  780.                                     mesh.Scale=mesh.Scale-Vector3.new(0,10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60))
  781.                                     p.Transparency=p.Transparency+1/fadetime*delta*60
  782.                                 end)
  783.                                 p:Destroy()
  784.                                 if endparts then
  785.                                     p2:Destroy()
  786.                                 end
  787.                             end))
  788.                         end
  789.                         oldsegment=new
  790.                     else
  791.                         oldsegment=new
  792.                     end
  793.                     if segmentwaiting~=0 then wait(segmentwaiting) end
  794.                 end
  795.             end))
  796.         elseif corout == false then
  797.             local oldsegment = nil
  798.             for i=1,magnitude+1,segmentsize do if stopeffects == true then break end
  799.                 local ex=CFrame.Angles(math.rad(math.random(360)),math.rad(math.random(360)),math.rad(math.random(360)))*CFrame.new(math.random(randomz*100)/100,0,0)
  800.                 local new=cframe*CFrame.new(0,0,-i/magnitude*magnitude)*ex
  801.                 if oldsegment then
  802.                     if meshtype == nil or meshtype == "Box" then
  803.                         local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)p.Material="Neon"p.Size=Vector3.new(0.05,0.05,0.05)p.CanCollide=false p.CastShadow=false p.Locked=true
  804.                         local mesh=Instance.new("BlockMesh",p)mesh.Scale=Vector3.new(10*defaultsize,10*defaultsize,(new.p-oldsegment.p).magnitude*20)
  805.                         coroutine.resume(coroutine.create(function()
  806.                             loop(fadetime/60,function(delta)
  807.                                 if color2 then
  808.                                     p.Color = color:Lerp(color2,i/fadetime*delta*60)
  809.                                 end
  810.                                 mesh.Scale=mesh.Scale-Vector3.new(10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60),0)
  811.                                 p.Transparency=p.Transparency+1/fadetime*delta*60
  812.                             end)
  813.                             --for i=1,fadetime do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
  814.                             --  if color2 then
  815.                             --      p.Color = color:Lerp(color2,i/fadetime)
  816.                             --  end
  817.                             --  mesh.Scale=mesh.Scale-Vector3.new(10*(endsize/fadetime),10*(endsize/fadetime),0)
  818.                             --  p.Transparency=p.Transparency+1/fadetime
  819.                             --end
  820.                             p:Destroy()
  821.                         end))
  822.                     elseif meshtype == "Cylinder" then
  823.                         local p=Instance.new("Part",EffectModel)p.Anchored=true p.CanCollide=false p.Color=color p.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude/2)*CFrame.Angles(0,math.rad(90),0) p.Material="Neon"p.Size=Vector3.new(0.05,0.05,0.05)p.CanCollide=false p.CastShadow=false p.Locked=true
  824.                         local mesh=Instance.new("SpecialMesh",p)mesh.MeshType="Cylinder"mesh.Scale=Vector3.new((new.p-oldsegment.p).magnitude*20,10*defaultsize,10*defaultsize)
  825.                         local p2=nil local m=nil
  826.                         if endparts == true then
  827.                             p2=Instance.new("Part",EffectModel)p2.Anchored=true p2.CanCollide=false p2.Color=color p2.CFrame=CFrame.new(new.p,oldsegment.p)*CFrame.new(0,0,-(new.p-oldsegment.p).magnitude) p2.Material="Neon"p2.Size=Vector3.new(0.05,0.05,0.05)p2.CanCollide=false
  828.                             m=Instance.new("SpecialMesh",p2)m.MeshType="Sphere"m.Scale=Vector3.new(10*defaultsize,10*defaultsize,10*defaultsize)
  829.                         end
  830.                         coroutine.resume(coroutine.create(function()
  831.                             loop(fadetime/60,function(delta)
  832.                                 if color2 then
  833.                                     p.Color = color:Lerp(color2,i/fadetime*delta*60)
  834.                                     if endparts == true then
  835.                                         p2.Color = color:Lerp(color2,i/fadetime*delta*60)
  836.                                     end
  837.                                 end
  838.                                 if endparts == true then
  839.                                     m.Scale=m.Scale-Vector3.new(10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60))
  840.                                     p2.Transparency=p2.Transparency+1/fadetime*delta*60
  841.                                 end
  842.                                 mesh.Scale=mesh.Scale-Vector3.new(0,10*(endsize/fadetime*delta*60),10*(endsize/fadetime*delta*60))
  843.                                 p.Transparency=p.Transparency+1/fadetime*delta*60
  844.                             end)
  845.                             --for i=1,fadetime do game:GetService("RunService").Heartbeat:wait() if stopeffects == true then break end
  846.                             --  if color2 then
  847.                             --      p.Color = color:Lerp(color2,i/fadetime)
  848.                             --      if endparts == true then
  849.                             --          p2.Color = color:Lerp(color2,i/fadetime)
  850.                             --      end
  851.                             --  end
  852.                             --  if endparts == true then
  853.                             --      m.Scale=m.Scale-Vector3.new(10*(endsize/fadetime),10*(endsize/fadetime),10*(endsize/fadetime))
  854.                             --      p2.Transparency=p2.Transparency+1/fadetime
  855.                             --  end
  856.                             --  mesh.Scale=mesh.Scale-Vector3.new(0,10*(endsize/fadetime),10*(endsize/fadetime))
  857.                             --  p.Transparency=p.Transparency+1/fadetime
  858.                             --end
  859.                             p:Destroy()
  860.                             if endparts then
  861.                                 p2:Destroy()
  862.                             end
  863.                         end))
  864.                     end
  865.                     oldsegment=new
  866.                 else
  867.                     oldsegment=new
  868.                 end
  869.                 if segmentwaiting~=0 then wait(segmentwaiting)end
  870.             end
  871.         end
  872.     elseif startpos == nil and endpos == nil then
  873.         warn("Endpos and Startpos is nil!")
  874.     elseif startpos == nil then
  875.         warn("Startpos is nil!")
  876.     elseif endpos == nil then
  877.         warn("Endpos is nil!")
  878.     end
  879. end
  880. function Kill(who)
  881.     coroutine.resume(coroutine.create(function()
  882.         if who.Parent ~= MainModel and who.Parent ~= EffectModel and who ~= MainModel and who ~= EffectModel and who ~= cam and who.Parent ~= cam and who ~= script and who.Parent ~= script and who:FindFirstChild("KilledBy"..plrr.Name) == nil and who.Name ~= "Ietahuoy" then
  883.             InstanceNW("Folder",{Parent=who,Name="KilledBy"..plrr.Name})
  884.             coroutine.resume(coroutine.create(function()
  885.                 for _,a in pairs(who:GetDescendants()) do
  886.                     if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
  887.                         a.Disabled=true
  888.                         a:Destroy()
  889.                     elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
  890.                         a:Destroy()
  891.                     end
  892.                 end
  893.                 if game:GetService("Players"):GetPlayerFromCharacter(who) then
  894.                     local plr = game:GetService("Players"):GetPlayerFromCharacter(who)
  895.                     for _,a in pairs(plr:WaitForChild'PlayerGui':GetDescendants()) do
  896.                         if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
  897.                             a.Disabled=true
  898.                             a:Destroy()
  899.                         elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
  900.                             a:Destroy()
  901.                         end
  902.                     end
  903.                     for _,a in pairs(plr:WaitForChild'StarterGear':GetDescendants()) do
  904.                         if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
  905.                             a.Disabled=true
  906.                             a:Destroy()
  907.                         elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
  908.                             a:Destroy()
  909.                         end
  910.                     end
  911.                     for _,a in pairs(plr:WaitForChild'Backpack':GetDescendants()) do
  912.                         if a:IsA'Script' or a:IsA'LocalScript' or a.ClassName == "Script" or a.ClassName == "LocalScript" then
  913.                             a.Disabled=true
  914.                             a:Destroy()
  915.                         elseif a:IsA'ModuleScript' or a.ClassName == "ModuleScript" then
  916.                             a:Destroy()
  917.                         end
  918.                     end
  919.                 end
  920.             end))
  921.             spawn(function()
  922.                 while who ~= nil do game:GetService("RunService").Heartbeat:wait()
  923.                     who:BreakJoints()
  924.                     if who:FindFirstChildOfClass("Humanoid") ~= nil then who:FindFirstChildOfClass("Humanoid").MaxHealth=nil who:FindFirstChildOfClass("Humanoid").Health=nil end
  925.                 end
  926.             end)
  927.             local mainpart = (who:FindFirstChildOfClass'Part' or who:FindFirstChildOfClass'MeshPart' or who:FindFirstChildOfClass'UnionOperation')
  928.             local e = InstanceNW("Sound",{SoundId="rbxassetid://"..goreSounds[math.random(1,#goreSounds)],Volume=5,PlayOnRemove=true,Pitch=math.random(4,10)/10,Parent=mainpart}) e:Play() e:Destroy()
  929.             Effect({cf=mainpart.CFrame,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=100,size=Vector3.new(0,0,0),size2=Vector3.new(21,21,21),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0.4,tran2=1})
  930.             Effect({cf=mainpart.CFrame,moveto=nil,clr=Color3.new(0,0,0),clr2=Color3.new(0.203922, 0.203922, 0.203922),mtype="S",waits=25,size=Vector3.new(21,21,21),size2=Vector3.new(0,0,0),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=1,tran2=0.4})
  931.             for i = 1,math.random(3,6) do
  932.                 Effect({cf=mainpart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),moveto=mainpart.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(25,125),size=Vector3.new(3,3,3),size2=Vector3.new(0,42,0),radX=math.random(-1,1),radY=math.random(-1,1),radZ=math.random(-1,1),mat="Neon",lock=false,tran=0,tran2=1})
  933.                 LightningBolt({startp=mainpart.CFrame,endp=mainpart.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),rdm=1,ss=2,tran=math.random(25,125),clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Box",parts=true,wait=0.001,size=2,size2=0,crtn=true})
  934.             end
  935.             for _, part in pairs(who:GetDescendants()) do
  936.                 coroutine.resume(coroutine.create(function()
  937.                     if part.ClassName == "Part" or part.ClassName == "MeshPart" or part.ClassName == "TrussPart" or part.ClassName == "WedgePart" or part.ClassName == "CornerWedgePart" or part.ClassName == "UnionOperation" or part.ClassName == "NegateOperation" or part.ClassName == "Seat" or part.ClassName == "VehicleSeat" or part.ClassName == "SpawnLocation" then
  938.                         local s = nil local r = math.random(1,3) if r==1 then s=part.Size.Z elseif r==2 then s=part.Size.Y elseif r==3 then s=part.Size.X end
  939.                         part:BreakJoints() part:Destroy()
  940.                         Effect({cf=part.CFrame,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(25,50),size=Vector3.new(s,s,s),size2=Vector3.new(s*5,s*5,s*5),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0.4,tran2=1})
  941.                         Effect({cf=part.CFrame,moveto=part.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="B",waits=math.random(25,125),size=part.Size,size2=part.Size,radX=math.random(-1,1),radY=math.random(-1,1),radZ=math.random(-1,1),mat="Neon",lock=false,tran=0,tran2=1})
  942.                     end
  943.                 end))
  944.             end
  945.             who:ClearAllChildren() who:BreakJoints() who:Destroy()
  946.         end
  947.     end))
  948. end
  949. function AoeDam(Where,Range)
  950.     coroutine.resume(coroutine.create(function()
  951.         if Where ~= nil then
  952.             if typeof(Where) == "CFrame"then Where=Where.Position end
  953.             for index, a in pairs(workspace:GetDescendants()) do
  954.                 if (a.Parent ~= MainModel and a.Parent ~= EffectModel and a ~= MainModel and a ~= EffectModel and a ~= cam and a.Parent ~= cam and a ~= script and a.Parent ~= script) and a.ClassName == "Part" or a.ClassName == "MeshPart" or a.ClassName == "TrussPart" or a.ClassName == "WedgePart" or a.ClassName == "CornerWedgePart" or a.ClassName == "UnionOperation" or a.ClassName == "NegateOperation" or a.ClassName == "Seat" or a.ClassName == "VehicleSeat" or a.ClassName == "SpawnLocation" then
  955.                     if a.Parent ~= nil and a.Parent:IsA("Model") and a.Parent.ClassName == "Model" and a.Size == Vector3.new(2,2,1) or a.Size == Vector3.new(2,2.1,1) or a.Size == Vector3.new(1,1.105,1) or a.Size == Vector3.new(1,1.227,1) or a.Size == Vector3.new(1,1.253,1) or a.Size == Vector3.new(1,1.277,1) or a.Size == Vector3.new(1,2,1) or a.Size == Vector3.new(2,1,1) or a.Name == "Head" or a.Name == "Torso" or a.Name == "Right Arm" or a.Name == "Left Arm" or a.Name == "Right Leg" or a.Name == "Left Leg" or a.Name == "UpperTorso" or a.Name == "HumanoidRootPart" or a.Name == "LowerTorso" or a.Name == "RightHand" or a.Name == "LeftHand" or a.Name == "RightFoot" or a.Name == "LeftFoot" or a.Name == "LeftUpperArm" or a.Name == "LeftLowerArm" or a.Name == "RightUpperArm" or a.Name == "RightLowerArm" or a.Name == "LeftUpperLeg" or a.Name == "LeftLowerLeg" or a.Name == "RightUpperLeg" or a.Name == "RightLowerLeg" then
  956.                         if (a.Position - Where).Magnitude <= Range+a.Size.Magnitude then
  957.                             Kill(a.Parent)
  958.                         end
  959.                     end
  960.                 end
  961.             end
  962.         end
  963.     end))
  964. end
  965. function Slash()
  966.     attacking = true walkspeed = 16
  967.     repeat
  968.         local ran = math.random(1,3)
  969.         if ran == 1 then
  970.             loop(0.22,function(delta)
  971.                 alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(225),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),CFrame.new(-1.75,0.75,0.5)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-90)),
  972.                     CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  973.                     CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-90))},delta*15)
  974.             end)
  975.             --for i=0,1,0.075 do
  976.             --  local delta = game:GetService("RunService").Heartbeat:wait()
  977.             --  alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(225),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),CFrame.new(-1.75,0.75,0.5)*CFrame.Angles(math.rad(-20),math.rad(20),math.rad(-90)),
  978.             --      CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  979.             --      CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-90))},.3)
  980.             --end
  981.             if Knife and Knife:FindFirstChild'Trail' then Knife:FindFirstChild'Trail'.Enabled = true end
  982.             Sound(12222208,Knife:FindFirstChild'Blade',5,math.random(6,8)/10,true)
  983.             loop(0.22,function(delta)
  984.                 if Knife and Knife:FindFirstChild'Blade' then AoeDam(Knife:FindFirstChild'Blade'.CFrame,3) end
  985.                 alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(135),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),CFrame.new(-0.75,0.5,-1.25)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)),
  986.                     CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  987.                     CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))},delta*15)
  988.             end)
  989.             --for i=0,1,0.075 do game:GetService("RunService").Heartbeat:wait() if Knife and Knife:FindFirstChild'Blade' then AoeDam(Knife:FindFirstChild'Blade'.CFrame,3) end
  990.             --  alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(135),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),CFrame.new(-0.75,0.5,-1.25)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(20)),
  991.             --      CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  992.             --      CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))},.3)
  993.             --end
  994.             if Knife and Knife:FindFirstChild'Trail' then Knife:FindFirstChild'Trail'.Enabled = false end
  995.         elseif ran == 2 then
  996.             loop(0.22,function(delta)
  997.                 alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(260),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)),CFrame.new(-1.75,0.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-70)),
  998.                     CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  999.                     CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-110))},delta*15)
  1000.             end)
  1001.             --for i=0,1,0.075 do game:GetService("RunService").Heartbeat:wait()
  1002.             --  alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(260),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)),CFrame.new(-1.75,0.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-70)),
  1003.             --      CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1004.             --      CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-110))},.3)
  1005.             --end
  1006.             if Knife and Knife:FindFirstChild'Trail' then Knife:FindFirstChild'Trail'.Enabled = true end
  1007.             Sound(12222208,Knife:FindFirstChild'Blade',5,math.random(6,8)/10,true)
  1008.             loop(0.22,function(delta)
  1009.                 if Knife and Knife:FindFirstChild'Blade' then AoeDam(Knife:FindFirstChild'Blade'.CFrame,3) end
  1010.                 alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(-2,0.5,-0.15)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-80)),
  1011.                     CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1012.                     CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))},delta*15)
  1013.             end)
  1014.             --for i=0,1,0.075 do game:GetService("RunService").Heartbeat:wait() if Knife and Knife:FindFirstChild'Blade' then AoeDam(Knife:FindFirstChild'Blade'.CFrame,3) end
  1015.             --  alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(-2,0.5,-0.15)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-80)),
  1016.             --      CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1017.             --      CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))},.3)
  1018.             --end
  1019.             if Knife and Knife:FindFirstChild'Trail' then Knife:FindFirstChild'Trail'.Enabled = false end
  1020.         elseif ran == 3 then
  1021.             loop(0.22,function(delta)
  1022.                 alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(135),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(45),math.rad(0)),CFrame.new(-0.5,1,-1)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(50)),
  1023.                     CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1024.                     CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-150))},delta*20)
  1025.             end)
  1026.             if Knife and Knife:FindFirstChild'Trail' then Knife:FindFirstChild'Trail'.Enabled = true end
  1027.             Sound(12222208,Knife:FindFirstChild'Blade',5,math.random(6,8)/10,true)
  1028.             loop(0.22,function(delta)
  1029.                 if Knife and Knife:FindFirstChild'Blade' then AoeDam(Knife:FindFirstChild'Blade'.CFrame,3) end
  1030.                 alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(225),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),CFrame.new(-2,0.5,0)*CFrame.Angles(math.rad(40),math.rad(0),math.rad(-80)),
  1031.                     CFrame.new(1.5,0.1,0.35)*CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1032.                     CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-90))},delta*20)
  1033.             end)
  1034.             if Knife and Knife:FindFirstChild'Trail' then Knife:FindFirstChild'Trail'.Enabled = false end
  1035.         end
  1036.     until repeatmouse == false
  1037.     attacking = false walkspeed = 8
  1038. end
  1039. function Shoot()
  1040.     attacking = true walkspeed = 4
  1041.     repeat
  1042.         loop(0.25,function(delta)
  1043.             alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(215),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-35),math.rad(0)),CFrame.new(-1.25,0,0.45)*CFrame.Angles(math.rad(-30),math.rad(30),math.rad(0)),
  1044.                 CFrame.new(1.75,0.5,-1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1045.                 CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-10))},delta*20)
  1046.         end)
  1047.         if Gun and Gun:FindFirstChild'Hole' then
  1048.             local o,h=r(Gun:FindFirstChild'Hole'.Position,Mouse.Hit*CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)).Position-Gun:FindFirstChild'Hole'.Position,250,{MainModel,cam})
  1049.             Sound(642890855,Gun:FindFirstChild'Hole',5,math.random(4,6)/10,true)
  1050.             Effect({cf=Gun:FindFirstChild'Hole'.CFrame,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="Box",waits=math.random(50,100),size=Vector3.new(1,1,1),size2=Vector3.new(0,0,0),radX=math.random(-5,5),radY=math.random(-5,5),radZ=math.random(-5,5),mat="Neon",lock=false,tran=0,tran2=1})
  1051.             Effect({cf=Gun:FindFirstChild'Hole'.CFrame,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(100,200),size=Vector3.new(0,0,0),size2=Vector3.new(4,4,4),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0,tran2=1})
  1052.             for i = 1, math.random(2,4) do
  1053.                 LightningBolt({startp=Gun:FindFirstChild'Hole'.CFrame,endp=Gun:FindFirstChild'Hole'.CFrame*CFrame.new(math.random(-6,-4),math.random(-2,2),math.random(-2,2)),rdm=0.25,ss=0.25,tran=25,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Cylinder",parts=true,wait=0.025,size=1,size2=0,crtn=true})
  1054.                 Effect({cf=Gun:FindFirstChild'Hole'.CFrame,moveto=Gun:FindFirstChild'Hole'.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(25,50),size=Vector3.new(1,1,1),size2=Vector3.new(0,10,0),radX=math.random(-5,5),radY=math.random(-5,5),radZ=math.random(-5,5),mat="Neon",lock=false,tran=0,tran2=1})
  1055.             end
  1056.             LightningBolt({startp=Gun:FindFirstChild'Hole'.CFrame,endp=h,rdm=1,ss=5,tran=25,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Box",parts=true,wait=0,size=2,size2=0,crtn=true})
  1057.             Effect({cf=h,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="Box",waits=math.random(50,100),size=Vector3.new(0,0,0),size2=Vector3.new(8,8,8),radX=math.random(-5,5),radY=math.random(-5,5),radZ=math.random(-5,5),mat="Neon",lock=false,tran=0,tran2=1})
  1058.             Effect({cf=h,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(50,100),size=Vector3.new(12,12,12),size2=Vector3.new(0,0,0),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0,tran2=1})
  1059.             AoeDam(h,5)
  1060.             for i = 1, math.random(4,8) do
  1061.                 LightningBolt({startp=h,endp=CFrame.new(h)*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),rdm=3,ss=1,tran=25,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Box",parts=true,wait=0.025,size=1,size2=0,crtn=true})
  1062.                 Effect({cf=h,moveto=CFrame.new(h)*CFrame.new(math.random(-25,25),math.random(-25,25),math.random(-25,25)),clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(25,50),size=Vector3.new(4,4,4),size2=Vector3.new(0,0,0),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=0,tran2=1})
  1063.             end
  1064.             loop(0.05,function(delta)
  1065.                 alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(215),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-35),math.rad(0)),CFrame.new(-1.25,0,0.45)*CFrame.Angles(math.rad(-30),math.rad(30),math.rad(0)),
  1066.                     CFrame.new(1.75,1,-1)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(35)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1067.                     CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(-10))},delta*40)
  1068.             end)
  1069.         end
  1070.     until repeatkey == false
  1071.     attacking = false walkspeed = 8
  1072. end
  1073. function Dash()
  1074.     attacking = true walkspeed = 1.42
  1075.     --local lc = 0
  1076.     local s = os.clock()
  1077.     local e = 5
  1078.     local lc = 0
  1079.     repeat
  1080.         local delta = game:GetService("RunService").Heartbeat:wait()
  1081.         local progress = (os.clock()-s)/2.4
  1082.         e = 5+progress*145
  1083.         lc = progress*29
  1084.  
  1085.         if math.random(1,100) <= 1+lc and Knife and Knife:FindFirstChild'Blade' then LightningBolt({startp=Knife:FindFirstChild'Blade'.CFrame,endp=la.CFrame,rdm=1,ss=0.5,tran=50,clr=Color3.new(0,0,0),clr2=Color3.new(0.203922, 0.203922, 0.203922),mesh="Cylinder",parts=true,wait=0,size=1,size2=0,crtn=true}) end
  1086.         alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(260),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-80),math.rad(0)),CFrame.new(-2+math.random(-e,e)/500,0.5+math.random(-e,e)/500,0+math.random(-e,e)/500)*CFrame.Angles(math.rad(0+(math.random(-e,e)/5)),math.rad(0+(math.random(-e,e)/5)),math.rad(-90+(math.random(-e,e)/5))),
  1087.             CFrame.new(1.5,0.25,-0.2)*CFrame.Angles(math.rad(0),math.rad(10),math.rad(30)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1088.             CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(70))},delta*20)
  1089.     until repeatkey == false or os.clock()-s > 2.4
  1090.     LightningBolt({startp=MainPosition,endp=MainPosition*CFrame.new(0,0,e),rdm=1,ss=2,tran=75,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Cylinder",parts=true,wait=0,size=1,size2=0,crtn=true})
  1091.     AoeDam(MainPosition,5)
  1092.     Sound(12222208,Knife:FindFirstChild'Blade',5,math.random(6,8)/10,true)
  1093.     for i = 1,10 do
  1094.         MainPosition=MainPosition*CFrame.new(0,0,e/10)
  1095.         AoeDam(MainPosition,5)
  1096.         Sound(12222208,Knife:FindFirstChild'Blade',5,math.random(6,8)/10,true)
  1097.         LightningBolt({startp=MainPosition,endp=MainPosition*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15)),rdm=3,ss=1,tran=25,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Box",parts=true,wait=0.01,size=2,size2=3,crtn=true})
  1098.         Effect({cf=MainPosition*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),moveto=MainPosition*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="B",waits=math.random(25,75),size=Vector3.new(4,4,4),size2=Vector3.new(0,0,0),radX=math.random(-5,5),radY=math.random(-5,5),radZ=math.random(-5,5),mat="Neon",lock=false,tran=0,tran2=1})
  1099.         for i = 1, math.random(2,3) do
  1100.             Effect({cf=MainPosition*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(75,150),size=Vector3.new(1,1,1),size2=Vector3.new(0,4,0),radX=math.random(-1,1),radY=math.random(-1,1),radZ=math.random(-1,1),mat="Neon",lock=false,tran=0,tran2=1})
  1101.         end
  1102.     end
  1103.     --for i=0,1,0.1 do game:GetService("RunService").Heartbeat:wait()
  1104.     alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(-2,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-90)),
  1105.         CFrame.new(1.5,0.25,-0.2)*CFrame.Angles(math.rad(0),math.rad(10),math.rad(30)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1106.         CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))},1)
  1107.     --end
  1108.     task.wait(1/6)
  1109.     attacking = false walkspeed = 8
  1110. end
  1111. function ThrowKnife()
  1112.     attacking = true walkspeed = 1.42 local throwed = false
  1113.     loop(1/3,function(delta)
  1114.         alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(225),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(-45),math.rad(0)),CFrame.new(-1.75,1.25,0.5)*CFrame.Angles(math.rad(220),math.rad(0),math.rad(-45)),
  1115.             CFrame.new(1.5,0,-0.25)*CFrame.Angles(math.rad(20),math.rad(-20),math.rad(20)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1116.             CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(60))},delta*20)
  1117.     end)
  1118.     local o,h=r(la.Position,Mouse.Hit.p-la.Position,2500,{MainModel,cam})
  1119.     if h and o ~= nil then throwed=true
  1120.         Sound(743521497,la,5,math.random(8,10)/10,true)
  1121.         local kneef = KnifeBackup:Clone() kneef.Parent = EffectModel
  1122.         for _, c in pairs(kneef:GetChildren()) do if c:IsA("BasePart") then c.Anchored = false c.CanCollide = true c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) if c ~= kneef.PrimaryPart then local weldd = Instance.new("ManualWeld") weldd.Part0 = kneef.PrimaryPart weldd.Part1 = c weldd.C0 = CFrame.new() weldd.C1 = c.CFrame:inverse() * kneef.PrimaryPart.CFrame weldd.Parent = kneef.PrimaryPart end c.Locked = true end end
  1123.         kneef.PrimaryPart.CFrame=CFrame.new(h,la.Position)*CFrame.Angles(0,math.rad(90),0)*CFrame.new(1.5,0,0)
  1124.         LightningBolt({startp=la.CFrame,endp=h,rdm=1,ss=5,tran=75,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mesh="Box",parts=true,wait=0,size=2,size2=0,crtn=true})
  1125.         Effect({cf=h,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="B",waits=math.random(75,100),size=Vector3.new(0,0,0),size2=Vector3.new(2,2,2),radX=math.random(-15,15),radY=math.random(-15,15),radZ=math.random(-15,15),mat="Neon",lock=false,tran=0,tran2=1})
  1126.         Effect({cf=h,moveto=nil,clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(50,75),size=Vector3.new(8,8,8),size2=Vector3.new(0,0,0),radX=0,radY=0,radZ=0,mat="Neon",lock=false,tran=1,tran2=0})
  1127.         for i=1,math.random(3,5) do
  1128.             Effect({cf=h,moveto=CFrame.new(h)*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)),clr=Color3.new(0.203922, 0.203922, 0.203922),clr2=Color3.new(0,0,0),mtype="S",waits=math.random(25,50),size=Vector3.new(1,1,2),size2=Vector3.new(0,0,4),radX=0,radY=0,radZ=0,mat="Neon",lock=true,tran=0,tran2=1})
  1129.         end
  1130.         local w = InstanceNW("ManualWeld",{Part0 = o, Part1 = kneef.PrimaryPart, C0 = CFrame.new(0,0,0), C1 = kneef.PrimaryPart.CFrame:inverse() * o.CFrame, Parent = o})
  1131.         AoeDam(kneef.Blade.Position,5)
  1132.         spawn(function()
  1133.             wait(math.random(3,12))
  1134.             local start = os.clock()
  1135.             loop(10/6,function()
  1136.                 local progress = (os.clock()-start)/(10/6)
  1137.                 for _,a in pairs(kneef:GetChildren()) do
  1138.                     if a:IsA("BasePart") then
  1139.                         a.Transparency=progress
  1140.                     end
  1141.                 end
  1142.             end)
  1143.             for _,a in pairs(kneef:GetChildren()) do
  1144.                 if a:IsA("BasePart") then
  1145.                     a.Transparency=1
  1146.                 end
  1147.             end
  1148.             --for i = 1,100 do game:GetService("RunService").Heartbeat:wait()
  1149.             --  if kneef then
  1150.             --      for _,a in pairs(kneef:GetChildren()) do if a:IsA("BasePart") then a.Transparency=a.Transparency+1/100 end end
  1151.             --  end
  1152.             --end
  1153.             if kneef then kneef:Destroy() w:Destroy() end
  1154.         end)
  1155.         if Knife then for _,a in pairs(Knife:GetChildren()) do if a:IsA("BasePart") then a.Transparency=1 end end end
  1156.         --for i=0,5,0.25 do game:GetService("RunService").Heartbeat:wait()
  1157.         alerp({CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)),CFrame.new(-1,0.25,-0.5)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(30)),
  1158.             CFrame.new(1.5,0,-0.25)*CFrame.Angles(math.rad(20),math.rad(-20),math.rad(20)),CFrame.new(-.5,-2,-0.15)*CFrame.Angles(math.rad(0),math.rad(25),math.rad(0)),CFrame.new(.5,-2,-0.05)*CFrame.Angles(math.rad(0),math.rad(-15-1*math.cos(sn/18)),math.rad(0+1*math.cos(sn/18))),
  1159.             CFrame.new(0,-1,0)*CFrame.Angles(0,math.rad(-90),math.rad(90)),CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(-90),math.rad(60))},1)
  1160.         --end
  1161.         task.wait(1/3)
  1162.     end
  1163.     attacking = false walkspeed = 8
  1164.     if throwed == true then
  1165.         local start = os.clock()
  1166.         loop(0.41,function(delta)
  1167.             local progress = (os.clock()-start)/0.41
  1168.             if Knife then
  1169.                 for _,a in pairs(Knife:GetChildren()) do
  1170.                     if a:IsA("BasePart") then
  1171.                         a.Transparency=1-progress
  1172.                     end
  1173.                 end
  1174.             end
  1175.         end)
  1176.         if Knife then
  1177.             for _,a in pairs(Knife:GetChildren()) do
  1178.                 if a:IsA("BasePart") then
  1179.                     a.Transparency=0
  1180.                 end
  1181.             end
  1182.         end
  1183.     end
  1184. end
  1185. Mouse.Button1Down:connect(function()
  1186.     repeatmouse = true
  1187.     if attacking == false then
  1188.         Slash()
  1189.     end
  1190. end)
  1191. Mouse.Button1Up:connect(function()
  1192.     repeatmouse = false
  1193. end)
  1194. Mouse.KeyDown:connect(function(key)
  1195.     if stoped == false and game.Players:FindFirstChild(plrr.Name) then repeatkey=true
  1196.         if key == "w" then
  1197.             W=true
  1198.         elseif key == "a" then
  1199.             A=true
  1200.         elseif key == "s" then
  1201.             S=true
  1202.         elseif key == "d" then
  1203.             D=true
  1204.         elseif key == "space" or key == "j" then
  1205.             if falling == false then
  1206.                 falling=true
  1207.                 fallingspeed=-50
  1208.                 MainPosition=MainPosition*CFrame.new(0,2,0)
  1209.             end
  1210.         elseif key == "e" and attacking == false then
  1211.             Shoot()
  1212.         elseif key == "z" and attacking == false then
  1213.             Dash()
  1214.         elseif key == "c" and attacking == false then
  1215.             ThrowKnife()
  1216.         elseif key == "p" then
  1217.             MainModel:Destroy()
  1218.             cam:Destroy()
  1219.         elseif key == "l" then
  1220.             stopeffects=true wait() stopeffects=false
  1221.         elseif key == "n" then
  1222.             if musid == "rbxassetid://12616491652" then
  1223.                 musid = "rbxassetid://15404924327"
  1224.             else
  1225.                 musid = "rbxassetid://12616491652"
  1226.             end
  1227.         elseif key == "m" then
  1228.             playmus = not playmus
  1229.         end
  1230.     end
  1231. end)
  1232. Mouse.KeyUp:connect(function(key)
  1233.     if stoped == false and game.Players:FindFirstChild(plrr.Name) then
  1234.         if key=="w" then
  1235.             W=false
  1236.         elseif key=="a" then
  1237.             A=false
  1238.         elseif key=="s" then
  1239.             S=false
  1240.         elseif key=="d" then
  1241.             D=false
  1242.         elseif key=="e" then
  1243.             repeatkey = false
  1244.         elseif key=="z" then
  1245.             repeatkey = false
  1246.         end
  1247.     end
  1248. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement