Advertisement
5325325325

Untitled

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