Advertisement
wormybag9035

steamed hams

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