Advertisement
Void_scripter0

S T E A M E D H A M S

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