wamandnj

Untitled

Nov 22nd, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");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("running the script noob")
  141.  
  142. -----------------------
  143. --[[ Name : Steamed Hams ]]--
  144. -------------------------------------------------------
  145. --A script By makhail07
  146.  
  147. --Discord Creterisk#2958
  148. -------------------------------------------------------
  149.  
  150. local FavIDs = {
  151. 340106355, --Nefl Crystals
  152. 927529620, --Dimension
  153. 876981900, --Fantasy
  154. 398987889, --Ordinary Days
  155. 1117396305, --Oh wait, it's you.
  156. 885996042, --Action Winter Journey
  157. 919231299, --Sprawling Idiot Effigy
  158. 743466274, --Good Day Sunshine
  159. 727411183, --Knife Fight
  160. 1402748531, --The Earth Is Counting On You!
  161. 595230126 --Robot Language
  162. }
  163.  
  164.  
  165.  
  166. --The reality of my life isn't real but a Universe -makhail07
  167. warn'Steamed Hams.'
  168. wait()
  169. local plr = game:service'Players'.LocalPlayer
  170. print('Local User is '..plr.Name)
  171. local char = plr.Character
  172. local hum = char.Humanoid
  173. local ra = char["Right Arm"]
  174. local la= char["Left Arm"]
  175. local rl= char["Right Leg"]
  176. local ll = char["Left Leg"]
  177. local hed = char.Head
  178. local root = char.HumanoidRootPart
  179. local rootj = root.RootJoint
  180. local tors = char.Torso
  181. local mouse = plr:GetMouse()
  182. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  183. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  184. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  185. local maincolor = BrickColor.new("Pastel yellow")
  186.  
  187. -------------------------------------------------------
  188. --Start Good Stuff--
  189. -------------------------------------------------------
  190. CF = CFrame.new
  191. angles = CFrame.Angles
  192. attack = false
  193. Euler = CFrame.fromEulerAnglesXYZ
  194. Rad = math.rad
  195. IT = Instance.new
  196. BrickC = BrickColor.new
  197. Cos = math.cos
  198. Acos = math.acos
  199. Sin = math.sin
  200. Asin = math.asin
  201. Abs = math.abs
  202. Mrandom = math.random
  203. Floor = math.floor
  204. -------------------------------------------------------
  205. --End Good Stuff--
  206. -------------------------------------------------------
  207. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  208. RSH, LSH = nil, nil
  209. RW = Instance.new("Weld")
  210. LW = Instance.new("Weld")
  211. RH = tors["Right Hip"]
  212. LH = tors["Left Hip"]
  213. RSH = tors["Right Shoulder"]
  214. LSH = tors["Left Shoulder"]
  215. RSH.Parent = nil
  216. LSH.Parent = nil
  217. RW.Name = "RW"
  218. RW.Part0 = tors
  219. RW.C0 = CF(1.5, 0.5, 0)
  220. RW.C1 = CF(0, 0.5, 0)
  221. RW.Part1 = ra
  222. RW.Parent = tors
  223. LW.Name = "LW"
  224. LW.Part0 = tors
  225. LW.C0 = CF(-1.5, 0.5, 0)
  226. LW.C1 = CF(0, 0.5, 0)
  227. LW.Part1 = la
  228. LW.Parent = tors
  229. Effects = {}
  230.  
  231. -------------------------------------------------------
  232. --Start HeartBeat--
  233. -------------------------------------------------------
  234. ArtificialHB = Instance.new("BindableEvent", script)
  235. ArtificialHB.Name = "Heartbeat"
  236. script:WaitForChild("Heartbeat")
  237.  
  238. frame = 1 / 60
  239. tf = 0
  240. allowframeloss = false
  241. tossremainder = false
  242.  
  243.  
  244. lastframe = tick()
  245. script.Heartbeat:Fire()
  246.  
  247.  
  248. game:GetService("RunService").Heartbeat:connect(function(s, p)
  249. tf = tf + s
  250. if tf >= frame then
  251. if allowframeloss then
  252. script.Heartbeat:Fire()
  253. lastframe = tick()
  254. else
  255. for i = 1, math.floor(tf / frame) do
  256. script.Heartbeat:Fire()
  257. end
  258. lastframe = tick()
  259. end
  260. if tossremainder then
  261. tf = 0
  262. else
  263. tf = tf - frame * math.floor(tf / frame)
  264. end
  265. end
  266. end)
  267. -------------------------------------------------------
  268. --End HeartBeat--
  269. -------------------------------------------------------
  270.  
  271. -------------------------------------------------------
  272. --Start Important Functions--
  273. -------------------------------------------------------
  274. function swait(num)
  275. if num == 0 or num == nil then
  276. game:service("RunService").Stepped:wait(0)
  277. else
  278. for i = 0, num do
  279. game:service("RunService").Stepped:wait(0)
  280. end
  281. end
  282. end
  283. function thread(f)
  284. coroutine.resume(coroutine.create(f))
  285. end
  286. function clerp(a, b, t)
  287. local qa = {
  288. QuaternionFromCFrame(a)
  289. }
  290. local qb = {
  291. QuaternionFromCFrame(b)
  292. }
  293. local ax, ay, az = a.x, a.y, a.z
  294. local bx, by, bz = b.x, b.y, b.z
  295. local _t = 1 - t
  296. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  297. end
  298. function QuaternionFromCFrame(cf)
  299. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  300. local trace = m00 + m11 + m22
  301. if trace > 0 then
  302. local s = math.sqrt(1 + trace)
  303. local recip = 0.5 / s
  304. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  305. else
  306. local i = 0
  307. if m00 < m11 then
  308. i = 1
  309. end
  310. if m22 > (i == 0 and m00 or m11) then
  311. i = 2
  312. end
  313. if i == 0 then
  314. local s = math.sqrt(m00 - m11 - m22 + 1)
  315. local recip = 0.5 / s
  316. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  317. elseif i == 1 then
  318. local s = math.sqrt(m11 - m22 - m00 + 1)
  319. local recip = 0.5 / s
  320. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  321. elseif i == 2 then
  322. local s = math.sqrt(m22 - m00 - m11 + 1)
  323. local recip = 0.5 / s
  324. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  325. end
  326. end
  327. end
  328. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  329. local xs, ys, zs = x + x, y + y, z + z
  330. local wx, wy, wz = w * xs, w * ys, w * zs
  331. local xx = x * xs
  332. local xy = x * ys
  333. local xz = x * zs
  334. local yy = y * ys
  335. local yz = y * zs
  336. local zz = z * zs
  337. 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))
  338. end
  339. function QuaternionSlerp(a, b, t)
  340. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  341. local startInterp, finishInterp
  342. if cosTheta >= 1.0E-4 then
  343. if 1 - cosTheta > 1.0E-4 then
  344. local theta = math.acos(cosTheta)
  345. local invSinTheta = 1 / Sin(theta)
  346. startInterp = Sin((1 - t) * theta) * invSinTheta
  347. finishInterp = Sin(t * theta) * invSinTheta
  348. else
  349. startInterp = 1 - t
  350. finishInterp = t
  351. end
  352. elseif 1 + cosTheta > 1.0E-4 then
  353. local theta = math.acos(-cosTheta)
  354. local invSinTheta = 1 / Sin(theta)
  355. startInterp = Sin((t - 1) * theta) * invSinTheta
  356. finishInterp = Sin(t * theta) * invSinTheta
  357. else
  358. startInterp = t - 1
  359. finishInterp = t
  360. end
  361. 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
  362. end
  363. function rayCast(Position, Direction, Range, Ignore)
  364. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  365. end
  366. local RbxUtility = LoadLibrary("RbxUtility")
  367. local Create = RbxUtility.Create
  368.  
  369. -------------------------------------------------------
  370. --Start Damage Function--
  371. -------------------------------------------------------
  372. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  373. if hit.Parent == nil then
  374. return
  375. end
  376. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  377. for _, v in pairs(hit.Parent:children()) do
  378. if v:IsA("Humanoid") then
  379. h = v
  380. end
  381. end
  382. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  383.  
  384. hit.Parent:FindFirstChild("Head"):BreakJoints()
  385. end
  386.  
  387. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  388. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  389. if hit.Parent.DebounceHit.Value == true then
  390. return
  391. end
  392. end
  393. if insta == true then
  394. hit.Parent:FindFirstChild("Head"):BreakJoints()
  395. end
  396. local c = Create("ObjectValue"){
  397. Name = "creator",
  398. Value = game:service("Players").LocalPlayer,
  399. Parent = h,
  400. }
  401. game:GetService("Debris"):AddItem(c, .5)
  402. if HitSound ~= nil and HitPitch ~= nil then
  403. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  404. end
  405. local Damage = math.random(minim, maxim)
  406. local blocked = false
  407. local block = hit.Parent:findFirstChild("Block")
  408. if block ~= nil then
  409. if block.className == "IntValue" then
  410. if block.Value > 0 then
  411. blocked = true
  412. block.Value = block.Value - 1
  413. print(block.Value)
  414. end
  415. end
  416. end
  417. if blocked == false then
  418. h.Health = h.Health - Damage
  419. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  420. else
  421. h.Health = h.Health - (Damage / 2)
  422. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  423. end
  424. if Type == "Knockdown" then
  425. local hum = hit.Parent.Humanoid
  426. hum.PlatformStand = true
  427. coroutine.resume(coroutine.create(function(HHumanoid)
  428. swait(1)
  429. HHumanoid.PlatformStand = false
  430. end), hum)
  431. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  432. local bodvol = Create("BodyVelocity"){
  433. velocity = angle * knockback,
  434. P = 5000,
  435. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  436. Parent = hit,
  437. }
  438. local rl = Create("BodyAngularVelocity"){
  439. P = 3000,
  440. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  441. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  442. Parent = hit,
  443. }
  444. game:GetService("Debris"):AddItem(bodvol, .5)
  445. game:GetService("Debris"):AddItem(rl, .5)
  446. elseif Type == "Normal" then
  447. local vp = Create("BodyVelocity"){
  448. P = 500,
  449. maxForce = Vector3.new(math.huge, 0, math.huge),
  450. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  451. }
  452. if knockback > 0 then
  453. vp.Parent = hit.Parent.Torso
  454. end
  455. game:GetService("Debris"):AddItem(vp, .5)
  456. elseif Type == "Up" then
  457. local bodyVelocity = Create("BodyVelocity"){
  458. velocity = Vector3.new(0, 20, 0),
  459. P = 5000,
  460. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  461. Parent = hit,
  462. }
  463. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  464. elseif Type == "DarkUp" then
  465. coroutine.resume(coroutine.create(function()
  466. for i = 0, 1, 0.1 do
  467. swait()
  468. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  469. end
  470. end))
  471. local bodyVelocity = Create("BodyVelocity"){
  472. velocity = Vector3.new(0, 20, 0),
  473. P = 5000,
  474. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  475. Parent = hit,
  476. }
  477. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  478. elseif Type == "Snare" then
  479. local bp = Create("BodyPosition"){
  480. P = 2000,
  481. D = 100,
  482. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  483. position = hit.Parent.Torso.Position,
  484. Parent = hit.Parent.Torso,
  485. }
  486. game:GetService("Debris"):AddItem(bp, 1)
  487. elseif Type == "Freeze" then
  488. local BodPos = Create("BodyPosition"){
  489. P = 50000,
  490. D = 1000,
  491. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  492. position = hit.Parent.Torso.Position,
  493. Parent = hit.Parent.Torso,
  494. }
  495. local BodGy = Create("BodyGyro") {
  496. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  497. P = 20e+003,
  498. Parent = hit.Parent.Torso,
  499. cframe = hit.Parent.Torso.CFrame,
  500. }
  501. hit.Parent.Torso.Anchored = true
  502. coroutine.resume(coroutine.create(function(Part)
  503. swait(1.5)
  504. Part.Anchored = false
  505. end), hit.Parent.Torso)
  506. game:GetService("Debris"):AddItem(BodPos, 3)
  507. game:GetService("Debris"):AddItem(BodGy, 3)
  508. end
  509. local debounce = Create("BoolValue"){
  510. Name = "DebounceHit",
  511. Parent = hit.Parent,
  512. Value = true,
  513. }
  514. game:GetService("Debris"):AddItem(debounce, Delay)
  515. c = Create("ObjectValue"){
  516. Name = "creator",
  517. Value = Player,
  518. Parent = h,
  519. }
  520. game:GetService("Debris"):AddItem(c, .5)
  521. end
  522. end
  523. -------------------------------------------------------
  524. --End Damage Function--
  525. -------------------------------------------------------
  526.  
  527. -------------------------------------------------------
  528. --Start Damage Function Customization--
  529. -------------------------------------------------------
  530. function ShowDamage(Pos, Text, Time, Color)
  531. local Rate = (1 / 30)
  532. local Pos = (Pos or Vector3.new(0, 0, 0))
  533. local Text = (Text or "")
  534. local Time = (Time or 2)
  535. local Color = (Color or Color3.new(1, 0, 1))
  536. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  537. EffectPart.Anchored = true
  538. local BillboardGui = Create("BillboardGui"){
  539. Size = UDim2.new(3, 0, 3, 0),
  540. Adornee = EffectPart,
  541. Parent = EffectPart,
  542. }
  543. local TextLabel = Create("TextLabel"){
  544. BackgroundTransparency = 1,
  545. Size = UDim2.new(1, 0, 1, 0),
  546. Text = Text,
  547. Font = "Bodoni",
  548. TextColor3 = Color,
  549. TextScaled = true,
  550. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  551. Parent = BillboardGui,
  552. }
  553. game.Debris:AddItem(EffectPart, (Time))
  554. EffectPart.Parent = game:GetService("Workspace")
  555. delay(0, function()
  556. local Frames = (Time / Rate)
  557. for Frame = 1, Frames do
  558. wait(Rate)
  559. local Percent = (Frame / Frames)
  560. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  561. TextLabel.TextTransparency = Percent
  562. end
  563. if EffectPart and EffectPart.Parent then
  564. EffectPart:Destroy()
  565. end
  566. end)
  567. end
  568. -------------------------------------------------------
  569. --End Damage Function Customization--
  570. -------------------------------------------------------
  571.  
  572. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  573. for _, c in pairs(workspace:children()) do
  574. local hum = c:findFirstChild("Humanoid")
  575. if hum ~= nil then
  576. local head = c:findFirstChild("Head")
  577. if head ~= nil then
  578. local targ = head.Position - Part.Position
  579. local mag = targ.magnitude
  580. if magni >= mag and c.Name ~= plr.Name then
  581. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  582. end
  583. end
  584. end
  585. end
  586. end
  587.  
  588.  
  589. CFuncs = {
  590. Part = {
  591. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  592. local Part = Create("Part")({
  593. Parent = Parent,
  594. Reflectance = Reflectance,
  595. Transparency = Transparency,
  596. CanCollide = false,
  597. Locked = true,
  598. BrickColor = BrickColor.new(tostring(BColor)),
  599. Name = Name,
  600. Size = Size,
  601. Material = Material
  602. })
  603. RemoveOutlines(Part)
  604. return Part
  605. end
  606. },
  607. Mesh = {
  608. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  609. local Msh = Create(Mesh)({
  610. Parent = Part,
  611. Offset = OffSet,
  612. Scale = Scale
  613. })
  614. if Mesh == "SpecialMesh" then
  615. Msh.MeshType = MeshType
  616. Msh.MeshId = MeshId
  617. end
  618. return Msh
  619. end
  620. },
  621. Mesh = {
  622. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  623. local Msh = Create(Mesh)({
  624. Parent = Part,
  625. Offset = OffSet,
  626. Scale = Scale
  627. })
  628. if Mesh == "SpecialMesh" then
  629. Msh.MeshType = MeshType
  630. Msh.MeshId = MeshId
  631. end
  632. return Msh
  633. end
  634. },
  635. Weld = {
  636. Create = function(Parent, Part0, Part1, C0, C1)
  637. local Weld = Create("Weld")({
  638. Parent = Parent,
  639. Part0 = Part0,
  640. Part1 = Part1,
  641. C0 = C0,
  642. C1 = C1
  643. })
  644. return Weld
  645. end
  646. },
  647. Sound = {
  648. Create = function(id, par, vol, pit)
  649. coroutine.resume(coroutine.create(function()
  650. local S = Create("Sound")({
  651. Volume = vol,
  652. Pitch = pit or 1,
  653. SoundId = id,
  654. Parent = par or workspace
  655. })
  656. wait()
  657. S:play()
  658. game:GetService("Debris"):AddItem(S, 6)
  659. end))
  660. end
  661. },
  662. ParticleEmitter = {
  663. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  664. local fp = Create("ParticleEmitter")({
  665. Parent = Parent,
  666. Color = ColorSequence.new(Color1, Color2),
  667. LightEmission = LightEmission,
  668. Size = Size,
  669. Texture = Texture,
  670. Transparency = Transparency,
  671. ZOffset = ZOffset,
  672. Acceleration = Accel,
  673. Drag = Drag,
  674. LockedToPart = LockedToPart,
  675. VelocityInheritance = VelocityInheritance,
  676. EmissionDirection = EmissionDirection,
  677. Enabled = Enabled,
  678. Lifetime = LifeTime,
  679. Rate = Rate,
  680. Rotation = Rotation,
  681. RotSpeed = RotSpeed,
  682. Speed = Speed,
  683. VelocitySpread = VelocitySpread
  684. })
  685. return fp
  686. end
  687. }
  688. }
  689. function RemoveOutlines(part)
  690. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  691. end
  692. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  693. local Part = Create("Part")({
  694. formFactor = FormFactor,
  695. Parent = Parent,
  696. Reflectance = Reflectance,
  697. Transparency = Transparency,
  698. CanCollide = false,
  699. Locked = true,
  700. BrickColor = BrickColor.new(tostring(BColor)),
  701. Name = Name,
  702. Size = Size,
  703. Material = Material
  704. })
  705. RemoveOutlines(Part)
  706. return Part
  707. end
  708. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  709. local Msh = Create(Mesh)({
  710. Parent = Part,
  711. Offset = OffSet,
  712. Scale = Scale
  713. })
  714. if Mesh == "SpecialMesh" then
  715. Msh.MeshType = MeshType
  716. Msh.MeshId = MeshId
  717. end
  718. return Msh
  719. end
  720. function CreateWeld(Parent, Part0, Part1, C0, C1)
  721. local Weld = Create("Weld")({
  722. Parent = Parent,
  723. Part0 = Part0,
  724. Part1 = Part1,
  725. C0 = C0,
  726. C1 = C1
  727. })
  728. return Weld
  729. end
  730.  
  731.  
  732. -------------------------------------------------------
  733. --Start Effect Function--
  734. -------------------------------------------------------
  735. EffectModel = Instance.new("Model", char)
  736. Effects = {
  737. Block = {
  738. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  739. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  740. prt.Anchored = true
  741. prt.CFrame = cframe
  742. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  743. game:GetService("Debris"):AddItem(prt, 10)
  744. if Type == 1 or Type == nil then
  745. table.insert(Effects, {
  746. prt,
  747. "Block1",
  748. delay,
  749. x3,
  750. y3,
  751. z3,
  752. msh
  753. })
  754. elseif Type == 2 then
  755. table.insert(Effects, {
  756. prt,
  757. "Block2",
  758. delay,
  759. x3,
  760. y3,
  761. z3,
  762. msh
  763. })
  764. else
  765. table.insert(Effects, {
  766. prt,
  767. "Block3",
  768. delay,
  769. x3,
  770. y3,
  771. z3,
  772. msh
  773. })
  774. end
  775. end
  776. },
  777. Sphere = {
  778. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  779. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  780. prt.Anchored = true
  781. prt.CFrame = cframe
  782. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  783. game:GetService("Debris"):AddItem(prt, 10)
  784. table.insert(Effects, {
  785. prt,
  786. "Cylinder",
  787. delay,
  788. x3,
  789. y3,
  790. z3,
  791. msh
  792. })
  793. end
  794. },
  795. Cylinder = {
  796. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  797. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  798. prt.Anchored = true
  799. prt.CFrame = cframe
  800. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  801. game:GetService("Debris"):AddItem(prt, 10)
  802. table.insert(Effects, {
  803. prt,
  804. "Cylinder",
  805. delay,
  806. x3,
  807. y3,
  808. z3,
  809. msh
  810. })
  811. end
  812. },
  813. Wave = {
  814. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  815. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  816. prt.Anchored = true
  817. prt.CFrame = cframe
  818. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  819. game:GetService("Debris"):AddItem(prt, 10)
  820. table.insert(Effects, {
  821. prt,
  822. "Cylinder",
  823. delay,
  824. x3 / 60,
  825. y3 / 60,
  826. z3 / 60,
  827. msh
  828. })
  829. end
  830. },
  831. Ring = {
  832. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  833. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  834. prt.Anchored = true
  835. prt.CFrame = cframe
  836. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  837. game:GetService("Debris"):AddItem(prt, 10)
  838. table.insert(Effects, {
  839. prt,
  840. "Cylinder",
  841. delay,
  842. x3,
  843. y3,
  844. z3,
  845. msh
  846. })
  847. end
  848. },
  849. Break = {
  850. Create = function(brickcolor, cframe, x1, y1, z1)
  851. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  852. prt.Anchored = true
  853. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  854. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  855. local num = math.random(10, 50) / 1000
  856. game:GetService("Debris"):AddItem(prt, 10)
  857. table.insert(Effects, {
  858. prt,
  859. "Shatter",
  860. num,
  861. prt.CFrame,
  862. math.random() - math.random(),
  863. 0,
  864. math.random(50, 100) / 100
  865. })
  866. end
  867. },
  868. Spiral = {
  869. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  870. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  871. prt.Anchored = true
  872. prt.CFrame = cframe
  873. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  874. game:GetService("Debris"):AddItem(prt, 10)
  875. table.insert(Effects, {
  876. prt,
  877. "Cylinder",
  878. delay,
  879. x3,
  880. y3,
  881. z3,
  882. msh
  883. })
  884. end
  885. },
  886. Push = {
  887. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  888. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  889. prt.Anchored = true
  890. prt.CFrame = cframe
  891. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  892. game:GetService("Debris"):AddItem(prt, 10)
  893. table.insert(Effects, {
  894. prt,
  895. "Cylinder",
  896. delay,
  897. x3,
  898. y3,
  899. z3,
  900. msh
  901. })
  902. end
  903. }
  904. }
  905. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  906. local fp = IT("Part")
  907. fp.formFactor = formfactor
  908. fp.Parent = parent
  909. fp.Reflectance = reflectance
  910. fp.Transparency = transparency
  911. fp.CanCollide = false
  912. fp.Locked = true
  913. fp.BrickColor = brickcolor
  914. fp.Name = name
  915. fp.Size = size
  916. fp.Position = tors.Position
  917. RemoveOutlines(fp)
  918. fp.Material = "SmoothPlastic"
  919. fp:BreakJoints()
  920. return fp
  921. end
  922.  
  923. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  924. local mesh = IT(Mesh)
  925. mesh.Parent = part
  926. if Mesh == "SpecialMesh" then
  927. mesh.MeshType = meshtype
  928. if meshid ~= "nil" then
  929. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  930. end
  931. end
  932. mesh.Offset = offset
  933. mesh.Scale = scale
  934. return mesh
  935. end
  936.  
  937. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  938. local type = type
  939. local rng = Instance.new("Part", char)
  940. rng.Anchored = true
  941. rng.BrickColor = color
  942. rng.CanCollide = false
  943. rng.FormFactor = 3
  944. rng.Name = "Ring"
  945. rng.Material = "Neon"
  946. rng.Size = Vector3.new(1, 1, 1)
  947. rng.Transparency = 0
  948. rng.TopSurface = 0
  949. rng.BottomSurface = 0
  950. rng.CFrame = pos
  951. local rngm = Instance.new("SpecialMesh", rng)
  952. rngm.MeshType = MType
  953. rngm.Scale = scale
  954. local scaler2 = 1
  955. if type == "Add" then
  956. scaler2 = 1 * value
  957. elseif type == "Divide" then
  958. scaler2 = 1 / value
  959. end
  960. coroutine.resume(coroutine.create(function()
  961. for i = 0, 10 / bonuspeed, 0.1 do
  962. swait()
  963. if type == "Add" then
  964. scaler2 = scaler2 - 0.01 * value / bonuspeed
  965. elseif type == "Divide" then
  966. scaler2 = scaler2 - 0.01 / value * bonuspeed
  967. end
  968. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  969. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  970. end
  971. rng:Destroy()
  972. end))
  973. end
  974.  
  975. function Eviscerate(dude)
  976. if dude.Name ~= char then
  977. local bgf = IT("BodyGyro", dude.Head)
  978. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  979. local val = IT("BoolValue", dude)
  980. val.Name = "IsHit"
  981. local ds = coroutine.wrap(function()
  982. dude:WaitForChild("Head"):BreakJoints()
  983. wait(0.5)
  984. target = nil
  985. coroutine.resume(coroutine.create(function()
  986. for i, v in pairs(dude:GetChildren()) do
  987. if v:IsA("Accessory") then
  988. v:Destroy()
  989. end
  990. if v:IsA("Humanoid") then
  991. v:Destroy()
  992. end
  993. if v:IsA("CharacterMesh") then
  994. v:Destroy()
  995. end
  996. if v:IsA("Model") then
  997. v:Destroy()
  998. end
  999. if v:IsA("Part") or v:IsA("MeshPart") then
  1000. for x, o in pairs(v:GetChildren()) do
  1001. if o:IsA("Decal") then
  1002. o:Destroy()
  1003. end
  1004. end
  1005. coroutine.resume(coroutine.create(function()
  1006. v.Material = "Neon"
  1007. v.CanCollide = false
  1008. local PartEmmit1 = IT("ParticleEmitter", v)
  1009. PartEmmit1.LightEmission = 1
  1010. PartEmmit1.Texture = "rbxassetid://284205403"
  1011. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1012. PartEmmit1.Rate = 150
  1013. PartEmmit1.Lifetime = NumberRange.new(1)
  1014. PartEmmit1.Size = NumberSequence.new({
  1015. NumberSequenceKeypoint.new(0, 0.75, 0),
  1016. NumberSequenceKeypoint.new(1, 0, 0)
  1017. })
  1018. PartEmmit1.Transparency = NumberSequence.new({
  1019. NumberSequenceKeypoint.new(0, 0, 0),
  1020. NumberSequenceKeypoint.new(1, 1, 0)
  1021. })
  1022. PartEmmit1.Speed = NumberRange.new(0, 0)
  1023. PartEmmit1.VelocitySpread = 30000
  1024. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1025. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1026. local BodPoss = IT("BodyPosition", v)
  1027. BodPoss.P = 3000
  1028. BodPoss.D = 1000
  1029. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1030. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1031. v.Color = maincolor.Color
  1032. coroutine.resume(coroutine.create(function()
  1033. for i = 0, 49 do
  1034. swait(1)
  1035. v.Transparency = v.Transparency + 0.08
  1036. end
  1037. wait(0.5)
  1038. PartEmmit1.Enabled = false
  1039. wait(3)
  1040. v:Destroy()
  1041. dude:Destroy()
  1042. end))
  1043. end))
  1044. end
  1045. end
  1046. end))
  1047. end)
  1048. ds()
  1049. end
  1050. end
  1051.  
  1052. function FindNearestHead(Position, Distance, SinglePlayer)
  1053. if SinglePlayer then
  1054. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1055. end
  1056. local List = {}
  1057. for i, v in pairs(workspace:GetChildren()) do
  1058. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1059. table.insert(List, v)
  1060. end
  1061. end
  1062. return List
  1063. end
  1064.  
  1065. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1066. local type = type
  1067. local rng = Instance.new("Part", char)
  1068. rng.Anchored = true
  1069. rng.BrickColor = color
  1070. rng.CanCollide = false
  1071. rng.FormFactor = 3
  1072. rng.Name = "Ring"
  1073. rng.Material = "Neon"
  1074. rng.Size = Vector3.new(1, 1, 1)
  1075. rng.Transparency = 0
  1076. rng.TopSurface = 0
  1077. rng.BottomSurface = 0
  1078. rng.CFrame = pos
  1079. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1080. local rngm = Instance.new("SpecialMesh", rng)
  1081. rngm.MeshType = MType
  1082. rngm.Scale = Vector3.new(x1, y1, z1)
  1083. local scaler2 = 1
  1084. local speeder = FastSpeed
  1085. if type == "Add" then
  1086. scaler2 = 1 * value
  1087. elseif type == "Divide" then
  1088. scaler2 = 1 / value
  1089. end
  1090. coroutine.resume(coroutine.create(function()
  1091. for i = 0, 10 / bonuspeed, 0.1 do
  1092. swait()
  1093. if type == "Add" then
  1094. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1095. elseif type == "Divide" then
  1096. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1097. end
  1098. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1099. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1100. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1101. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1102. end
  1103. rng:Destroy()
  1104. end))
  1105. end
  1106.  
  1107.  
  1108. function SoulSteal(dude)
  1109. if dude.Name ~= char then
  1110. local bgf = IT("BodyGyro", dude.Head)
  1111. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1112. local val = IT("BoolValue", dude)
  1113. val.Name = "IsHit"
  1114. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1115. local soulst = coroutine.wrap(function()
  1116. local soul = Instance.new("Part",dude)
  1117. soul.Size = Vector3.new(1,1,1)
  1118. soul.CanCollide = false
  1119. soul.Anchored = false
  1120. soul.Position = torso.Position
  1121. soul.Transparency = 1
  1122. local PartEmmit1 = IT("ParticleEmitter", soul)
  1123. PartEmmit1.LightEmission = 1
  1124. PartEmmit1.Texture = "rbxassetid://569507414"
  1125. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1126. PartEmmit1.Rate = 250
  1127. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1128. PartEmmit1.Size = NumberSequence.new({
  1129. NumberSequenceKeypoint.new(0, 1, 0),
  1130. NumberSequenceKeypoint.new(1, 0, 0)
  1131. })
  1132. PartEmmit1.Transparency = NumberSequence.new({
  1133. NumberSequenceKeypoint.new(0, 0, 0),
  1134. NumberSequenceKeypoint.new(1, 1, 0)
  1135. })
  1136. PartEmmit1.Speed = NumberRange.new(0, 0)
  1137. PartEmmit1.VelocitySpread = 30000
  1138. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1139. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1140. local BodPoss = IT("BodyPosition", soul)
  1141. BodPoss.P = 3000
  1142. BodPoss.D = 1000
  1143. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1144. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1145. wait(1.6)
  1146. soul.Touched:connect(function(hit)
  1147. if hit.Parent == char then
  1148. soul:Destroy()
  1149. end
  1150. end)
  1151. wait(1.2)
  1152. while soul do
  1153. swait()
  1154. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1155. BodPoss.Position = tors.Position
  1156. end
  1157. end)
  1158. soulst()
  1159. end
  1160. end
  1161. function FaceMouse()
  1162. local Cam = workspace.CurrentCamera
  1163. return {
  1164. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1165. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1166. }
  1167. end
  1168. -------------------------------------------------------
  1169. --End Effect Function--
  1170. -------------------------------------------------------
  1171. function Cso(ID, PARENT, VOLUME, PITCH)
  1172. local NSound = nil
  1173. coroutine.resume(coroutine.create(function()
  1174. NSound = IT("Sound", PARENT)
  1175. NSound.Volume = VOLUME
  1176. NSound.Pitch = PITCH
  1177. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1178. swait()
  1179. NSound:play()
  1180. game:GetService("Debris"):AddItem(NSound, 10)
  1181. end))
  1182. return NSound
  1183. end
  1184. -------------------------------------------------------
  1185. --End Important Functions--
  1186. -------------------------------------------------------
  1187.  
  1188. New = function(Object, Parent, Name, Data)
  1189. local Object = Instance.new(Object)
  1190. for Index, Value in pairs(Data or {}) do
  1191. Object[Index] = Value
  1192. end
  1193. Object.Parent = Parent
  1194. Object.Name = Name
  1195. return Object
  1196. end
  1197.  
  1198. Steamed_Hams = New("Model",char,"Steamed_Hams",{})
  1199. Handle = New("Part",Steamed_Hams,"Handle",{BrickColor = BrickColor.new("Institutional white"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 1.42000008, 1.42000008),CFrame = CFrame.new(6.24385071, 1.07595825, -192.477875, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  1200. Plate = New("Part",Steamed_Hams,"Plate",{BrickColor = BrickColor.new("Institutional white"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.0500000007, 2, 2),CFrame = CFrame.new(6.24385071, 1.13595831, -192.477875, -4.37113883e-08, -1, 0, 1, -4.37113883e-08, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
  1201. mot = New("Motor",Plate,"mot",{Part0 = Plate,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),C1 = CFrame.new(0.060000062, 0, 0, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),})
  1202. Burg = New("Part",Steamed_Hams,"Burg",{BrickColor = BrickColor.new("Mid gray"),Reflectance = 5,FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(1, 0.800000012, 1),CFrame = CFrame.new(6.24385071, 1.46095836, -192.45787, -1, 0, -7.54683664e-23, 0, 1, 2.64573537e-17, 7.54683664e-23, 2.64573537e-17, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),})
  1203. Mesh = New("SpecialMesh",Burg,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=16646125",TextureId = "http://www.roblox.com/asset/?id=16432575",MeshType = Enum.MeshType.FileMesh,})
  1204. mot = New("Motor",Burg,"mot",{Part0 = Burg,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, -2.64569136e-17, 7.54683664e-23, -2.64569136e-17, 1, 2.64573537e-17, -7.54683664e-23, 2.64573537e-17, -1),C1 = CFrame.new(0.38500011, 0, 0.0200042725, -4.37113883e-08, 1, 0, -1, -4.37113883e-08, 0, 0, 0, 1),})
  1205.  
  1206. NewInstance = function(instance,parent,properties)
  1207. local inst = Instance.new(instance,parent)
  1208. if(properties)then
  1209. for i,v in next, properties do
  1210. pcall(function() inst[i] = v end)
  1211. end
  1212. end
  1213. return inst;
  1214. end
  1215.  
  1216. local HW = NewInstance('Motor', char, {Part0 = ra, Part1 = Handle, C0 = CF(0,-.7,-.5) * angles(Rad(0),Rad(90),Rad(0))})
  1217.  
  1218. -------------------------------------------------------
  1219. --Start Music Option--
  1220. -------------------------------------------------------
  1221. local Music = Instance.new("Sound",tors)
  1222. Music.Volume = 2.5
  1223. Music.SoundId = "rbxassetid://1494223966"
  1224. Music.Looped = true
  1225. Music.Pitch = 1 --Pitcher
  1226. Music:Play()
  1227. -------------------------------------------------------
  1228. --End Music Option--
  1229. -------------------------------------------------------
  1230.  
  1231.  
  1232. -------------------------------------------------------
  1233. --Start Attacks N Stuff--
  1234. -------------------------------------------------------
  1235. local sine=0
  1236. wait2 = false
  1237. combo = 1
  1238. mouse.Button1Down:connect(function(key)
  1239. if attack == false then
  1240. attack = true
  1241. hum.WalkSpeed = 3.01
  1242. if combo == 1 and wait2 == false then
  1243. wait2 = true
  1244. for i = 0, 1.6, 0.1 do
  1245. swait()
  1246. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, 0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(-65)), 0.3)
  1247. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(65)), 0.1)
  1248. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(Rad(0), Rad(0), Rad(90)), 0.1)
  1249. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0.6) * angles(Rad(-25), Rad(0), Rad(40)), 0.3)
  1250. RH.C0 = clerp(RH.C0, CF(1, -1, -0.2) * RHCF * angles(Rad(-6.5), Rad(0), Rad(-6)), 0.3)
  1251. LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-2.5), Rad(15), Rad(20)), 0.3)
  1252. HW.C0 = clerp(HW.C0, CF(0,-.7,-.5) * angles(Rad(0), Rad(90), Rad(0)), 0.1)
  1253. end
  1254. Cso("138097048", ra, 3, .8)
  1255. local boiser = false
  1256. local hit = Plate.Touched:connect(function(hit)
  1257. if boiser == false then
  1258. boiser = true
  1259. local Steamy = Instance.new("Sound", hit.Parent)
  1260. Steamy.Volume = 10
  1261. Steamy.SoundId = "rbxassetid://1257930279"
  1262. Steamy.Looped = true
  1263. Steamy.Pitch = 1 --Pitcher
  1264. Steamy:Play()
  1265.  
  1266. local naeeym2 = Instance.new("BillboardGui",hit.Parent)
  1267. naeeym2.AlwaysOnTop = true
  1268. naeeym2.Size = UDim2.new(5,35,2,35)
  1269. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1270. naeeym2.Adornee = hit:FindFirstChild'Head'
  1271. naeeym2.Name = "Name"
  1272. local tecks2 = Instance.new("TextLabel",naeeym2)
  1273. tecks2.BackgroundTransparency = 1
  1274. tecks2.TextScaled = true
  1275. tecks2.BorderSizePixel = 0
  1276. tecks2.Text = "Served Steamed Hams."
  1277. tecks2.Font = "Highway"
  1278. tecks2.TextSize = 30
  1279. tecks2.TextStrokeTransparency = 0
  1280. tecks2.TextColor3 = Color3.fromRGB(159, 161, 172)
  1281. tecks2.TextStrokeColor3 = Color3.fromRGB(255, 255, 204)
  1282. tecks2.Size = UDim2.new(1,0,0.5,0)
  1283. tecks2.Parent = naeeym2
  1284. end
  1285. end)
  1286. for i = 0, 1.2, 0.1 do
  1287. swait()
  1288. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, 0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(5), Rad(0), Rad(75)), 0.3)
  1289. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(-75)), 0.1)
  1290. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, -0.8) * angles(Rad(90), Rad(0), Rad(-40)), 0.1)
  1291. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(Rad(-25), Rad(0), Rad(-10)), 0.3)
  1292. RH.C0 = clerp(RH.C0, CF(1, -1, 0) * RHCF * angles(Rad(-2.5), Rad(-25), Rad(17)), 0.3)
  1293. LH.C0 = clerp(LH.C0, CF(-1, -1, 0) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
  1294. HW.C0 = clerp(HW.C0, CF(0,-.7,-.5) * angles(Rad(0), Rad(90), Rad(0)), 0.1)
  1295. end
  1296. hit:Disconnect()
  1297. combo = 1
  1298. end
  1299. hum.WalkSpeed = 16
  1300. wait2 = false
  1301. attack = false
  1302. end
  1303. end)
  1304. -------------------------------------------------------
  1305. --End Attacks N Stuff--
  1306. -------------------------------------------------------
  1307.  
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314. -------------------------------------------------------
  1315. --Start Animations--
  1316. -------------------------------------------------------
  1317. local equipped = false
  1318. local idle = 0
  1319. local change = 1
  1320. local val = 0
  1321. local toim = 0
  1322. local idleanim = 0.4
  1323. hum.Animator.Parent = nil
  1324. while true do
  1325. swait()
  1326. sine = sine + change
  1327. Music.Parent = tors
  1328. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1329. local velderp = root.Velocity.y
  1330. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1331. if equipped == true or equipped == false then
  1332. if attack == false then
  1333. idle = idle + 1
  1334. else
  1335. idle = 0
  1336. end
  1337. if 1 < root.Velocity.y and hitfloor == nil then
  1338. Anim = "Jump"
  1339. if attack == false then
  1340. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1341. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3)
  1342. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3)
  1343. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3)
  1344. LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1345. RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1346. end
  1347. elseif -1 > root.Velocity.y and hitfloor == nil then
  1348. Anim = "Fall"
  1349. if attack == false then
  1350. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1351. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3)
  1352. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(30)),0.3)
  1353. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-30)),0.3)
  1354. LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1355. RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1356. end
  1357. elseif torvel < 1 and hitfloor ~= nil then
  1358. Anim = "Idle"
  1359. change = 1.7
  1360. if attack == false then
  1361. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(20)), 0.15)
  1362. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(-20)), 0.3)
  1363. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1364. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1365. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90), Rad(4.5 * Sin(sine / 30)), Rad(15 + 4.5 * Sin(sine / 30))), 0.1)
  1366. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(4.5 * Sin(sine / 30)), Rad(-5 - 4.5 * Sin(sine / 30))), 0.1)
  1367. end
  1368. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1369. Anim = "Walk"
  1370. change = 1
  1371. if attack == false then
  1372. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.015 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(4 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15)
  1373. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1374. RH.C0 = clerp(RH.C0, CF(1, -0.925 - 0.5 * Cos(sine / 7) / 2, 0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1375. LH.C0 = clerp(LH.C0, CF(-1, -0.925 + 0.5 * Cos(sine / 7) / 2, -0.5 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1376. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(90) , Rad(0), Rad(15 + 4.5 * Sin(sine / 30)) - ra.RotVelocity.Y / 75), 0.1)
  1377. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(-70) * Cos(sine / 7) , Rad(0) , Rad(-5 - 4.5 * Sin(sine / 30)) + la.RotVelocity.Y / 75), 0.1)
  1378. end
  1379. end
  1380. end
  1381. if 0 < #Effects then
  1382. for e = 1, #Effects do
  1383. if Effects[e] ~= nil then
  1384. local Thing = Effects[e]
  1385. if Thing ~= nil then
  1386. local Part = Thing[1]
  1387. local Mode = Thing[2]
  1388. local Delay = Thing[3]
  1389. local IncX = Thing[4]
  1390. local IncY = Thing[5]
  1391. local IncZ = Thing[6]
  1392. if 1 >= Thing[1].Transparency then
  1393. if Thing[2] == "Block1" then
  1394. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1395. local Mesh = Thing[1].Mesh
  1396. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1397. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1398. elseif Thing[2] == "Block2" then
  1399. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1400. local Mesh = Thing[7]
  1401. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1402. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1403. elseif Thing[2] == "Block3" then
  1404. 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)
  1405. local Mesh = Thing[7]
  1406. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1407. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1408. elseif Thing[2] == "Cylinder" then
  1409. local Mesh = Thing[1].Mesh
  1410. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1411. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1412. elseif Thing[2] == "Blood" then
  1413. local Mesh = Thing[7]
  1414. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1415. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1416. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1417. elseif Thing[2] == "Elec" then
  1418. local Mesh = Thing[1].Mesh
  1419. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1420. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1421. elseif Thing[2] == "Disappear" then
  1422. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1423. elseif Thing[2] == "Shatter" then
  1424. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1425. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1426. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1427. Thing[6] = Thing[6] + Thing[5]
  1428. end
  1429. else
  1430. Part.Parent = nil
  1431. table.remove(Effects, e)
  1432. end
  1433. end
  1434. end
  1435. end
  1436. end
  1437. end
  1438. -------------------------------------------------------
  1439. --End Animations And Script--
  1440. -------------------------------------------------------
Add Comment
Please, Sign In to add comment