Advertisement
wamandnj

Untitled

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