Advertisement
waconline

waifu

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