Advertisement
XSleepyDemonX_17

inprogress

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