kaualima12

fgjhsfdhjashadha

Sep 8th, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.09 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141. --//====================================================\\--
  142. --|| CREATED BY SHACKLUSTER
  143. --\\====================================================//--
  144.  
  145.  
  146.  
  147. wait(0.2)
  148.  
  149.  
  150.  
  151. Player = owner
  152. PlayerGui = Player.PlayerGui
  153. Cam = workspace.CurrentCamera
  154. Backpack = Player.Backpack
  155. Character = Player.Character
  156. Humanoid = Character.Humanoid
  157. Mouse = Player:GetMouse()
  158. RootPart = Character["HumanoidRootPart"]
  159. Torso = Character["Torso"]
  160. Head = Character["Head"]
  161. RightArm = Character["Right Arm"]
  162. LeftArm = Character["Left Arm"]
  163. RightLeg = Character["Right Leg"]
  164. LeftLeg = Character["Left Leg"]
  165. RootJoint = RootPart["RootJoint"]
  166. Neck = Torso["Neck"]
  167. RightShoulder = Torso["Right Shoulder"]
  168. LeftShoulder = Torso["Left Shoulder"]
  169. RightHip = Torso["Right Hip"]
  170. LeftHip = Torso["Left Hip"]
  171. local sick = Instance.new("Sound",Head)
  172. sick.SoundId = "rbxassetid://397874147"
  173. sick.Looped = true
  174. sick.Pitch = 1
  175. sick.Volume = 1
  176. sick:Play()
  177.  
  178. IT = Instance.new
  179. CF = CFrame.new
  180. VT = Vector3.new
  181. RAD = math.rad
  182. C3 = Color3.new
  183. UD2 = UDim2.new
  184. BRICKC = BrickColor.new
  185. ANGLES = CFrame.Angles
  186. EULER = CFrame.fromEulerAnglesXYZ
  187. COS = math.cos
  188. ACOS = math.acos
  189. SIN = math.sin
  190. ASIN = math.asin
  191. ABS = math.abs
  192. MRANDOM = math.random
  193. FLOOR = math.floor
  194.  
  195. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  196. local NEWMESH = IT(MESH)
  197. if MESH == "SpecialMesh" then
  198. NEWMESH.MeshType = MESHTYPE
  199. if MESHID ~= "nil" and MESHID ~= "" then
  200. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  201. end
  202. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  203. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  204. end
  205. end
  206. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  207. NEWMESH.Scale = SCALE
  208. NEWMESH.Parent = PARENT
  209. return NEWMESH
  210. end
  211.  
  212. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  213. local NEWPART = IT("Part")
  214. NEWPART.formFactor = FORMFACTOR
  215. NEWPART.Reflectance = REFLECTANCE
  216. NEWPART.Transparency = TRANSPARENCY
  217. NEWPART.CanCollide = false
  218. NEWPART.Locked = true
  219. NEWPART.Anchored = true
  220. if ANCHOR == false then
  221. NEWPART.Anchored = false
  222. end
  223. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  224. NEWPART.Name = NAME
  225. NEWPART.Size = SIZE
  226. NEWPART.Position = Torso.Position
  227. NEWPART.Material = MATERIAL
  228. NEWPART:BreakJoints()
  229. NEWPART.Parent = PARENT
  230. return NEWPART
  231. end
  232.  
  233. --//=================================\\
  234. --|| CUSTOMIZATION
  235. --\\=================================//
  236.  
  237. Player_Size = 1 --Size of the player.
  238. Animation_Speed = 3
  239. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  240.  
  241. local Speed = 16
  242. local Effects2 = {}
  243.  
  244. --//=================================\\
  245. --|| END OF CUSTOMIZATION
  246. --\\=================================//
  247.  
  248. local function weldBetween(a, b)
  249. local weldd = Instance.new("ManualWeld")
  250. weldd.Part0 = a
  251. weldd.Part1 = b
  252. weldd.C0 = CFrame.new()
  253. weldd.C1 = b.CFrame:inverse() * a.CFrame
  254. weldd.Parent = a
  255. return weldd
  256. end
  257.  
  258. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  259. local acs = Instance.new("Part")
  260. acs.CanCollide = false
  261. acs.Anchored = false
  262. acs.Size = Vector3.new(0,0,0)
  263. acs.CFrame = attachmentpart.CFrame
  264. acs.Parent = Character
  265. acs.BrickColor = color
  266. local meshs = Instance.new("SpecialMesh")
  267. meshs.MeshId = mesh
  268. meshs.TextureId = texture
  269. meshs.Parent = acs
  270. meshs.Scale = scale
  271. meshs.Offset = offset
  272. weldBetween(attachmentpart,acs)
  273. end
  274.  
  275. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  276. if TYPE == "Gem" then
  277. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  278. acs.Anchored = false
  279. acs.CanCollide = false
  280. acs.CFrame = PART.CFrame
  281. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  282. weldBetween(PART,acs)
  283. elseif TYPE == "Skull" then
  284. local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  285. acs.Anchored = false
  286. acs.CanCollide = false
  287. acs.CFrame = PART.CFrame
  288. local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  289. weldBetween(PART,acs)
  290. elseif TYPE == "Eye" then
  291. local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  292. acs.Anchored = false
  293. acs.CanCollide = false
  294. acs.CFrame = PART.CFrame
  295. local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  296. weldBetween(PART,acs)
  297. end
  298. end
  299.  
  300. --//=================================\\
  301. --|| USEFUL VALUES
  302. --\\=================================//
  303.  
  304. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  305. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  306. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  307. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  308. local CHANGEDEFENSE = 0
  309. local CHANGEDAMAGE = 0
  310. local CHANGEMOVEMENT = 0
  311. local ANIM = "Idle"
  312. local ATTACK = false
  313. local EQUIPPED = false
  314. local HOLD = false
  315. local COMBO = 1
  316. local Rooted = false
  317. local SINE = 0
  318. local KEYHOLD = false
  319. local CHANGE = 2 / Animation_Speed
  320. local WALKINGANIM = false
  321. local WALK = 0
  322. local VALUE1 = false
  323. local VALUE2 = false
  324. local ROBLOXIDLEANIMATION = IT("Animation")
  325. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  326. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  327. --ROBLOXIDLEANIMATION.Parent = Humanoid
  328. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  329. WEAPONGUI.Name = "Weapon GUI"
  330. local Weapon = IT("Model")
  331. Weapon.Name = "Adds"
  332. local Effects = IT("Folder", Weapon)
  333. Effects.Name = "Effects"
  334. local ANIMATOR = Humanoid.Animator
  335. local ANIMATE = Character.Animate
  336. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  337. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  338. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  339. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  340. local UNANCHOR = true
  341.  
  342. local SKILLTEXTCOLOR = C3(0,0,0)
  343.  
  344. --//=================================\\
  345. --\\=================================//
  346.  
  347.  
  348. --//=================================\\
  349. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  350. --\\=================================//
  351.  
  352. ArtificialHB = Instance.new("BindableEvent", script)
  353. ArtificialHB.Name = "ArtificialHB"
  354.  
  355. script:WaitForChild("ArtificialHB")
  356.  
  357. frame = Frame_Speed
  358. tf = 0
  359. allowframeloss = false
  360. tossremainder = false
  361. lastframe = tick()
  362. script.ArtificialHB:Fire()
  363.  
  364. game:GetService("RunService").Heartbeat:connect(function(s, p)
  365. tf = tf + s
  366. if tf >= frame then
  367. if allowframeloss then
  368. script.ArtificialHB:Fire()
  369. lastframe = tick()
  370. else
  371. for i = 1, math.floor(tf / frame) do
  372. script.ArtificialHB:Fire()
  373. end
  374. lastframe = tick()
  375. end
  376. if tossremainder then
  377. tf = 0
  378. else
  379. tf = tf - frame * math.floor(tf / frame)
  380. end
  381. end
  382. end)
  383.  
  384. --//=================================\\
  385. --\\=================================//
  386.  
  387.  
  388.  
  389.  
  390.  
  391. --//=================================\\
  392. --|| SOME FUNCTIONS
  393. --\\=================================//
  394.  
  395. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  396. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  397. end
  398.  
  399. function PositiveAngle(NUMBER)
  400. if NUMBER >= 0 then
  401. NUMBER = 0
  402. end
  403. return NUMBER
  404. end
  405.  
  406. function NegativeAngle(NUMBER)
  407. if NUMBER <= 0 then
  408. NUMBER = 0
  409. end
  410. return NUMBER
  411. end
  412.  
  413. function Swait(NUMBER)
  414. if NUMBER == 0 or NUMBER == nil then
  415. ArtificialHB.Event:wait()
  416. else
  417. for i = 1, NUMBER do
  418. ArtificialHB.Event:wait()
  419. end
  420. end
  421. end
  422.  
  423. function QuaternionFromCFrame(cf)
  424. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  425. local trace = m00 + m11 + m22
  426. if trace > 0 then
  427. local s = math.sqrt(1 + trace)
  428. local recip = 0.5 / s
  429. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  430. else
  431. local i = 0
  432. if m11 > m00 then
  433. i = 1
  434. end
  435. if m22 > (i == 0 and m00 or m11) then
  436. i = 2
  437. end
  438. if i == 0 then
  439. local s = math.sqrt(m00 - m11 - m22 + 1)
  440. local recip = 0.5 / s
  441. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  442. elseif i == 1 then
  443. local s = math.sqrt(m11 - m22 - m00 + 1)
  444. local recip = 0.5 / s
  445. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  446. elseif i == 2 then
  447. local s = math.sqrt(m22 - m00 - m11 + 1)
  448. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  449. end
  450. end
  451. end
  452.  
  453. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  454. local xs, ys, zs = x + x, y + y, z + z
  455. local wx, wy, wz = w * xs, w * ys, w * zs
  456. local xx = x * xs
  457. local xy = x * ys
  458. local xz = x * zs
  459. local yy = y * ys
  460. local yz = y * zs
  461. local zz = z * zs
  462. 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))
  463. end
  464.  
  465. function QuaternionSlerp(a, b, t)
  466. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  467. local startInterp, finishInterp;
  468. if cosTheta >= 0.0001 then
  469. if (1 - cosTheta) > 0.0001 then
  470. local theta = ACOS(cosTheta)
  471. local invSinTheta = 1 / SIN(theta)
  472. startInterp = SIN((1 - t) * theta) * invSinTheta
  473. finishInterp = SIN(t * theta) * invSinTheta
  474. else
  475. startInterp = 1 - t
  476. finishInterp = t
  477. end
  478. else
  479. if (1 + cosTheta) > 0.0001 then
  480. local theta = ACOS(-cosTheta)
  481. local invSinTheta = 1 / SIN(theta)
  482. startInterp = SIN((t - 1) * theta) * invSinTheta
  483. finishInterp = SIN(t * theta) * invSinTheta
  484. else
  485. startInterp = t - 1
  486. finishInterp = t
  487. end
  488. end
  489. 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
  490. end
  491.  
  492. function Clerp(a, b, t)
  493. local qa = {QuaternionFromCFrame(a)}
  494. local qb = {QuaternionFromCFrame(b)}
  495. local ax, ay, az = a.x, a.y, a.z
  496. local bx, by, bz = b.x, b.y, b.z
  497. local _t = 1 - t
  498. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  499. end
  500.  
  501. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  502. local frame = IT("Frame")
  503. frame.BackgroundTransparency = TRANSPARENCY
  504. frame.BorderSizePixel = BORDERSIZEPIXEL
  505. frame.Position = POSITION
  506. frame.Size = SIZE
  507. frame.BackgroundColor3 = COLOR
  508. frame.BorderColor3 = BORDERCOLOR
  509. frame.Name = NAME
  510. frame.Parent = PARENT
  511. return frame
  512. end
  513.  
  514. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  515. local label = IT("TextLabel")
  516. label.BackgroundTransparency = 1
  517. label.Size = UD2(1, 0, 1, 0)
  518. label.Position = UD2(0, 0, 0, 0)
  519. label.TextColor3 = TEXTCOLOR
  520. label.TextStrokeTransparency = STROKETRANSPARENCY
  521. label.TextTransparency = TRANSPARENCY
  522. label.FontSize = TEXTFONTSIZE
  523. label.Font = TEXTFONT
  524. label.BorderSizePixel = BORDERSIZEPIXEL
  525. label.TextScaled = false
  526. label.Text = TEXT
  527. label.Name = NAME
  528. label.Parent = PARENT
  529. return label
  530. end
  531.  
  532. function NoOutlines(PART)
  533. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  534. end
  535.  
  536.  
  537. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  538. local NEWWELD = IT(TYPE)
  539. NEWWELD.Part0 = PART0
  540. NEWWELD.Part1 = PART1
  541. NEWWELD.C0 = C0
  542. NEWWELD.C1 = C1
  543. NEWWELD.Parent = PARENT
  544. return NEWWELD
  545. end
  546.  
  547. function CreateSound(ID, PARENT, VOLUME, PITCH)
  548. local NEWSOUND = nil
  549. coroutine.resume(coroutine.create(function()
  550. NEWSOUND = IT("Sound", PARENT)
  551. NEWSOUND.Volume = VOLUME
  552. NEWSOUND.Pitch = PITCH
  553. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  554. Swait()
  555. NEWSOUND:play()
  556. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  557. end))
  558. return NEWSOUND
  559. end
  560.  
  561. function CFrameFromTopBack(at, top, back)
  562. local right = top:Cross(back)
  563. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  564. end
  565.  
  566. Debris = game:GetService("Debris")
  567.  
  568. --//=================================\\
  569. --|| WEAPON CREATION
  570. --\\=================================//
  571.  
  572. local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  573. local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430345282", "430345284", VT(0.2,0.2,0.2), VT(0,0, 0))
  574. local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(-0.55, -1.2, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0))
  575.  
  576. for _, c in pairs(Weapon:GetChildren()) do
  577. if c.ClassName == "Part" then
  578. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  579. end
  580. end
  581.  
  582. Weapon.Parent = Character
  583.  
  584. Humanoid.Died:connect(function()
  585. ATTACK = true
  586. end)
  587.  
  588. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  589.  
  590. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Pizza launcher", SKILLTEXTCOLOR, 6, "Legacy", 0, 2, 1, "Text 1")
  591.  
  592. --//=================================\\
  593. --|| ATTACK FUNCTIONS AND STUFF
  594. --\\=================================//
  595.  
  596. function PizzaLauncher()
  597. local PIZZA = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(1,1,1),false)
  598. PIZZA.CFrame = CF(RootPart.Position,Mouse.Hit.p)*ANGLES(RAD(0),RAD(-90),RAD(0))
  599. local bv = Instance.new("BodyVelocity")
  600. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  601. bv.velocity = CF(PIZZA.Position,Mouse.Hit.p).lookVector*200
  602. bv.Parent = PIZZA
  603. bv.Name = "MOVE"
  604. CreateSound("1058021195", PIZZA, 10, MRANDOM(8,10)/10)
  605. CreateMesh("SpecialMesh", PIZZA, "FileMesh", "22589477", "22589467", VT(1,1,1), VT(0,0, 0))
  606. local HIT = PIZZA.Touched:Connect(function(hit)
  607. if hit.Parent ~= Character and hit.Parent ~= Weapon then
  608. hit.Parent:BreakJoints()
  609. end
  610. end)
  611. Debris:AddItem(PIZZA,5)
  612. end
  613.  
  614. --//=================================\\
  615. --|| ASSIGN THINGS TO KEYS
  616. --\\=================================//
  617.  
  618. function MouseDown(Mouse)
  619. if ATTACK == false then
  620. end
  621. end
  622.  
  623. function MouseUp(Mouse)
  624. HOLD = false
  625. end
  626.  
  627. function KeyDown(Key)
  628. KEYHOLD = true
  629. if Key == "z" and ATTACK == false then
  630. PizzaLauncher()
  631. end
  632.  
  633. if Key == "x" and ATTACK == false then
  634. if sick.Volume == 1 then
  635. sick.Volume = 10
  636. EFFECT.Level = 1
  637. elseif sick.Volume == 10 then
  638. sick.Volume = 1
  639. EFFECT.Level = 0
  640. end
  641. end
  642. end
  643.  
  644. function KeyUp(Key)
  645. KEYHOLD = false
  646. end
  647.  
  648. Mouse.Button1Down:connect(function(NEWKEY)
  649. MouseDown(NEWKEY)
  650. end)
  651. Mouse.Button1Up:connect(function(NEWKEY)
  652. MouseUp(NEWKEY)
  653. end)
  654. Mouse.KeyDown:connect(function(NEWKEY)
  655. KeyDown(NEWKEY)
  656. end)
  657. Mouse.KeyUp:connect(function(NEWKEY)
  658. KeyUp(NEWKEY)
  659. end)
  660.  
  661. --//=================================\\
  662. --\\=================================//
  663.  
  664.  
  665. function unanchor()
  666. if UNANCHOR == true then
  667. g = Character:GetChildren()
  668. for i = 1, #g do
  669. if g[i].ClassName == "Part" then
  670. g[i].Anchored = false
  671. end
  672. end
  673. end
  674. end
  675.  
  676.  
  677. --//=================================\\
  678. --|| WRAP THE WHOLE SCRIPT UP
  679. --\\=================================//
  680.  
  681. Humanoid.Changed:connect(function(Jump)
  682. if Jump == "Jump" and (Disable_Jump == true) then
  683. Humanoid.Jump = false
  684. end
  685. end)
  686.  
  687. Speed = 100
  688.  
  689. while true do
  690. Swait()
  691. ANIMATE.Parent = nil
  692. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  693. IDLEANIMATION:Play()
  694. SINE = SINE + CHANGE
  695. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  696. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  697. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  698. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  699. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  700. ANIM = "Idle"
  701. if ATTACK == false then
  702. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1)
  703. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)), RAD(MRANDOM(-360,360)), RAD(MRANDOM(-360,360))), 1)
  704. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.15, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1)
  705. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(MRANDOM(-360,360)), RAD(MRANDOM(-360,360)), RAD(-12)) * LEFTSHOULDERC0, 1)
  706. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 1)
  707. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 1)
  708. end
  709. unanchor()
  710. Humanoid.MaxHealth = "inf"
  711. Humanoid.Health = "inf"
  712. if Rooted == false then
  713. Disable_Jump = false
  714. Humanoid.WalkSpeed = Speed
  715. elseif Rooted == true then
  716. Disable_Jump = true
  717. Humanoid.WalkSpeed = 0
  718. end
  719. sick.Parent = Head
  720. end
  721.  
  722. --//=================================\\
  723. --\\=================================//
  724.  
  725.  
  726.  
  727.  
  728.  
  729. --//====================================================\\--
  730. --|| END OF SCRIPT
  731. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment