scriptshocasereditor

Untitled

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