Advertisement
Christoffer07700Extr

Mr Boi

Oct 11th, 2019
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 112.17 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142.  
  143. --Converted with ttyyuu12345's model to script plugin v4
  144. function sandbox(var,func)
  145. local env = getfenv(func)
  146. local newenv = setmetatable({},{
  147. __index = function(self,k)
  148. if k=="script" then
  149. return var
  150. else
  151. return env[k]
  152. end
  153. end,
  154. })
  155. setfenv(func,newenv)
  156. return func
  157. end
  158. cors = {}
  159. mas = Instance.new("Model",game:GetService("Lighting"))
  160. Part0 = Instance.new("Part")
  161. SpecialMesh1 = Instance.new("SpecialMesh")
  162. Snap2 = Instance.new("Snap")
  163. Snap3 = Instance.new("Snap")
  164. Snap4 = Instance.new("Snap")
  165. Part5 = Instance.new("Part")
  166. SpecialMesh6 = Instance.new("SpecialMesh")
  167. Part7 = Instance.new("Part")
  168. Trail8 = Instance.new("Trail")
  169. SpecialMesh9 = Instance.new("SpecialMesh")
  170. Part10 = Instance.new("Part")
  171. Weld11 = Instance.new("Weld")
  172. Model12 = Instance.new("Model")
  173. Model13 = Instance.new("Model")
  174. Part14 = Instance.new("Part")
  175. SpecialMesh15 = Instance.new("SpecialMesh")
  176. ParticleEmitter16 = Instance.new("ParticleEmitter")
  177. ParticleEmitter17 = Instance.new("ParticleEmitter")
  178. Part18 = Instance.new("Part")
  179. SpecialMesh19 = Instance.new("SpecialMesh")
  180. Part20 = Instance.new("Part")
  181. SpecialMesh21 = Instance.new("SpecialMesh")
  182. Script22 = Instance.new("Script")
  183. Script23 = Instance.new("Script")
  184. LocalScript24 = Instance.new("LocalScript")
  185. NumberValue25 = Instance.new("NumberValue")
  186. NumberValue26 = Instance.new("NumberValue")
  187. BoolValue27 = Instance.new("BoolValue")
  188. Script28 = Instance.new("Script")
  189. ObjectValue29 = Instance.new("ObjectValue")
  190. Part0.Name = "bOMb"
  191. Part0.Parent = mas
  192. Part0.CFrame = CFrame.new(-141.964828, 0.998498976, -137.590561, -1, 1.58150215e-07, 3.36312951e-07, 1.58150215e-07, 1, -9.24347598e-10, -3.36312951e-07, -9.24294419e-10, -1)
  193. Part0.Orientation = Vector3.new(0, 180, 0)
  194. Part0.Position = Vector3.new(-141.964828, 0.998498976, -137.590561)
  195. Part0.Rotation = Vector3.new(180, 0, -180)
  196. Part0.Color = Color3.new(0.792157, 0.796079, 0.819608)
  197. Part0.Transparency = 1
  198. Part0.Size = Vector3.new(1.75051045, 1.99694169, 1.75900805)
  199. Part0.Anchored = true
  200. Part0.BrickColor = BrickColor.new("Ghost grey")
  201. Part0.Material = Enum.Material.WoodPlanks
  202. Part0.brickColor = BrickColor.new("Ghost grey")
  203. SpecialMesh1.Parent = Part0
  204. SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=11563093"
  205. SpecialMesh1.Scale = Vector3.new(1.69952476, 1.69952488, 1.69952476)
  206. SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=11563076"
  207. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  208. Snap2.Parent = Part0
  209. Snap2.C0 = CFrame.new(0, -0.998470843, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  210. Snap2.C1 = CFrame.new(-18.2385082, 10.0000286, -19.5104256, -1, 3.36312951e-07, -1.58150215e-07, 1.58150215e-07, -9.24347598e-10, -1, -3.36312951e-07, -1, 9.24294419e-10)
  211. Snap2.Part0 = Part0
  212. Snap3.Parent = Part0
  213. Snap3.C0 = CFrame.new(0, -0.998470843, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  214. Snap3.C1 = CFrame.new(-18.2385082, 10.0000286, -19.5104256, -1, 3.36312951e-07, -1.58150215e-07, 1.58150215e-07, -9.24347598e-10, -1, -3.36312951e-07, -1, 9.24294419e-10)
  215. Snap3.Part0 = Part0
  216. Snap4.Parent = Part0
  217. Snap4.C0 = CFrame.new(0, -0.998470843, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  218. Snap4.C1 = CFrame.new(-141.964828, 10.0000286, -137.590561, -1, 3.36312951e-07, -1.58150215e-07, 1.58150215e-07, -9.24347598e-10, -1, -3.36312951e-07, -1, 9.24294419e-10)
  219. Snap4.Part0 = Part0
  220. Snap4.Part1 = nil
  221. Snap4.part1 = nil
  222. Part5.Name = "Sod"
  223. Part5.Parent = mas
  224. Part5.CFrame = CFrame.new(-129.865036, 2.45002389, -129.515381, -2.99837484e-06, 8.19563866e-08, -1.00000322, -1, 1.26476607e-12, 2.93528183e-06, -4.02967881e-09, 1.00000322, 1.34110451e-07)
  225. Part5.Orientation = Vector3.new(0, -90, -90)
  226. Part5.Position = Vector3.new(-129.865036, 2.45002389, -129.515381)
  227. Part5.Rotation = Vector3.new(90, -90, 0)
  228. Part5.Color = Color3.new(0.768628, 0.156863, 0.109804)
  229. Part5.Transparency = 1
  230. Part5.Size = Vector3.new(2, 2, 2)
  231. Part5.Anchored = true
  232. Part5.BottomSurface = Enum.SurfaceType.Smooth
  233. Part5.BrickColor = BrickColor.new("Bright red")
  234. Part5.CanCollide = false
  235. Part5.Material = Enum.Material.SmoothPlastic
  236. Part5.TopSurface = Enum.SurfaceType.Smooth
  237. Part5.brickColor = BrickColor.new("Bright red")
  238. Part5.FormFactor = Enum.FormFactor.Custom
  239. Part5.formFactor = Enum.FormFactor.Custom
  240. SpecialMesh6.Parent = Part5
  241. SpecialMesh6.MeshId = "rbxassetid://1032879482"
  242. SpecialMesh6.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  243. SpecialMesh6.TextureId = "rbxassetid://1032879491"
  244. SpecialMesh6.MeshType = Enum.MeshType.FileMesh
  245. Part7.Name = "Sword"
  246. Part7.Parent = mas
  247. Part7.CFrame = CFrame.new(-139.065033, 2.45002389, -129.515381, -2.99837484e-06, 8.19563866e-08, -1.00000322, -1, 1.26476607e-12, 2.93528183e-06, -4.02967881e-09, 1.00000322, 1.34110451e-07)
  248. Part7.Orientation = Vector3.new(0, -90, -90)
  249. Part7.Position = Vector3.new(-139.065033, 2.45002389, -129.515381)
  250. Part7.Rotation = Vector3.new(90, -90, 0)
  251. Part7.Color = Color3.new(0.768628, 0.156863, 0.109804)
  252. Part7.Transparency = 1
  253. Part7.Size = Vector3.new(2.61019349, 0.362741441, 10.3400469)
  254. Part7.Anchored = true
  255. Part7.BottomSurface = Enum.SurfaceType.Smooth
  256. Part7.BrickColor = BrickColor.new("Bright red")
  257. Part7.CanCollide = false
  258. Part7.Material = Enum.Material.SmoothPlastic
  259. Part7.Reflectance = 0.40000000596046
  260. Part7.TopSurface = Enum.SurfaceType.Smooth
  261. Part7.brickColor = BrickColor.new("Bright red")
  262. Part7.FormFactor = Enum.FormFactor.Custom
  263. Part7.formFactor = Enum.FormFactor.Custom
  264. Trail8.Parent = Part7
  265. Trail8.Attachment0 = nil
  266. Trail8.Attachment1 = nil
  267. Trail8.Enabled = false
  268. Trail8.LightEmission = 0.40000000596046
  269. Trail8.LightInfluence = 1
  270. Trail8.Texture = "rbxassetid://744949545"
  271. Trail8.TextureLength = 0.10000000149012
  272. Trail8.Transparency = NumberSequence.new(0,0.34999996423721)
  273. Trail8.MinLength = 0
  274. Trail8.Lifetime = 0.10000000149012
  275. Trail8.WidthScale = NumberSequence.new(1,0)
  276. SpecialMesh9.Parent = Part7
  277. SpecialMesh9.MeshId = "rbxasset://fonts/sword.mesh"
  278. SpecialMesh9.TextureId = "rbxasset://textures/SwordTexture.png"
  279. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  280. Part10.Name = "HitBox"
  281. Part10.Parent = Part7
  282. Part10.CFrame = CFrame.new(-139.876343, 2.45000076, -129.530121, 1.00000644, 6.3083462e-08, -5.21542134e-08, 6.3083462e-08, 1, 4.03133704e-09, -5.21542134e-08, 4.03133704e-09, 1.00000644)
  283. Part10.Position = Vector3.new(-139.876343, 2.45000076, -129.530121)
  284. Part10.Transparency = 1
  285. Part10.Size = Vector3.new(3.1600008, 0.320952654, 0.235365614)
  286. Part10.BottomSurface = Enum.SurfaceType.Smooth
  287. Part10.TopSurface = Enum.SurfaceType.Smooth
  288. Weld11.Parent = Part10
  289. Weld11.C0 = CFrame.new(16.1500111, -2.45000076, 11.4499865, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  290. Weld11.C1 = CFrame.new(2.44997787, 11.4352903, -15.3387671, -2.99837484e-06, -1, -4.02967881e-09, 8.19563866e-08, 1.26476607e-12, 1.00000322, -1.00000322, 2.93528183e-06, 1.34110451e-07)
  291. Weld11.Part0 = Part10
  292. Weld11.Part1 = Part7
  293. Weld11.part1 = Part7
  294. Model12.Parent = mas
  295. Model13.Parent = Model12
  296. Part14.Name = "Bom"
  297. Part14.Parent = Model13
  298. Part14.CFrame = CFrame.new(-144.079926, 2.46002889, -137.717957, -7.3270747e-15, 0.999998689, -4.37113563e-08, 1.51742209e-14, 4.3711335e-08, 0.999999166, 0.999999225, 3.55271198e-15, -1.77635616e-14)
  299. Part14.Orientation = Vector3.new(-89.9300003, -90, 0)
  300. Part14.Position = Vector3.new(-144.079926, 2.46002889, -137.717957)
  301. Part14.Rotation = Vector3.new(-90, 0, -90)
  302. Part14.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
  303. Part14.Anchored = true
  304. Part14.BottomSurface = Enum.SurfaceType.Smooth
  305. Part14.TopSurface = Enum.SurfaceType.Smooth
  306. SpecialMesh15.Parent = Part14
  307. SpecialMesh15.MeshId = "rbxasset://fonts/timebomb.mesh"
  308. SpecialMesh15.Scale = Vector3.new(0.800000012, 0.800000012, 0.800000012)
  309. SpecialMesh15.TextureId = "rbxasset://textures/bombtex.png"
  310. SpecialMesh15.MeshType = Enum.MeshType.FileMesh
  311. attachymenty = Instance.new("Attachment",Part14)
  312. attachymenty.Position = Vector3.new(0, -0.55, 1.32)
  313. attachymenty.Orientation = Vector3.new(90, 0, 0)
  314. attachymenty.Axis = Vector3.new(1, -0, -0)
  315. attachymenty.SecondaryAxis = Vector3.new(0, -0, 1)
  316. attachymenty.WorldAxis = Vector3.new(-0, -0, 1)
  317. attachymenty.WorldOrientation = Vector3.new(0, -90, -0)
  318. attachymenty.WorldPosition = Vector3.new(-144.63, 3.78, -137.718)
  319. attachymenty.WorldSecondaryAxis = Vector3.new(-0, 1, 0)
  320. attachymenty.Archivable = true
  321. ParticleEmitter16.Name = "Fire"
  322. ParticleEmitter16.Parent = attachymenty
  323. ParticleEmitter16.Speed = NumberRange.new(1, 1)
  324. ParticleEmitter16.Rotation = NumberRange.new(-360, 360)
  325. ParticleEmitter16.Color = ColorSequence.new(Color3.new(1, 1, 0),Color3.new(1, 0, 0))
  326. ParticleEmitter16.LightEmission = 0.20000000298023
  327. ParticleEmitter16.LightInfluence = 1
  328. ParticleEmitter16.Texture = "rbxasset://textures/particles/smoke_main.dds"
  329. ParticleEmitter16.Transparency = NumberSequence.new(1,0.22499996423721,0.33125001192093,1)
  330. ParticleEmitter16.Size = NumberSequence.new(0.37499964237213,0)
  331. ParticleEmitter16.Lifetime = NumberRange.new(1.5, 1.5)
  332. ParticleEmitter16.Rate = 50
  333. ParticleEmitter16.RotSpeed = NumberRange.new(-360, 360)
  334. ParticleEmitter17.Name = "Smoke"
  335. ParticleEmitter17.Parent = attachymenty
  336. ParticleEmitter17.Speed = NumberRange.new(1, 1)
  337. ParticleEmitter17.Rotation = NumberRange.new(-360, 360)
  338. ParticleEmitter17.Color = ColorSequence.new(Color3.new(0.392157, 0.392157, 0.392157),Color3.new(0.137255, 0.137255, 0.137255))
  339. ParticleEmitter17.LightInfluence = 1
  340. ParticleEmitter17.Texture = "rbxasset://textures/particles/smoke_main.dds"
  341. ParticleEmitter17.Transparency = NumberSequence.new(1,0.26249998807907,0.19999998807907,1)
  342. ParticleEmitter17.Size = NumberSequence.new(0.3125,0)
  343. ParticleEmitter17.Lifetime = NumberRange.new(3, 3)
  344. ParticleEmitter17.Rate = 100
  345. ParticleEmitter17.RotSpeed = NumberRange.new(-360, 360)
  346. ParticleEmitter17.SpreadAngle = Vector2.new(20, 20)
  347. ParticleEmitter17.VelocitySpread = 20
  348. Part18.Name = "BigOof"
  349. Part18.Parent = Model13
  350. Part18.CFrame = CFrame.new(-144.149918, 2.41003489, -137.667953, 1, -1.01838705e-17, 8.85616399e-20, 1.01838705e-17, 1, -1.33938474e-17, -8.85616399e-20, 1.33938474e-17, 1)
  351. Part18.Position = Vector3.new(-144.149918, 2.41003489, -137.667953)
  352. Part18.Size = Vector3.new(2, 2, 2)
  353. Part18.BottomSurface = Enum.SurfaceType.Smooth
  354. Part18.Locked = true
  355. Part18.TopSurface = Enum.SurfaceType.Smooth
  356. SpecialMesh19.Parent = Part18
  357. SpecialMesh19.MeshId = "http://www.roblox.com/asset/?id=2333750544"
  358. SpecialMesh19.TextureId = "http://www.roblox.com/asset/?id=2333750544"
  359. SpecialMesh19.MeshType = Enum.MeshType.FileMesh
  360. Part20.Name = "Handle"
  361. Part20.Parent = Model13
  362. Part20.CFrame = CFrame.new(-144.156036, 2.36002588, -137.781387, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  363. Part20.Position = Vector3.new(-144.156036, 2.36002588, -137.781387)
  364. Part20.Transparency = 1
  365. Part20.Size = Vector3.new(2, 1, 1)
  366. Part20.CanCollide = false
  367. Part20.TopSurface = Enum.SurfaceType.Smooth
  368. Part20.FormFactor = Enum.FormFactor.Symmetric
  369. Part20.formFactor = Enum.FormFactor.Symmetric
  370. SpecialMesh21.Parent = Part20
  371. SpecialMesh21.Scale = Vector3.new(1.25, 1.25, 1.25)
  372. Script22.Name = "qPerfectionWeld"
  373. Script22.Parent = Model12
  374. table.insert(cors,sandbox(Script22,function()
  375. local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
  376.  
  377.  
  378. local function CallOnChildren(Instance, FunctionToCall)
  379. FunctionToCall(Instance)
  380.  
  381. for _, Child in next, Instance:GetChildren() do
  382. CallOnChildren(Child, FunctionToCall)
  383. end
  384. end
  385.  
  386. local function GetNearestParent(Instance, ClassName)
  387. local Ancestor = Instance
  388. repeat
  389. Ancestor = Ancestor.Parent
  390. if Ancestor == nil then
  391. return nil
  392. end
  393. until Ancestor:IsA(ClassName)
  394.  
  395. return Ancestor
  396. end
  397.  
  398. local function GetBricks(StartInstance)
  399. local List = {}
  400. CallOnChildren(StartInstance, function(Item)
  401. if Item:IsA("BasePart") then
  402. List[#List+1] = Item;
  403. end
  404. end)
  405.  
  406. return List
  407. end
  408.  
  409. local function Modify(Instance, Values)
  410. assert(type(Values) == "table", "Values is not a table");
  411.  
  412. for Index, Value in next, Values do
  413. if type(Index) == "number" then
  414. Value.Parent = Instance
  415. else
  416. Instance[Index] = Value
  417. end
  418. end
  419. return Instance
  420. end
  421.  
  422. local function Make(ClassType, Properties)
  423. return Modify(Instance.new(ClassType), Properties)
  424. end
  425.  
  426. local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
  427. local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
  428.  
  429. local function HasWheelJoint(Part)
  430. for _, SurfaceName in pairs(Surfaces) do
  431. for _, HingSurfaceName in pairs(HingSurfaces) do
  432. if Part[SurfaceName].Name == HingSurfaceName then
  433. return true
  434. end
  435. end
  436. end
  437.  
  438. return false
  439. end
  440.  
  441. local function ShouldBreakJoints(Part)
  442. if NEVER_BREAK_JOINTS then
  443. return false
  444. end
  445.  
  446. if HasWheelJoint(Part) then
  447. return false
  448. end
  449.  
  450. local Connected = Part:GetConnectedParts()
  451.  
  452. if #Connected == 1 then
  453. return false
  454. end
  455.  
  456. for _, Item in pairs(Connected) do
  457. if HasWheelJoint(Item) then
  458. return false
  459. elseif not Item:IsDescendantOf(script.Parent) then
  460. return false
  461. end
  462. end
  463.  
  464. return true
  465. end
  466.  
  467. local function WeldTogether(Part0, Part1, JointType, WeldParent)
  468. JointType = JointType or "Weld"
  469. local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
  470.  
  471. local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
  472. Modify(NewWeld, {
  473. Name = "qCFrameWeldThingy";
  474. Part0 = Part0;
  475. Part1 = Part1;
  476. C0 = CFrame.new();--Part0.CFrame:inverse();
  477. C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
  478. Parent = Part1;
  479. })
  480.  
  481. if not RelativeValue then
  482. RelativeValue = Make("CFrameValue", {
  483. Parent = Part1;
  484. Name = "qRelativeCFrameWeldValue";
  485. Archivable = true;
  486. Value = NewWeld.C1;
  487. })
  488. end
  489.  
  490. return NewWeld
  491. end
  492.  
  493. local function WeldParts(Parts, MainPart, JointType)
  494. for _, Part in pairs(Parts) do
  495. if ShouldBreakJoints(Part) then
  496. Part:BreakJoints()
  497. end
  498. end
  499.  
  500. for _, Part in pairs(Parts) do
  501. if Part ~= MainPart then
  502. WeldTogether(MainPart, Part, JointType, MainPart)
  503. end
  504. end
  505. end
  506.  
  507. local function PerfectionWeld()
  508. local Tool = GetNearestParent(script, "Tool")
  509.  
  510. local Parts = GetBricks(script.Parent)
  511. local PrimaryPart = script.Parent.Model.Handle
  512.  
  513. if PrimaryPart then
  514. WeldParts(Parts, PrimaryPart, "Weld")
  515. else
  516. warn("qWeld - Unable to weld part")
  517. end
  518.  
  519. return Tool
  520. end
  521.  
  522. local Tool = PerfectionWeld()
  523.  
  524.  
  525. if Tool and script.ClassName == "Script" then
  526. script.Parent.AncestryChanged:connect(function()
  527. PerfectionWeld()
  528. end)
  529. end
  530. end))
  531. Script23.Name = "R6Ragdoll"
  532. Script23.Parent = mas
  533. table.insert(cors,sandbox(Script23,function()
  534. local head = script.Parent["Head"]
  535. local leftarm = script.Parent["Left Arm"]
  536. local leftleg = script.Parent["Left Leg"]
  537. local rightleg = script.Parent["Right Leg"]
  538. local rightarm = script.Parent["Right Arm"]
  539. local torso = script.Parent.Torso
  540. local root = script.Parent:FindFirstChild("HumanoidRootPart")
  541.  
  542. local HeadA = Instance.new("Attachment")
  543. HeadA.Name = "HeadA"
  544. HeadA.Parent = head
  545. HeadA.Position = Vector3.new(0, -0.5, 0)
  546. HeadA.Rotation = Vector3.new(0, 0, -0)
  547. HeadA.Axis = Vector3.new(1, -0, -0)
  548. HeadA.SecondaryAxis = Vector3.new(0, 1, 0)
  549.  
  550. local LeftArmA = Instance.new("Attachment")
  551. LeftArmA.Name = "LeftArmA"
  552. LeftArmA.Parent = leftarm
  553. LeftArmA.Position = Vector3.new(0.4, 0.8, 0)
  554. LeftArmA.Rotation = Vector3.new(-180, 0, 90)
  555. LeftArmA.Axis = Vector3.new(0, -1, -0)
  556. LeftArmA.SecondaryAxis = Vector3.new(-1, 0, 0)
  557.  
  558. local LeftLegA = Instance.new("Attachment")
  559. LeftLegA.Name = "LeftLegA"
  560. LeftLegA.Parent = leftleg
  561. LeftLegA.Position = Vector3.new(0, 1, 0)
  562. LeftLegA.Rotation = Vector3.new(90, -90, 0)
  563. LeftLegA.Axis = Vector3.new(0, -1, -0)
  564. LeftLegA.SecondaryAxis = Vector3.new(0, -0, 1)
  565.  
  566. local RightArmA = Instance.new("Attachment")
  567. RightArmA.Name = "RightArmA"
  568. RightArmA.Parent = rightarm
  569. RightArmA.Position = Vector3.new(0, 1, 0)
  570. RightArmA.Rotation = Vector3.new(90, -90, 0)
  571. RightArmA.Axis = Vector3.new(0, -1, -0)
  572. RightArmA.SecondaryAxis = Vector3.new(0, -0, 1)
  573.  
  574. local RightLegA = Instance.new("Attachment")
  575. RightLegA.Name = "RightLegA"
  576. RightLegA.Parent = rightleg
  577. RightLegA.Position = Vector3.new(-0.4, 0.8, 0)
  578. RightLegA.Rotation = Vector3.new(-180, 0, 90)
  579. RightLegA.Axis = Vector3.new(0, -1, -0)
  580. RightLegA.SecondaryAxis = Vector3.new(0, 1, 0)
  581.  
  582. local TorsoA = Instance.new("Attachment")
  583. TorsoA.Name = "TorsoA"
  584. TorsoA.Parent = torso
  585. TorsoA.Position = Vector3.new(0.5, -1.1, 0)
  586. TorsoA.Rotation = Vector3.new(90, -90, 0)
  587. TorsoA.Axis = Vector3.new(0, -1, -0)
  588. TorsoA.SecondaryAxis = Vector3.new(0, -0, 1)
  589.  
  590. local TorsoA1 = Instance.new("Attachment")
  591. TorsoA1.Name = "TorsoA1"
  592. TorsoA1.Parent = torso
  593. TorsoA1.Position = Vector3.new(-0.5, -1.1, 0)
  594. TorsoA1.Rotation = Vector3.new(90, -90, 0)
  595. TorsoA1.Axis = Vector3.new(0, -1, -0)
  596. TorsoA1.SecondaryAxis = Vector3.new(0, -0, 1)
  597.  
  598. local TorsoA2 = Instance.new("Attachment")
  599. TorsoA2.Name = "TorsoA2"
  600. TorsoA2.Parent = torso
  601. TorsoA2.Position = Vector3.new(-1, 0.8, 0)
  602. TorsoA2.Rotation = Vector3.new(0, 0, -180)
  603. TorsoA2.Axis = Vector3.new(-1, -0, 0)
  604. TorsoA2.SecondaryAxis = Vector3.new(0, -1, 0)
  605.  
  606. local TorsoA3 = Instance.new("Attachment")
  607. TorsoA3.Name = "TorsoA3"
  608. TorsoA3.Parent = torso
  609. TorsoA3.Position = Vector3.new(1, 0.8, 0)
  610. TorsoA3.Rotation = Vector3.new(-180, 0, 0)
  611. TorsoA3.Axis = Vector3.new(1, -0, 0)
  612. TorsoA3.SecondaryAxis = Vector3.new(-0, -1, -0)
  613.  
  614. local TorsoA4 = Instance.new("Attachment")
  615. TorsoA4.Name = "TorsoA4"
  616. TorsoA4.Parent = torso
  617. TorsoA4.Position = Vector3.new(0, 1, 0)
  618. TorsoA4.Rotation = Vector3.new(0, 0, -0)
  619. TorsoA4.Axis = Vector3.new(1, -0, 0)
  620. TorsoA4.SecondaryAxis = Vector3.new(0, 1, 0)
  621.  
  622. local TorsoA5 = Instance.new("Attachment")
  623. TorsoA5.Name = "TorsoA5"
  624. TorsoA5.Parent = torso
  625. TorsoA5.Position = Vector3.new(0, 0, 0)
  626. TorsoA5.Rotation = Vector3.new(0, 90, 0)
  627. TorsoA5.Axis = Vector3.new(0, 0, -1)
  628. TorsoA5.SecondaryAxis = Vector3.new(0, 1, 0)
  629.  
  630. local rootA = Instance.new("Attachment")
  631. rootA.Name= "rootA"
  632. rootA.Parent = root
  633. rootA.Position = Vector3.new(0, 0, 0)
  634. rootA.Rotation = Vector3.new(0, 90, 0)
  635. rootA.Axis = Vector3.new(0, 0, -1)
  636. rootA.SecondaryAxis = Vector3.new(0, 1, 0)
  637.  
  638.  
  639.  
  640. local HA = Instance.new("BallSocketConstraint")
  641. HA.Parent = head
  642. HA.Attachment0 = HeadA
  643. HA.Attachment1 = TorsoA4
  644. HA.Enabled = true
  645.  
  646. local LAT = Instance.new("BallSocketConstraint")
  647. LAT.Parent = leftarm
  648. LAT.Attachment0 = LeftArmA
  649. LAT.Attachment1 = TorsoA2
  650. LAT.Enabled = true
  651.  
  652. local RAT = Instance.new("BallSocketConstraint")
  653. RAT.Parent = rightarm
  654. RAT.Attachment0 = RightArmA
  655. RAT.Attachment1 = TorsoA3
  656. RAT.Enabled = true
  657.  
  658. local HA = Instance.new("BallSocketConstraint")
  659. HA.Parent = head
  660. HA.Attachment0 = HeadA
  661. HA.Attachment1 = TorsoA4
  662. HA.Enabled = true
  663.  
  664. local TLL = Instance.new("BallSocketConstraint")
  665. TLL.Parent = torso
  666. TLL.Attachment0 = TorsoA1
  667. TLL.Attachment1 = LeftLegA
  668. TLL.Enabled = true
  669.  
  670. local TRL = Instance.new("BallSocketConstraint")
  671. TRL.Parent = torso
  672. TRL.Attachment0 = TorsoA
  673. TRL.Attachment1 = RightLegA
  674. TRL.Enabled = true
  675.  
  676. local RTA = Instance.new("BallSocketConstraint")
  677. RTA.Parent = root
  678. RTA.Attachment0 = rootA
  679. RTA.Attachment1 = TorsoA5
  680. RTA.Enabled = true
  681. end))
  682. Script23.Disabled = true
  683. LocalScript24.Name = "CamShake"
  684. LocalScript24.Parent = mas
  685. table.insert(cors,sandbox(LocalScript24,function()
  686. VT = Vector3.new
  687. MRANDOM = math.random
  688. local A = nil
  689. local B = nil
  690. local C = nil
  691. local HUMANOID = script.Parent:FindFirstChildOfClass("Humanoid")
  692. for _, c in pairs(script:GetChildren()) do
  693. if c.Name == "Timer" then
  694. A = c.Value
  695. elseif c.Name == "Shake" then
  696. B = c.Value*5
  697. elseif c.Name == "DoesFade" then
  698. C = c.Value
  699. end
  700. end
  701. local TIMER = A or 35
  702. local SHAKE = B or 5
  703. local FADE = C or true
  704. if HUMANOID and game.Players:FindFirstChild(script.Parent.Name) then
  705. local FADER = SHAKE/TIMER
  706. for i = 1, TIMER do
  707. wait()
  708. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10)
  709. end
  710. HUMANOID.CameraOffset = VT(0,0,0)
  711. end
  712. script:remove()
  713. end))
  714. LocalScript24.Disabled = true
  715. NumberValue25.Name = "Timer"
  716. NumberValue25.Parent = LocalScript24
  717. NumberValue25.Value = 35
  718. NumberValue26.Name = "Shake"
  719. NumberValue26.Parent = LocalScript24
  720. NumberValue26.Value = 5
  721. BoolValue27.Name = "DoesFade"
  722. BoolValue27.Parent = LocalScript24
  723. Script28.Name = "R15Ragdoll"
  724. Script28.Parent = mas
  725. table.insert(cors,sandbox(Script28,function()
  726. local character = script.Parent
  727.  
  728. function recurse(root,callback,i)
  729. i= i or 0
  730. for _,v in pairs(root:GetChildren()) do
  731. i = i + 1
  732. callback(i,v)
  733.  
  734. if #v:GetChildren() > 0 then
  735. i = recurse(v,callback,i)
  736. end
  737. end
  738.  
  739. return i
  740. end
  741.  
  742. function ragdollJoint(part0, part1, attachmentName, className, properties)
  743. attachmentName = attachmentName.."RigAttachment"
  744. local constraint = Instance.new(className.."Constraint")
  745. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  746. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  747. constraint.Name = "RagdollConstraint"..part1.Name
  748.  
  749. for _,propertyData in next,properties or {} do
  750. constraint[propertyData[1]] = propertyData[2]
  751. end
  752.  
  753. constraint.Parent = character
  754. end
  755.  
  756. function getAttachment0(attachmentName)
  757. for _,child in next,character:GetChildren() do
  758. local attachment = child:FindFirstChild(attachmentName)
  759. if attachment then
  760. return attachment
  761. end
  762. end
  763. end
  764.  
  765. --character:WaitForChild("Humanoid").Died:connect(function()
  766. local camera = workspace.CurrentCamera
  767. if camera.CameraSubject == character.Humanoid then--If developer isn't controlling camera
  768. camera.CameraSubject = character.UpperTorso
  769. end
  770.  
  771. --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process
  772. character.HumanoidRootPart.Anchored = true
  773. character.HumanoidRootPart.CanCollide = false
  774.  
  775. --Helps to fix constraint spasms
  776. recurse(character, function(_,v)
  777. if v:IsA("Attachment") then
  778. v.Axis = Vector3.new(0, 1, 0)
  779. v.SecondaryAxis = Vector3.new(0, 0, 1)
  780. v.Rotation = Vector3.new(0, 0, 0)
  781. end
  782. end)
  783.  
  784. --Re-attach hats
  785. for _,child in next,character:GetChildren() do
  786. if child:IsA("Accoutrement") then
  787. --Loop through all parts instead of only checking for one to be forwards-compatible in the event
  788. --ROBLOX implements multi-part accessories
  789. for _,part in next,child:GetChildren() do
  790. if part:IsA("BasePart") then
  791. local attachment1 = part:FindFirstChildOfClass("Attachment")
  792. local attachment0 = getAttachment0(attachment1.Name)
  793. if attachment0 and attachment1 then
  794. --Shouldn't use constraints for this, but have to because of a ROBLOX idiosyncrasy where
  795. --joints connecting a character are perpetually deleted while the character is dead
  796. local constraint = Instance.new("HingeConstraint")
  797. constraint.Attachment0 = attachment0
  798. constraint.Attachment1 = attachment1
  799. constraint.LimitsEnabled = true
  800. constraint.UpperAngle = 0 --Simulate weld by making it difficult for constraint to move
  801. constraint.LowerAngle = 0
  802. constraint.Parent = character
  803. end
  804. end
  805. end
  806. end
  807. end
  808.  
  809. ragdollJoint(character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  810. {"LimitsEnabled",true};
  811. {"UpperAngle",5};
  812. })
  813. --[[ragdollJoint(character.UpperTorso, character.Head, "Neck", "BallSocket", {
  814. {"LimitsEnabled",true};
  815. {"UpperAngle",15};
  816. })]]
  817.  
  818. local handProperties = {
  819. {"LimitsEnabled", true};
  820. {"UpperAngle",0};
  821. {"LowerAngle",0};
  822. }
  823. ragdollJoint(character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  824. ragdollJoint(character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  825.  
  826. local shinProperties = {
  827. {"LimitsEnabled", true};
  828. {"UpperAngle", 0};
  829. {"LowerAngle", -75};
  830. }
  831. ragdollJoint(character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  832. ragdollJoint(character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  833.  
  834. local footProperties = {
  835. {"LimitsEnabled", true};
  836. {"UpperAngle", 15};
  837. {"LowerAngle", -45};
  838. }
  839. ragdollJoint(character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  840. ragdollJoint(character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  841.  
  842. --TODO fix ability for socket to turn backwards whenn ConeConstraints are shipped
  843. ragdollJoint(character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  844. ragdollJoint(character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  845. ragdollJoint(character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  846. ragdollJoint(character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  847. ragdollJoint(character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  848. ragdollJoint(character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  849. --end)
  850. end))
  851. Script28.Disabled = true
  852. ObjectValue29.Name = "Owner"
  853. ObjectValue29.Parent = mas
  854. for i,v in pairs(mas:GetChildren()) do
  855. v.Parent = script
  856. pcall(function() v:MakeJoints() end)
  857. end
  858. mas:Destroy()
  859. for i,v in pairs(cors) do
  860. spawn(function()
  861. pcall(v)
  862. end)
  863. end
  864.  
  865. -----------------------
  866. --[[ Name : 0 ]]--
  867. -------------------------------------------------------
  868.  
  869. local plr = game:service'Players'.LocalPlayer
  870. print('Local User is '..plr.Name)
  871. print('Mr. Ware Loaded')
  872. print([[
  873. 0
  874. ]])
  875. local char = plr.Character
  876. local hum = char:FindFirstChildOfClass'Humanoid'
  877. local hed = char.Head
  878. local root = char:FindFirstChild'HumanoidRootPart'
  879. local rootj = root.RootJoint
  880. local tors = char.Torso
  881. local ra = char["Right Arm"]
  882. local la = char["Left Arm"]
  883. local rl = char["Right Leg"]
  884. local ll = char["Left Leg"]
  885. local neck = tors["Neck"]
  886. local mouse = plr:GetMouse()
  887. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  888. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  889. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  890. local maincolor = BrickColor.new("Really black")
  891. local disach = false
  892. -------------------------------------------------------
  893. --Start Good Stuff--
  894. -------------------------------------------------------
  895. cam = game.Workspace.CurrentCamera
  896. CF = CFrame.new
  897. angles = CFrame.Angles
  898. attack = false
  899. Euler = CFrame.fromEulerAnglesXYZ
  900. Rad = math.rad
  901. IT = Instance.new
  902. BrickC = BrickColor.new
  903. Cos = math.cos
  904. Acos = math.acos
  905. Sin = math.sin
  906. Asin = math.asin
  907. Abs = math.abs
  908. Mrandom = math.random
  909. Floor = math.floor
  910. -------------------------------------------------------
  911. --End Good Stuff--
  912. -------------------------------------------------------
  913. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  914. RSH, LSH = nil, nil
  915. RW = Instance.new("Weld")
  916. LW = Instance.new("Weld")
  917. RH = tors["Right Hip"]
  918. LH = tors["Left Hip"]
  919. RSH = tors["Right Shoulder"]
  920. LSH = tors["Left Shoulder"]
  921. RSH.Parent = nil
  922. LSH.Parent = nil
  923. RW.Name = "RW"
  924. RW.Part0 = tors
  925. RW.C0 = CF(1.5, 0.5, 0)
  926. RW.C1 = CF(0, 0.5, 0)
  927. RW.Part1 = ra
  928. RW.Parent = tors
  929. LW.Name = "LW"
  930. LW.Part0 = tors
  931. LW.C0 = CF(-1.5, 0.5, 0)
  932. LW.C1 = CF(0, 0.5, 0)
  933. LW.Part1 = la
  934. LW.Parent = tors
  935. Effects = {}
  936. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  937. local wld = Instance.new("Weld", wp1)
  938. wld.Part0 = wp0
  939. wld.Part1 = wp1
  940. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  941. end
  942. newWeld(tors, ll, -0.5, -1, 0)
  943. ll.Weld.C1 = CFrame.new(0, 1, 0)
  944. newWeld(tors, rl, 0.5, -1, 0)
  945. rl.Weld.C1 = CFrame.new(0, 1, 0)
  946. -------------------------------------------------------
  947. --Start HeartBeat--
  948. -------------------------------------------------------
  949. ArtificialHB = Instance.new("BindableEvent", script)
  950. ArtificialHB.Name = "Heartbeat"
  951. script:WaitForChild("Heartbeat")
  952.  
  953. frame = 1 / 60
  954. tf = 0
  955. allowframeloss = false
  956. tossremainder = false
  957.  
  958.  
  959. lastframe = tick()
  960. script.Heartbeat:Fire()
  961.  
  962.  
  963. game:GetService("RunService").Heartbeat:connect(function(s, p)
  964. tf = tf + s
  965. if tf >= frame then
  966. if allowframeloss then
  967. script.Heartbeat:Fire()
  968. lastframe = tick()
  969. else
  970. for i = 1, math.floor(tf / frame) do
  971. script.Heartbeat:Fire()
  972. end
  973. lastframe = tick()
  974. end
  975. if tossremainder then
  976. tf = 0
  977. else
  978. tf = tf - frame * math.floor(tf / frame)
  979. end
  980. end
  981. end)
  982. -------------------------------------------------------
  983. --End HeartBeat--
  984. -------------------------------------------------------
  985.  
  986. -------------------------------------------------------
  987. --Start Important Functions--
  988. -------------------------------------------------------
  989. function swait(num)
  990. if num == 0 or num == nil then
  991. game:service("RunService").Stepped:wait(0)
  992. else
  993. for i = 0, num do
  994. game:service("RunService").Stepped:wait(0)
  995. end
  996. end
  997. end
  998. function thread(f)
  999. coroutine.resume(coroutine.create(f))
  1000. end
  1001. function clerp(a, b, t)
  1002. local qa = {
  1003. QuaternionFromCFrame(a)
  1004. }
  1005. local qb = {
  1006. QuaternionFromCFrame(b)
  1007. }
  1008. local ax, ay, az = a.x, a.y, a.z
  1009. local bx, by, bz = b.x, b.y, b.z
  1010. local _t = 1 - t
  1011. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1012. end
  1013. function QuaternionFromCFrame(cf)
  1014. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1015. local trace = m00 + m11 + m22
  1016. if trace > 0 then
  1017. local s = math.sqrt(1 + trace)
  1018. local recip = 0.5 / s
  1019. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1020. else
  1021. local i = 0
  1022. if m00 < m11 then
  1023. i = 1
  1024. end
  1025. if m22 > (i == 0 and m00 or m11) then
  1026. i = 2
  1027. end
  1028. if i == 0 then
  1029. local s = math.sqrt(m00 - m11 - m22 + 1)
  1030. local recip = 0.5 / s
  1031. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1032. elseif i == 1 then
  1033. local s = math.sqrt(m11 - m22 - m00 + 1)
  1034. local recip = 0.5 / s
  1035. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1036. elseif i == 2 then
  1037. local s = math.sqrt(m22 - m00 - m11 + 1)
  1038. local recip = 0.5 / s
  1039. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1040. end
  1041. end
  1042. end
  1043. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1044. local xs, ys, zs = x + x, y + y, z + z
  1045. local wx, wy, wz = w * xs, w * ys, w * zs
  1046. local xx = x * xs
  1047. local xy = x * ys
  1048. local xz = x * zs
  1049. local yy = y * ys
  1050. local yz = y * zs
  1051. local zz = z * zs
  1052. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  1053. end
  1054. function QuaternionSlerp(a, b, t)
  1055. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1056. local startInterp, finishInterp
  1057. if cosTheta >= 1.0E-4 then
  1058. if 1 - cosTheta > 1.0E-4 then
  1059. local theta = math.acos(cosTheta)
  1060. local invSinTheta = 1 / Sin(theta)
  1061. startInterp = Sin((1 - t) * theta) * invSinTheta
  1062. finishInterp = Sin(t * theta) * invSinTheta
  1063. else
  1064. startInterp = 1 - t
  1065. finishInterp = t
  1066. end
  1067. elseif 1 + cosTheta > 1.0E-4 then
  1068. local theta = math.acos(-cosTheta)
  1069. local invSinTheta = 1 / Sin(theta)
  1070. startInterp = Sin((t - 1) * theta) * invSinTheta
  1071. finishInterp = Sin(t * theta) * invSinTheta
  1072. else
  1073. startInterp = t - 1
  1074. finishInterp = t
  1075. end
  1076. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  1077. end
  1078. function rayCast(Position, Direction, Range, Ignore)
  1079. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1080. end
  1081. local RbxUtility = LoadLibrary("RbxUtility")
  1082. local Create = RbxUtility.Create
  1083.  
  1084. -------------------------------------------------------
  1085. --Start Damage Function--
  1086. -------------------------------------------------------
  1087. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1088. if hit.Parent == nil then
  1089. return
  1090. end
  1091. local h = hit.Parent:FindFirstChild("Humanoid")
  1092. for _,v in pairs(hit.Parent:children()) do
  1093. if v:IsA("Humanoid") then
  1094.  
  1095. h = v
  1096.  
  1097. end
  1098.  
  1099. end
  1100.  
  1101. --gg
  1102.  
  1103. --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1104. coroutine.resume(coroutine.create(function()
  1105. if h.Health >= 9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then
  1106.  
  1107.  
  1108. local FATag = Instance.new("Model",h.Parent)
  1109.  
  1110. FATag.Name = "Fly away"
  1111. game:GetService("Debris"):AddItem(FATag, 2.5)
  1112.  
  1113.  
  1114. for _,v in pairs(h.Parent:children()) do
  1115. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1116. v.Anchored=true
  1117. end
  1118. end
  1119.  
  1120. wait(.25)
  1121.  
  1122. if h.Parent:FindFirstChildOfClass("Body Colors")then
  1123. h.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
  1124. end
  1125.  
  1126.  
  1127. local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")
  1128.  
  1129. coroutine.resume(coroutine.create(function()
  1130.  
  1131.  
  1132.  
  1133.  
  1134. for i = 0,2,1 do
  1135. --Cso("1448044156", FoundTorso,2, 1)
  1136. h.Parent:BreakJoints()
  1137. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)+Vector3.new(Mrandom(-2,2),0,Mrandom(-2,2))), "Death", 1.5, Color3.new(1,0,0))
  1138. for _,v in pairs(h.Parent:children()) do
  1139. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1140. v.Anchored=false
  1141. -- v.Material = "Neon"
  1142. --v.BrickColor = BrickColor.new("Really red")
  1143. if v:FindFirstChildOfClass("SpecialMesh")then
  1144. --v:Destroy()
  1145. end
  1146. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1147. -- v:Destroy()
  1148. end
  1149. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1150.  
  1151. vp.Parent = v
  1152. game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000)
  1153.  
  1154.  
  1155. end
  1156.  
  1157.  
  1158.  
  1159. end
  1160.  
  1161.  
  1162.  
  1163. wait(.2)
  1164. end
  1165. wait(.1)
  1166.  
  1167. --Cso("1448044156", FoundTorso,2, .8)
  1168. h.Parent:BreakJoints()
  1169.  
  1170. for _,v in pairs(h.Parent:children()) do
  1171. if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then
  1172. v.Anchored=false
  1173. -- v.Material = "Neon"
  1174. --v.BrickColor = BrickColor.new("Really red")
  1175. if v:FindFirstChildOfClass("SpecialMesh")then
  1176. --v:Destroy()
  1177. end
  1178. if v:FindFirstChildOfClass("Decal") and v.Name == "face" then
  1179. -- v:Destroy()
  1180. end
  1181. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) })
  1182.  
  1183. vp.Parent = v
  1184. game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000)
  1185.  
  1186.  
  1187. end
  1188.  
  1189.  
  1190.  
  1191. end
  1192.  
  1193.  
  1194.  
  1195.  
  1196. end))
  1197.  
  1198.  
  1199.  
  1200.  
  1201. wait(.1)
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209. end
  1210.  
  1211.  
  1212. end))
  1213. if h ~= nil and hit.Parent ~= char and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1214. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1215. return
  1216. end
  1217. local c = Create("ObjectValue"){
  1218. Name = "creator",
  1219. Value = game:service("Players").LocalPlayer,
  1220. Parent = h,
  1221. }
  1222. game:GetService("Debris"):AddItem(c, .5)
  1223. if HitSound ~= nil and HitPitch ~= nil then
  1224. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1225. end
  1226. local Damage = math.random(minim, maxim)
  1227. local blocked = false
  1228. local block = hit.Parent:findFirstChild("Block")
  1229. if block ~= nil then
  1230. if block.className == "IntValue" then
  1231. if block.Value > 0 then
  1232. blocked = true
  1233. block.Value = block.Value - 1
  1234. print(block.Value)
  1235. end
  1236. end
  1237. end
  1238. if blocked == false then
  1239. h.Health = h.Health - Damage
  1240. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)+Vector3.new(Mrandom(-2,2),0,Mrandom(-2,2))), -Damage, 1.5, tors.BrickColor.Color)
  1241. else
  1242. h.Health = h.Health - (Damage / 2)
  1243. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)+Vector3.new(Mrandom(-2,2),0,Mrandom(-2,2))), -Damage, 1.5, tors.BrickColor.Color)
  1244. end
  1245. if Type == "Knockdown" then
  1246. local hum = hit.Parent.Humanoid
  1247. hum.PlatformStand = true
  1248. coroutine.resume(coroutine.create(function(HHumanoid)
  1249. swait(1)
  1250. HHumanoid.PlatformStand = false
  1251. end), hum)
  1252. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1253. local bodvol = Create("BodyVelocity"){
  1254. velocity = angle * knockback,
  1255. P = 5000,
  1256. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1257. Parent = hit,
  1258. }
  1259. local rl = Create("BodyAngularVelocity"){
  1260. P = 3000,
  1261. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1262. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1263. Parent = hit,
  1264. }
  1265. game:GetService("Debris"):AddItem(bodvol, .5)
  1266. game:GetService("Debris"):AddItem(rl, .5)
  1267. elseif Type == "Normal" then
  1268. local vp = Create("BodyVelocity"){
  1269. P = 500,
  1270. maxForce = Vector3.new(math.huge, 0, math.huge),
  1271. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1272. }
  1273. if knockback > 0 then
  1274. vp.Parent = hit.Parent.Torso
  1275. end
  1276. game:GetService("Debris"):AddItem(vp, .5)
  1277. elseif Type == "Up" then
  1278. local bodyVelocity = Create("BodyVelocity"){
  1279. velocity = Vector3.new(0, 20, 0),
  1280. P = 5000,
  1281. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1282. Parent = hit,
  1283. }
  1284. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1285. elseif Type == "DarkUp" then
  1286. coroutine.resume(coroutine.create(function()
  1287. for i = 0, 1, 0.1 do
  1288. swait()
  1289. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1290. end
  1291. end))
  1292. local bodyVelocity = Create("BodyVelocity"){
  1293. velocity = Vector3.new(0, 20, 0),
  1294. P = 5000,
  1295. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1296. Parent = hit,
  1297. }
  1298. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1299. elseif Type == "Snare" then
  1300. local bp = Create("BodyPosition"){
  1301. P = 2000,
  1302. D = 100,
  1303. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1304. position = hit.Parent.Torso.Position,
  1305. Parent = hit.Parent.Torso,
  1306. }
  1307. game:GetService("Debris"):AddItem(bp, 1)
  1308. elseif Type == "Freeze" then
  1309. local BodPos = Create("BodyPosition"){
  1310. P = 50000,
  1311. D = 1000,
  1312. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1313. position = hit.Parent.Torso.Position,
  1314. Parent = hit.Parent.Torso,
  1315. }
  1316. local BodGy = Create("BodyGyro") {
  1317. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1318. P = 20e+003,
  1319. Parent = hit.Parent.Torso,
  1320. cframe = hit.Parent.Torso.CFrame,
  1321. }
  1322. hit.Parent.Torso.Anchored = true
  1323. coroutine.resume(coroutine.create(function(Part)
  1324. swait(1.5)
  1325. Part.Anchored = false
  1326. end), hit.Parent.Torso)
  1327. game:GetService("Debris"):AddItem(BodPos, 3)
  1328. game:GetService("Debris"):AddItem(BodGy, 3)
  1329. end
  1330. local debounce = Create("BoolValue"){
  1331. Name = "DebounceHit",
  1332. Parent = hit.Parent,
  1333. Value = true,
  1334. }
  1335. game:GetService("Debris"):AddItem(debounce, Delay)
  1336. c = Create("ObjectValue"){
  1337. Name = "creator",
  1338. Value = Player,
  1339. Parent = h,
  1340. }
  1341. game:GetService("Debris"):AddItem(c, .5)
  1342. end
  1343. end
  1344. -------------------------------------------------------
  1345. --End Damage Function--
  1346. -------------------------------------------------------
  1347.  
  1348. -------------------------------------------------------
  1349. --Start Damage Function Customization--
  1350. -------------------------------------------------------
  1351. function Tween(obj,props,time,easing,direction,repeats,backwards)
  1352. local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false)
  1353. local tween = game.TweenService:Create(obj, info, props)
  1354. tween:Play()
  1355. end
  1356. function ShowDamage(Pos, Text, Time, Color)
  1357. local Rate = (1 / 30)
  1358. local Pos = (Pos or Vector3.new(0, 0, 0))
  1359. local Text = (Text or "")
  1360. local Time = (Time or 2)
  1361. local Color = (Color or Color3.new(1, 0, 1))
  1362. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1363. EffectPart.Anchored = true
  1364. local BillboardGui = NewInstance("BillboardGui",EffectPart,{
  1365. Size = UDim2.new(3, 0, 3, 0),
  1366. Adornee = EffectPart,
  1367. })
  1368. local TextLabel = NewInstance("TextLabel",BillboardGui,{
  1369. BackgroundTransparency = 1,
  1370. Size = UDim2.new(1, 0, 1, 0),
  1371. Text = Text,
  1372. Font = "Bodoni",
  1373. TextColor3 = Color,
  1374. TextStrokeColor3 = Color3.new(0,0,0),
  1375. TextStrokeTransparency=0,
  1376. TextScaled = true,
  1377. })
  1378. game.Debris:AddItem(EffectPart, (Time))
  1379. EffectPart.Parent = game:GetService("Workspace")
  1380. delay(0, function()
  1381. Tween(EffectPart,{CFrame=CF(Pos)*CF(0.5,0,0.1)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out)
  1382. local Frames = (Time / Rate)
  1383. for Frame = 1, Frames do
  1384. wait(Rate)
  1385. local Percent = (Frame / Frames)
  1386. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1387. TextLabel.TextTransparency = Percent
  1388. end
  1389. if EffectPart and EffectPart.Parent then
  1390. EffectPart:Destroy()
  1391. end
  1392. end)
  1393. end
  1394. -------------------------------------------------------
  1395. --End Damage Function Customization--
  1396. -------------------------------------------------------
  1397.  
  1398. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1399. for _, c in pairs(workspace:children()) do
  1400. local hum = c:findFirstChild("Humanoid")
  1401. if hum ~= nil then
  1402. local head = c:findFirstChild("Head")
  1403. if head ~= nil then
  1404. local targ = head.Position - Part.Position
  1405. local mag = targ.magnitude
  1406. if magni >= mag and c.Name ~= plr.Name then
  1407. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  1408. end
  1409. end
  1410. end
  1411. end
  1412. end
  1413.  
  1414.  
  1415. CFuncs = {
  1416. Part = {
  1417. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1418. local Part = Create("Part")({
  1419. Parent = Parent,
  1420. Reflectance = Reflectance,
  1421. Transparency = Transparency,
  1422. CanCollide = false,
  1423. Locked = true,
  1424. BrickColor = BrickColor.new(tostring(BColor)),
  1425. Name = Name,
  1426. Size = Size,
  1427. Material = Material
  1428. })
  1429. RemoveOutlines(Part)
  1430. return Part
  1431. end
  1432. },
  1433. Mesh = {
  1434. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1435. local Msh = Create(Mesh)({
  1436. Parent = Part,
  1437. Offset = OffSet,
  1438. Scale = Scale
  1439. })
  1440. if Mesh == "SpecialMesh" then
  1441. Msh.MeshType = MeshType
  1442. Msh.MeshId = MeshId
  1443. end
  1444. return Msh
  1445. end
  1446. },
  1447. Mesh = {
  1448. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1449. local Msh = Create(Mesh)({
  1450. Parent = Part,
  1451. Offset = OffSet,
  1452. Scale = Scale
  1453. })
  1454. if Mesh == "SpecialMesh" then
  1455. Msh.MeshType = MeshType
  1456. Msh.MeshId = MeshId
  1457. end
  1458. return Msh
  1459. end
  1460. },
  1461. Weld = {
  1462. Create = function(Parent, Part0, Part1, C0, C1)
  1463. local Weld = Create("Weld")({
  1464. Parent = Parent,
  1465. Part0 = Part0,
  1466. Part1 = Part1,
  1467. C0 = C0,
  1468. C1 = C1
  1469. })
  1470. return Weld
  1471. end
  1472. },
  1473. Sound = {
  1474. Create = function(id, par, vol, pit)
  1475. coroutine.resume(coroutine.create(function()
  1476. local S = Create("Sound")({
  1477. Volume = vol,
  1478. Pitch = pit or 1,
  1479. SoundId = id,
  1480. Parent = par or workspace
  1481. })
  1482. wait()
  1483. S:play()
  1484. game:GetService("Debris"):AddItem(S, 6)
  1485. end))
  1486. end
  1487. },
  1488. ParticleEmitter = {
  1489. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1490. local fp = Create("ParticleEmitter")({
  1491. Parent = Parent,
  1492. Color = ColorSequence.new(Color1, Color2),
  1493. LightEmission = LightEmission,
  1494. Size = Size,
  1495. Texture = Texture,
  1496. Transparency = Transparency,
  1497. ZOffset = ZOffset,
  1498. Acceleration = Accel,
  1499. Drag = Drag,
  1500. LockedToPart = LockedToPart,
  1501. VelocityInheritance = VelocityInheritance,
  1502. EmissionDirection = EmissionDirection,
  1503. Enabled = Enabled,
  1504. Lifetime = LifeTime,
  1505. Rate = Rate,
  1506. Rotation = Rotation,
  1507. RotSpeed = RotSpeed,
  1508. Speed = Speed,
  1509. VelocitySpread = VelocitySpread
  1510. })
  1511. return fp
  1512. end
  1513. }
  1514. }
  1515. function RemoveOutlines(part)
  1516. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1517. end
  1518. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1519. local Part = Create("Part")({
  1520. formFactor = FormFactor,
  1521. Parent = Parent,
  1522. Reflectance = Reflectance,
  1523. Transparency = Transparency,
  1524. CanCollide = false,
  1525. Locked = true,
  1526. BrickColor = BrickColor.new(tostring(BColor)),
  1527. Name = Name,
  1528. Size = Size,
  1529. Material = Material
  1530. })
  1531. RemoveOutlines(Part)
  1532. return Part
  1533. end
  1534. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1535. local Msh = Create(Mesh)({
  1536. Parent = Part,
  1537. Offset = OffSet,
  1538. Scale = Scale
  1539. })
  1540. if Mesh == "SpecialMesh" then
  1541. Msh.MeshType = MeshType
  1542. Msh.MeshId = MeshId
  1543. end
  1544. return Msh
  1545. end
  1546. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1547. local Weld = Create("Weld")({
  1548. Parent = Parent,
  1549. Part0 = Part0,
  1550. Part1 = Part1,
  1551. C0 = C0,
  1552. C1 = C1
  1553. })
  1554. return Weld
  1555. end
  1556.  
  1557.  
  1558. -------------------------------------------------------
  1559. --Start Effect Function--
  1560. -------------------------------------------------------
  1561. EffectModel = Instance.new("Model", char)
  1562. Effects = {
  1563. Block = {
  1564. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1565. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1566. prt.Anchored = true
  1567. prt.CFrame = cframe
  1568. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1569. game:GetService("Debris"):AddItem(prt, 10)
  1570. if Type == 1 or Type == nil then
  1571. table.insert(Effects, {
  1572. prt,
  1573. "Block1",
  1574. delay,
  1575. x3,
  1576. y3,
  1577. z3,
  1578. msh
  1579. })
  1580. elseif Type == 2 then
  1581. table.insert(Effects, {
  1582. prt,
  1583. "Block2",
  1584. delay,
  1585. x3,
  1586. y3,
  1587. z3,
  1588. msh
  1589. })
  1590. else
  1591. table.insert(Effects, {
  1592. prt,
  1593. "Block3",
  1594. delay,
  1595. x3,
  1596. y3,
  1597. z3,
  1598. msh
  1599. })
  1600. end
  1601. end
  1602. },
  1603. Sphere = {
  1604. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1605. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1606. prt.Anchored = true
  1607. prt.CFrame = cframe
  1608. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1609. game:GetService("Debris"):AddItem(prt, 10)
  1610. table.insert(Effects, {
  1611. prt,
  1612. "Cylinder",
  1613. delay,
  1614. x3,
  1615. y3,
  1616. z3,
  1617. msh
  1618. })
  1619. end
  1620. },
  1621. Cylinder = {
  1622. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1623. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1624. prt.Anchored = true
  1625. prt.CFrame = cframe
  1626. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1627. game:GetService("Debris"):AddItem(prt, 10)
  1628. table.insert(Effects, {
  1629. prt,
  1630. "Cylinder",
  1631. delay,
  1632. x3,
  1633. y3,
  1634. z3,
  1635. msh
  1636. })
  1637. end
  1638. },
  1639. Wave = {
  1640. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1641. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1642. prt.Anchored = true
  1643. prt.CFrame = cframe
  1644. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1645. game:GetService("Debris"):AddItem(prt, 10)
  1646. table.insert(Effects, {
  1647. prt,
  1648. "Cylinder",
  1649. delay,
  1650. x3 / 60,
  1651. y3 / 60,
  1652. z3 / 60,
  1653. msh
  1654. })
  1655. end
  1656. },
  1657. Ring = {
  1658. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1659. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1660. prt.Anchored = true
  1661. prt.CFrame = cframe
  1662. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1663. game:GetService("Debris"):AddItem(prt, 10)
  1664. table.insert(Effects, {
  1665. prt,
  1666. "Cylinder",
  1667. delay,
  1668. x3,
  1669. y3,
  1670. z3,
  1671. msh
  1672. })
  1673. end
  1674. },
  1675. Break = {
  1676. Create = function(brickcolor, cframe, x1, y1, z1)
  1677. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1678. prt.Anchored = true
  1679. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1680. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1681. local num = math.random(10, 50) / 1000
  1682. game:GetService("Debris"):AddItem(prt, 10)
  1683. table.insert(Effects, {
  1684. prt,
  1685. "Shatter",
  1686. num,
  1687. prt.CFrame,
  1688. math.random() - math.random(),
  1689. 0,
  1690. math.random(50, 100) / 100
  1691. })
  1692. end
  1693. },
  1694. Spiral = {
  1695. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1696. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1697. prt.Anchored = true
  1698. prt.CFrame = cframe
  1699. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1700. game:GetService("Debris"):AddItem(prt, 10)
  1701. table.insert(Effects, {
  1702. prt,
  1703. "Cylinder",
  1704. delay,
  1705. x3,
  1706. y3,
  1707. z3,
  1708. msh
  1709. })
  1710. end
  1711. },
  1712. Push = {
  1713. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1714. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1715. prt.Anchored = true
  1716. prt.CFrame = cframe
  1717. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1718. game:GetService("Debris"):AddItem(prt, 10)
  1719. table.insert(Effects, {
  1720. prt,
  1721. "Cylinder",
  1722. delay,
  1723. x3,
  1724. y3,
  1725. z3,
  1726. msh
  1727. })
  1728. end
  1729. }
  1730. }
  1731. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1732. local fp = IT("Part")
  1733. fp.formFactor = formfactor
  1734. fp.Parent = parent
  1735. fp.Reflectance = reflectance
  1736. fp.Transparency = transparency
  1737. fp.CanCollide = false
  1738. fp.Locked = true
  1739. fp.BrickColor = brickcolor
  1740. fp.Name = name
  1741. fp.Size = size
  1742. fp.Position = tors.Position
  1743. RemoveOutlines(fp)
  1744. fp.Material = "SmoothPlastic"
  1745. fp:BreakJoints()
  1746. return fp
  1747. end
  1748.  
  1749. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1750. local mesh = IT(Mesh)
  1751. mesh.Parent = part
  1752. if Mesh == "SpecialMesh" then
  1753. mesh.MeshType = meshtype
  1754. if meshid ~= "nil" then
  1755. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1756. end
  1757. end
  1758. mesh.Offset = offset
  1759. mesh.Scale = scale
  1760. return mesh
  1761. end
  1762.  
  1763. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1764. local type = type
  1765. local rng = Instance.new("Part", char)
  1766. rng.Anchored = true
  1767. rng.BrickColor = color
  1768. rng.CanCollide = false
  1769. rng.FormFactor = 3
  1770. rng.Name = "Ring"
  1771. rng.Material = "Neon"
  1772. rng.Size = Vector3.new(1, 1, 1)
  1773. rng.Transparency = 0
  1774. rng.TopSurface = 0
  1775. rng.BottomSurface = 0
  1776. rng.CFrame = pos
  1777. local rngm = Instance.new("SpecialMesh", rng)
  1778. rngm.MeshType = MType
  1779. rngm.Scale = scale
  1780. local scaler2 = 1
  1781. if type == "Add" then
  1782. scaler2 = 1 * value
  1783. elseif type == "Divide" then
  1784. scaler2 = 1 / value
  1785. end
  1786. coroutine.resume(coroutine.create(function()
  1787. for i = 0, 10 / bonuspeed, 0.1 do
  1788. swait()
  1789. if type == "Add" then
  1790. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1791. elseif type == "Divide" then
  1792. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1793. end
  1794. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1795. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1796. end
  1797. rng:Destroy()
  1798. end))
  1799. end
  1800.  
  1801. function ManSlaughter(MAN)
  1802. if MAN then
  1803. local ROOT = MAN:FindFirstChild("HumanoidRootPart")
  1804. if ROOT then
  1805. ROOT:Remove()
  1806. end
  1807. local MANHUM = MAN:FindFirstChildOfClass("Humanoid")
  1808. if MANHUM then
  1809. MANHUM.BreakJointsOnDeath = false
  1810. MANHUM.Health = 0
  1811. end
  1812. if MAN:FindFirstChild("R6Ragdoll") == nil and MAN:FindFirstChild("R15Ragdoll") == nil then
  1813. if MAN:FindFirstChild("UpperTorso") then
  1814. local SCRIPT = script.R15Ragdoll:Clone()
  1815. SCRIPT.Parent = MAN
  1816. SCRIPT.Disabled = false
  1817. else
  1818. local SCRIPT = script.R6Ragdoll:Clone()
  1819. SCRIPT.Parent = MAN
  1820. SCRIPT.Disabled = false
  1821. end
  1822. local TORSO = MAN:FindFirstChild("Torso") or MAN:FindFirstChild("UpperTorso")
  1823. if TORSO then
  1824. --NewSound({ID = 146594648,PARENT = TORSO,VOLUME = 1,PITCH = MRANDOM(8,12)/10,LOOP = false,MAXDISTANCE = 75,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
  1825. end
  1826. end
  1827. MAN:BreakJoints()
  1828. if MAN:FindFirstChild("Slaughtered") == nil then
  1829. local MARK = IT("Folder",MAN)
  1830. MARK.Name = "Slaughtered"
  1831. else
  1832. if MAN:FindFirstChild("Slaughtered") then
  1833. local TORSO = MAN:FindFirstChild("Torso") or MAN:FindFirstChild("UpperTorso")
  1834. if TORSO then
  1835. TORSO.RotVelocity = Vector3.new(0,Mrandom(-25,25),0)
  1836. end
  1837. end
  1838. end
  1839. end
  1840. end
  1841.  
  1842. function OOFf(dude)
  1843. if dude.Name ~= char then
  1844. --local bgf = IT("BodyGyro", dude.Head or dude.Torso or dude.UpperTorso)
  1845. --bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1846. local val = IT("BoolValue", dude)
  1847. val.Name = "IsHit"
  1848. local ds = coroutine.wrap(function()
  1849. ManSlaughter(dude)
  1850. Cso("958257111", dude.Head, 6, 1)
  1851. --Cso("192104941", dude.Torso or dude.UpperTorso, 6, 1)
  1852. wait(0.2)
  1853. target = nil
  1854. coroutine.resume(coroutine.create(function()
  1855. for i, v in pairs(dude:GetChildren()) do
  1856. if v:IsA("Accessory") then
  1857. v:Destroy()
  1858. end
  1859. if v:IsA("Humanoid") then
  1860. v:Destroy()
  1861. end
  1862. if v:IsA("CharacterMesh") then
  1863. v:Destroy()
  1864. end
  1865. if v:IsA("Model") then
  1866. v:Destroy()
  1867. end
  1868. if v:IsA("Part") or v:IsA("MeshPart") then
  1869. for x, o in pairs(v:GetChildren()) do
  1870. if o:IsA("Decal") then
  1871. o:Destroy()
  1872. end
  1873. end
  1874. coroutine.resume(coroutine.create(function()
  1875. --v.Material = "Neon"
  1876. v.CanCollide = false
  1877. --[[
  1878. local PartEmmit1 = IT("ParticleEmitter", v)
  1879. PartEmmit1.LightEmission = 1
  1880. PartEmmit1.Texture = "rbxassetid://107081341"
  1881. PartEmmit1.Color = ColorSequence.new(Color3.new (1, .3, 0), Color3.new (.5, 0, 0))
  1882. PartEmmit1.Rate = 100
  1883. PartEmmit1.Lifetime = NumberRange.new(0,1.2)
  1884. PartEmmit1.Size = NumberSequence.new(1.4,0)
  1885. PartEmmit1.Transparency = NumberSequence.new(.1,1)
  1886. PartEmmit1.Speed = NumberRange.new(1,2)
  1887. PartEmmit1.VelocitySpread = 360
  1888. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1889. PartEmmit1.RotSpeed = NumberRange.new(-100, 100)
  1890. ]]
  1891. local BodPoss = IT("BodyPosition", v)
  1892. BodPoss.P = 3000
  1893. BodPoss.D = 1000
  1894. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1895. BodPoss.position = v.Position + Vector3.new(0, 0.01, 0)
  1896. v.Color = Color3.new(1,0,0)
  1897. coroutine.resume(coroutine.create(function()
  1898. for i = 0, 49 do
  1899. swait(1)
  1900. v.Transparency = v.Transparency + 0.02
  1901. end
  1902. wait(0.5)
  1903. PartEmmit1.Enabled = false
  1904. wait(3)
  1905. v:Destroy()
  1906. dude:Destroy()
  1907. end))
  1908. end))
  1909. end
  1910. end
  1911. end))
  1912. end)
  1913. ds()
  1914. end
  1915. end
  1916.  
  1917. function FindNearestHead(Position, Distance, SinglePlayer)
  1918. if SinglePlayer then
  1919. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1920. end
  1921. local List = {}
  1922. for i, v in pairs(workspace:GetChildren()) do
  1923. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1924. table.insert(List, v)
  1925. end
  1926. end
  1927. return List
  1928. end
  1929.  
  1930. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1931. local type = type
  1932. local rng = Instance.new("Part", char)
  1933. rng.Anchored = true
  1934. rng.BrickColor = color
  1935. rng.CanCollide = false
  1936. rng.FormFactor = 3
  1937. rng.Name = "Ring"
  1938. rng.Material = "Neon"
  1939. rng.Size = Vector3.new(1, 1, 1)
  1940. rng.Transparency = 0
  1941. rng.TopSurface = 0
  1942. rng.BottomSurface = 0
  1943. rng.CFrame = pos
  1944. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1945. local rngm = Instance.new("SpecialMesh", rng)
  1946. rngm.MeshType = MType
  1947. rngm.Scale = Vector3.new(x1, y1, z1)
  1948. local scaler2 = 1
  1949. local speeder = FastSpeed
  1950. if type == "Add" then
  1951. scaler2 = 1 * value
  1952. elseif type == "Divide" then
  1953. scaler2 = 1 / value
  1954. end
  1955. coroutine.resume(coroutine.create(function()
  1956. for i = 0, 10 / bonuspeed, 0.1 do
  1957. swait()
  1958. if type == "Add" then
  1959. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1960. elseif type == "Divide" then
  1961. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1962. end
  1963. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1964. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1965. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1966. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1967. end
  1968. rng:Destroy()
  1969. end))
  1970. end
  1971. function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1972. local Hitboxpart = Instance.new("Part", EffectModel)
  1973. RemoveOutlines(Hitboxpart)
  1974. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1975. Hitboxpart.CanCollide = false
  1976. Hitboxpart.Transparency = 1
  1977. Hitboxpart.Anchored = true
  1978. Hitboxpart.CFrame = Pose
  1979. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1980. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1981. end
  1982. function SoulSteal(dude)
  1983. if dude.Name ~= char then
  1984. local bgf = IT("BodyGyro", dude.Head)
  1985. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1986. local val = IT("BoolValue", dude)
  1987. val.Name = "IsHit"
  1988. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1989. local soulst = coroutine.wrap(function()
  1990. local soul = Instance.new("Part",dude)
  1991. soul.Size = Vector3.new(1,1,1)
  1992. soul.CanCollide = false
  1993. soul.Anchored = false
  1994. soul.Position = torso.Position
  1995. soul.Transparency = 1
  1996. local PartEmmit1 = IT("ParticleEmitter", soul)
  1997. PartEmmit1.LightEmission = 1
  1998. PartEmmit1.Texture = "rbxassetid://569507414"
  1999. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  2000. PartEmmit1.Rate = 250
  2001. PartEmmit1.Lifetime = NumberRange.new(1.6)
  2002. PartEmmit1.Size = NumberSequence.new({
  2003. NumberSequenceKeypoint.new(0, 1, 0),
  2004. NumberSequenceKeypoint.new(1, 0, 0)
  2005. })
  2006. PartEmmit1.Transparency = NumberSequence.new({
  2007. NumberSequenceKeypoint.new(0, 0, 0),
  2008. NumberSequenceKeypoint.new(1, 1, 0)
  2009. })
  2010. PartEmmit1.Speed = NumberRange.new(0, 0)
  2011. PartEmmit1.VelocitySpread = 30000
  2012. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  2013. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  2014. local BodPoss = IT("BodyPosition", soul)
  2015. BodPoss.P = 3000
  2016. BodPoss.D = 1000
  2017. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2018. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  2019. wait(1.6)
  2020. soul.Touched:connect(function(hit)
  2021. if hit.Parent == char then
  2022. soul:Destroy()
  2023. end
  2024. end)
  2025. wait(1.2)
  2026. while soul do
  2027. swait()
  2028. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  2029. BodPoss.Position = tors.Position
  2030. end
  2031. end)
  2032. soulst()
  2033. end
  2034. end
  2035. function FaceMouse()
  2036. local Cam = workspace.CurrentCamera
  2037. return {
  2038. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2039. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2040. }
  2041. end
  2042. Effects = {
  2043. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  2044. local p = Instance.new("Part",EffectModel)
  2045. p.BrickColor = BrickColor.new(colour)
  2046. p.Size = partsize
  2047. p.Anchored = true
  2048. p.CanCollide = false
  2049. p.Material = matr
  2050. p.CFrame = cf
  2051. if inverse == true then
  2052. p.Transparency = 1
  2053. else
  2054. p.Transparency = 0
  2055. end
  2056. local m = Instance.new("BlockMesh",p)
  2057. m.Scale = meshstart
  2058. coroutine.wrap(function()
  2059. for i = 0, 1, factor do
  2060. swait()
  2061. if inverse == true then
  2062. p.Transparency = 1-i
  2063. else
  2064. p.Transparency = i
  2065. end
  2066. m.Scale = m.Scale + meshadd
  2067. if spin == true then
  2068. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2069. end
  2070. end
  2071. p:Destroy()
  2072. end)()
  2073. return p
  2074. end,
  2075. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  2076. local p = Instance.new("Part",EffectModel)
  2077. p.BrickColor = BrickColor.new(colour)
  2078. p.Size = partsize
  2079. p.Anchored = true
  2080. p.CanCollide = false
  2081. p.Material = matr
  2082. p.CFrame = cf
  2083. if inverse == true then
  2084. p.Transparency = 1
  2085. else
  2086. p.Transparency = 0
  2087. end
  2088. local m = Instance.new("SpecialMesh",p)
  2089. m.MeshType = "Sphere"
  2090. m.Scale = meshstart
  2091. coroutine.wrap(function()
  2092. for i=0,1,factor do
  2093. swait()
  2094. if inverse == true then
  2095. p.Transparency = 1-i
  2096. else
  2097. p.Transparency = i
  2098. end
  2099. m.Scale = m.Scale + meshadd
  2100. end
  2101. p:Destroy()
  2102. end)()
  2103. return p
  2104. end,
  2105.  
  2106. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  2107. local p = Instance.new("Part",EffectModel)
  2108. p.BrickColor = BrickColor.new(colour)
  2109. p.Size = partsize
  2110. p.Anchored = true
  2111. p.CanCollide = false
  2112. p.Material = matr
  2113. p.CFrame = cf
  2114. if inverse == true then
  2115. p.Transparency = 1
  2116. else
  2117. p.Transparency = 0
  2118. end
  2119. local m = Instance.new("CylinderMesh",p)
  2120. m.Scale = meshstart
  2121. coroutine.wrap(function()
  2122. for i=0,1,factor do
  2123. swait()
  2124. if inverse == true then
  2125. p.Transparency = 1-i
  2126. else
  2127. p.Transparency = i
  2128. end
  2129. m.Scale = m.Scale + meshadd
  2130. end
  2131. p:Destroy()
  2132. end)()
  2133. return p
  2134. end,
  2135.  
  2136. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  2137. local p = Instance.new("Part",EffectModel)
  2138. p.BrickColor = BrickColor.new(colour)
  2139. p.Size = Vector3.new()
  2140. p.Anchored = true
  2141. p.CanCollide = false
  2142. p.CFrame = cf
  2143. if inverse == true then
  2144. p.Transparency = 1
  2145. else
  2146. p.Transparency = 0
  2147. end
  2148. local m = Instance.new("SpecialMesh",p)
  2149. m.MeshId = "rbxassetid://20329976"
  2150. m.Scale = meshstart
  2151. coroutine.wrap(function()
  2152. for i=0,1,factor do
  2153. swait()
  2154. if inverse == true then
  2155. p.Transparency = 1-i
  2156. else
  2157. p.Transparency = i
  2158. end
  2159. m.Scale = m.Scale + meshadd
  2160. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  2161. end
  2162. p:Destroy()
  2163. end)()
  2164. return p
  2165. end,
  2166.  
  2167. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  2168. local p = Instance.new("Part",EffectModel)
  2169. p.BrickColor = BrickColor.new(colour)
  2170. p.Size = Vector3.new()
  2171. p.Anchored = true
  2172. p.CanCollide = false
  2173. p.CFrame = cf
  2174. if inverse == true then
  2175. p.Transparency = 1
  2176. else
  2177. p.Transparency = 0
  2178. end
  2179. local m = Instance.new("SpecialMesh",p)
  2180. m.MeshId = "rbxassetid://3270017"
  2181. m.Scale = meshstart
  2182. coroutine.wrap(function()
  2183. for i=0,1,factor do
  2184. swait()
  2185. if inverse == true then
  2186. p.Transparency = 1-i
  2187. else
  2188. p.Transparency = i
  2189. end
  2190. m.Scale = m.Scale + meshadd
  2191. end
  2192. p:Destroy()
  2193. end)()
  2194. return p
  2195. end,
  2196.  
  2197. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  2198. local p = Instance.new("Part",EffectModel)
  2199. p.BrickColor = BrickColor.new(colour)
  2200. p.Size = Vector3.new()
  2201. p.Anchored = true
  2202. p.CanCollide = false
  2203. p.CFrame = cf
  2204. if inverse == true then
  2205. p.Transparency = 1
  2206. else
  2207. p.Transparency = 0
  2208. end
  2209. local m = Instance.new("SpecialMesh",p)
  2210. m.MeshId = meshid
  2211. m.TextureId = textid
  2212. m.Scale = meshstart
  2213. coroutine.wrap(function()
  2214. for i=0,1,factor do
  2215. swait()
  2216. if inverse == true then
  2217. p.Transparency = 1-i
  2218. else
  2219. p.Transparency = i
  2220. end
  2221. m.Scale = m.Scale + meshadd
  2222. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  2223. end
  2224. p:Destroy()
  2225. end)()
  2226. return p
  2227. end,
  2228.  
  2229. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  2230. local p = Instance.new("Part",EffectModel)
  2231. p.BrickColor = BrickColor.new(colour)
  2232. p.Size = partsize
  2233. p.Anchored = true
  2234. p.CanCollide = false
  2235. p.Material = matr
  2236. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2237. if inverse == true then
  2238. p.Transparency = 1
  2239. else
  2240. p.Transparency = 0
  2241. end
  2242. local m = Instance.new("SpecialMesh",p)
  2243. m.MeshType = "Sphere"
  2244. m.Scale = meshstart
  2245. coroutine.wrap(function()
  2246. for i=0,1,factor do
  2247. swait()
  2248. if inverse == true then
  2249. p.Transparency = 1-i
  2250. else
  2251. p.Transparency = i
  2252. end
  2253. m.Scale = m.Scale + meshadd
  2254. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  2255. end
  2256. p:Destroy()
  2257. end)()
  2258. return p
  2259. end,
  2260.  
  2261. }
  2262. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2263. local type = type
  2264. local rng = Instance.new("Part", char)
  2265. rng.Anchored = true
  2266. rng.BrickColor = color
  2267. rng.CanCollide = false
  2268. rng.FormFactor = 3
  2269. rng.Name = "Ring"
  2270. rng.Material = "Neon"
  2271. rng.Size = Vector3.new(1, 1, 1)
  2272. rng.Transparency = 0
  2273. rng.TopSurface = 0
  2274. rng.BottomSurface = 0
  2275. rng.CFrame = pos
  2276. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2277. local rngm = Instance.new("SpecialMesh", rng)
  2278. rngm.MeshType = "Brick"
  2279. rngm.Scale = Vector3.new(x1,y1,z1)
  2280. local scaler2 = 1
  2281. local speeder = FastSpeed/10
  2282. if type == "Add" then
  2283. scaler2 = 1*value
  2284. elseif type == "Divide" then
  2285. scaler2 = 1/value
  2286. end
  2287. coroutine.resume(coroutine.create(function()
  2288. for i = 0,10/bonuspeed,0.1 do
  2289. swait()
  2290. if type == "Add" then
  2291. scaler2 = scaler2 - 0.01*value/bonuspeed
  2292. elseif type == "Divide" then
  2293. scaler2 = scaler2 - 0.01/value*bonuspeed
  2294. end
  2295. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2296. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2297. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2298. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2299. end
  2300. rng:Destroy()
  2301. end))
  2302. end
  2303. function CrP(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  2304. local NEWPART = IT("Part")
  2305. NEWPART.formFactor = FORMFACTOR
  2306. NEWPART.Reflectance = REFLECTANCE
  2307. NEWPART.Transparency = TRANSPARENCY
  2308. NEWPART.CanCollide = false
  2309. NEWPART.Locked = true
  2310. NEWPART.Anchored = true
  2311. if ANCHOR == false then
  2312. NEWPART.Anchored = false
  2313. end
  2314. NEWPART.BrickColor = BrickC(tostring(BRICKCOLOR))
  2315. NEWPART.Name = NAME
  2316. NEWPART.Size = SIZE
  2317. NEWPART.Position = tors.Position
  2318. NEWPART.Material = MATERIAL
  2319. NEWPART:BreakJoints()
  2320. NEWPART.Parent = PARENT
  2321. return NEWPART
  2322. end
  2323. function CrM(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  2324. local NEWMESH = IT(MESH)
  2325. if MESH == "SpecialMesh" then
  2326. NEWMESH.MeshType = MESHTYPE
  2327. if MESHID ~= "nil" and MESHID ~= "" then
  2328. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  2329. end
  2330. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  2331. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  2332. end
  2333. end
  2334. NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
  2335. NEWMESH.Scale = SCALE
  2336. NEWMESH.Parent = PARENT
  2337. return NEWMESH
  2338. end
  2339. local BEGONE_Particle = Create("ParticleEmitter"){
  2340. Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)),
  2341. Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}),
  2342. Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
  2343. Texture = "rbxassetid://936193661",
  2344. Lifetime = NumberRange.new(1.5),
  2345. Rate = 5,
  2346. VelocitySpread = 0,
  2347. Rotation = NumberRange.new(0),
  2348. RotSpeed = NumberRange.new(-10,10),
  2349. Speed = NumberRange.new(0),
  2350. LightEmission = .25,
  2351. LockedToPart = true,
  2352. Acceleration = Vector3.new(0, -0, 0),
  2353. EmissionDirection = "Top",
  2354. Drag = 4,
  2355. ZOffset = 1,
  2356. Enabled = false
  2357. }
  2358. function weld(parent,part0,part1,c0)
  2359. local weld=IT("Weld")
  2360. weld.Parent=parent
  2361. weld.Part0=part0
  2362. weld.Part1=part1
  2363. weld.C0=c0
  2364. return weld
  2365. end
  2366. local Effs = IT("Folder", char)
  2367. Effs.Name = "Effects"
  2368. function WACKYEFFECT(Table)
  2369. local TYPE = (Table.EffectType or "Sphere")
  2370. local SIZE = (Table.Size or Vector3.new(1,1,1))
  2371. local ENDSIZE = (Table.Size2 or Vector3.new(0,0,0))
  2372. local TRANSPARENCY = (Table.Transparency or 0)
  2373. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  2374. local CFRAME = (Table.CFrame or tors.CFrame)
  2375. local MOVEDIRECTION = (Table.MoveToPos or nil)
  2376. local ROTATION1 = (Table.RotationX or 0)
  2377. local ROTATION2 = (Table.RotationY or 0)
  2378. local ROTATION3 = (Table.RotationZ or 0)
  2379. local MATERIAL = (Table.Material or "Neon")
  2380. local COLOR = (Table.Color or Color3.new(1,1,1))
  2381. local TIME = (Table.Time or 45)
  2382. local SOUNDID = (Table.SoundID or nil)
  2383. local SOUNDPITCH = (Table.SoundPitch or nil)
  2384. local SOUNDVOLUME = (Table.SoundVolume or nil)
  2385. coroutine.resume(coroutine.create(function()
  2386. local PLAYSSOUND = false
  2387. local SOUND = nil
  2388. local EFFECT = CrP(3, Effs, MATERIAL, 0, TRANSPARENCY, BrickC("Pearl"), "Effect", Vector3.new(1,1,1), true)
  2389. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  2390. PLAYSSOUND = true
  2391. SOUND = Cso(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH)
  2392. end
  2393. EFFECT.Color = COLOR
  2394. local MSH = nil
  2395. if TYPE == "Sphere" then
  2396. MSH = CrM("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, Vector3.new(0,0,0))
  2397. elseif TYPE == "Block" or TYPE == "Box" then
  2398. MSH = IT("BlockMesh",EFFECT)
  2399. MSH.Scale = SIZE
  2400. elseif TYPE == "Wave" then
  2401. MSH = CrM("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, Vector3.new(0,0,-SIZE.X/8))
  2402. elseif TYPE == "Ring" then
  2403. MSH = CrM("SpecialMesh", EFFECT, "FileMesh", "559831844", "", Vector3.new(SIZE.X,SIZE.X,0.1), Vector3.new(0,0,0))
  2404. elseif TYPE == "Slash" then
  2405. MSH = CrM("SpecialMesh", EFFECT, "FileMesh", "662586858", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
  2406. elseif TYPE == "Round Slash" then
  2407. MSH = CrM("SpecialMesh", EFFECT, "FileMesh", "662585058", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
  2408. elseif TYPE == "Swirl" then
  2409. MSH = CrM("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, Vector3.new(0,0,0))
  2410. elseif TYPE == "Skull" then
  2411. MSH = CrM("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, Vector3.new(0,0,0))
  2412. elseif TYPE == "Crystal" then
  2413. MSH = CrM("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, Vector3.new(0,0,0))
  2414. end
  2415. if MSH ~= nil then
  2416. local MOVESPEED = nil
  2417. if MOVEDIRECTION ~= nil then
  2418. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  2419. end
  2420. local GROWTH = SIZE - ENDSIZE
  2421. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  2422. if TYPE == "Block" then
  2423. EFFECT.CFrame = CFRAME*angles(Rad(Mrandom(0,360)),Rad(Mrandom(0,360)),Rad(Mrandom(0,360)))
  2424. else
  2425. EFFECT.CFrame = CFRAME
  2426. end
  2427. for LOOP = 1, TIME+1 do
  2428. swait()
  2429. MSH.Scale = MSH.Scale - GROWTH/TIME
  2430. if TYPE == "Wave" then
  2431. MSH.Offset = Vector3.new(0,0,-MSH.Scale.X/8)
  2432. end
  2433. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  2434. if TYPE == "Block" then
  2435. EFFECT.CFrame = CFRAME*angles(Rad(Mrandom(0,360)),Rad(Mrandom(0,360)),Rad(Mrandom(0,360)))
  2436. else
  2437. EFFECT.CFrame = EFFECT.CFrame*angles(Rad(ROTATION1),Rad(ROTATION2),Rad(ROTATION3))
  2438. end
  2439. if MOVEDIRECTION ~= nil then
  2440. local ORI = EFFECT.Orientation
  2441. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  2442. EFFECT.Orientation = ORI
  2443. end
  2444. end
  2445. if PLAYSSOUND == false then
  2446. EFFECT:remove()
  2447. else
  2448. repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  2449. EFFECT:remove()
  2450. end
  2451. else
  2452. if PLAYSSOUND == false then
  2453. EFFECT:remove()
  2454. else
  2455. repeat swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  2456. EFFECT:remove()
  2457. end
  2458. end
  2459. end))
  2460. end
  2461. -------------------------------------------------------
  2462. --End Effect Function--
  2463. -------------------------------------------------------
  2464. function Cso(ID, PARENT, VOLUME, PITCH)
  2465. local NSound = nil
  2466. coroutine.resume(coroutine.create(function()
  2467. NSound = IT("Sound", PARENT)
  2468. NSound.Volume = VOLUME
  2469. NSound.Pitch = PITCH
  2470. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  2471. swait()
  2472. NSound:play()
  2473. game:GetService("Debris"):AddItem(NSound, 10)
  2474. end))
  2475. return NSound
  2476. end
  2477. NewInstance = function(instance,parent,properties)
  2478. local inst = Instance.new(instance)
  2479. inst.Parent = parent
  2480. if(properties)then
  2481. for i,v in next, properties do
  2482. pcall(function() inst[i] = v end)
  2483. end
  2484. end
  2485. return inst;
  2486. end
  2487. New = function(Object, Parent, Name, Data)
  2488. local Object = Instance.new(Object)
  2489. for Index, Value in pairs(Data or {}) do
  2490. Object[Index] = Value
  2491. end
  2492. Object.Parent = Parent
  2493. Object.Name = Name
  2494. return Object
  2495. end
  2496. function SHAKECAM(POSITION,RANGE,INTENSITY,TIME)
  2497. local CHILDREN = workspace:GetDescendants()
  2498. for index, CHILD in pairs(CHILDREN) do
  2499. if CHILD.ClassName == "Model" then
  2500. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  2501. if HUM then
  2502. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  2503. if TORSO then
  2504. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  2505. local CAMSHAKER = script.CamShake:Clone()
  2506. CAMSHAKER.Shake.Value = INTENSITY
  2507. CAMSHAKER.Timer.Value = TIME
  2508. CAMSHAKER.Parent = CHILD
  2509. CAMSHAKER.Disabled = false
  2510. end
  2511. end
  2512. end
  2513. end
  2514. end
  2515. end
  2516. -------------------------------------------------------
  2517. --End Important Functions--
  2518. -------------------------------------------------------
  2519.  
  2520.  
  2521. -------------------------------------------------------
  2522. --Start Customization--
  2523. -------------------------------------------------------
  2524.  
  2525. hats = Instance.new("Model",char)
  2526. hats2 = Instance.new("Model",hats)
  2527.  
  2528. ezweld = function(p, a, b, cf)
  2529. local weld = Instance.new("Weld",p)
  2530. weld.Part0 = a
  2531. weld.Part1 = b
  2532. weld.C0 = cf
  2533. return weld
  2534. end
  2535.  
  2536. bighead = Instance.new("Part",hats2)
  2537. bighead.CanCollide = false
  2538. bighead.Size = Vector3.new(0.1, 0.1, 0.1)
  2539. bighead.Name = "OofHead"
  2540. bigmesh = Instance.new("SpecialMesh",bighead)
  2541. bigmesh.MeshId = "rbxassetid://2333745532"
  2542. bigmesh.TextureId = "rbxassetid://2333750544"
  2543. --bigweld = ezweld(char, bighead, hed, CFrame.new(0, -0.45, 0))
  2544.  
  2545. bomb = Instance.new("Part",hats2)
  2546. bomb.CanCollide = false
  2547. bomb.Size = Vector3.new(0.1, 0.1, 0.1)
  2548. bomb.Name = "Bom"
  2549. bombmesh = Instance.new("SpecialMesh",bomb)
  2550. bombmesh.MeshId = "rbxasset://fonts/timebomb.mesh"
  2551. bombmesh.TextureId = "rbxasset://textures/bombtex.png"
  2552. bombmesh.Scale = Vector3.new(0.8, 0.8, 0.8)
  2553. bombweld = ezweld(char, bomb, bighead, CFrame.new(0, 0, 0) * CFrame.Angles(77, 77, 0))
  2554.  
  2555. local Hats = bighead
  2556. local HatsWeld = IT("Weld")
  2557. HatsWeld.Parent = hed
  2558. HatsWeld.Part0 = hed
  2559. HatsWeld.Part1 = Hats
  2560. HatsWeld.C0 = CF(0, 0.4, -0.1) * angles(Rad(0), Rad(0), Rad(0))
  2561. ----------------------------------------------------------------------------------
  2562. local SONG = 2743829704
  2563. local SONG2 = 0
  2564. ----------------------------------------------------------------------------------
  2565. local equipped = false
  2566. local idle = 0
  2567. local change = 1
  2568. local val = 0
  2569. local toim = 0
  2570. local idleanim = 0.4
  2571. local sine = 0
  2572. local movelegs = false
  2573. local FF = Instance.new("ForceField",char)
  2574. FF.Visible = false
  2575. local Speed = 16
  2576. local Jump = 80
  2577. local rK = false
  2578. local DBT = false
  2579. local CurrentS = 0
  2580. local Paused = false
  2581. ----------------------------------------------------------------------------------
  2582. hum.Animator.Parent = nil
  2583. char.Animate.Parent = nil
  2584. hum.MaxHealth = 100
  2585. hum.Health = 100
  2586. ----------------------------------------------------------------------------------
  2587. local Weapun = script.Sword
  2588. local WeapunTrail = script.Sword.Trail
  2589. Weapun.Anchored = false
  2590. WeapunTrail.Enabled = false
  2591. local WeapunWeld = IT("Weld")
  2592. WeapunWeld.Parent = Weapun
  2593. WeapunWeld.Part0 = Weapun
  2594. WeapunWeld.Part1 = ra
  2595. WeapunWeld.C0 = CF(1, 0, -1.3) * angles(Rad(0), Rad(180), Rad(90))
  2596. ----------------------------------------------------------------------------------
  2597. local sODa = script.Sod
  2598. sODa.Anchored = false
  2599. local SodWeld = IT("Weld")
  2600. SodWeld.Parent = sODa
  2601. SodWeld.Part0 = sODa
  2602. SodWeld.Part1 = ra
  2603. SodWeld.C0 = CF(-1, 0, -0) * angles(Rad(90), Rad(0), Rad(90))
  2604. ----------------------------------------------------------------------------------
  2605.  
  2606. -------------------------------------------------------
  2607. --End Customization--
  2608. -------------------------------------------------------
  2609.  
  2610.  
  2611. -------------------------------------------------------
  2612. --Start Attacks N Stuff--
  2613. -------------------------------------------------------
  2614. function Land(SR)
  2615. spawn(function()
  2616. if DBT == false and attack == true and SR < -15 and rK == false then
  2617. DBT = true
  2618. Speed = Speed / 2
  2619. Jump = 0
  2620. Cso("268933900", root, 6.5, 1)
  2621. for i = 0, 2, 0.1 do
  2622. swait()
  2623. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10), Rad(0), Rad(0)), 0.15)
  2624. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(15 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15)
  2625. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, 0.1 - 0.1 * Cos(sine / 20), -0.3) * angles(Rad(15), Rad(-8 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(2)), 0.15)
  2626. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, 0.1 - 0.1 * Cos(sine / 20), -0.3) * angles(Rad(15), Rad(8 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(-3.5), Rad(0), Rad(-2)), 0.15)
  2627. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(20), Rad(-0.6), Rad(25 + 4.5 * Sin(sine / 20))), 0.15)
  2628. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(20), Rad(-0.6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.15)
  2629. end
  2630. attack = false
  2631. spawn(function()
  2632. wait(0.1)
  2633. Speed = 16
  2634. Jump = 80
  2635. DBT = false
  2636. end)
  2637. else
  2638. attack = false
  2639. end
  2640. end)
  2641. end
  2642.  
  2643. function AttackTemplate()
  2644. attack = true
  2645. movelegs = false
  2646. Speed = 16
  2647. for i = 0, 6, 0.1 do
  2648. swait()
  2649. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  2650. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(0 - 10 * Sin(sine / 12)), Rad(-0 + 5 * Cos(sine / 16))), 0.05)
  2651. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.05)
  2652. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.05)
  2653. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  2654. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  2655. end
  2656. attack = false
  2657. movelegs = false
  2658. Speed = 16
  2659. end
  2660.  
  2661. function Death()
  2662. local TARGET = mouse.Target
  2663. if TARGET ~= nil then
  2664. if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
  2665. local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
  2666. local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  2667. if ROOT and HUM.Health > 0 then
  2668. local FOE = mouse.Target.Parent
  2669. local HEAD = FOE:FindFirstChild("Head")
  2670. if HEAD then
  2671. attack = true
  2672. movelegs = false
  2673. Speed = 0
  2674. local Perms = Cso("928990573", hed, 6, 1)
  2675. NewParticle1.Enabled = true
  2676. NewParticle2.Enabled = true
  2677. wait(0.1)
  2678. repeat
  2679. swait()
  2680. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(30)), 0.05)
  2681. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(0 - 10 * Sin(sine / 12)), Rad(-30 + 5 * Cos(sine / 16))), 0.05)
  2682. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(95 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.05)
  2683. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.05)
  2684. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  2685. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  2686. until Perms.Playing == false
  2687. NewParticle1.Enabled = false
  2688. NewParticle2.Enabled = false
  2689. OOFf(FOE)
  2690. attack = false
  2691. movelegs = false
  2692. Speed = 16
  2693. end
  2694. end
  2695. end
  2696. end
  2697. end
  2698.  
  2699. function Sipper()
  2700. attack = true
  2701. movelegs = false
  2702. Speed = 0
  2703. sODa.Transparency = 0
  2704. local drink = Cso("10722059", sODa, 5.9, 1)
  2705. script.Model.Model.BigOof.Mesh.TextureId = "rbxassetid://2333750544"
  2706. wait(0.1)
  2707. repeat
  2708. swait()
  2709. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  2710. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-15), Rad(0), Rad(-0)), 0.05)
  2711. RW.C0 = clerp(RW.C0, CF(1.1, 0.5, -0.5) * angles(Rad(145), Rad(0), Rad(-40)), 0.1)
  2712. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.05)
  2713. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  2714. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  2715. until drink.Playing == false
  2716. attack = false
  2717. movelegs = false
  2718. Speed = 16
  2719. sODa.Transparency = 1
  2720. script.Model.Model.BigOof.Mesh.TextureId = "rbxassetid://2333750544"
  2721. end
  2722.  
  2723. function Click()
  2724. attack = true
  2725. movelegs = false
  2726. Speed = 8
  2727. for i = 0, 6, 0.1 do
  2728. swait()
  2729. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2730. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(20), Rad(-0)), 0.1)
  2731. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(180 + 8.5 * Sin(sine / 16)), Rad(0), Rad(30 + 5 * Cos(sine / 8))), 0.1)
  2732. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.1)
  2733. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.1)
  2734. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.1)
  2735. end
  2736. local BomB = IT("Explosion", workspace)
  2737. BomB.Position = hed.Position
  2738. BomB.BlastRadius = 10
  2739. Cso("440145223", hed, 6, 1.7)
  2740. for i = 0, 3, 0.1 do
  2741. swait()
  2742. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2743. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(-5), Rad(-0)), 0.5)
  2744. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(180 + 8.5 * Sin(sine / 16)), Rad(0), Rad(-20 + 5 * Cos(sine / 8))), 0.5)
  2745. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.1)
  2746. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.1)
  2747. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.1)
  2748. end
  2749. attack = false
  2750. movelegs = false
  2751. Speed = 16
  2752. end
  2753.  
  2754. function Dangbelikethat()
  2755. attack = true
  2756. Speed = 3
  2757. Cso("164174763", hed, 4.7, 1)
  2758. bigmesh.TextureId = "rbxassetid://2333750544"
  2759. for i = 0, 5, 0.1 do
  2760. swait()
  2761. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2762. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-30 - 6 * Cos(sine / 8)), Rad(0), Rad(-0)), 0.1)
  2763. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(120 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.1)
  2764. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(120 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.1)
  2765. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.1)
  2766. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.1)
  2767. end
  2768. for i = 0, 3, 0.1 do
  2769. swait()
  2770. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.1)
  2771. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(10 - 6 * Cos(sine / 8)), Rad(0), Rad(-0)), 0.1)
  2772. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(35 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.1)
  2773. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(35 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.1)
  2774. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.1)
  2775. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.1)
  2776. end
  2777. attack = false
  2778. Speed = 16
  2779. bigmesh.TextureId = "rbxassetid://2333750544"
  2780. end
  2781.  
  2782. function Slash()
  2783. attack = true
  2784. movelegs = true
  2785. Speed = 6
  2786. WeapunTrail.Enabled = true
  2787. Weapun.Transparency = 0
  2788. for i = 0, 1.1, 0.1 do
  2789. swait()
  2790. WeapunWeld.C0 = clerp(WeapunWeld.C0, CF(1, 0, -1.7) * angles(Rad(0), Rad(180), Rad(90)), 0.1)
  2791. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0 + 0.05 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-27)), 0.1)
  2792. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-2 - 7 * Cos(sine / 20)), Rad(0), Rad(27)), 0.1)
  2793. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(-7), Rad(-20), Rad(0)) * angles(Rad(0), Rad(0), Rad(9)), 0.2)
  2794. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(2), Rad(9), Rad(0)) * angles(Rad(0), Rad(0), Rad(-3)), 0.2)
  2795. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(185), Rad(65), Rad(10)), 0.1)
  2796. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(-20 + 7 * Cos(sine / 26)), Rad(23), Rad(-16 - 9 * Sin(sine / 20))), 0.1)
  2797. end
  2798. Cso("158037267", Weapun, 4.8, Mrandom(8,13)/12)
  2799. local NoConstant = false
  2800. local Hitter = Weapun.HitBox.Touched:connect(function(hit)
  2801. local HUMA = hit.Parent:FindFirstChildOfClass("Humanoid")
  2802. local TORSO = hit.Parent:FindFirstChild("Torso")
  2803. if HUMA ~= nil then
  2804. if NoConstant == false then
  2805. NoConstant = true
  2806. HUMA.Health = HUMA.Health - 20
  2807. Cso("935843979", TORSO, 6.8, Mrandom(8,13)/12)
  2808. end
  2809. end
  2810. end)
  2811. for i = 0, 1.3, 0.1 do
  2812. swait()
  2813. WeapunWeld.C0 = clerp(WeapunWeld.C0, CF(1, 0, -1.7) * angles(Rad(0), Rad(210), Rad(90)), 0.3)
  2814. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0 + 0.05 * Cos(sine / 20)) * angles(Rad(9), Rad(0), Rad(47)), 0.3)
  2815. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(10 - 7 * Cos(sine / 20)), Rad(10), Rad(-27)), 0.3)
  2816. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(23), Rad(-20), Rad(0)) * angles(Rad(0), Rad(0), Rad(9)), 0.2)
  2817. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(-19), Rad(9), Rad(0)) * angles(Rad(0), Rad(0), Rad(-3)), 0.2)
  2818. RW.C0 = clerp(RW.C0, CF(1.3, 0.4 + 0.1 * Cos(sine / 20), -0.3) * angles(Rad(45), Rad(15), Rad(-10)), 0.3)
  2819. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(10 + 7 * Cos(sine / 26)), Rad(23), Rad(-16 - 9 * Sin(sine / 20))), 0.1)
  2820. end
  2821. Hitter:Disconnect()
  2822. WeapunTrail.Enabled = false
  2823. Weapun.Transparency = 1
  2824. WeapunWeld.C0 = CF(1, 0, -1.3) * angles(Rad(0), Rad(180), Rad(90))
  2825. attack = false
  2826. movelegs = false
  2827. Speed = 16
  2828. end
  2829.  
  2830. function Side()
  2831. attack = true
  2832. movelegs = true
  2833. Speed = 6
  2834. WeapunTrail.Enabled = true
  2835. Weapun.Transparency = 0
  2836. for i = 0, 1.4, 0.1 do
  2837. swait()
  2838. WeapunWeld.C0 = clerp(WeapunWeld.C0, CF(1, 0, -1.7) * angles(Rad(-90), Rad(180), Rad(90)), 0.1)
  2839. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0 + 0.05 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(77)), 0.1)
  2840. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-15 - 7 * Cos(sine / 20)), Rad(0), Rad(-77)), 0.1)
  2841. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(-7), Rad(-20), Rad(0)) * angles(Rad(0), Rad(0), Rad(9)), 0.2)
  2842. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(2), Rad(9), Rad(0)) * angles(Rad(0), Rad(0), Rad(-3)), 0.2)
  2843. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), -0.5) * angles(Rad(65), Rad(5), Rad(-20)), 0.1)
  2844. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(-20 + 7 * Cos(sine / 26)), Rad(23), Rad(-16 - 9 * Sin(sine / 20))), 0.1)
  2845. end
  2846. Cso("158037267", Weapun, 4.8, Mrandom(8,13)/12)
  2847. local NoConstant = false
  2848. local Hitter = Weapun.HitBox.Touched:connect(function(hit)
  2849. local HUMA = hit.Parent:FindFirstChildOfClass("Humanoid")
  2850. local TORSO = hit.Parent:FindFirstChild("Torso")
  2851. if HUMA ~= nil then
  2852. if NoConstant == false then
  2853. NoConstant = true
  2854. Damage(hit, hit, 12, 18, 0, "Normal", root, 0.1, nil, nil)
  2855. Cso("935843979", TORSO, 6.8, Mrandom(8,13)/12)
  2856. end
  2857. end
  2858. end)
  2859. for i = 0, 1.6, 0.1 do
  2860. swait()
  2861. WeapunWeld.C0 = clerp(WeapunWeld.C0, CF(1, 0, -1.7) * angles(Rad(-90), Rad(180), Rad(90)), 0.1)
  2862. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0 + 0.05 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-87)), 0.3)
  2863. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(2 - 7 * Cos(sine / 20)), Rad(10), Rad(87)), 0.3)
  2864. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(-7), Rad(-20), Rad(0)) * angles(Rad(0), Rad(0), Rad(9)), 0.2)
  2865. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.05 * Cos(sine / 20), 0) * angles(Rad(2), Rad(9), Rad(0)) * angles(Rad(0), Rad(0), Rad(-3)), 0.2)
  2866. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), -0.2) * angles(Rad(65), Rad(5), Rad(60)), 0.3)
  2867. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(-20 + 7 * Cos(sine / 26)), Rad(23), Rad(-16 - 9 * Sin(sine / 20))), 0.1)
  2868. end
  2869. Hitter:Disconnect()
  2870. WeapunTrail.Enabled = false
  2871. Weapun.Transparency = 1
  2872. WeapunWeld.C0 = CF(1, 0, -1.3) * angles(Rad(0), Rad(180), Rad(90))
  2873. attack = false
  2874. movelegs = false
  2875. Speed = 16
  2876. end
  2877. -------------------------------------------------------
  2878. --End Attacks N Stuff--
  2879. -------------------------------------------------------
  2880.  
  2881. -------------------------------------------------------
  2882. --Start KeyBinds--
  2883. -------------------------------------------------------
  2884. local Combo = 1
  2885. mouse.Button1Down:connect(function(key)
  2886. if attack == false then
  2887. if Combo == 1 then
  2888. Slash()
  2889. Combo = 2
  2890. elseif Combo == 2 then
  2891. Side()
  2892. Combo = 1
  2893. end
  2894. end
  2895. end)
  2896.  
  2897. mouse.KeyDown:connect(function(key)
  2898. if attack == false then
  2899. if key == "m" then
  2900. local musiclist = {2743807248,2769681478,2744206083,3114733100,3287259630,2874747644,2874751167,2743784498,3117533716,2769678264,2743829704}
  2901. if MUSIC then
  2902. if CurrentS >= #musiclist then
  2903. CurrentS = 0
  2904. end
  2905. CurrentS = CurrentS + 1
  2906. SONG = musiclist[CurrentS]
  2907. MUSIC:Destroy()
  2908. end
  2909. elseif key == "n" and Paused == false then
  2910. Paused = true
  2911. MUSIC:Pause()
  2912. elseif key == "n" and Paused == true then
  2913. Paused = false
  2914. MUSIC:Resume()
  2915. elseif key == "t" then
  2916. Dangbelikethat()
  2917. elseif key == "y" then
  2918. Sipper()
  2919. elseif key == "z" then
  2920. Click()
  2921. elseif key == "x" then
  2922. Death()
  2923. end
  2924. end
  2925. end)
  2926. -------------------------------------------------------
  2927. --Start KeyBinds--
  2928. -------------------------------------------------------
  2929.  
  2930.  
  2931.  
  2932.  
  2933. -------------------------------------------------------
  2934. --Start Animations--
  2935. -------------------------------------------------------
  2936. local forWFB = 0
  2937. local forWRL = 0
  2938. while true do
  2939. swait()
  2940. sine = sine + change
  2941. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  2942. local velderp = root.Velocity.y
  2943. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  2944. neartouch = game:service("Workspace"):FindPartOnRay(Ray.new(root.Position, (CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0))).lookVector.unit * 6), char)
  2945. if equipped == true or equipped == false then
  2946. if not root:FindFirstChild('MUSIC') and Paused ~= true then
  2947. MUSIC = Instance.new('Sound',root)
  2948. MUSIC.SoundId = 'rbxassetid://'.. SONG
  2949. MUSIC.Name = 'MUSIC'
  2950. MUSIC.Volume = 4
  2951. MUSIC.EmitterSize = 10
  2952. MUSIC.Pitch = 1
  2953. MUSIC.Looped = true
  2954. MUSIC:Play()
  2955. end
  2956. local Walking = (math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1)
  2957. local State = (hum.PlatformStand and 'Paralyzed' or hum.Sit and 'Sit' or not hitfloor and root.Velocity.y < -1 and "Fall" or not hitfloor and root.Velocity.y > 1 and "Jump" or hitfloor and Walking and "Walk" or hitfloor and "Idle")
  2958. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  2959. local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
  2960. if(not char:FindFirstChildOfClass'Shirt')then
  2961. NewInstance("Shirt",char,{ShirtTemplate='rbxassetid://131666081'})
  2962. else
  2963. char:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://131666081'
  2964. end
  2965. if(not char:FindFirstChildOfClass'Pants')then
  2966. NewInstance("Pants",char,{PantsTemplate='rbxassetid://131667111'})
  2967. else
  2968. char:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://131667111'
  2969. end
  2970. if (State == 'Jump') then
  2971. if attack == false then
  2972. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(10 + 3 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  2973. neck.C0 = clerp(neck.C0, necko * CF(0, 0, ((1) - 1)) * angles(Rad(-50 + 6 * Sin(sine / 20)), Rad(0), Rad(0 + 9 * Cos(sine / 38))), 0.1)
  2974. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.8 - 0.1 * Cos(sine / 20) - Rad(0) , -0.3) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(-20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  2975. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.5 - 0.1 * Cos(sine / 20) + Rad(0) , -0.7) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  2976. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(170 + 10 * Cos(sine / 20)), Rad(10), Rad(10 + 6 * Sin(sine / 20))), 0.2)
  2977. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(170 + 10 * Cos(sine / 20)), Rad(-10), Rad(-10 - 6 * Sin(sine / 20))), 0.2)
  2978. end
  2979. elseif (State == 'Fall') then
  2980. if neartouch ~= nil and attack == false then
  2981. attack = true
  2982. Land(root.Velocity.y)
  2983. end
  2984. if attack == false then
  2985. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  2986. neck.C0 = clerp(neck.C0, necko * CF(0, 0, ((1) - 1)) * angles(Rad(20 + 6 * Sin(sine / 20)), Rad(0), Rad(0 + 9 * Cos(sine / 38))), 0.1)
  2987. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.1 * Cos(sine / 20) - Rad(0) , 0) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(-20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(5)), 0.1)
  2988. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 - 0.1 * Cos(sine / 20) + Rad(0) , 0) * angles(Rad(-27 + 3 * Cos(sine / 20)), Rad(20 + 1 * Cos(sine / 20)), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-5)), 0.1)
  2989. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(100 + 10 * Cos(sine / 20)), Rad(10), Rad(45 + 6 * Sin(sine / 20))), 0.1)
  2990. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 20), 0) * angles(Rad(100 + 10 * Cos(sine / 20)), Rad(-10), Rad(-45 - 6 * Sin(sine / 20))), 0.1)
  2991. end
  2992. elseif (State == 'Idle') then
  2993. --local hell = GetClientProperty(MUSIC,'PlaybackLoudness')/15
  2994. change = 0.5 --+ hell/35
  2995. if attack == false then
  2996. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.06 + 0.08 * Cos(sine / 8)) * angles(Rad(0), Rad(0), Rad(0)), 0.05)
  2997. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(0 - 6 * Cos(sine / 8)), Rad(0 - 10 * Sin(sine / 12)), Rad(-0 + 5 * Cos(sine / 16))), 0.05)
  2998. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(0), Rad(10 + 5 * Cos(sine / 8))), 0.05)
  2999. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * Cos(sine / 8), -0.0) * angles(Rad(0 + 8.5 * Sin(sine / 16)), Rad(-7), Rad(-10 - 5 * Cos(sine / 8))), 0.05)
  3000. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(-6), Rad(0)) * angles(Rad(0), Rad(0), Rad(2)), 0.05)
  3001. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -1 - 0.08 * Cos(sine / 8), 0.0) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-2)), 0.05)
  3002. end
  3003. elseif (State == 'Walk') then
  3004. change = 0.9
  3005. if attack == false then
  3006. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 0 - 0.25 * Cos(sine / (WALKSPEEDVALUE / 2))) * angles(Rad(6 + 3 * Sin(sine / (WALKSPEEDVALUE / 2))) -Rad(TiltVelocity.z) * 1, Rad(0) -Rad(TiltVelocity.x) * 0.4, Rad(0 - 4.75 * Cos(sine / WALKSPEEDVALUE )) + root.RotVelocity.Y / 75), 0.1)
  3007. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 0 + ((1) - 1)) * angles(Rad(-5 + 5 * Sin(sine / (WALKSPEEDVALUE / 2))), Rad(0), Rad(0) -Rad(TiltVelocity.x) * 3), 0.1)
  3008. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 + 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-5 - 15 * Cos(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
  3009. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 + 0.35 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 - 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-5 + 15 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 + 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
  3010. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE), 0 - 0.2 * Cos(sine / WALKSPEEDVALUE)) * angles(Rad(50 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 * -math.rad(TiltVelocity.z) * 10, Rad(10 * Cos(sine / WALKSPEEDVALUE)), Rad(5 - 7 * Sin(sine / (WALKSPEEDVALUE / 2))) - root.RotVelocity.Y / 75), 0.1)
  3011. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / WALKSPEEDVALUE), 0 + 0.2 * Cos(sine / WALKSPEEDVALUE)) * angles(Rad(-50 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / 75 * -math.rad(TiltVelocity.z) * 10, Rad(10 * Cos(sine / WALKSPEEDVALUE)), Rad(-5 + 7 * Sin(sine / (WALKSPEEDVALUE / 2))) + root.RotVelocity.Y / -75), 0.1)
  3012. elseif attack == true and movelegs == true then
  3013. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.5 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 + 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-15 - 10 * Cos(sine / WALKSPEEDVALUE)) - root.RotVelocity.Y / 75 + -Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*-math.rad(TiltVelocity.x)*5.5)), 0.3)
  3014. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 + 0.5 * Cos(sine / WALKSPEEDVALUE) / 2, -0.2 - 0.6 * Cos(sine / WALKSPEEDVALUE) / 2) * angles(Rad(-15 + 10 * Cos(sine / WALKSPEEDVALUE)) + root.RotVelocity.Y / -75 + Sin(sine / WALKSPEEDVALUE) / 2.5 * -Rad(TiltVelocity.z) * 10, Rad(0 - 5 * Cos(sine / WALKSPEEDVALUE)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / WALKSPEEDVALUE)), Rad(0), Rad(0 - 25 * math.sin(sine / WALKSPEEDVALUE)*math.rad(TiltVelocity.x)*5.5)), 0.3)
  3015. end
  3016. elseif(State == 'Sit') then
  3017. if attack == false then
  3018. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-15), Rad(0), Rad(0)), 0.1)
  3019. neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1) - 1)) * angles(Rad(25 - 5 * Cos(sine / 20)), Rad(0), Rad(0)), 0.1)
  3020. rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5, -0.9 - 0.1 * Cos(sine / 20) - Rad(0) , -0.3) * angles(Rad(65), Rad(-5), Rad(0)) * angles(Rad(0 + 1 * Cos(sine / 20)), Rad(0), Rad(8)), 0.1)
  3021. ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5, -0.9 - 0.1 * Cos(sine / 20) + Rad(0) , 0) * angles(Rad(65), Rad(5), Rad(0)) * angles(Rad(0 - 1 * Cos(sine / 20)), Rad(0), Rad(-8)), 0.1)
  3022. RW.C0 = clerp(RW.C0, CF(1.5, 0.4 - 0.1 * Cos(sine / 20), -0.2) * angles(Rad(20), Rad(-15), Rad(10)), 0.1)
  3023. LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 - 0.1 * Cos(sine / 20), -0.2) * angles(Rad(20), Rad(15), Rad(-10)), 0.1)
  3024. end
  3025. end
  3026. end
  3027. for _, c in pairs(char:GetChildren()) do
  3028. if c.ClassName == "Part" and c.Name ~= "Detail" and c.Name ~= "Adds" then
  3029. if c == hed then
  3030. c.Transparency = 1
  3031. if c:FindFirstChild("face") then
  3032. c.face:Remove()
  3033. end
  3034. end
  3035. elseif c.ClassName == "Accessory" or c.Name == "Body Colors" then
  3036. c:remove()
  3037. end
  3038. end
  3039. hum.WalkSpeed = Speed
  3040. hum.JumpPower = Jump
  3041. if 0 < #Effects then
  3042. for e = 1, #Effects do
  3043. if Effects[e] ~= nil then
  3044. local Thing = Effects[e]
  3045. if Thing ~= nil then
  3046. local Part = Thing[1]
  3047. local Mode = Thing[2]
  3048. local Delay = Thing[3]
  3049. local IncX = Thing[4]
  3050. local IncY = Thing[5]
  3051. local IncZ = Thing[6]
  3052. if 1 >= Thing[1].Transparency then
  3053. if Thing[2] == "Block1" then
  3054. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3055. local Mesh = Thing[1].Mesh
  3056. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3057. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3058. elseif Thing[2] == "Block2" then
  3059. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  3060. local Mesh = Thing[7]
  3061. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3062. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3063. elseif Thing[2] == "Block3" then
  3064. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  3065. local Mesh = Thing[7]
  3066. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3067. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3068. elseif Thing[2] == "Cylinder" then
  3069. local Mesh = Thing[1].Mesh
  3070. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3071. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3072. elseif Thing[2] == "Blood" then
  3073. local Mesh = Thing[7]
  3074. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  3075. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3076. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3077. elseif Thing[2] == "Elec" then
  3078. local Mesh = Thing[1].Mesh
  3079. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  3080. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3081. elseif Thing[2] == "Disappear" then
  3082. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3083. elseif Thing[2] == "Shatter" then
  3084. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3085. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  3086. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3087. Thing[6] = Thing[6] + Thing[5]
  3088. end
  3089. else
  3090. Part.Parent = nil
  3091. table.remove(Effects, e)
  3092. end
  3093. end
  3094. end
  3095. end
  3096. end
  3097. end
  3098. -------------------------------------------------------
  3099. --End Animations And Script--
  3100. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement