Advertisement
XSleepyDemonX_17

:flushed:

Dec 7th, 2019
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.13 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("uwu")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --When'sWaifu
  8. wait(0.2)
  9. print("Hey!!!")
  10. print("You Pervert!!!")
  11. local hoh = game:GetService"Players".LocalPlayer
  12. local char = hoh.Character
  13. local Head = char.Head
  14. local LeftArm = char["Left Arm"]
  15. local RightArm = char["Right Arm"]
  16. local LeftLeg = char["Left Leg"]
  17. local RightLeg = char["Right Leg"]
  18. mouse = hoh:GetMouse()
  19. local cam = game.Workspace.CurrentCamera
  20. local RootPart = char.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local Anim = "Idle"
  23. local idle = 0
  24. local Effects = {}
  25. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  26. vt = Vector3.new
  27. local cf = CFrame.new
  28. local mr = math.rad
  29. local angles = CFrame.Angles
  30. local ud = UDim2.new
  31. local c3 = Color3.new
  32. local velocity = RootPart.Velocity.y
  33. local sine = 0
  34. local change = 1
  35. local grabbed = false
  36. local cn = CFrame.new
  37. local mr = math.rad
  38. local angles = CFrame.Angles
  39. local ud = UDim2.new
  40. local c3 = Color3.new
  41. local d = Instance.new('Model', char)
  42. d.Name = "KKK"
  43. attack = false
  44. nak = false
  45. disable = false
  46. attacktype = 1
  47. equipped = false
  48. char.Humanoid.Animator.Parent = nil
  49. char.Animate.Parent = nil
  50. local newMotor = function(part0, part1, c0, c1)
  51. local w = Instance.new("Motor", part0)
  52. w.Part0 = part0
  53. w.Part1 = part1
  54. w.C0 = c0
  55. w.C1 = c1
  56. return w
  57. end
  58. clerp = function(a, b, t)
  59.  
  60. return a:lerp(b, t)
  61. end
  62.  
  63. for i,v in pairs(char:children()) do
  64. if v:IsA("Hat") then
  65. v:Destroy()
  66. end
  67. for i,v in pairs(char:children()) do
  68. if v:IsA("Accessory") then
  69. v:Destroy()
  70. end
  71. for i,v in pairs(char:children()) do
  72. if v:IsA("ShirtGraphic") then
  73. v:Destroy()
  74. end
  75. end
  76. end
  77. end
  78.  
  79. ypcall(function()
  80. char.Torso.roblox:Remove()
  81. char.Shirt:Destroy()
  82. char.Pants:Destroy()
  83. char.Head.face:Destroy()
  84. shirt = Instance.new("Shirt", char)
  85. shirt.Name = "Shirt"
  86. Pants = Instance.new("Pants", char)
  87. Pants.Name = "Pants"
  88. face = Instance.new("Decal", char.Head)
  89. face.Name = "face"
  90. char.Shirt.ShirtTemplate = "rbxassetid://251988595"
  91. char.Pants.PantsTemplate = "rbxassetid://324421595"
  92. char.Head.face.Texture = "rbxassetid://648887959"
  93. end)
  94. function CreateSound(id, par, vol, pit)
  95. coroutine.resume(coroutine.create(function()
  96. local sou = Instance.new("Sound", par or workspace)
  97. sou.Volume = vol
  98. sou.Pitch = pit or 1
  99. sou.SoundId = id
  100. wait()
  101. sou:play()
  102. game:GetService("Debris"):AddItem(sou, 6)
  103. end))
  104. end
  105. New = function(Object, Parent, Name, Data)
  106. local Object = Instance.new(Object)
  107. for Index, Value in pairs(Data or {}) do
  108. Object[Index] = Value
  109. end
  110. Object.Parent = Parent
  111. Object.Name = Name
  112. return Object
  113. end
  114.  
  115.  
  116. local co1 = 5
  117. local co2 = 8
  118. local co3 = 10
  119. local co4 = 25
  120. local cooldown1 = 0
  121. local cooldown2 = 0
  122. local cooldown3 = 0
  123. local cooldown4 = 0
  124. local skillcolorscheme = BrickColor.new("Pink").Color
  125. local scrn = Instance.new("ScreenGui", hoh.PlayerGui)
  126. makeframe = function(par, trans, pos, size, color)
  127.  
  128. local frame = Instance.new("Frame", par)
  129. frame.BackgroundTransparency = trans
  130. frame.BorderSizePixel = 0
  131. frame.Position = pos
  132. frame.Size = size
  133. frame.BackgroundColor3 = color
  134. return frame
  135. end
  136.  
  137. makelabel = function(par, text)
  138.  
  139. local label = Instance.new("TextLabel", par)
  140. label.BackgroundTransparency = 1
  141. label.Size = UDim2.new(1, 0, 1, 0)
  142. label.Position = UDim2.new(0, 0, 0, 0)
  143. label.TextColor3 = Color3.new(255, 255, 250)
  144. label.TextStrokeTransparency = 0
  145. label.FontSize = Enum.FontSize.Size32
  146. label.Font = Enum.Font.SourceSansLight
  147. label.BorderSizePixel = 0
  148. label.TextScaled = true
  149. label.Text = text
  150. end
  151.  
  152. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  153. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  154. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  155. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  156. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  157. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  158. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  159. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  160. text1 = Instance.new("TextLabel", framesk1)
  161. text1.BackgroundTransparency = 1
  162. text1.Size = UDim2.new(1, 0, 1, 0)
  163. text1.Position = UDim2.new(0, 0, 0, 0)
  164. text1.TextColor3 = Color3.new(255, 255, 255)
  165. text1.TextStrokeTransparency = 0
  166. text1.FontSize = Enum.FontSize.Size18
  167. text1.Font = Enum.Font.SourceSansLight
  168. text1.BorderSizePixel = 0
  169. text1.TextScaled = true
  170. text1.Text = "[Z]\n honk"
  171. text2 = Instance.new("TextLabel", framesk2)
  172. text2.BackgroundTransparency = 1
  173. text2.Size = UDim2.new(1, 0, 1, 0)
  174. text2.Position = UDim2.new(0, 0, 0, 0)
  175. text2.TextColor3 = Color3.new(255, 255, 255)
  176. text2.TextStrokeTransparency = 0
  177. text2.FontSize = Enum.FontSize.Size18
  178. text2.Font = Enum.Font.SourceSansLight
  179. text2.BorderSizePixel = 0
  180. text2.TextScaled = true
  181. text2.Text = "[X]\n idk"
  182. text3 = Instance.new("TextLabel", framesk3)
  183. text3.BackgroundTransparency = 1
  184. text3.Size = UDim2.new(1, 0, 1, 0)
  185. text3.Position = UDim2.new(0, 0, 0, 0)
  186. text3.TextColor3 = Color3.new(255, 255, 255)
  187. text3.TextStrokeTransparency = 0
  188. text3.FontSize = Enum.FontSize.Size18
  189. text3.Font = Enum.Font.SourceSansLight
  190. text3.BorderSizePixel = 0
  191. text3.TextScaled = false
  192. text3.Text = "[C]\n aaaaa"
  193. text4 = Instance.new("TextLabel", framesk4)
  194. text4.BackgroundTransparency = 1
  195. text4.Size = UDim2.new(1, 0, 1, 0)
  196. text4.Position = UDim2.new(0, 0, 0, 0)
  197. text4.TextColor3 = Color3.new(255, 255, 255)
  198. text4.TextStrokeTransparency = 0
  199. text4.FontSize = Enum.FontSize.Size18
  200. text4.Font = Enum.Font.SourceSansLight
  201. text4.BorderSizePixel = 0
  202. text4.TextScaled = true
  203. text4.Text = "[V]\n kil me"
  204.  
  205. ArtificialHB = Instance.new("BindableEvent", hoh.PlayerGui)
  206. ArtificialHB.Name = "Heartbeat"
  207. hoh.PlayerGui:WaitForChild("Heartbeat")
  208. frame = 0.033333333333333
  209. tf = 0
  210. allowframeloss = false
  211. tossremainder = false
  212. lastframe = tick()
  213. hoh.PlayerGui.Heartbeat:Fire()
  214. local gg = false
  215. game:GetService("RunService").Heartbeat:connect(function(s, p)
  216.  
  217. if hoh.PlayerGui:FindFirstChild("Heartbeat") == nil then
  218. gg = true
  219. end
  220. if gg == true then
  221. return
  222. end
  223. tf = tf + s
  224. if frame <= tf then
  225. if allowframeloss then
  226. hoh.PlayerGui.Heartbeat:Fire()
  227. lastframe = tick()
  228. else
  229. for i = 1, math.floor(tf / frame) do
  230. hoh.PlayerGui.Heartbeat:Fire()
  231. end
  232. lastframe = tick()
  233. end
  234. if tossremainder then
  235. tf = 0
  236. else
  237. tf = tf - frame * math.floor(tf / frame)
  238. end
  239. end
  240. end
  241. )
  242. swait = function(num)
  243.  
  244. if num == 0 or num == nil then
  245. ArtificialHB.Event:wait()
  246. else
  247. for i = 0, num do
  248. ArtificialHB.Event:wait()
  249. end
  250. end
  251. end
  252. local RbxUtility = LoadLibrary("RbxUtility")
  253. local Create = RbxUtility.Create
  254. RemoveOutlines = function(part)
  255.  
  256. part.TopSurface = 10
  257. end
  258. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  259.  
  260. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  261. RemoveOutlines(Part)
  262. return Part
  263. end
  264.  
  265. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  266.  
  267. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  268. if Mesh == "SpecialMesh" then
  269. Msh.MeshType = MeshType
  270. Msh.MeshId = MeshId
  271. end
  272. return Msh
  273. end
  274.  
  275. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  276.  
  277. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  278. return Weld
  279. end
  280.  
  281. CFuncs = {
  282. Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  283.  
  284. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  285. RemoveOutlines(Part)
  286. return Part
  287. end
  288. }
  289. ,
  290. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  291.  
  292. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  293. if Mesh == "SpecialMesh" then
  294. Msh.MeshType = MeshType
  295. Msh.MeshId = MeshId
  296. end
  297. return Msh
  298. end
  299. }
  300. ,
  301. Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  302.  
  303. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  304. if Mesh == "SpecialMesh" then
  305. Msh.MeshType = MeshType
  306. Msh.MeshId = MeshId
  307. end
  308. return Msh
  309. end
  310. }
  311. ,
  312. Weld = {Create = function(Parent, Part0, Part1, C0, C1)
  313.  
  314. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  315. return Weld
  316. end
  317. }
  318. ,
  319. Sound = {Create = function(id, par, vol, pit)
  320.  
  321. coroutine.resume(coroutine.create(function()
  322.  
  323. local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace})
  324. wait()
  325. S:play()
  326. game:GetService("Debris"):AddItem(S, 6)
  327. end
  328. ))
  329. end
  330. }
  331. ,
  332. ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  333.  
  334. local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
  335. return fp
  336. end
  337. }
  338. }
  339.  
  340.  
  341.  
  342. rayCast = function(Position, Direction, Range, Ignore)
  343.  
  344. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  345. end
  346.  
  347. local GetNearest = function(obj, distance)
  348.  
  349. local last, lastx = distance + 1, nil
  350. for i,v in pairs(workspace:GetChildren()) do
  351. if v:IsA("Model") and v ~= char and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  352. local t = v.Torso
  353. local dist = (t.Position - obj.Position).magnitude
  354. if dist <= distance and dist < last then
  355. last = dist
  356. lastx = v
  357. end
  358. end
  359. end
  360. return lastx
  361. end
  362.  
  363.  
  364. --[[armweld = Instance.new("Weld", char.Torso)
  365. armweld.C0 = CFrame.new(1.5, .5, 0)
  366. armweld.C1 = CFrame.new(0, .5, 0)
  367. armweld.Part0 = char.Torso
  368. armweld.Part1 = char["Right Arm"]]
  369.  
  370. local Fhead = Instance.new("Part", char)
  371. Fhead.Name = "a"
  372. Fhead.Size = Vector3.new(2, 1, 1)
  373. Fhead.Transparency = 1
  374. Fhead.CanCollide = false
  375. M = Instance.new("SpecialMesh", Fhead)
  376. M.Scale = Vector3.new(1.26,1.26,1.26)
  377. Das = Instance.new("Decal", Fhead)
  378. Das.Texture = "rbxassetid://660774132"
  379. Das.Transparency = 1
  380.  
  381.  
  382. local har1 = Instance.new("Part", char.Head)
  383. har1.BrickColor = BrickColor.new("Brown")
  384. har1.Name = "Hat"
  385. har1.formFactor = 0
  386. har1.Size = Vector3.new(0,-0.25,0)
  387. har1.BottomSurface = 0
  388. har1.TopSurface = 0
  389. har1.CanCollide = false
  390. Mesh = Instance.new("SpecialMesh",har1)
  391. Mesh.MeshId = "http://www.roblox.com/asset/?id=1374148"
  392. Mesh.TextureId = "http://www.roblox.com/asset/?id=413143035"
  393. Mesh.Scale=Vector3.new(1.01, .99, 1.01)
  394. local bWeld = Instance.new("Weld", char.Head)
  395. bWeld.Part0 = char.Head
  396. bWeld.Part1 = har1
  397. bWeld.C1 = CFrame.new(0,.4,0)
  398.  
  399. local ears = Instance.new("Part", char.Head)
  400. ears.BrickColor = BrickColor.new("Really black")
  401. ears.Name = "Hair"
  402. ears.formFactor = 0
  403. ears.Size = Vector3.new(0,-0.25,0)
  404. ears.BottomSurface = 0
  405. ears.TopSurface = 0
  406. ears.CanCollide = false
  407. Mesh = Instance.new("SpecialMesh",har1)
  408. Mesh.MeshId = "http://www.roblox.com/asset/?id=13070796"
  409. Mesh.TextureId = "http://www.roblox.com/asset/?id=13694600"
  410. Mesh.Scale=Vector3.new(1.01, .99, 1.01)
  411. local bWeld = Instance.new("Weld", char.Head)
  412. bWeld.Part0 = char.Head
  413. bWeld.Part1 = ears
  414. bWeld.C1 = CFrame.new(0,.4,0)
  415.  
  416.  
  417. local main = Instance.new("Part", char.Torso)
  418. main.Size = Vector3.new(.1, .1, .1)
  419. main.BrickColor = BrickColor.new("White")
  420. main.TopSurface = "SmoothNoOutlines"
  421. main.Name = "asd"
  422. main.Transparency = 1
  423. main.CanCollide = false
  424.  
  425. local Handle = Instance.new("Part",d)
  426. Handle.Size = Vector3.new(0.3, 1.8, 3)
  427. Handle.Name = "Pan"
  428. Handle:BreakJoints()
  429. Handle.Anchored = false
  430. Handle.Transparency = 1
  431. Handle.CanCollide = false
  432. Handle.Shape = "Block"
  433. Handle.TopSurface = "SmoothNoOutlines"
  434. Handle.BottomSurface = "SmoothNoOutlines"
  435. ddd = Instance.new("SpecialMesh",Handle)
  436. ddd.Scale=Vector3.new(2, 2, 2)
  437. ddd.MeshId = "http://www.roblox.com/asset/?id=11820238"
  438. ddd.TextureId = "http://www.roblox.com/asset/?id=11820143"
  439. local Hitbox = Instance.new("Part",d)
  440. Hitbox.Size = Vector3.new(0.3, 1.8, 3)
  441. Hitbox.Name = "Hitbox"
  442. Hitbox:BreakJoints()
  443. Hitbox.Anchored = false
  444. Hitbox.Transparency = 1
  445. Hitbox.CanCollide = false
  446. Hitbox.Shape = "Block"
  447. Hitbox.TopSurface = "SmoothNoOutlines"
  448. Hitbox.BottomSurface = "SmoothNoOutlines"
  449. ddd = Instance.new("SpecialMesh",Handle)
  450. ddd.Scale=Vector3.new(2, 2, 2)
  451. ddd.MeshId = "http://www.roblox.com/asset/?id=11820238"
  452. ddd.TextureId = "http://www.roblox.com/asset/?id=11820143"
  453. local FakeHandle = Instance.new("Part",d)
  454. FakeHandle.Size = Vector3.new(0.3, 1.9, 3)
  455. FakeHandle.Name = "FakeHandle"
  456. FakeHandle:BreakJoints()
  457. FakeHandle.Anchored = false
  458. FakeHandle.Transparency = 1
  459. FakeHandle.CanCollide = false
  460. FakeHandle.Shape = "Block"
  461. FakeHandle.TopSurface = "SmoothNoOutlines"
  462. FakeHandle.BottomSurface = "SmoothNoOutlines"
  463. ddd = Instance.new("SpecialMesh",FakeHandle)
  464. ddd.Scale=Vector3.new(2, 2, 2)
  465. ddd.MeshId = "http://www.roblox.com/asset/?id=11820238"
  466. ddd.TextureId = "http://www.roblox.com/asset/?id=11820143"
  467.  
  468.  
  469.  
  470. local aWeld = Instance.new("Weld", char.Head)
  471. aWeld.Part0 = char.Head
  472. aWeld.Part1 = Fhead
  473. local aWeld = Instance.new("Weld", char.Torso)
  474. aWeld.Part0 = char.Torso
  475. aWeld.C1 = CFrame.new(0,1.2,.5)
  476. local aWeld = Instance.new("Weld", char.Torso)
  477. aWeld.Part0 = char.Torso
  478. aWeld.Part1 = A1
  479. aWeld.C1 = CFrame.new(.5,-.5,.5)
  480. local aWeld = Instance.new("Weld", char.Torso)
  481. aWeld.Part0 = char.Torso
  482. aWeld.Part1 = A2
  483. aWeld.C1 = CFrame.new(-.5,-.5,.5)
  484. local aWeld = Instance.new("Weld", char.Torso)
  485. aWeld.Part0 = char.Torso
  486. aWeld.Part1 = A3
  487. aWeld.C1 = CFrame.new(0,-1,.5)
  488. local aWeld = Instance.new("Weld", char.Torso)
  489. aWeld.Part0 = char.Torso
  490. aWeld.Part1 = A4
  491. aWeld.C1 = CFrame.new(.6,-1,0)
  492. local aWeld = Instance.new("Weld", char.Torso)
  493. aWeld.Part0 = char.Torso
  494. aWeld.Part1 = A5
  495. aWeld.C1 = CFrame.new(-.6,-1,0)
  496. local aWeld = Instance.new("Weld", char.Torso)
  497. aWeld.Part0 = char.Torso
  498. aWeld.Part1 = A6
  499. aWeld.C1 = CFrame.new(0,-1,-.42)
  500. local aWeld = Instance.new("Weld", char.Torso)
  501. aWeld.Part0 = char.Torso
  502. aWeld.Part1 = A7
  503. aWeld.C1 = CFrame.new(0,.6,0)
  504. local aWeld = Instance.new("Weld", char.Torso)
  505. aWeld.Part0 = char.Torso
  506. aWeld.Part1 = A8
  507. aWeld.C1 = CFrame.new(0,-1,-.55)
  508. local aWeld = Instance.new("Weld", char.Torso)
  509. aWeld.Part0 = char.Torso
  510. aWeld.Part1 = A9
  511. aWeld.C1 = CFrame.new(0,.6,-.55)
  512. local aWeld = Instance.new("Weld", char.Torso)
  513. aWeld.Part0 = char.Torso
  514. aWeld.Part1 = da
  515. aWeld.C1 = CFrame.new(0,.2,.5)
  516. local aWeld = Instance.new("Weld", char.Torso)
  517. aWeld.Part0 = char.Torso
  518. aWeld.Part1 = da1
  519. aWeld.C1 = CFrame.new(0,.2,.5)
  520.  
  521. Weld = Instance.new("Weld",Handle)
  522. Weld.Part0 = Weld.Parent
  523. Weld.Part1 = FakeHandle
  524. Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,-math.rad(0))
  525. Weld = Instance.new("Weld",Hitbox)
  526. Weld.Part0 = Weld.Parent
  527. Weld.Part1 = FakeHandle
  528. Weld.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,-math.rad(0))
  529. FakeHandleWeld = Instance.new("Weld",FakeHandle)
  530. FakeHandleWeld.Part0 = FakeHandle
  531. FakeHandleWeld.Part1 = char["Right Arm"]
  532. FakeHandleWeld.C0 = CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90))
  533.  
  534.  
  535. local manWeld = Instance.new("Weld", char.Torso)
  536. manWeld.Part0 = char.Torso
  537. manWeld.Part1 = main
  538. manWeld.C1 = CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(40),-math.rad(90))
  539. manWeld.C0 = CFrame.new(0,-0.4,0)--*CFrame.Angles(math.rad(90),0,0)
  540.  
  541. local cWeld = Instance.new("Weld", char.Torso)
  542. cWeld.Part0 = main
  543. --cWeld.C1 = CFrame.new(0,0,0)*CFrame.angles(0,0,0)
  544. -----
  545. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  546. NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  547. local RW = newMotor(char.Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  548. local LW = newMotor(char.Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  549. local RH = newMotor(char.Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0))
  550. local LH = newMotor(char.Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0))
  551. RootJoint.C1 = CFrame.new(0, 0, 0)
  552. RootJoint.C0 = CFrame.new(0, 0, 0)
  553. char.Torso.Neck.C1 = CFrame.new(0, 0, 0)
  554. char.Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  555. local rarmc1 = RW.C1
  556. local larmc1 = LW.C1
  557. local rlegc1 = RH.C1
  558. local llegc1 = LH.C1
  559. local resetc1 = false
  560. PlayAnimationFromTable = function(table, speed, bool)
  561. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  562. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, table[2], speed)
  563. RW.C0 = clerp(RW.C0, table[3], speed)
  564. LW.C0 = clerp(LW.C0, table[4], speed)
  565. RH.C0 = clerp(RH.C0, table[5], speed)
  566. LH.C0 = clerp(LH.C0, table[6], speed)
  567. if bool == true and resetc1 == false then
  568. resetc1 = true
  569. RootJoint.C1 = RootJoint.C1
  570. char.Torso.Neck.C1 = char.Torso.Neck.C1
  571. RW.C1 = rarmc1
  572. LW.C1 = larmc1
  573. RH.C1 = rlegc1
  574. LH.C1 = llegc1
  575. end
  576. end
  577.  
  578. --
  579. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  580.  
  581. if hit.Parent == nil then
  582. return
  583. end
  584. local h = hit.Parent:FindFirstChild("Humanoid")
  585. for _,v in pairs(hit.Parent:children()) do
  586. if v:IsA("Humanoid") then
  587. h = v
  588. end
  589. end
  590. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  591. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  592. return
  593. end
  594. local c = Create("ObjectValue")({Name = "creator", Value = Owner, Parent = h})
  595. game:GetService("Debris"):AddItem(c, 0.5)
  596. if HitSound ~= nil and HitPitch ~= nil then
  597. CreateSound(HitSound, hit, 1, HitPitch)
  598. end
  599. local Damage = math.random(minim, maxim)
  600. local blocked = false
  601. local block = hit.Parent:findFirstChild("Block")
  602. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  603. blocked = true
  604. block.Value = block.Value - 1
  605. print(block.Value)
  606. end
  607. if blocked == false then
  608. h.Health = h.Health - Damage
  609. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  610. else
  611. h.Health = h.Health - Damage / 2
  612. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  613. end
  614. if Type == "Knockdown" then
  615. local hum = hit.Parent.Humanoid
  616. hum.PlatformStand = true
  617. coroutine.resume(coroutine.create(function(HHumanoid)
  618.  
  619. swait(1)
  620. HHumanoid.PlatformStand = false
  621. end
  622. ), hum)
  623. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  624. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  625. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  626. game:GetService("Debris"):AddItem(bodvol, 0.5)
  627. game:GetService("Debris"):AddItem(rl, 0.5)
  628. elseif Type == "Normal" then
  629. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  630. if knockback > 0 then
  631. vp.Parent = hit.Parent.Torso
  632. end
  633. game:GetService("Debris"):AddItem(vp, 0.5)
  634. elseif Type == "Up" then
  635. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  636. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  637. local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  638. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  639. elseif Type == "Snare" then
  640. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  641. game:GetService("Debris"):AddItem(bp, 1)
  642. elseif Type == "Freeze" then
  643. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  644. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  645. hit.Parent.Torso.Anchored = true
  646. coroutine.resume(coroutine.create(function(Part)
  647.  
  648. swait(1.5)
  649. Part.Anchored = false
  650. end
  651. ), hit.Parent.Torso)
  652. game:GetService("Debris"):AddItem(BodPos, 3)
  653. game:GetService("Debris"):AddItem(BodGy, 3)
  654. end
  655. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  656. game:GetService("Debris"):AddItem(debounce, Delay)
  657. c = Instance.new("ObjectValue")
  658. c.Name = "creator"
  659. c.Value = Owner
  660. c.Parent = h
  661. game:GetService("Debris"):AddItem(c, 0.5)
  662. end
  663. end
  664.  
  665. ShowDamage = function(Pos, Text, Time, Color)
  666.  
  667. local Rate = 0.033333333333333
  668. if not Pos then
  669. local Pos = Vector3.new(0, 0, 0)
  670. end
  671. local Text = Text or ""
  672. local Time = Time or 2
  673. if not Color then
  674. local Color = Color3.new(1, 1, 0)
  675. end
  676. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  677. EffectPart.Anchored = true
  678. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  679. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  680. game.Debris:AddItem(EffectPart, Time + 0.1)
  681. EffectPart.Parent = game:GetService("Workspace")
  682. delay(0, function()
  683.  
  684. local Frames = Time / Rate
  685. for Frame = 1, Frames do
  686. wait(Rate)
  687. local Percent = Frame / Frames
  688. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  689. TextLabel.TextTransparency = Percent
  690. end
  691. if EffectPart and EffectPart.Parent then
  692. EffectPart:Destroy()
  693. end
  694. end
  695. )
  696. end
  697.  
  698. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  699.  
  700. for _,c in pairs(workspace:children()) do
  701. local hum = c:findFirstChild("Humanoid")
  702. if hum ~= nil then
  703. local head = c:findFirstChild("Torso")
  704. if head ~= nil then
  705. local targ = head.Position - Part.Position
  706. local mag = targ.magnitude
  707. if mag <= magni and c.Name ~= hoh.Name then
  708. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  709. end
  710. end
  711. end
  712. end
  713. end
  714.  
  715. EffectModel = Instance.new("Model", char)
  716. EffectModel.Name = "Effects"
  717. Effects = {
  718. Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  719.  
  720. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  721. prt.Anchored = true
  722. prt.CFrame = cframe
  723. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  724. game:GetService("Debris"):AddItem(prt, 10)
  725. if Type == 1 or Type == nil then
  726. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  727. else
  728. if Type == 2 then
  729. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  730. end
  731. end
  732. end
  733. }
  734. ,
  735. Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  736.  
  737. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  738. prt.Anchored = true
  739. prt.CFrame = cframe
  740. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  741. game:GetService("Debris"):AddItem(prt, 10)
  742. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  743. end
  744. }
  745. ,
  746. Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  747.  
  748. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  749. prt.Anchored = true
  750. prt.CFrame = cframe
  751. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  752. game:GetService("Debris"):AddItem(prt, 10)
  753. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  754. end
  755. }
  756. ,
  757. Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  758.  
  759. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  760. prt.Anchored = true
  761. prt.CFrame = cframe
  762. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  763. game:GetService("Debris"):AddItem(prt, 10)
  764. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  765. end
  766. }
  767. ,
  768. Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  769.  
  770. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  771. prt.Anchored = true
  772. prt.CFrame = cframe
  773. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  774. game:GetService("Debris"):AddItem(prt, 10)
  775. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  776. end
  777. }
  778. ,
  779. Break = {Create = function(brickcolor, cframe, x1, y1, z1)
  780.  
  781. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  782. prt.Anchored = true
  783. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  784. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  785. local num = math.random(10, 50) / 1000
  786. game:GetService("Debris"):AddItem(prt, 10)
  787. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  788. end
  789. }
  790. }
  791. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  792.  
  793. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  794. prt.Anchored = true
  795. prt.CFrame = cframe
  796. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  797. game:GetService("Debris"):AddItem(prt, 10)
  798. if Type == 1 or Type == nil then
  799. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  800. else
  801. if Type == 2 then
  802. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  803. end
  804. end
  805. end
  806. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  807.  
  808. local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  809. prt.Anchored = true
  810. prt.CFrame = cframe
  811. prt.Material = "Neon"
  812. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  813. game:GetService("Debris"):AddItem(prt, 10)
  814. coroutine.resume(coroutine.create(function(Part, Mesh)
  815.  
  816. for i = 0, 1, delay do
  817. swait()
  818. Part.Transparency = i
  819. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  820. end
  821. Part.Parent = nil
  822. end
  823. ), prt, msh)
  824. end
  825.  
  826. shoottraildd = function(mouse, partt, SpreadAmount)
  827.  
  828. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  829. local MainPos = partt.Position
  830. local MainPos2 = mouse.Hit.p + SpreadVectors
  831. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  832. local speed = 15
  833. local num = 20
  834. coroutine.resume(coroutine.create(function()
  835.  
  836. repeat
  837. swait()
  838. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  839. local mag = (MainPos - pos).magnitude
  840. Laser(BrickColor.new("Bright red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.175, 0, -0.175, 0.15)
  841. MainPos = MainPos + MouseLook.lookVector * speed
  842. num = num - 1
  843. MouseLook = MouseLook * angles(math.rad(-1), 0, 0)
  844. if hit ~= nil then
  845. num = 0
  846. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  847. refpart.Anchored = true
  848. refpart.CFrame = CFrame.new(pos)
  849. game:GetService("Debris"):AddItem(refpart, 2)
  850. end
  851. do
  852. if num <= 0 then
  853. local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  854. refpart.Anchored = true
  855. refpart.CFrame = CFrame.new(pos)
  856. if hit ~= nil then
  857. CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 1, 1)
  858. BlockEffect(BrickColor.new("Industrial white"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05)
  859. BlockEffect(BrickColor.new("Bright red"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07)
  860. MagniDamage(refpart, 15, 10, 15, 0, "Normal")
  861. end
  862. game:GetService("Debris"):AddItem(refpart, 0)
  863. end
  864. end
  865. until num <= 0
  866. end
  867. ))
  868. end
  869. -----
  870. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  871. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  872. prt.Anchored = true
  873. prt.CFrame = cframe
  874. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  875. game:GetService("Debris"):AddItem(prt, 10)
  876. table.insert(Effects, {
  877. prt,
  878. "Cylinder",
  879. delay,
  880. x3,
  881. y3,
  882. z3,
  883. msh
  884. })
  885. end
  886. -----
  887. function AppearDisappear()
  888. local ez = Instance.new("Part",char)
  889. ez.Size = Vector3.new(1,1,1)
  890. ez.Name = "a"
  891. ez:BreakJoints()
  892. ez.Anchored = false
  893. ez.Transparency = 0
  894. ez.CanCollide = false
  895. ez.Shape = "Block"
  896. ez.Material='Neon'
  897. ez.TopSurface = "SmoothNoOutlines"
  898. ez.BottomSurface = "SmoothNoOutlines"
  899. ez.BrickColor = BrickColor.new("White")
  900. ddd = Instance.new("SpecialMesh",ez)
  901. ddd.MeshType="Sphere"
  902. ddd.Scale=Vector3.new(6,6,6)
  903. Weld = Instance.new("Weld",ez)
  904. Weld.Part0 = Weld.Parent
  905. Weld.Part1 = char.Torso
  906. for a = 0, 1, .05 do
  907. ddd.Scale = ddd.Scale + Vector3.new(.5, .5, .5)
  908. ez.Transparency = ez.Transparency + .1
  909. wait()
  910. end
  911. ez:Remove()
  912. end
  913. function AppearDisappear1()
  914. Das.Transparency = 0
  915. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=582878615"
  916. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=468148440"
  917. CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, 1)
  918. end
  919. function AppearDisappear2()
  920. Das.Transparency = 0
  921. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=2032570923"
  922. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=2091372659"
  923. CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, .8)
  924. end
  925. function equip()
  926. Handle.Transparency = 0
  927. local ez = Instance.new("Part",char)
  928. ez.Size = Vector3.new(1,1,1)
  929. ez.Name = "a"
  930. ez:BreakJoints()
  931. ez.Anchored = false
  932. ez.Transparency = 0
  933. ez.CanCollide = false
  934. ez.Shape = "Block"
  935. ez.Material='Neon'
  936. ez.TopSurface = "SmoothNoOutlines"
  937. ez.BottomSurface = "SmoothNoOutlines"
  938. ez.BrickColor = BrickColor.new("Industrial white")
  939. ddd = Instance.new("SpecialMesh",ez)
  940. ddd.MeshType="Sphere"
  941. ddd.Scale=Vector3.new(1,1,1)
  942. Weld = Instance.new("Weld",ez)
  943. Weld.Part0 = Weld.Parent
  944. Weld.Part1 = Handle
  945. CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, 1)
  946. for a = 0, 1, .05 do--while wait() and ez and ez.Transparency <= 1 do
  947. ddd.Scale = ddd.Scale + Vector3.new(1, 1, 1)
  948. ez.Transparency = ez.Transparency + .1
  949. wait()
  950. end
  951. ez:Remove()
  952. end
  953. function unequip()
  954. Handle.Transparency = 1
  955. local ez = Instance.new("Part",char)
  956. ez.Size = Vector3.new(1,1,1)
  957. ez.Name = "a"
  958. ez:BreakJoints()
  959. ez.Anchored = false
  960. ez.Transparency = 0
  961. ez.CanCollide = false
  962. ez.Shape = "Block"
  963. ez.Material='Neon'
  964. ez.TopSurface = "SmoothNoOutlines"
  965. ez.BottomSurface = "SmoothNoOutlines"
  966. ez.BrickColor = BrickColor.new("Industrial white")
  967. ddd = Instance.new("SpecialMesh",ez)
  968. ddd.MeshType="Sphere"
  969. ddd.Scale=Vector3.new(1,1,1)
  970. Weld = Instance.new("Weld",ez)
  971. Weld.Part0 = Weld.Parent
  972. Weld.Part1 = Handle
  973. CreateSound("http://roblox.com/asset/?id=356427062", char.Torso, 1.2, .8)
  974. for a = 0, 1, .05 do
  975. ddd.Scale = ddd.Scale + Vector3.new(1, 1, 1)
  976. ez.Transparency = ez.Transparency + .1
  977. wait()
  978. end
  979. ez:Remove()
  980. end
  981. attack1 = function()
  982. attack = true
  983. local con = Hitbox.Touched:connect(function(hit)
  984.  
  985. Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  986. end
  987. )
  988. for i = 0, 1, 0.1 do
  989. swait()
  990. --PlayAnimationFromTable({CFrame.new(0, 0, 0, 0.529917479, 0, -0.848049283, 0, 1, 0, 0.848049283, 0, 0.529917479), CFrame.new(0, 1.49999499, 0, 0.406736165, 0, 0.913545728, 0, 1, 0, -0.913545728, 0, 0.406736165), CFrame.new(1.35679102, 0.782658279, 0.0675592273, 0.707045317, -0.527684033, 0.470782787, 0.133834034, -0.553849995, -0.82178998, 0.694388449, 0.644049466, -0.320975006), CFrame.new(-1.69279337, 0.499999672, -0.79492861, 0.717408359, 0.691137791, 0.0874861553, -0.0527720191, 0.179133937, -0.982408345, -0.694651246, 0.700171173, 0.164984912), CFrame.new(0.641659617, -1.99999392, 0.125842437, 0.882947862, 0, -0.469471127, 0, 1, 0, 0.469471127, 0, 0.882947862), CFrame.new(-0.348587006, -1.99999392, -0.0133331716, 0.898793101, 0, 0.438373119, 0, 1, 0, -0.438373119, 0, 0.898793101)}, 0.3, false)
  991. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3)
  992. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  993. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 1.6, -.6) * angles(math.rad(160), math.rad(0), math.rad(0)), 0.3)
  994. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  995. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  996. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  997.  
  998. end
  999. CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 1.5)
  1000. for i = 0, 1, 0.1 do
  1001. swait()
  1002. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  1003. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1004. RW.C0 = clerp(RW.C0, CFrame.new(.9, -.1, -.8) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1005. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1006. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1007. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1008.  
  1009.  
  1010. --PlayAnimationFromTable({CFrame.new(0.180807382, 0, 0.0999719128, 0.342022538, 0, 0.939691782, 0, 1, 0, -0.939691782, 0, 0.342022538), CFrame.new(0.0106580649, 1.49999499, -0.0643079877, 0.469472408, 0, -0.882947266, 0, 1, 0, 0.882947266, 0, 0.469472408), CFrame.new(1.83224225, 0.376015127, 0.0757035911, 0.135973215, -0.988979697, 0.0585707389, 0.0630049929, -0.0503679588, -0.996741474, 0.988707185, 0.139220387, 0.0554619655), CFrame.new(-0.541033506, 0.699999869, -0.891753554, 0.658596575, -0.726630569, 0.195598423, 0.0759940296, -0.194378868, -0.977978408, 0.74864924, 0.658957481, -0.072797671), CFrame.new(0.641663194, -1.99999392, 0.125834763, 0.406737477, 0, -0.913545191, 0, 1, 0, 0.913545191, 0, 0.406737477), CFrame.new(-0.590457141, -1.99999392, 0.164175183, 0.984808207, 0, -0.173646241, 0, 1, 0, 0.173646241, 0, 0.984808207)}, 0.3, false)
  1011. --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3)
  1012. end
  1013. con:disconnect()
  1014. attack = false
  1015. end
  1016. attack2 = function()
  1017. attack = true
  1018. local con = Hitbox.Touched:connect(function(hit)
  1019.  
  1020. Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1021. end
  1022. )
  1023. for i = 0, 1, 0.1 do
  1024. swait()
  1025. --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false)
  1026. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3)
  1027. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1028. RW.C0 = clerp(RW.C0, CFrame.new(1.2, .75, -1) * angles(math.rad(110), -math.rad(80), math.rad(15)), 0.3)
  1029. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1030. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1031. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1032. --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3)
  1033. end
  1034. CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 2)
  1035. for i = 0, 1, 0.1 do
  1036. swait()
  1037. --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false)
  1038. --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(60), math.rad(0), math.rad(-90)), 0.3)
  1039. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(0)), 0.3)
  1040. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1041. RW.C0 = clerp(RW.C0, CFrame.new(.3, .3, -.3) * angles(math.rad(40), math.rad(30), -math.rad(70)), 0.3)
  1042. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1043. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1044. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1045.  
  1046. end
  1047. con:disconnect()
  1048. attack = false
  1049. end
  1050. attack3 = function()
  1051. attack = true
  1052. local con = Hitbox.Touched:connect(function(hit)
  1053.  
  1054. Damagefunc(Hitbox, hit, 10, 30, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1055. end)
  1056.  
  1057. for i = 0, 1, 0.1 do
  1058. swait()
  1059. --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false)
  1060. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(15), math.rad(0)), 0.3)
  1061. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1062. RW.C0 = clerp(RW.C0, CFrame.new(.35, .5, -.7) * angles(math.rad(205), math.rad(20), -math.rad(110)), 0.3)
  1063. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1064. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1065. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1066. end
  1067. CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", char.Torso, 1, 2)
  1068. for i = 0, .2, 0.1 do
  1069. swait()
  1070. --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false)
  1071. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3)
  1072. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(90), math.rad(0)), 0.3)
  1073. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1074. RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3)
  1075. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1076. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1077. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1078. end
  1079. for i = 0, .2, 0.1 do
  1080. swait()
  1081. --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false)
  1082. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(180), math.rad(0)), 0.3)
  1083. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1084. RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3)
  1085. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1086. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1087. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1088. end
  1089. for i = 0, .2, 0.1 do
  1090. swait()
  1091. --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false)
  1092. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(270), math.rad(0)), 0.3)
  1093. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1094. RW.C0 = clerp(RW.C0, CFrame.new(1.2, .55, -1) * angles(math.rad(90), math.rad(100), math.rad(0)), 0.3)
  1095. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1096. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1097. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1098. end
  1099.  
  1100.  
  1101.  
  1102.  
  1103. for i = 0, 1, 0.1 do
  1104. swait()
  1105. --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false)
  1106. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3)
  1107. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(40), math.rad(0)), 0.3)
  1108. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1109. RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(-math.rad(180), math.rad(0), math.rad(90)), 0.3)
  1110. LW.C0 = clerp(LW.C0, CFrame.new(-2, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1111. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1112. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1113. end
  1114.  
  1115. con:disconnect()
  1116. attack = false
  1117. end
  1118. function kek1()
  1119. attack = true
  1120. Effects.Sphere.Create(BrickColor.new("Industrial white"), FakeHandle.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 6.5, 6.5, 6.5, 4, 4, 4, 0.07)
  1121.  
  1122. CFuncs.Sound.Create("http://www.roblox.com/asset?id=200633707", char.Torso, 0.8, 1.1)
  1123.  
  1124. local Aaaa = Instance.new("Part", RootPart)
  1125. Aaaa.Size = Vector3.new(.1, .1, .1)
  1126. Aaaa.BrickColor = BrickColor.new("White")
  1127. Aaaa.Transparency = 1
  1128. Aaaa.CanCollide = false
  1129. local abbWeld = Instance.new("Weld", RootPart)
  1130. abbWeld.Part0 = RootPart
  1131. abbWeld.Part1 = Aaaa
  1132. abbWeld.C1 = CFrame.new(0,0,9)
  1133.  
  1134. for i = 0, 2.5, 0.1 do
  1135. swait()
  1136. Effects.Ring.Create(BrickColor.new("Pink"), FakeHandle.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 1.5, 1.5, 0, 0.5, 0.5, 0, 0.07)
  1137. --PlayAnimationFromTable({CFrame.new(0.338935494, 0, 0.0863927901, -0.0348953009, 0, 0.999391079, 0, 1, 0, -0.999391079, 0, -0.0348953009), CFrame.new(-0.0100401761, 1.49999499, -0.00284555811, 0.500002861, 0, -0.866023898, 0, 1, 0, 0.866023898, 0, 0.500002861), CFrame.new(1.21845579, 0.576015115, -0.684895277, 0.950073838, 0.308843106, 0.0444484204, 0.0630049855, -0.0503680073, -0.996741474, -0.305597931, 0.949778438, -0.0673119873), CFrame.new(-0.681373537, 0.699999809, -0.527025938, 0.839439929, -0.516847908, 0.167955339, 0.0759939924, -0.194378883, -0.977978468, 0.538113117, 0.833717644, -0.123892054), CFrame.new(0.641661644, -1.99999392, 0.125842005, 0.76604569, 0, -0.642786264, 0, 1, 0, 0.642786264, 0, 0.76604569), CFrame.new(-0.451956809, -1.99999392, -0.00807090476, 0.994521499, 0, 0.104533166, 0, 1, 0, -0.104533151, 0, 0.994521499)}, 0.3, false)
  1138. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(45), math.rad(0)), 0.1)
  1139. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1140. RW.C0 = clerp(RW.C0, CFrame.new(.35, .5, -.7) * angles(math.rad(205), math.rad(20), -math.rad(110)), 0.1)
  1141. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.1)
  1142. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1143. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  1144.  
  1145. end
  1146. for i = 0, 0.2, 0.1 do
  1147. swait()
  1148. --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false)
  1149. --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3)
  1150. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3)
  1151. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1152. RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(math.rad(0), math.rad(0), -math.rad(5)), 0.3)
  1153. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1154. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1155. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1156. end
  1157. Effects.Sphere.Create(BrickColor.new("Pink"), Aaaa.CFrame * angles(math.random(-3,3), math.random(-3,3), math.random(-3,3)), 2.5, 2.5, 2.5, 3.5, 3.5, 3.5, 0.07)
  1158. Effects.Ring.Create(BrickColor.new("Pink"), Aaaa.CFrame * angles(0, 0, math.random(-3,3)), 2.5, 2.5, 2.5, 1, 1, 1, 0.07)
  1159.  
  1160. CFuncs.Sound.Create("http://roblox.com/asset/?id=231917950", Aaaa, 1, 1)
  1161. CFuncs.Sound.Create("http://roblox.com/asset/?id=279675650", FakeHandle, 1, 1.1)
  1162. local con = Aaaa.Touched:connect(function(hit)
  1163. MagniDamage(Aaaa, 30, 30, 55, 4, "Knockdown")
  1164. --Damagefunc(Hitbox, hit, 30, 60, math.random(1, 5), "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1165. end
  1166. )
  1167. for i = 0, 1, 0.1 do
  1168. swait()
  1169. --PlayAnimationFromTable({CFrame.new(0.2283867, 0, 0.115197472, 0.438369602, 0, -0.89879483, 0, 1, 0, 0.89879483, 0, 0.438369602), CFrame.new(0.0305867679, 1.49999499, -0.105302036, 0.438370466, 0, 0.898794472, 0, 1, 0, -0.898794472, 0, 0.438370436), CFrame.new(1.67825615, 0.576015353, -0.394908488, 0.46593222, -0.881719947, 0.0740077272, 0.063004978, -0.0503680483, -0.996741474, 0.88257432, 0.469076842, 0.0320846587), CFrame.new(-1.00808418, 0.399999917, -0.988827169, 0.839437604, -0.542131007, 0.0379279964, 0.0759930089, 0.0479900427, -0.995952845, 0.538116753, 0.838922501, 0.0814828053), CFrame.new(0.641682267, -1.99999392, 0.125833988, 0.9993909, 0, -0.0348993391, 0, 1, 0, 0.0348993391, 0, 0.9993909), CFrame.new(-0.451955765, -1.99999392, -0.00807018578, 0.898794293, 0, 0.438370645, 0, 1, 0, -0.438370645, 0, 0.898794293)}, 0.3, false)
  1170. --FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0,0,-2.4)*CFrame.Angles(math.rad(0),math.rad(90),-math.rad(90)), 0.3)
  1171. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), -math.rad(50), math.rad(0)), 0.3)
  1172. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1173. RW.C0 = clerp(RW.C0, CFrame.new(2, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1174. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.3)
  1175. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1176. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1177. end
  1178. Aaaa:Remove()
  1179. con:disconnect()
  1180. attack = false
  1181. end
  1182. function kek2()
  1183. attack = true
  1184.  
  1185.  
  1186. for i = 0, 1, 0.1 do
  1187. swait()
  1188. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1189. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.3)
  1190. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1191. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 1, 0) * angles(math.rad(179), math.rad(0), math.rad(0)), 0.3)
  1192. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1193. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1194. end
  1195. CFuncs.Sound.Create("rbxassetid://169380505", RootPart, 0.8, 1.5)
  1196. Effects.Cylinder.Create(BrickColor.new("Industrial white"), LeftArm.CFrame * angles(math.rad(2), 0, 0), 1, 9999, 1, 1, 1, 1, 0.07)
  1197. for i = 0, 2, 0.1 do
  1198. swait()
  1199. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1200. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.3)
  1201. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1202. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 1, 0) * angles(math.rad(179), math.rad(0), math.rad(0)), 0.3)
  1203. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1204. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1205. end
  1206. CFuncs.Sound.Create("rbxassetid://169445602", RootPart, 1, 1.2)
  1207. local cf2 = mouse.Hit.p + Vector3.new(math.random(-100, 100) / 50, 50, math.random(-100, 100) / 50)
  1208. local hit2, pos2 = rayCast(cf2, CFrame.new(cf2, cf2 - Vector3.new(0, 1, 0)).lookVector, 999, char)
  1209. if hit2 ~= nil then
  1210. local d1 = CFuncs.Part.Create(workspace, "Neon", 0, 0.5, BrickColor.new("Pink"), "Effect", Vector3.new())
  1211. d1.Anchored = true
  1212. d1.CFrame = CFrame.new(pos2)
  1213. MagniDamage(d1, 20, 10, 25, 5, "Snare")
  1214. Effects.Cylinder.Create(BrickColor.new("Industrial white"), d1.CFrame * angles(0, 0, 0), 1, 9999, 1, 4, 1, 4, 0.07)
  1215. local con = Hitbox.Touched:connect(function(hit)
  1216. end)
  1217. game:GetService("Debris"):AddItem(d1, 5)
  1218. local msh = CFuncs.Mesh.Create("CylinderMesh", d1, "nil", "nil", Vector3.new(0, 0, 0), Vector3.new(100, 5, 100))
  1219. local d2 = d1:Clone()
  1220. d2.Parent = d1
  1221. d2.CFrame = CFrame.new(d1.Position)
  1222. d2.BrickColor = BrickColor.new("Industrial white")
  1223. d2.Mesh.Scale = Vector3.new(0, 5, 0)
  1224. table.insert(Effects, {d1, "QuadShot", d2, d2.Mesh, 0})
  1225. end
  1226. attack = false
  1227.  
  1228. end
  1229. function kek3()
  1230. cooldown1 = cooldown1 - 5
  1231. local dacf = Handle.CFrame * angles(-1.57 + math.random(40, 80) / 100, 0, math.random(-80, 80) / 100)
  1232. local icepart1 = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Cyan"), "Ice", vt())
  1233. icepart1.Anchored = true
  1234. i1msh = CreateMesh("SpecialMesh", icepart1, "Sphere", "", vt(0, 0, 0), vt(5, 5, 5))
  1235. icepart1.CFrame = dacf
  1236. for i = 0, 1, 0.1 do
  1237. swait()
  1238. icepart1.CFrame = dacf
  1239. end
  1240. local cfinc = 99999
  1241. icepart1.Transparency = 1
  1242. CreateSound("rbxassetid://334325056", icepart1, 1, 1)
  1243. game:GetService("Debris"):AddItem(icepart1, 1)
  1244. local spread = vt((math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16, (math.random(-1, 0) + math.random()) * 16) * (icepart1.Position - (icepart1.Position + vt(0, -1, 0))).magnitude / 100
  1245. local TheHit = mouse.Hit.p
  1246. local MouseLook = cf((icepart1.Position + TheHit) / 2, TheHit + spread)
  1247. local hit, pos = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  1248. local target1, distance1 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  1249. local test1, dist1 = mouse.Hit.p, nil
  1250. if target1 ~= nil then
  1251. cfda = target1.Position + vt(math.random(-3000, 3000) / 100, 20, math.random(-3000, 3000) / 100)
  1252. local hit2, pos2 = rayCast(icepart1.Position, MouseLook.lookVector, 999, Character)
  1253. local d1 = CreatePart(effect, "SmoothPlastic", 0, 0.5, BrickColor.new("White"), "Effect", vt())
  1254. d1.Anchored = true
  1255. d1.CFrame = cf(pos2)
  1256. MagniDamage(d1, 10, 12, 15, -10, "Normal", "231917784")
  1257. SphereEffect(BrickColor.new("White"), cf(pos2), 100, 100, 100, 10, 10, 10, 0.07)
  1258. msh = CreateMesh("SpecialMesh", d1, "Sphere", "", vt(0, 0, 0), vt(80, 80, 80))
  1259. d2 = d1:Clone()
  1260. d2.Parent = d1
  1261. d2.CFrame = cf(d1.Position)
  1262. d2.BrickColor = BrickColor.new("Toothpaste")
  1263. d2.Mesh.Scale = vt(0, 5, 0)
  1264. table.insert(Effects, {
  1265. d1,
  1266. "SatelliteStrike",
  1267. d2,
  1268. d2.Mesh,
  1269. 0
  1270. })
  1271. end
  1272. end
  1273.  
  1274. function kek4()
  1275.  
  1276. end
  1277. mouse.Button1Down:connect(function()
  1278.  
  1279. if attack == false and attacktype == 1 and equipped == true then
  1280. attacktype = 2
  1281. attack1()
  1282. else
  1283. if attack == false and attacktype == 2 and equipped == true then
  1284. attacktype = 3
  1285. attack2()
  1286. else
  1287. if attack == false and attacktype == 3 and equipped == true then
  1288. attacktype = 1
  1289. attack3()
  1290. end
  1291. end
  1292. end
  1293. end
  1294. )
  1295.  
  1296. updateskills = function()
  1297.  
  1298. if cooldown1 <= co1 then
  1299. cooldown1 = cooldown1 + 0.033333333333333
  1300. end
  1301. if cooldown2 <= co2 then
  1302. cooldown2 = cooldown2 + 0.033333333333333
  1303. end
  1304. if cooldown3 <= co3 then
  1305. cooldown3 = cooldown3 + 0.033333333333333
  1306. end
  1307. if cooldown4 <= co4 then
  1308. cooldown4 = cooldown4 + 0.033333333333333
  1309. end
  1310. end
  1311.  
  1312. --[[function onKeyDown(key)
  1313. if key == "u" then
  1314. if nak == false and disable == false then
  1315. disable = true
  1316. AppearDisappear1()
  1317. AppearDisappear()
  1318. nak = true
  1319. wait(1)
  1320. disable = false
  1321. elseif disable == false then
  1322. AppearDisappear2()
  1323. AppearDisappear()
  1324.  
  1325. nak = false
  1326. wait(1)
  1327. disable = false
  1328. end
  1329. end
  1330.  
  1331. if key == "f" then
  1332. if equipped == false and disable == false then
  1333. disable = true
  1334. equipped = true
  1335. equip()
  1336. wait(1)
  1337. disable = false
  1338. elseif equipped == true and disable == false then
  1339. disable = true
  1340. unequip()
  1341. equipped = false
  1342. wait(1)
  1343. disable = false
  1344. end
  1345. end]]
  1346. mouse.KeyDown:connect(function(k)
  1347.  
  1348. k = k:lower()
  1349. if attack == false and equipped == true and k == "z" and co1 <= cooldown1 then
  1350. cooldown1 = 0
  1351. kek1()
  1352. else
  1353. if attack == false and equipped == true and k == "x" and co2 <= cooldown2 then
  1354. cooldown2 = 0
  1355. kek2()
  1356. else
  1357. if attack == false and equipped == true and k == "c" and co3 <= cooldown3 then
  1358. cooldown3 = 0
  1359. kek3()
  1360. else
  1361. if attack == false and k == "v" and co4 <= cooldown4 then
  1362. cooldown4 = 0
  1363. kek4()
  1364. else
  1365. if attack == false and k == "f" and equipped == false and disable == false then
  1366.  
  1367. disable = true
  1368. equipped = true
  1369. equip()
  1370. wait(.5)
  1371. disable = false
  1372. else
  1373. if k == "f" and equipped == true and disable == false then
  1374. disable = true
  1375. equipped = false
  1376. unequip()
  1377. wait(.5)
  1378. disable = false
  1379.  
  1380.  
  1381. else
  1382. if k == "u" and nak == false and disable == false then
  1383. disable = true
  1384. AppearDisappear1()
  1385. AppearDisappear()
  1386. nak = true
  1387. wait(.5)
  1388. disable = false
  1389. else
  1390. if k == "u" and nak == true and disable == false then
  1391. disable = true
  1392. AppearDisappear2()
  1393. AppearDisappear()
  1394. nak = false
  1395. wait(.5)
  1396. disable = false
  1397. end
  1398. end
  1399. end
  1400. end
  1401. end
  1402. end
  1403. end
  1404. end
  1405. end)
  1406.  
  1407. while 1 do
  1408. swait()
  1409. updateskills()
  1410. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  1411. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  1412. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1413. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1414. for i,v in pairs(char:GetChildren()) do
  1415. if v:IsA("Part") then
  1416. v.Material = "SmoothPlastic"
  1417. else
  1418. if v:IsA("Hat") then
  1419. v:WaitForChild("Handle").Material = "SmoothPlastic"
  1420. end
  1421. end
  1422. end
  1423. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1424. velocity = RootPart.Velocity.y
  1425. sine = sine + change
  1426. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1427. if equipped == true or equipped == false then
  1428. if 1 < RootPart.Velocity.y and hit == nil then
  1429. Anim = "Jump"
  1430. if attack == false then
  1431. manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(65),-math.rad(90)), 0.3)
  1432. manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.3,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3)
  1433. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3)
  1434. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1435. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1436. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)
  1437. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  1438. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0.35) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.3)
  1439. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0.35) * angles(math.rad(-15), math.rad(0), math.rad(0)), 0.3)
  1440. end
  1441. else
  1442. if RootPart.Velocity.y < -1 and hit == nil then
  1443. Anim = "Fall"
  1444. if attack == false then
  1445. manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(15),-math.rad(90)), 0.3)
  1446. manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3)
  1447. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3)
  1448. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1449. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  1450. RW.C0 = clerp(RW.C0, CFrame.new(1.7, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1451. LW.C0 = clerp(LW.C0, CFrame.new(-1.7, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1452. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0.5) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3)
  1453. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0.5) * angles(math.rad(-30), math.rad(0), math.rad(0)), 0.3)
  1454. end
  1455. else
  1456. if Torsovelocity < 1 and hit ~= nil then
  1457. Anim = "Idle"
  1458. if attack == false then
  1459. if equipped == true then
  1460. change = 1
  1461. manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90 - 15 * math.cos((sine) / 45)),math.rad(40),-math.rad(90)), 0.3)
  1462. manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3)
  1463. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3)
  1464. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 - 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), -math.rad(20), math.rad(0)), 0.3)
  1465. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(5), math.rad(20), math.rad(0)), 0.3)
  1466. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1467. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1468. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1469. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1470. else
  1471. change = 1
  1472. manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90 - 15 * math.cos((sine) / 45)),math.rad(40),-math.rad(90)), 0.3)
  1473. manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3)
  1474. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3)
  1475. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0 - 0.06 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1476. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1477. RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.1, -0.45) * angles(math.rad(20), math.rad(0), -math.rad(40)), 0.3)
  1478. LW.C0 = clerp(LW.C0, CFrame.new(-0.7, 0.1, -0.45) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.3)
  1479. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1480. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2 + 0.04 * math.cos((sine) / 30), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1481.  
  1482. end
  1483. end
  1484. else
  1485. if 2 < Torsovelocity and hit ~= nil then
  1486. Anim = "Walk"
  1487. if attack == false then
  1488. manWeld.C1 = clerp(manWeld.C1, CFrame.new(0,1.4,0)*CFrame.Angles(math.rad(90),math.rad(40),-math.rad(90)), 0.3)
  1489. manWeld.C0 = clerp(manWeld.C0, CFrame.new(0,-0.4,0)*CFrame.Angles(math.rad(0),math.rad(0),-math.rad(0)),0.3)
  1490. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(1.2,0,-1)*CFrame.Angles(math.rad(180),0,-math.rad(90)), 0.3)
  1491. RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  1492. char.Torso.Neck.C0 = clerp(char.Torso.Neck.C0, CFrame.new(0, 1.5, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1493. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  1494. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.1, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  1495. RH.C0 = clerp(RH.C0, CFrame.new(0.5, -2, 0 + 1 * math.cos((sine) / 3)) * angles(math.rad(0 - 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  1496. LH.C0 = clerp(LH.C0, CFrame.new(-0.5, -2, 0 - 1 * math.cos((sine) / 3)) * angles(math.rad(0 + 50 * math.cos((sine) / 3)), math.rad(0), math.rad(0)), 0.3)
  1497. end
  1498. end
  1499. end
  1500. end
  1501. end
  1502. end
  1503. if 0 < #Effects then
  1504. for e = 1, #Effects do
  1505. if Effects[e] ~= nil then
  1506. local Thing = Effects[e]
  1507. if Thing ~= nil then
  1508. local Part = Thing[1]
  1509. local Mode = Thing[2]
  1510. local Delay = Thing[3]
  1511. local IncX = Thing[4]
  1512. local IncY = Thing[5]
  1513. local IncZ = Thing[6]
  1514. if Thing[1].Transparency <= 1 then
  1515. if Thing[2] == "Block1" then
  1516. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1517. Mesh = Thing[1].Mesh
  1518. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1519. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1520. else
  1521. if Thing[2] == "Block2" then
  1522. Thing[1].CFrame = Thing[1].CFrame
  1523. Mesh = Thing[7]
  1524. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1525. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1526. else
  1527. if Thing[2] == "Cylinder" then
  1528. Mesh = Thing[1].Mesh
  1529. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1530. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1531. else
  1532. if Thing[2] == "Blood" then
  1533. Mesh = Thing[7]
  1534. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1535. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1536. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1537. else
  1538. if Thing[2] == "Elec" then
  1539. Mesh = Thing[1].Mesh
  1540. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1541. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1542. else
  1543. if Thing[2] == "Disappear" then
  1544. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1545. else
  1546. if Thing[2] == "Shatter" then
  1547. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1548. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1549. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1550. Thing[6] = Thing[6] + Thing[5]
  1551. else
  1552. if Thing[2] == "QuadShot" then
  1553. if Thing[5] < 100 then
  1554. Thing[5] = Thing[5] + 2.5
  1555. Thing[4].Scale = Vector3.new(Thing[5], 5, Thing[5])
  1556. else
  1557. refda = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
  1558. refda.Anchored = true
  1559. refda.CFrame = CFrame.new(Thing[1].Position)
  1560. game:GetService("Debris"):AddItem(refda, 5)
  1561. CFuncs.Sound.Create("rbxassetid://203691378", refda, 1, 1.2)
  1562. CFuncs.Sound.Create("rbxassetid://184718741", refda, 1, 0.8)
  1563. --MagniDamage(refda, 40, 20, 50, BrickColor.new("Pink"), BrickColor.new("Industrial white"))
  1564. MagniDamage(refda, 40, 20, 50, 50, "Freeze")
  1565. Effects.Sphere.Create(BrickColor.new("Industrial white"), CFrame.new(refda.Position), 3, 3, 3, 10, 10, 10, 0.05)
  1566. Effects.Sphere.Create(BrickColor.new("Pink"), CFrame.new(refda.Position), 15, 15, 15, 10, 10, 10, 0.05)
  1567. --Effects.Sphere.Create(BrickColor.new("Industrial white"), refda.CFrame, 10, 10, 10, 10, 10, 10, 0.06)
  1568. Effects.Block.Create(BrickColor.new("Industrial white"), refda.CFrame, 10, 10, 10, 10, 10, 10, 0.06, 1)
  1569. Effects.Wave.Create(BrickColor.new("Industrial white"), refda.CFrame, 1, 1, 1, 3, 3, 3, 0.06)
  1570. Thing[1].Parent = nil
  1571. table.remove(Effects, e)
  1572. end
  1573. end
  1574. end
  1575. end
  1576. end
  1577. end
  1578. end
  1579. end
  1580. end
  1581. else
  1582. Part.Parent = nil
  1583. table.remove(Effects, e)
  1584. end
  1585. end
  1586. end
  1587. end
  1588. end
  1589. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement