Advertisement
StarzoZero

STEAMED HAMS! ROBLOX

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