Advertisement
bmrx13

steamed hams edit

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