Advertisement
doryna2281337

Untitled

Aug 18th, 2019
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --FRUIT--
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. Decal2 = Instance.new("Decal")
  22. Decal3 = Instance.new("Decal")
  23. Decal4 = Instance.new("Decal")
  24. Decal5 = Instance.new("Decal")
  25. Decal6 = Instance.new("Decal")
  26. Decal7 = Instance.new("Decal")
  27. SpecialMesh8 = Instance.new("SpecialMesh")
  28. Sound9 = Instance.new("Sound")
  29. LocalScript10 = Instance.new("LocalScript")
  30. LocalScript11 = Instance.new("LocalScript")
  31. HopperBin12 = Instance.new("HopperBin")
  32. LocalScript13 = Instance.new("LocalScript")
  33. BlockMesh14 = Instance.new("BlockMesh")
  34. Script15 = Instance.new("Script")
  35. Script16 = Instance.new("Script")
  36. HopperBin17 = Instance.new("HopperBin")
  37. LocalScript18 = Instance.new("LocalScript")
  38. HopperBin19 = Instance.new("HopperBin")
  39. LocalScript20 = Instance.new("LocalScript")
  40. BlockMesh21 = Instance.new("BlockMesh")
  41. Script22 = Instance.new("Script")
  42. Script23 = Instance.new("Script")
  43. Script24 = Instance.new("Script")
  44. StringValue25 = Instance.new("StringValue")
  45. Part26 = Instance.new("Part")
  46. SpecialMesh27 = Instance.new("SpecialMesh")
  47. Part28 = Instance.new("Part")
  48. SpecialMesh29 = Instance.new("SpecialMesh")
  49. Part30 = Instance.new("Part")
  50. SpecialMesh31 = Instance.new("SpecialMesh")
  51. Tool0.Name = "(Click to eat) Gomu Gomu no mi"
  52. Tool0.Parent = mas
  53. Tool0.Grip = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  54. Tool0.GripForward = Vector3.new(1, -0, -0)
  55. Tool0.GripRight = Vector3.new(0, 0, 1)
  56. Part1.Name = "Handle"
  57. Part1.Parent = Tool0
  58. Part1.CFrame = CFrame.new(48.749485, 0.503547013, 19.1430969, -0.999999523, -0.000978620723, 1.05401614e-05, -0.000978537253, 0.999980748, 0.00612961594, -1.66846348e-05, 0.0061296029, -0.999981225)
  59. Part1.Orientation = Vector3.new(-0.349999994, 180, -0.0599999987)
  60. Part1.Position = Vector3.new(48.749485, 0.503547013, 19.1430969)
  61. Part1.Rotation = Vector3.new(-179.649994, 0, 179.940002)
  62. Part1.Color = Color3.new(0.972549, 0.85098, 0.427451)
  63. Part1.Size = Vector3.new(1, 1, 1)
  64. Part1.BottomSurface = Enum.SurfaceType.Smooth
  65. Part1.BrickColor = BrickColor.new("Daisy orange")
  66. Part1.Material = Enum.Material.SmoothPlastic
  67. Part1.TopSurface = Enum.SurfaceType.Smooth
  68. Part1.brickColor = BrickColor.new("Daisy orange")
  69. Part1.FormFactor = Enum.FormFactor.Symmetric
  70. Part1.formFactor = Enum.FormFactor.Symmetric
  71. Decal2.Parent = Part1
  72. Decal2.Texture = "rbxassetid://114369508"
  73. Decal2.Transparency = 0.5
  74. Decal3.Parent = Part1
  75. Decal3.Texture = "rbxassetid://114369508"
  76. Decal3.Transparency = 0.5
  77. Decal3.Face = Enum.NormalId.Left
  78. Decal4.Parent = Part1
  79. Decal4.Texture = "rbxassetid://114369508"
  80. Decal4.Transparency = 0.5
  81. Decal4.Face = Enum.NormalId.Back
  82. Decal5.Parent = Part1
  83. Decal5.Texture = "rbxassetid://114369508"
  84. Decal5.Transparency = 0.5
  85. Decal5.Face = Enum.NormalId.Right
  86. Decal6.Parent = Part1
  87. Decal6.Texture = "rbxassetid://114369508"
  88. Decal6.Transparency = 0.5
  89. Decal6.Face = Enum.NormalId.Top
  90. Decal7.Parent = Part1
  91. Decal7.Texture = "rbxassetid://114369508"
  92. Decal7.Transparency = 0.5
  93. Decal7.Face = Enum.NormalId.Bottom
  94. SpecialMesh8.Parent = Part1
  95. SpecialMesh8.Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995)
  96. SpecialMesh8.MeshType = Enum.MeshType.Sphere
  97. Sound9.Name = "Eat"
  98. Sound9.Parent = Part1
  99. Sound9.Looped = true
  100. Sound9.Pitch = 1.1000000238419
  101. Sound9.PlaybackSpeed = 1.1000000238419
  102. Sound9.SoundId = "rbxassetid://161190414"
  103. LocalScript10.Name = "InstaWeld"
  104. LocalScript10.Parent = Tool0
  105. table.insert(cors,sandbox(LocalScript10,function()
  106. local currentwelds = {}
  107.  
  108. function Weld(x,y)
  109. local W = Instance.new("Weld")
  110. W.Part0 = x
  111. W.Part1 = y
  112. local CJ = CFrame.new(x.Position)
  113. local C0 = x.CFrame:inverse()*CJ
  114. local C1 = y.CFrame:inverse()*CJ
  115. W.C0 = C0
  116. W.C1 = C1
  117. W.Parent = x
  118. currentwelds[#currentwelds+1] = W
  119. end
  120.  
  121. function Get(A)
  122. if A:IsA("BasePart") then
  123. Weld(script.Parent.Handle, A)
  124. A.Anchored = false
  125. else
  126. local C = A:GetChildren()
  127. for i=1, #C do
  128. Get(C[i])
  129. end
  130. end
  131. end
  132.  
  133. function Finale()
  134. currentwelds = {}
  135. Get(script.Parent)
  136. coroutine.resume(coroutine.create(function()
  137. wait(0.1)
  138. local toolparts = script.Parent:GetChildren()
  139. for h = 1, #toolparts do
  140. local c = toolparts[h]:GetChildren()
  141. for j = 1, #c do
  142. if c[j]:IsA("Weld") then
  143. local stop = false
  144. for k = 1, #currentwelds do
  145. if c[j] == currentwelds[k] then
  146. stop = true
  147. end
  148. end
  149. if not stop then
  150. c[j]:Destroy()
  151. end
  152. end
  153. end
  154. end
  155. end))
  156. end
  157.  
  158. script.Parent.Equipped:connect(Finale)
  159. script.Parent.Unequipped:connect(Finale)
  160. Finale()
  161. end))
  162. LocalScript11.Name = "EatScript"
  163. LocalScript11.Parent = Tool0
  164. table.insert(cors,sandbox(LocalScript11,function()
  165. wait()
  166.  
  167. local tool = script.Parent
  168. local player = owner
  169.  
  170. defaultholdingpos = tool.GripPos
  171. eaten = false
  172. equipped = false
  173. cancelled = false
  174. tool.Equipped:connect(function()
  175. equipped = true
  176. script.Parent.Activated:connect(function()
  177. if not eaten then
  178. cancelled = false
  179. tool.GripPos = Vector3.new(0.8, -0.5, 1.5)
  180. tool.Handle.Eat:Play()
  181. wait(1.4)
  182. tool.Handle.Eat:Stop()
  183. if equipped and not cancelled then
  184. local currentsavedgear = player:FindFirstChild("StarterGear"):GetChildren()
  185. local hasdf = false
  186. if #currentsavedgear > 0 then
  187. for i = 1, #currentsavedgear do
  188. if currentsavedgear[i]:FindFirstChild("DevilFruitAbility") then
  189. currentsavedgear[i]:Destroy()
  190. hasdf = true
  191. end
  192. end
  193. end
  194. if not hasdf then
  195. local dftools = script:GetChildren()
  196. for i = 1, #dftools do
  197. local df_tag = Instance.new("StringValue")
  198. df_tag.Name = "DevilFruitAbility"
  199. df_tag.Value = tool.DevilFruitType.Value
  200. df_tag.Parent = dftools[i]
  201. dftools[i]:clone().Parent = player:FindFirstChild("Backpack")
  202. dftools[i]:clone().Parent = player:FindFirstChild("StarterGear")
  203. end
  204. tool:Destroy()
  205. elseif hasdf then
  206. if player.Character then
  207. if player.Character:FindFirstChild("Humanoid") then
  208. player.Character:BreakJoints()
  209. player.Character:FindFirstChild("Humanoid").Health = 0
  210. end
  211. end
  212. tool:Destroy()
  213. end
  214. end
  215. end
  216. end)
  217. end)
  218.  
  219. tool.Unequipped:connect(function()
  220. tool.Handle.Eat:Stop()
  221. cancelled = true
  222. equipped = false
  223. if not eaten then
  224. tool.GripPos = defaultholdingpos
  225. end
  226. end)
  227. end))
  228. table.insert(cors,sandbox(LocalScript13,function()
  229. COOLDOWN = 1
  230.  
  231. MAX_VELOCITY = 475
  232. MIN_VELOCITY = 400
  233.  
  234. AUTOFIRE = false
  235.  
  236. SPREAD = 2
  237. ORIGIN_SPREAD = 0
  238. LOCK_FORWARD = false
  239.  
  240. ANTI_GRAVITY = 1
  241.  
  242. FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731"
  243.  
  244. DESPAWN_TIME = 1
  245.  
  246.  
  247. wait(1)
  248. ------------------------------
  249. missile = Instance.new("Part")
  250. missile.Name = "Gomu"
  251. missile.Transparency = 0
  252. missile.Reflectance = 0
  253. missile.CanCollide = false
  254. missile.Shape = "Block"
  255. missile.FormFactor = "Custom"
  256. missile.Size = Vector3.new(2, 2, 2)
  257. missile.Elasticity = 0
  258. missile.TopSurface = 0
  259. missile.BottomSurface = 0
  260.  
  261. while script:FindFirstChild("Mesh") == nil do wait() end
  262. script.Mesh:clone().Parent = missile
  263.  
  264. force = Instance.new("BodyForce")
  265. force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY)
  266. force.Parent = missile
  267.  
  268. scriptName = "ArrowScript"
  269. while script:FindFirstChild(scriptName) == nil do wait() end
  270. script:FindFirstChild(scriptName):clone().Parent = missile
  271.  
  272. ------------------------------
  273.  
  274. wait()
  275. Tool = script.Parent
  276. player = owner
  277. while player.Character == nil do wait() end
  278. char = player.Character
  279.  
  280. function hidePart(part)
  281. if part:FindFirstChild("AttackHide") == nil then
  282. local hide = Instance.new("SpecialMesh")
  283. hide.Name = "AttackHide"
  284. hide.MeshType = "FileMesh"
  285. hide.Scale = Vector3.new(0, 0, 0)
  286. hide.Parent = part
  287. game.Debris:AddItem(hide, DESPAWN_TIME/2)
  288. end
  289. end
  290.  
  291. shooting = false
  292. function fire(v)
  293. if choosehand == 1 then
  294. choosehand = 2
  295. arm = char:FindFirstChild("Right Arm")
  296. else
  297. choosehand = 1
  298. arm = char:FindFirstChild("Left Arm")
  299. end
  300. if arm == nil then return end
  301. hidePart(arm)
  302.  
  303. if not LOCK_FORWARD then
  304. v_spreadx = math.random(-SPREAD, SPREAD)
  305. v_spready = math.random(-SPREAD, SPREAD)
  306. v_spreadz = math.random(-SPREAD, SPREAD)
  307. v = v + Vector3.new(v_spreadx, v_spready, v_spreadz)
  308. v = (v - arm.Position).unit
  309. else
  310. v = char:FindFirstChild("Torso").CFrame.lookVector
  311. end
  312.  
  313. o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  314. o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  315. o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  316. local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz)
  317. spawnPos = spawnPos + (v * 1)
  318.  
  319. shot = missile:clone()
  320. shot.BrickColor = arm.BrickColor
  321. shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY)
  322. local launch = spawnPos + 2 * v
  323. shot.CFrame = CFrame.new(launch, launch + v)
  324.  
  325. local creator_tag = Instance.new("ObjectValue")
  326. creator_tag.Value = player
  327. creator_tag.Name = "creator"
  328. creator_tag.Parent = shot
  329.  
  330. local firesound = Instance.new("Sound")
  331. firesound.Name = "FiredSound"
  332. firesound.SoundId = FIRE_SOUND
  333. firesound.Volume = 1
  334. firesound.Pitch = math.random(8, 14)/10
  335. firesound.Parent = shot
  336.  
  337. shot.Parent = game.Workspace
  338. game.Debris:AddItem(shot, DESPAWN_TIME)
  339. shot:FindFirstChild(scriptName).Disabled = false
  340. end
  341.  
  342.  
  343. enabled = true
  344. gatlingmode = false
  345.  
  346. function onButtonUp()
  347. shooting = false
  348. end
  349.  
  350. function onDeselect()
  351. stopped = true
  352. end
  353.  
  354. function gatlingOFF()
  355. gatlingmode = false -- its not gatling ya know
  356. COOLDOWN = 2
  357. MAX_VELOCITY = 250
  358. MIN_VELOCITY = 200
  359. AUTOFIRE = false
  360. SPREAD = 3
  361. ORIGIN_SPREAD = 3
  362. DESPAWN_TIME = 0.9
  363. missile.Transparency = 0.4
  364. LOCK_FORWARD = true
  365. end
  366.  
  367. function gatlingON()
  368. gatlingmode = true -- its one shot
  369. COOLDOWN = 2
  370. MAX_VELOCITY = 475
  371. MIN_VELOCITY = 400
  372. AUTOFIRE = false
  373. SPREAD = 2
  374. ORIGIN_SPREAD = 0
  375. DESPAWN_TIME = 1
  376. missile.Transparency = 0
  377. LOCK_FORWARD = false
  378. end
  379.  
  380. function onSelected(mouse)
  381. gatlingmode = false
  382. gatlingOFF()
  383. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  384. mouse.Button1Down:connect(function()
  385.  
  386. if not enabled then return end
  387. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  388. enabled = false
  389. shooting = true
  390. stopped = false
  391. while shooting do
  392. hum = char:FindFirstChild("Humanoid")
  393. if hum == nil then else
  394. if hum.Health <= 0 then shooting = false end
  395. fire(mouse.Hit.p)
  396.  
  397. wait(COOLDOWN)
  398. if not AUTOFIRE then
  399. shooting = false
  400. end
  401. end
  402. if AUTOFIRE then
  403. wait(COOLDOWN)
  404. end
  405. if mouse then
  406. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  407. end
  408. enabled = true
  409. end
  410. end)
  411. mouse.Button1Up:connect(function() onButtonUp() end)
  412. mouse.KeyDown:connect(function(key2)
  413. local key=string.byte(key2)
  414. if key==string.byte("g") then
  415. if gatlingmode == false then
  416. gatlingON()
  417. else
  418. gatlingOFF()
  419. end
  420. end
  421. end)
  422. end
  423.  
  424. script.Parent.Selected:connect(onSelected)
  425. script.Parent.Deselected:connect(onDeselected)
  426.  
  427.  
  428.  
  429.  
  430. end))
  431. BlockMesh14.Parent = LocalScript13
  432. Script15.Name = "Stretch"
  433. Script15.Parent = BlockMesh14
  434. table.insert(cors,sandbox(Script15,function()
  435. local missile = script.Parent.Parent
  436. if missile:IsA("Part") then
  437. origPos = missile.Position
  438. m = script.Parent
  439. for i = 1, 10 do
  440. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8
  441. dist = (origPos - missile.Position).magnitude
  442. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  443. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  444. wait()
  445. end
  446. wait(0.1)
  447. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6
  448. while true do
  449. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15
  450. dist = (origPos - missile.Position).magnitude
  451. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  452. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  453. wait()
  454. end
  455. end
  456. end))
  457. Script16.Name = "ArrowScript"
  458. Script16.Parent = LocalScript13
  459. table.insert(cors,sandbox(Script16,function()
  460. arrow = script.Parent
  461.  
  462. local hitsound = Instance.new("Sound")
  463. hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113"
  464. hitsound.Volume = 0.3
  465. hitsound.Pitch = math.random(11, 17)/10
  466. hitsound.Parent = arrow
  467.  
  468. if arrow:FindFirstChild("creator") == nil then
  469. arrow:WaitForChild("creator")
  470. end
  471.  
  472. damage = 25
  473. if arrow.Transparency ~= 0 then
  474. damage = 25
  475. end
  476.  
  477. local tag = arrow:FindFirstChild("creator")
  478. local ourguy = tag.Value.Character:FindFirstChild("Humanoid")
  479.  
  480.  
  481. function onTouched(hit)
  482. humanoid = nil
  483. if tag ~= nil and ourguy ~= nil then
  484. if hit.Parent == nil then return end
  485. if hit.Parent:findFirstChild("Humanoid") then
  486. humanoid = hit.Parent:findFirstChild("Humanoid")
  487. elseif hit.Parent.Parent:findFirstChild("Humanoid") then
  488. humanoid = hit.Parent.Parent:findFirstChild("Humanoid")
  489. end
  490. if humanoid ~= nil then
  491. if humanoid ~= ourguy then
  492. stop = false
  493. local ph = hit.Parent:FindFirstChild("PunchHurt")
  494. if (ph ~= nil) then
  495. if ph.Value == false then
  496. stop = true
  497. end
  498. end
  499. if stop == false then
  500. hitsound:Play()
  501. tagHumanoid(humanoid, vPlayer)
  502. humanoid:TakeDamage(damage)
  503. arrow:Destroy()
  504. end
  505. end
  506. elseif hit.Anchored == true and hit.CanCollide == true then
  507. arrow:Destroy()
  508. end
  509. end
  510. end
  511.  
  512. function tagHumanoid(humanoid)
  513. local tag = arrow:findFirstChild("creator")
  514. if tag ~= nil then
  515. local new_tag = tag:clone()
  516. new_tag.Parent = humanoid
  517. game.Debris:AddItem(new_tag, 1)
  518. end
  519. end
  520.  
  521. arrow.Touched:connect(onTouched)
  522.  
  523. wait()
  524. if arrow:FindFirstChild("FiredSound") then
  525. arrow:FindFirstChild("FiredSound"):Play()
  526. end
  527.  
  528. wait(10)
  529. arrow:Destroy()
  530. end))
  531. Script16.Disabled = true
  532. table.insert(cors,sandbox(LocalScript18,function()
  533. bin = script.Parent
  534. player = script.Parent.Parent.Parent
  535. me = script.Parent.Parent.Parent
  536.  
  537. enabled = true
  538.  
  539. function Talk(msg)
  540. game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Blue)
  541. end
  542.  
  543. function onButton1Down(mouse)
  544. if not enabled then
  545. return
  546. end
  547.  
  548. local player = owner
  549. if player == nil then return end
  550.  
  551. enabled = false
  552. RightShoulder = me.Character.Torso["Right Shoulder"]
  553. LeftShoulder = me.Character.Torso["Left Shoulder"]
  554. Run = game:GetService("RunService")
  555. for i = 1, 3 do
  556. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 1)
  557. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -1)
  558. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 1.1, 0)
  559. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -1.1, 0)
  560. Run.Stepped:wait(0.005)
  561. end
  562. -------------------------------------------------------------------------------
  563.  
  564. --EDIT HERE--
  565. Talk("Gear Second!")-- you can change Gear Second or Gear 2nd
  566. gg = Instance.new("Part")
  567. gg.Anchored = true
  568. gg.Shape = "Ball" --THIS ball will appear when transforming
  569. gg.TopSurface = "Smooth"
  570. gg.BottomSurface = "Smooth"
  571. gg.BrickColor = BrickColor.new("Persimmon")--color of the bode when transforming
  572. gg.CanCollide = false
  573. gg.Parent = Workspace
  574. gg.Size = Vector3.new(6, 6, 6)
  575. p = Instance.new("PointLight", gg)
  576. p.Brightness = 10
  577. p.Range = 10
  578. p.Color = Color3.new(255, 0, 0)
  579. gg.CFrame = me.Character.Torso.CFrame*CFrame.new(0, 0, 0)
  580. qq = Instance.new("SpecialMesh")
  581. qq.Parent = gg
  582. qq.Scale = Vector3.new(6, 6, 6)
  583. qq.MeshType = ("Sphere")
  584. for i = 1,6 do
  585. qq.Scale = qq.Scale -Vector3.new(1 ,1 ,1)
  586. wait(0.01)
  587. end
  588. gg:remove()
  589. Hardening = me.Character["Body Colors"]
  590. Hardening.LeftArmColor = BrickColor.new("Persimmon") --color
  591. Hardening.RightArmColor = BrickColor.new("Persimmon")--of
  592. Hardening.RightLegColor = BrickColor.new("Persimmon")--the
  593. Hardening.LeftLegColor = BrickColor.new("Persimmon")--body
  594. Hardening.TorsoColor = BrickColor.new("Persimmon")--when
  595. Hardening. HeadColor = BrickColor.new("Persimmon")--transforming
  596. j = me.Character.Head
  597. k = me.Character.Torso
  598. q = me.Character["Left Arm"]
  599. w = me.Character["Left Leg"]
  600. e = me.Character["Right Arm"]
  601. r = me.Character["Right Leg"]
  602.  
  603. me.Character.Humanoid.MaxHealth = 500-- 500 - 550 Health of human when transformed
  604. me.Character.Humanoid.Health = 500----- SAME ONE
  605. me.Character.Humanoid.WalkSpeed = 0
  606. wait(1.5)
  607. me.Character.Humanoid.WalkSpeed = 20 --edit 17 - 100 it will increase speed
  608.  
  609.  
  610.  
  611.  
  612. for i = 1, 3 do
  613. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 1.1, 0)
  614. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -1.1, 0)
  615. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1)
  616. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 1)
  617. Run.Stepped:wait(0.01)
  618. end
  619. wait(20)
  620. enabled = true
  621. end
  622.  
  623.  
  624. enabled = true
  625. function onS(mouse)
  626. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  627. end
  628. bin.Selected:connect(onS)
  629.  
  630.  
  631. end))
  632. table.insert(cors,sandbox(LocalScript20,function()
  633. COOLDOWN = 2
  634.  
  635. MAX_VELOCITY = 475
  636. MIN_VELOCITY = 400
  637.  
  638. AUTOFIRE = false
  639.  
  640. SPREAD = 2
  641. ORIGIN_SPREAD = 0
  642. LOCK_FORWARD = false
  643.  
  644. ANTI_GRAVITY = 1
  645.  
  646. FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731"
  647.  
  648. DESPAWN_TIME = 1
  649.  
  650.  
  651. wait(1)
  652. ------------------------------
  653. missile = Instance.new("Part")
  654. missile.Name = "Gomu"
  655. missile.Transparency = 0
  656. missile.Reflectance = 0
  657. missile.CanCollide = false
  658. missile.Shape = "Block"
  659. missile.FormFactor = "Custom"
  660. missile.Size = Vector3.new(2, 2, 2)
  661. missile.Elasticity = 0
  662. missile.TopSurface = 0
  663. missile.BottomSurface = 0
  664.  
  665. while script:FindFirstChild("Mesh") == nil do wait() end
  666. script.Mesh:clone().Parent = missile
  667.  
  668. force = Instance.new("BodyForce")
  669. force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY)
  670. force.Parent = missile
  671.  
  672. scriptName = "ArrowScript"
  673. while script:FindFirstChild(scriptName) == nil do wait() end
  674. script:FindFirstChild(scriptName):clone().Parent = missile
  675.  
  676. ------------------------------
  677.  
  678. wait()
  679. Tool = script.Parent
  680. player = owner
  681. while player.Character == nil do wait() end
  682. char = player.Character
  683.  
  684. function hidePart(part)
  685. if part:FindFirstChild("AttackHide") == nil then
  686. local hide = Instance.new("SpecialMesh")
  687. hide.Name = "AttackHide"
  688. hide.MeshType = "FileMesh"
  689. hide.Scale = Vector3.new(0, 0, 0)
  690. hide.Parent = part
  691. game.Debris:AddItem(hide, DESPAWN_TIME/2)
  692. end
  693. end
  694.  
  695. shooting = false
  696. function fire(v)
  697. if choosehand == 1 then
  698. choosehand = 2
  699. arm = char:FindFirstChild("Right Arm")
  700. else
  701. choosehand = 1
  702. arm = char:FindFirstChild("Left Arm")
  703. end
  704. if arm == nil then return end
  705. hidePart(arm)
  706.  
  707. if not LOCK_FORWARD then
  708. v_spreadx = math.random(-SPREAD, SPREAD)
  709. v_spready = math.random(-SPREAD, SPREAD)
  710. v_spreadz = math.random(-SPREAD, SPREAD)
  711. v = v + Vector3.new(v_spreadx, v_spready, v_spreadz)
  712. v = (v - arm.Position).unit
  713. else
  714. v = char:FindFirstChild("Torso").CFrame.lookVector
  715. end
  716.  
  717. o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  718. o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  719. o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  720. local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz)
  721. spawnPos = spawnPos + (v * 1)
  722.  
  723. shot = missile:clone()
  724. shot.BrickColor = arm.BrickColor
  725. shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY)
  726. local launch = spawnPos + 2 * v
  727. shot.CFrame = CFrame.new(launch, launch + v)
  728.  
  729. local creator_tag = Instance.new("ObjectValue")
  730. creator_tag.Value = player
  731. creator_tag.Name = "creator"
  732. creator_tag.Parent = shot
  733.  
  734. local firesound = Instance.new("Sound")
  735. firesound.Name = "FiredSound"
  736. firesound.SoundId = FIRE_SOUND
  737. firesound.Volume = 1
  738. firesound.Pitch = math.random(8, 14)/10
  739. firesound.Parent = shot
  740.  
  741. shot.Parent = game.Workspace
  742. game.Debris:AddItem(shot, DESPAWN_TIME)
  743. shot:FindFirstChild(scriptName).Disabled = false
  744. end
  745.  
  746.  
  747. enabled = true
  748. gatlingmode = false
  749.  
  750. function onButtonUp()
  751. shooting = false
  752. end
  753.  
  754. function onDeselect()
  755. stopped = true
  756. end
  757.  
  758. function gatlingON()
  759. gatlingmode = true --if gatling mode
  760. COOLDOWN = 0
  761. MAX_VELOCITY = 250
  762. MIN_VELOCITY = 200
  763. AUTOFIRE = true --it means if you click one time it will repeat
  764. SPREAD = 3
  765. ORIGIN_SPREAD = 3
  766. DESPAWN_TIME = 0.9
  767. missile.Transparency = 0.4
  768. LOCK_FORWARD = true --change it to false if you want to back attack
  769. end
  770.  
  771. function gatlingOFF()
  772. gatlingmode = false -- if one shot mode
  773. COOLDOWN = 0.4
  774. MAX_VELOCITY = 475
  775. MIN_VELOCITY = 400
  776. AUTOFIRE = true --it means if you click one time it will repeat
  777. SPREAD = 2
  778. ORIGIN_SPREAD = 0
  779. DESPAWN_TIME = 1
  780. missile.Transparency = 0
  781. LOCK_FORWARD = false
  782. end
  783.  
  784. function onSelected(mouse)
  785. gatlingmode = true
  786. gatlingON()
  787. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  788. mouse.Button1Down:connect(function()
  789.  
  790. if not enabled then return end
  791. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  792. enabled = false
  793. shooting = true
  794. stopped = false
  795. while shooting do
  796. hum = char:FindFirstChild("Humanoid")
  797. if hum == nil then else
  798. if hum.Health <= 0 then shooting = false end
  799. fire(mouse.Hit.p)
  800.  
  801. wait(COOLDOWN)
  802. if not AUTOFIRE then
  803. shooting = false
  804. end
  805. end
  806. if AUTOFIRE then
  807. wait(COOLDOWN)
  808. end
  809. if mouse then
  810. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  811. end
  812. enabled = true
  813. end
  814. end)
  815. mouse.Button1Up:connect(function() onButtonUp() end)
  816. mouse.KeyDown:connect(function(key2)
  817. local key=string.byte(key2)
  818. if key==string.byte("g") then
  819. if gatlingmode == false then
  820. gatlingON()
  821. else
  822. gatlingOFF()
  823. end
  824. end
  825. end)
  826. end
  827.  
  828. script.Parent.Selected:connect(onSelected)
  829. script.Parent.Deselected:connect(onDeselected)
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836. end))
  837. BlockMesh21.Parent = LocalScript20
  838. Script22.Name = "Stretch"
  839. Script22.Parent = BlockMesh21
  840. table.insert(cors,sandbox(Script22,function()
  841. local missile = script.Parent.Parent
  842. if missile:IsA("Part") then
  843. origPos = missile.Position
  844. m = script.Parent
  845. for i = 1, 10 do
  846. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8
  847. dist = (origPos - missile.Position).magnitude
  848. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  849. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  850. wait()
  851. end
  852. wait(0.1)
  853. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6
  854. while true do
  855. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15
  856. dist = (origPos - missile.Position).magnitude
  857. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  858. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  859. wait()
  860. end
  861. end
  862. end))
  863. Script23.Name = "ArrowScript"
  864. Script23.Parent = LocalScript20
  865. table.insert(cors,sandbox(Script23,function()
  866. arrow = script.Parent
  867.  
  868. local hitsound = Instance.new("Sound")
  869. hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113"
  870. hitsound.Volume = 0.3
  871. hitsound.Pitch = math.random(11, 17)/10
  872. hitsound.Parent = arrow
  873.  
  874. if arrow:FindFirstChild("creator") == nil then
  875. arrow:WaitForChild("creator")
  876. end
  877.  
  878. damage = 40
  879. if arrow.Transparency ~= 0 then
  880. damage = 40
  881. end
  882.  
  883. local tag = arrow:FindFirstChild("creator")
  884. local ourguy = tag.Value.Character:FindFirstChild("Humanoid")
  885.  
  886.  
  887. function onTouched(hit)
  888. humanoid = nil
  889. if tag ~= nil and ourguy ~= nil then
  890. if hit.Parent == nil then return end
  891. if hit.Parent:findFirstChild("Humanoid") then
  892. humanoid = hit.Parent:findFirstChild("Humanoid")
  893. elseif hit.Parent.Parent:findFirstChild("Humanoid") then
  894. humanoid = hit.Parent.Parent:findFirstChild("Humanoid")
  895. end
  896. if humanoid ~= nil then
  897. if humanoid ~= ourguy then
  898. stop = false
  899. local ph = hit.Parent:FindFirstChild("PunchHurt")
  900. if (ph ~= nil) then
  901. if ph.Value == false then
  902. stop = true
  903. end
  904. end
  905. if stop == false then
  906. hitsound:Play()
  907. tagHumanoid(humanoid, vPlayer)
  908. humanoid:TakeDamage(damage)
  909. arrow:Destroy()
  910. end
  911. end
  912. elseif hit.Anchored == true and hit.CanCollide == true then
  913. arrow:Destroy()
  914. end
  915. end
  916. end
  917.  
  918. function tagHumanoid(humanoid)
  919. local tag = arrow:findFirstChild("creator")
  920. if tag ~= nil then
  921. local new_tag = tag:clone()
  922. new_tag.Parent = humanoid
  923. game.Debris:AddItem(new_tag, 1)
  924. end
  925. end
  926.  
  927. arrow.Touched:connect(onTouched)
  928.  
  929. wait()
  930. if arrow:FindFirstChild("FiredSound") then
  931. arrow:FindFirstChild("FiredSound"):Play()
  932. end
  933.  
  934. wait(10)
  935. arrow:Destroy()
  936. end))
  937. Script23.Disabled = true
  938. Script24.Name = "DevilFruitAttributes"
  939. Script24.Parent = LocalScript11
  940. table.insert(cors,sandbox(Script24,function()
  941. wait()
  942. if script.Parent then
  943. if not script.Parent:IsA("Script") or not script.Parent.Name == "StarterGear" then
  944. local debris = game:GetService("Debris")
  945. local backpack = script.Parent
  946. local player = backpack.Parent
  947. while player.Character == nil do wait() end
  948. local character = player.Character
  949. if character then
  950. while character:FindFirstChild("Humanoid") == nil do wait() end
  951. local hum = character:FindFirstChild("Humanoid")
  952.  
  953. -- Logia
  954. local charparts = character:GetChildren()
  955. for i = 1, #charparts do
  956. local charpart = charparts[i]
  957. if charpart:IsA("BasePart") then
  958. charpart.Touched:connect(function(hit)
  959. if charpart:FindFirstChild("Hide") then return end
  960. local stop = true
  961. if hit ~= nil then
  962. if hit.Parent ~= nil then
  963. if hit:FindFirstChild("creator") or hit.Parent:FindFirstChild("creator") then
  964. stop = false
  965. elseif hit.Parent:FindFirstChild("Humanoid") then
  966. if hit.Parent:FindFirstChild("Humanoid") ~= hum then
  967. stop = false
  968. end
  969. end
  970. end
  971. end
  972. if stop then return end
  973. local hidemesh = Instance.new("SpecialMesh")
  974. hidemesh.Name = "Hide"
  975. hidemesh.MeshType = "FileMesh"
  976. hidemesh.MeshId = ""
  977. hidemesh.Scale = Vector3.new(0, 0, 0)
  978. hidemesh.Parent = charpart
  979. debris:AddItem(hidemesh, 1.5)
  980.  
  981. local bodyeffect = Instance.new("Part")
  982. bodyeffect.Name = "BodyEffect"
  983. bodyeffect.Transparency = 0.3
  984. bodyeffect.CanCollide = false
  985. bodyeffect.FormFactor = "Custom"
  986. bodyeffect.Size = Vector3.new(0.2, 0.2, 0.2)
  987. bodyeffect.TopSurface = "Smooth"
  988. bodyeffect.BottomSurface = "Smooth"
  989. bodyeffect.CFrame = charpart.CFrame
  990.  
  991. local mesh = Instance.new("SpecialMesh")
  992. mesh.MeshId = "http://www.roblox.com/asset?id=165709404"
  993. mesh.TextureId = "http://www.roblox.com/asset?id=165709478"
  994. mesh.Scale = Vector3.new(3, 3, 3)
  995. mesh.Parent = bodyeffect
  996.  
  997. local sound = Instance.new("Sound")
  998. sound.SoundId = "http://www.roblox.com/asset/?id=31759626"
  999. sound.Volume = 0.3
  1000. sound.Pitch = math.random(9, 11)/10
  1001. sound.Parent = bodyeffect
  1002.  
  1003. local light = Instance.new("PointLight")
  1004. light.Range = 5
  1005. light.Color = Color3.new(1, 1, 0)
  1006. light.Parent = bodyeffect
  1007.  
  1008. bodyeffect.Parent = charpart.Parent
  1009.  
  1010. sound:Play()
  1011.  
  1012. local weld = Instance.new("ManualWeld")
  1013. weld.Part0 = bodyeffect
  1014. weld.Part1 = charpart
  1015. weld.C1 = charpart.CFrame:inverse() * bodyeffect.CFrame
  1016. weld.Parent = bodyeffect
  1017.  
  1018. debris:AddItem(bodyeffect, 1.5)
  1019. end)
  1020. end
  1021. end
  1022. end
  1023. end
  1024. end
  1025. end))
  1026. StringValue25.Name = "DevilFruitType"
  1027. StringValue25.Parent = Tool0
  1028. StringValue25.Value = "Rubber"
  1029. Part26.Name = "Leafs"
  1030. Part26.Parent = Tool0
  1031. Part26.CFrame = CFrame.new(48.6795959, 1.326491, 19.1532822, -4.4091145e-08, -7.30506144e-08, -1, 1, -4.51691449e-08, -4.36030163e-08, -4.23751771e-08, -1, -7.30506144e-08)
  1032. Part26.Orientation = Vector3.new(0, -90, 90)
  1033. Part26.Position = Vector3.new(48.6795959, 1.326491, 19.1532822)
  1034. Part26.Rotation = Vector3.new(-90, -90, 0)
  1035. Part26.Color = Color3.new(1, 0.34902, 0.34902)
  1036. Part26.Size = Vector3.new(0.410000086, 0.329999983, 0.200000048)
  1037. Part26.Anchored = true
  1038. Part26.BrickColor = BrickColor.new("Persimmon")
  1039. Part26.Material = Enum.Material.SmoothPlastic
  1040. Part26.brickColor = BrickColor.new("Persimmon")
  1041. Part26.FormFactor = Enum.FormFactor.Custom
  1042. Part26.formFactor = Enum.FormFactor.Custom
  1043. SpecialMesh27.Parent = Part26
  1044. SpecialMesh27.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  1045. SpecialMesh27.MeshType = Enum.MeshType.Cylinder
  1046. Part28.Name = "Leafs"
  1047. Part28.Parent = Tool0
  1048. Part28.CFrame = CFrame.new(48.6795998, 1.51648796, 19.1482849, -1.16759111e-07, 4.34269509e-10, -1, -1.52271241e-07, -1, 1.92770244e-11, -1, 1.49477273e-07, -2.93402991e-08)
  1049. Part28.Orientation = Vector3.new(0, -90, -180)
  1050. Part28.Position = Vector3.new(48.6795998, 1.51648796, 19.1482849)
  1051. Part28.Rotation = Vector3.new(180, -90, 0)
  1052. Part28.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1053. Part28.Size = Vector3.new(0.640000045, 0.329999983, 0.200000048)
  1054. Part28.Anchored = true
  1055. Part28.BrickColor = BrickColor.new("Reddish brown")
  1056. Part28.Material = Enum.Material.SmoothPlastic
  1057. Part28.brickColor = BrickColor.new("Reddish brown")
  1058. Part28.FormFactor = Enum.FormFactor.Custom
  1059. Part28.formFactor = Enum.FormFactor.Custom
  1060. SpecialMesh29.Parent = Part28
  1061. SpecialMesh29.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  1062. SpecialMesh29.MeshType = Enum.MeshType.Cylinder
  1063. Part30.Name = "Leafs"
  1064. Part30.Parent = Tool0
  1065. Part30.CFrame = CFrame.new(48.6795998, 1.543787, 18.7326698, -1.14498107e-07, -1.83335942e-08, -1, 0.258818775, -0.965925932, -1.1264305e-08, -0.965925932, -0.258818686, -3.08291419e-08)
  1066. Part30.Orientation = Vector3.new(0, -90, 165)
  1067. Part30.Position = Vector3.new(48.6795998, 1.543787, 18.7326698)
  1068. Part30.Rotation = Vector3.new(-165, -90, 0)
  1069. Part30.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1070. Part30.Size = Vector3.new(0.200000077, 0.329999983, 0.200000048)
  1071. Part30.Anchored = true
  1072. Part30.BrickColor = BrickColor.new("Reddish brown")
  1073. Part30.Material = Enum.Material.SmoothPlastic
  1074. Part30.brickColor = BrickColor.new("Reddish brown")
  1075. Part30.FormFactor = Enum.FormFactor.Custom
  1076. Part30.formFactor = Enum.FormFactor.Custom
  1077. SpecialMesh31.Parent = Part30
  1078. SpecialMesh31.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  1079. SpecialMesh31.MeshType = Enum.MeshType.Cylinder
  1080. for i,v in pairs(mas:GetChildren()) do
  1081. v.Parent = workspace
  1082. pcall(function() v:MakeJoints() end)
  1083. end
  1084. for i,v in pairs(cors) do
  1085. spawn(function()
  1086. pcall(v)
  1087. end)
  1088. end
  1089.  
  1090. ----------------------------------------------------------------
  1091. --//Budha-Budha no mi\\--
  1092. ----------------------------------------------------------------
  1093.  
  1094. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  1095. local Player,game,owner = owner,game
  1096. local RealPlayer = Player
  1097. do
  1098. local rp = RealPlayer
  1099. script.Parent = rp.Character
  1100.  
  1101. --RemoteEvent for communicating
  1102. local Event = Instance.new("RemoteEvent")
  1103. Event.Name = "UserInput_Event"
  1104.  
  1105. --Fake event to make stuff like Mouse.KeyDown work
  1106. local function fakeEvent()
  1107. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  1108. t.connect = t.Connect
  1109. return t
  1110. end
  1111.  
  1112. --Creating fake input objects with fake variables
  1113. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  1114. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  1115. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  1116. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  1117. end}
  1118. --Merged 2 functions into one by checking amount of arguments
  1119. CAS.UnbindAction = CAS.BindAction
  1120.  
  1121. --This function will trigger the events that have been :Connect()'ed
  1122. local function te(self,ev,...)
  1123. local t = m[ev]
  1124. if t and t._fakeEvent then
  1125. for _,f in pairs(t.Functions) do
  1126. f(...)
  1127. end
  1128. end
  1129. end
  1130. m.TrigEvent = te
  1131. UIS.TrigEvent = te
  1132.  
  1133. Event.OnServerEvent:Connect(function(plr,io)
  1134. if plr~=rp then return end
  1135. m.Target = io.Target
  1136. m.Hit = io.Hit
  1137. if not io.isMouse then
  1138. local b = io.UserInputState == Enum.UserInputState.Begin
  1139. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  1140. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  1141. end
  1142. for _,t in pairs(CAS.Actions) do
  1143. for _,k in pairs(t.Keys) do
  1144. if k==io.KeyCode then
  1145. t.Function(t.Name,io.UserInputState,io)
  1146. end
  1147. end
  1148. end
  1149. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  1150. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  1151. end
  1152. end)
  1153. Event.Parent = NLS([==[
  1154. local Player = game:GetService("Players").LocalPlayer
  1155. local Event = script:WaitForChild("UserInput_Event")
  1156.  
  1157. local Mouse = Player:GetMouse()
  1158. local UIS = game:GetService("UserInputService")
  1159. local input = function(io,a)
  1160. if a then return end
  1161. --Since InputObject is a client-side instance, we create and pass table instead
  1162. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  1163. end
  1164. UIS.InputBegan:Connect(input)
  1165. UIS.InputEnded:Connect(input)
  1166.  
  1167. local h,t
  1168. --Give the server mouse data 30 times every second, but only if the values changed
  1169. --If player is not moving their mouse, client won't fire events
  1170. while wait(1/30) do
  1171. if h~=Mouse.Hit or t~=Mouse.Target then
  1172. h,t=Mouse.Hit,Mouse.Target
  1173. Event:FireServer({isMouse=true,Target=t,Hit=h})
  1174. end
  1175. end]==],Player.Character)
  1176.  
  1177. ----Sandboxed game object that allows the usage of client-side methods and services
  1178. --Real game object
  1179. local _rg = game
  1180.  
  1181. --Metatable for fake service
  1182. local fsmt = {
  1183. __index = function(self,k)
  1184. local s = rawget(self,"_RealService")
  1185. if s then return s[k] end
  1186. end,
  1187. __newindex = function(self,k,v)
  1188. local s = rawget(self,"_RealService")
  1189. if s then s[k]=v end
  1190. end,
  1191. __call = function(self,...)
  1192. local s = rawget(self,"_RealService")
  1193. if s then return s(...) end
  1194. end
  1195. }
  1196. local function FakeService(t,RealService)
  1197. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  1198. return setmetatable(t,fsmt)
  1199. end
  1200.  
  1201. --Fake game object
  1202. local g = {
  1203. GetService = function(self,s)
  1204. return self[s]
  1205. end,
  1206. Players = FakeService({
  1207. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  1208. },"Players"),
  1209. UserInputService = FakeService(UIS,"UserInputService"),
  1210. ContextActionService = FakeService(CAS,"ContextActionService"),
  1211. }
  1212. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  1213. g.service = g.GetService
  1214.  
  1215. g.RunService = FakeService({
  1216. RenderStepped = _rg:GetService("RunService").Heartbeat,
  1217. BindToRenderStep = function(self,name,_,fun)
  1218. self._btrs[name] = self.Heartbeat:Connect(fun)
  1219. end,
  1220. UnbindFromRenderStep = function(self,name)
  1221. self._btrs[name]:Disconnect()
  1222. end,
  1223. },"RunService")
  1224.  
  1225. setmetatable(g,{
  1226. __index=function(self,s)
  1227. return _rg:GetService(s) or typeof(_rg[s])=="function"
  1228. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  1229. end,
  1230. __newindex = fsmt.__newindex,
  1231. __call = fsmt.__call
  1232. })
  1233. --Changing owner to fake player object to support owner:GetMouse()
  1234. game,owner = g,g.Players.LocalPlayer
  1235. end
  1236.  
  1237. Player = owner
  1238. PlayerGui = Player.PlayerGui
  1239. Cam = workspace.CurrentCamera
  1240. Backpack = Player.Backpack
  1241. Character = Player.Character
  1242. Humanoid = Character.Humanoid
  1243. Mouse = Player:GetMouse()
  1244. RootPart = Character["HumanoidRootPart"]
  1245. Torso = Character["Torso"]
  1246. Head = Character["Head"]
  1247. RightArm = Character["Right Arm"]
  1248. LeftArm = Character["Left Arm"]
  1249. RightLeg = Character["Right Leg"]
  1250. LeftLeg = Character["Left Leg"]
  1251. RootJoint = RootPart["RootJoint"]
  1252. Neck = Torso["Neck"]
  1253. RightShoulder = Torso["Right Shoulder"]
  1254. LeftShoulder = Torso["Left Shoulder"]
  1255. RightHip = Torso["Right Hip"]
  1256. LeftHip = Torso["Left Hip"]
  1257.  
  1258. removeuseless = game:GetService("Debris")
  1259. laff = Instance.new("Sound",Head)
  1260. tauntdebounce = false
  1261. Character = Player.Character
  1262. Humanoid = Character.Humanoid
  1263. ---------
  1264. plr = game.Players.LocalPlayer
  1265. chara = plr.Character
  1266. mouse = plr:GetMouse()
  1267. Create = Instance.new
  1268. Huge = math.huge
  1269.  
  1270. Player = game:GetService("Players").LocalPlayer
  1271. PlayerGui = Player.PlayerGui
  1272. Cam = workspace.CurrentCamera
  1273. Backpack = Player.Backpack
  1274. Character = Player.Character
  1275. char = Player.Character
  1276. Humanoid = Character.Humanoid
  1277. Mouse = Player:GetMouse()
  1278. RootPart = Character["HumanoidRootPart"]
  1279. Torso = Character["Torso"]
  1280. Head = Character["Head"]
  1281. RightArm = Character["Right Arm"]
  1282. LeftArm = Character["Left Arm"]
  1283. RightLeg = Character["Right Leg"]
  1284. LeftLeg = Character["Left Leg"]
  1285. RootJoint = RootPart["RootJoint"]
  1286. Neck = Torso["Neck"]
  1287. RightShoulder = Torso["Right Shoulder"]
  1288. LeftShoulder = Torso["Left Shoulder"]
  1289. RightHip = Torso["Right Hip"]
  1290. LeftHip = Torso["Left Hip"]
  1291.  
  1292. local Orin = "http://www.roblox.com/asset/?id=1065951398"
  1293. Head.face.Texture = Orin
  1294. function weld(a, b, acf)
  1295. local w = Instance.new("Weld", a)
  1296. w.Part0 = a
  1297. w.Part1 = b
  1298. w.C0 = acf
  1299. end
  1300. --------------------------------
  1301. char.Head.face.Texture = "rbxassetid://0"
  1302. --------------------------------
  1303. local naeeym2 = Instance.new("BillboardGui",char)
  1304. naeeym2.AlwaysOnTop = true
  1305. naeeym2.Size = UDim2.new(5,35,2,35)
  1306. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1307. naeeym2.Adornee = hed
  1308. naeeym2.Name = "Name"
  1309.  
  1310. local tecks2 = Instance.new("TextLabel",naeeym2)
  1311. tecks2.BackgroundTransparency = 1
  1312. tecks2.TextScaled = true
  1313. tecks2.BorderSizePixel = 0
  1314. tecks2.Text = ""
  1315. tecks2.Font = "Fantasy"
  1316. tecks2.TextSize = 30
  1317. tecks2.TextStrokeTransparency = 0
  1318. tecks2.TextColor3 = BrickColor.new('Really red').Color
  1319. tecks2.TextStrokeColor3 = BrickColor.new('Really black').Color
  1320. tecks2.Size = UDim2.new(1,0,0.5,0)
  1321. tecks2.Parent = naeeym2
  1322. textfag = tecks2
  1323. tecks2.Text = ""
  1324. tecks2.Text = "script by xdielivex"
  1325. wait(2)
  1326. tecks2.Text = ""
  1327. coroutine.resume(coroutine.create(function()
  1328. while textfag ~= nil do
  1329. swait()
  1330. textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
  1331. textfag.Rotation = math.random(-3,3)
  1332. end
  1333. end))
  1334. -------------------------------------------------------
  1335. wait(0.2)
  1336. local plr = game:service'Players'.LocalPlayer
  1337. local char = plr.Character
  1338. local hum = char.Humanoid
  1339. local hed = char.Head
  1340. local root = char.HumanoidRootPart
  1341. local rootj = root.RootJoint
  1342. local tors = char.Torso
  1343. local ra = char["Right Arm"]
  1344. local la = char["Left Arm"]
  1345. local rl = char["Right Leg"]
  1346. local ll = char["Left Leg"]
  1347. local neck = tors["Neck"]
  1348. local mouse = plr:GetMouse()
  1349. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1350. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1351. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1352. local maincolor = BrickColor.new("Plum")
  1353.  
  1354. -------------------------------------------------------
  1355. --Start Good Stuff--
  1356. -------------------------------------------------------
  1357. cam = game.Workspace.CurrentCamera
  1358. CF = CFrame.new
  1359. angles = CFrame.Angles
  1360. attack = false
  1361. Euler = CFrame.fromEulerAnglesXYZ
  1362. Rad = math.rad
  1363. IT = Instance.new
  1364. BrickC = BrickColor.new
  1365. Cos = math.cos
  1366. Acos = math.acos
  1367. Sin = math.sin
  1368. Asin = math.asin
  1369. Abs = math.abs
  1370. Mrandom = math.random
  1371. Floor = math.floor
  1372. -------------------------------------------------------
  1373. --End Good Stuff--
  1374. -------------------------------------------------------
  1375. -------------------------------------------------------
  1376. --Start HeartBeat--
  1377. -------------------------------------------------------
  1378. ArtificialHB = Instance.new("BindableEvent", script)
  1379. ArtificialHB.Name = "Heartbeat"
  1380. script:WaitForChild("Heartbeat")
  1381.  
  1382. frame = 1 / 60
  1383. tf = 0
  1384. allowframeloss = false
  1385. tossremainder = false
  1386.  
  1387.  
  1388. lastframe = tick()
  1389. script.Heartbeat:Fire()
  1390.  
  1391.  
  1392. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1393. tf = tf + s
  1394. if tf >= frame then
  1395. if allowframeloss then
  1396. script.Heartbeat:Fire()
  1397. lastframe = tick()
  1398. else
  1399. for i = 1, math.floor(tf / frame) do
  1400. script.Heartbeat:Fire()
  1401. end
  1402. lastframe = tick()
  1403. end
  1404. if tossremainder then
  1405. tf = 0
  1406. else
  1407. tf = tf - frame * math.floor(tf / frame)
  1408. end
  1409. end
  1410. end)
  1411. -------------------------------------------------------
  1412. --End HeartBeat--
  1413. -------------------------------------------------------
  1414.  
  1415. -------------------------------------------------------
  1416. --Start Important Functions--
  1417. -------------------------------------------------------
  1418. function swait(num)
  1419. if num == 0 or num == nil then
  1420. game:service("RunService").Stepped:wait(0)
  1421. else
  1422. for i = 0, num do
  1423. game:service("RunService").Stepped:wait(0)
  1424. end
  1425. end
  1426. end
  1427. function thread(f)
  1428. coroutine.resume(coroutine.create(f))
  1429. end
  1430. function clerp(a, b, t)
  1431. local qa = {
  1432. QuaternionFromCFrame(a)
  1433. }
  1434. local qb = {
  1435. QuaternionFromCFrame(b)
  1436. }
  1437. local ax, ay, az = a.x, a.y, a.z
  1438. local bx, by, bz = b.x, b.y, b.z
  1439. local _t = 1 - t
  1440. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1441. end
  1442. function QuaternionFromCFrame(cf)
  1443. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1444. local trace = m00 + m11 + m22
  1445. if trace > 0 then
  1446. local s = math.sqrt(1 + trace)
  1447. local recip = 0.5 / s
  1448. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1449. else
  1450. local i = 0
  1451. if m00 < m11 then
  1452. i = 1
  1453. end
  1454. if m22 > (i == 0 and m00 or m11) then
  1455. i = 2
  1456. end
  1457. if i == 0 then
  1458. local s = math.sqrt(m00 - m11 - m22 + 1)
  1459. local recip = 0.5 / s
  1460. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1461. elseif i == 1 then
  1462. local s = math.sqrt(m11 - m22 - m00 + 1)
  1463. local recip = 0.5 / s
  1464. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1465. elseif i == 2 then
  1466. local s = math.sqrt(m22 - m00 - m11 + 1)
  1467. local recip = 0.5 / s
  1468. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1469. end
  1470. end
  1471. end
  1472. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1473. local xs, ys, zs = x + x, y + y, z + z
  1474. local wx, wy, wz = w * xs, w * ys, w * zs
  1475. local xx = x * xs
  1476. local xy = x * ys
  1477. local xz = x * zs
  1478. local yy = y * ys
  1479. local yz = y * zs
  1480. local zz = z * zs
  1481. 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))
  1482. end
  1483. function QuaternionSlerp(a, b, t)
  1484. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1485. local startInterp, finishInterp
  1486. if cosTheta >= 1.0E-4 then
  1487. if 1 - cosTheta > 1.0E-4 then
  1488. local theta = math.acos(cosTheta)
  1489. local invSinTheta = 1 / Sin(theta)
  1490. startInterp = Sin((1 - t) * theta) * invSinTheta
  1491. finishInterp = Sin(t * theta) * invSinTheta
  1492. else
  1493. startInterp = 1 - t
  1494. finishInterp = t
  1495. end
  1496. elseif 1 + cosTheta > 1.0E-4 then
  1497. local theta = math.acos(-cosTheta)
  1498. local invSinTheta = 1 / Sin(theta)
  1499. startInterp = Sin((t - 1) * theta) * invSinTheta
  1500. finishInterp = Sin(t * theta) * invSinTheta
  1501. else
  1502. startInterp = t - 1
  1503. finishInterp = t
  1504. end
  1505. 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
  1506. end
  1507. function rayCast(Position, Direction, Range, Ignore)
  1508. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1509. end
  1510. local RbxUtility = LoadLibrary("RbxUtility")
  1511. local Create = RbxUtility.Create
  1512.  
  1513. -------------------------------------------------------
  1514. --Start Damage Function--
  1515. -------------------------------------------------------
  1516. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1517. if hit.Parent == nil then
  1518. return
  1519. end
  1520. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1521. for _, v in pairs(hit.Parent:children()) do
  1522. if v:IsA("Humanoid") then
  1523. h = v
  1524. end
  1525. end
  1526. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  1527.  
  1528. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1529. end
  1530.  
  1531. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1532. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  1533. if hit.Parent.DebounceHit.Value == true then
  1534. return
  1535. end
  1536. end
  1537. if insta == true then
  1538. hit.Parent:FindFirstChild("Head"):BreakJoints()
  1539. end
  1540. local c = Create("ObjectValue"){
  1541. Name = "creator",
  1542. Value = game:service("Players").LocalPlayer,
  1543. Parent = h,
  1544. }
  1545. game:GetService("Debris"):AddItem(c, .5)
  1546. if HitSound ~= nil and HitPitch ~= nil then
  1547. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1548. end
  1549. local Damage = math.random(minim, maxim)
  1550. local blocked = false
  1551. local block = hit.Parent:findFirstChild("Block")
  1552. if block ~= nil then
  1553. if block.className == "IntValue" then
  1554. if block.Value > 0 then
  1555. blocked = true
  1556. block.Value = block.Value - 1
  1557. print(block.Value)
  1558. end
  1559. end
  1560. end
  1561. if blocked == false then
  1562. h.Health = h.Health - Damage
  1563. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1564. else
  1565. h.Health = h.Health - (Damage / 2)
  1566. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  1567. end
  1568. if Type == "Knockdown" then
  1569. local hum = hit.Parent.Humanoid
  1570. hum.PlatformStand = true
  1571. coroutine.resume(coroutine.create(function(HHumanoid)
  1572. swait(1)
  1573. HHumanoid.PlatformStand = false
  1574. end), hum)
  1575. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  1576. local bodvol = Create("BodyVelocity"){
  1577. velocity = angle * knockback,
  1578. P = 5000,
  1579. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1580. Parent = hit,
  1581. }
  1582. local rl = Create("BodyAngularVelocity"){
  1583. P = 3000,
  1584. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1585. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1586. Parent = hit,
  1587. }
  1588. game:GetService("Debris"):AddItem(bodvol, .5)
  1589. game:GetService("Debris"):AddItem(rl, .5)
  1590. elseif Type == "Normal" then
  1591. local vp = Create("BodyVelocity"){
  1592. P = 500,
  1593. maxForce = Vector3.new(math.huge, 0, math.huge),
  1594. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  1595. }
  1596. if knockback > 0 then
  1597. vp.Parent = hit.Parent.Torso
  1598. end
  1599. game:GetService("Debris"):AddItem(vp, .5)
  1600. elseif Type == "Up" then
  1601. local bodyVelocity = Create("BodyVelocity"){
  1602. velocity = Vector3.new(0, 20, 0),
  1603. P = 5000,
  1604. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1605. Parent = hit,
  1606. }
  1607. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  1608. elseif Type == "DarkUp" then
  1609. coroutine.resume(coroutine.create(function()
  1610. for i = 0, 1, 0.1 do
  1611. swait()
  1612. Effects.Block.Create(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  1613. end
  1614. end))
  1615. local bodyVelocity = Create("BodyVelocity"){
  1616. velocity = Vector3.new(0, 20, 0),
  1617. P = 5000,
  1618. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  1619. Parent = hit,
  1620. }
  1621. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1622. elseif Type == "Snare" then
  1623. local bp = Create("BodyPosition"){
  1624. P = 2000,
  1625. D = 100,
  1626. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1627. position = hit.Parent.Torso.Position,
  1628. Parent = hit.Parent.Torso,
  1629. }
  1630. game:GetService("Debris"):AddItem(bp, 1)
  1631. elseif Type == "Freeze" then
  1632. local BodPos = Create("BodyPosition"){
  1633. P = 50000,
  1634. D = 1000,
  1635. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1636. position = hit.Parent.Torso.Position,
  1637. Parent = hit.Parent.Torso,
  1638. }
  1639. local BodGy = Create("BodyGyro") {
  1640. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1641. P = 20e+003,
  1642. Parent = hit.Parent.Torso,
  1643. cframe = hit.Parent.Torso.CFrame,
  1644. }
  1645. hit.Parent.Torso.Anchored = true
  1646. coroutine.resume(coroutine.create(function(Part)
  1647. swait(1.5)
  1648. Part.Anchored = false
  1649. end), hit.Parent.Torso)
  1650. game:GetService("Debris"):AddItem(BodPos, 3)
  1651. game:GetService("Debris"):AddItem(BodGy, 3)
  1652. end
  1653. local debounce = Create("BoolValue"){
  1654. Name = "DebounceHit",
  1655. Parent = hit.Parent,
  1656. Value = true,
  1657. }
  1658. game:GetService("Debris"):AddItem(debounce, Delay)
  1659. c = Create("ObjectValue"){
  1660. Name = "creator",
  1661. Value = Player,
  1662. Parent = h,
  1663. }
  1664. game:GetService("Debris"):AddItem(c, .5)
  1665. end
  1666. end
  1667. -------------------------------------------------------
  1668. --End Damage Function--
  1669. -------------------------------------------------------
  1670.  
  1671. -------------------------------------------------------
  1672. --Start Damage Function Customization--
  1673. -------------------------------------------------------
  1674. function ShowDamage(Pos, Text, Time, Color)
  1675. local Rate = (1 / 30)
  1676. local Pos = (Pos or Vector3.new(0, 0, 0))
  1677. local Text = (Text or "")
  1678. local Time = (Time or 2)
  1679. local Color = (Color or Color3.new(255, 255, 1))
  1680. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1681. EffectPart.Anchored = true
  1682. local BillboardGui = Create("BillboardGui"){
  1683. Size = UDim2.new(3, 0, 3, 0),
  1684. Adornee = EffectPart,
  1685. Parent = EffectPart,
  1686. }
  1687. local TextLabel = Create("TextLabel"){
  1688. BackgroundTransparency = 1,
  1689. Size = UDim2.new(1, 0, 1, 0),
  1690. Text = Text,
  1691. Font = "Bodoni",
  1692. TextColor3 = Color,
  1693. TextScaled = true,
  1694. TextStrokeColor3 = Color3.fromRGB(220, 188, 129),
  1695. Parent = BillboardGui,
  1696. }
  1697. game.Debris:AddItem(EffectPart, (Time))
  1698. EffectPart.Parent = game:GetService("Workspace")
  1699. delay(0, function()
  1700. local Frames = (Time / Rate)
  1701. for Frame = 1, Frames do
  1702. wait(Rate)
  1703. local Percent = (Frame / Frames)
  1704. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1705. TextLabel.TextTransparency = Percent
  1706. end
  1707. if EffectPart and EffectPart.Parent then
  1708. EffectPart:Destroy()
  1709. end
  1710. end)
  1711. end
  1712. -------------------------------------------------------
  1713. --End Damage Function Customization--
  1714. -------------------------------------------------------
  1715.  
  1716. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1717. for _, c in pairs(workspace:children()) do
  1718. local hum = c:findFirstChild("Humanoid")
  1719. if hum ~= nil then
  1720. local head = c:findFirstChild("Head")
  1721. if head ~= nil then
  1722. local targ = head.Position - Part.Position
  1723. local mag = targ.magnitude
  1724. if magni >= mag and c.Name ~= plr.Name then
  1725. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  1726. end
  1727. end
  1728. end
  1729. end
  1730. end
  1731.  
  1732.  
  1733. CFuncs = {
  1734. Part = {
  1735. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1736. local Part = Create("Part")({
  1737. Parent = Parent,
  1738. Reflectance = Reflectance,
  1739. Transparency = Transparency,
  1740. CanCollide = false,
  1741. Locked = true,
  1742. BrickColor = BrickColor.new(tostring(BColor)),
  1743. Name = Name,
  1744. Size = Size,
  1745. Material = Material
  1746. })
  1747. RemoveOutlines(Part)
  1748. return Part
  1749. end
  1750. },
  1751. Mesh = {
  1752. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1753. local Msh = Create(Mesh)({
  1754. Parent = Part,
  1755. Offset = OffSet,
  1756. Scale = Scale
  1757. })
  1758. if Mesh == "SpecialMesh" then
  1759. Msh.MeshType = MeshType
  1760. Msh.MeshId = MeshId
  1761. end
  1762. return Msh
  1763. end
  1764. },
  1765. Mesh = {
  1766. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1767. local Msh = Create(Mesh)({
  1768. Parent = Part,
  1769. Offset = OffSet,
  1770. Scale = Scale
  1771. })
  1772. if Mesh == "SpecialMesh" then
  1773. Msh.MeshType = MeshType
  1774. Msh.MeshId = MeshId
  1775. end
  1776. return Msh
  1777. end
  1778. },
  1779. Weld = {
  1780. Create = function(Parent, Part0, Part1, C0, C1)
  1781. local Weld = Create("Weld")({
  1782. Parent = Parent,
  1783. Part0 = Part0,
  1784. Part1 = Part1,
  1785. C0 = C0,
  1786. C1 = C1
  1787. })
  1788. return Weld
  1789. end
  1790. },
  1791. Sound = {
  1792. Create = function(id, par, vol, pit)
  1793. coroutine.resume(coroutine.create(function()
  1794. local S = Create("Sound")({
  1795. Volume = vol,
  1796. Pitch = pit or 1,
  1797. SoundId = id,
  1798. Parent = par or workspace
  1799. })
  1800. wait()
  1801. S:play()
  1802. game:GetService("Debris"):AddItem(S, 6)
  1803. end))
  1804. end
  1805. },
  1806. ParticleEmitter = {
  1807. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1808. local fp = Create("ParticleEmitter")({
  1809. Parent = Parent,
  1810. Color = ColorSequence.new(Color1, Color2),
  1811. LightEmission = LightEmission,
  1812. Size = Size,
  1813. Texture = Texture,
  1814. Transparency = Transparency,
  1815. ZOffset = ZOffset,
  1816. Acceleration = Accel,
  1817. Drag = Drag,
  1818. LockedToPart = LockedToPart,
  1819. VelocityInheritance = VelocityInheritance,
  1820. EmissionDirection = EmissionDirection,
  1821. Enabled = Enabled,
  1822. Lifetime = LifeTime,
  1823. Rate = Rate,
  1824. Rotation = Rotation,
  1825. RotSpeed = RotSpeed,
  1826. Speed = Speed,
  1827. VelocitySpread = VelocitySpread
  1828. })
  1829. return fp
  1830. end
  1831. }
  1832. }
  1833. function RemoveOutlines(part)
  1834. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1835. end
  1836. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1837. local Part = Create("Part")({
  1838. formFactor = FormFactor,
  1839. Parent = Parent,
  1840. Reflectance = Reflectance,
  1841. Transparency = Transparency,
  1842. CanCollide = false,
  1843. Locked = true,
  1844. BrickColor = BrickColor.new(tostring(BColor)),
  1845. Name = Name,
  1846. Size = Size,
  1847. Material = Material
  1848. })
  1849. RemoveOutlines(Part)
  1850. return Part
  1851. end
  1852. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1853. local Msh = Create(Mesh)({
  1854. Parent = Part,
  1855. Offset = OffSet,
  1856. Scale = Scale
  1857. })
  1858. if Mesh == "SpecialMesh" then
  1859. Msh.MeshType = MeshType
  1860. Msh.MeshId = MeshId
  1861. end
  1862. return Msh
  1863. end
  1864. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1865. local Weld = Create("Weld")({
  1866. Parent = Parent,
  1867. Part0 = Part0,
  1868. Part1 = Part1,
  1869. C0 = C0,
  1870. C1 = C1
  1871. })
  1872. return Weld
  1873. end
  1874.  
  1875.  
  1876.  
  1877. -------------------------------------------------------
  1878. --End Effect Function--
  1879. -------------------------------------------------------
  1880. function Cso(ID, PARENT, VOLUME, PITCH)
  1881. local NSound = nil
  1882. coroutine.resume(coroutine.create(function()
  1883. NSound = IT("Sound", PARENT)
  1884. NSound.Volume = VOLUME
  1885. NSound.Pitch = PITCH
  1886. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1887. swait()
  1888. NSound:play()
  1889. game:GetService("Debris"):AddItem(NSound, 50)
  1890. end))
  1891. return NSound
  1892. end
  1893. function CameraEnshaking(Length, Intensity)
  1894. coroutine.resume(coroutine.create(function()
  1895. local intensity = 1 * Intensity
  1896. local rotM = 0.01 * Intensity
  1897. for i = 0, Length, 0.1 do
  1898. swait()
  1899. intensity = intensity - 0.05 * Intensity / Length
  1900. rotM = rotM - 5.0E-4 * Intensity / Length
  1901. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1902. cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM)
  1903. end
  1904. hum.CameraOffset = Vector3.new(0, 0, 0)
  1905. end))
  1906. end
  1907. -------------------------------------------------------
  1908. --End Important Functions--
  1909. -------------------------------------------------------
  1910.  
  1911. ----------------------------------------------------------------------------------
  1912. hum.WalkSpeed = 20
  1913. hum.JumpPower = 60
  1914. ----------------------------------------------------------------------------------
  1915. local AddInstance = function(Object, ...)
  1916. local Obj = Instance.new(Object)
  1917. for i,v in next,(...) do
  1918. Obj[i] = v
  1919. end
  1920. return Obj
  1921. end
  1922. ----------------------------------------------------
  1923.  
  1924.  
  1925. local Reaper = AddInstance("Part",{
  1926. Parent = hed,
  1927. CFrame = hed.CFrame,
  1928. formFactor = "Symmetric",
  1929. Size = Vector3.new(1, 1, 1),
  1930. CanCollide = false,
  1931. TopSurface = "Smooth",
  1932. BottomSurface = "Smooth",
  1933. Locked = true,
  1934. })
  1935. local Weld = AddInstance("Weld",{
  1936. Parent = Reaper,
  1937. Part0 = hed,
  1938. C0 = CFrame.new(0, 1.45, 0)*CFrame.Angles(0, 0, 0),
  1939. Part1 = Reaper,
  1940. })
  1941. local Mesh = AddInstance("SpecialMesh",{
  1942. Parent = Reaper,
  1943. MeshId = "rbxassetid://0",
  1944. TextureId = "rbxassetid://0",
  1945. Scale = Vector3.new(0.85,0.85,0.85),
  1946. VertexColor = Vector3.new(1, 1, 1),
  1947. })
  1948.  
  1949. -------------------------------------------------------
  1950. IT = Instance.new
  1951. CF = CFrame.new
  1952. VT = Vector3.new
  1953. RAD = math.rad
  1954. C3 = Color3.new
  1955. UD2 = UDim2.new
  1956. BRICKC = BrickColor.new
  1957. ANGLES = CFrame.Angles
  1958. EULER = CFrame.fromEulerAnglesXYZ
  1959. COS = math.cos
  1960. ACOS = math.acos
  1961. SIN = math.sin
  1962. ASIN = math.asin
  1963. ABS = math.abs
  1964. MRANDOM = math.random
  1965. FLOOR = math.floor
  1966.  
  1967. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1968. local label = IT("TextLabel")
  1969. label.BackgroundTransparency = 1
  1970. label.Size = UD2(1, 0, 1, 0)
  1971. label.Position = UD2(0, 0, 0, 0)
  1972. label.TextColor3 = TEXTCOLOR
  1973. label.TextStrokeTransparency = STROKETRANSPARENCY
  1974. label.TextTransparency = TRANSPARENCY
  1975. label.FontSize = TEXTFONTSIZE
  1976. label.Font = TEXTFONT
  1977. label.BorderSizePixel = BORDERSIZEPIXEL
  1978. label.TextScaled = false
  1979. label.Text = TEXT
  1980. label.Name = NAME
  1981. label.Parent = PARENT
  1982. return label
  1983. end
  1984.  
  1985. function chatfunc(text)
  1986. local chat = coroutine.wrap(function()
  1987. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1988. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1989. end
  1990. local Bill = Instance.new("BillboardGui",Character)
  1991. Bill.Size = UDim2.new(0,100,0,40)
  1992. Bill.StudsOffset = Vector3.new(0,3,0)
  1993. Bill.Adornee = Character.Head
  1994. Bill.Name = "TalkingBillBoard"
  1995. local Hehe = Instance.new("TextLabel",Bill)
  1996. Hehe.BackgroundTransparency = 1
  1997. Hehe.BorderSizePixel = 0
  1998. Hehe.Text = ""
  1999. Hehe.Font = "Bodoni"
  2000. Hehe.TextSize = 40
  2001. Hehe.TextStrokeTransparency = 0
  2002. Hehe.Size = UDim2.new(1,0,0.5,0)
  2003. coroutine.resume(coroutine.create(function()
  2004. while Hehe ~= nil do
  2005. swait()
  2006. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  2007. Hehe.Rotation = math.random(-5,5)
  2008. Hehe.TextColor3 = Color3.new(220, 188, 129)
  2009. Hehe.TextStrokeColor3 = Color3.new(220, 188, 129)
  2010. end
  2011. end))
  2012. for i = 1,string.len(text),1 do
  2013. swait()
  2014. Hehe.Text = string.sub(text,1,i)
  2015. end
  2016. swait(90)--Re[math.random(1, 93)]
  2017. for i = 0, 1, .025 do
  2018. swait()
  2019. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  2020. Hehe.TextStrokeTransparency = i
  2021. Hehe.TextTransparency = i
  2022. end
  2023. Bill:Destroy()
  2024. end)
  2025. chat()
  2026. end
  2027.  
  2028. function onChatted(msg)
  2029. chatfunc(msg)
  2030. end
  2031.  
  2032. Player.Chatted:connect(onChatted)
  2033.  
  2034. function Ban()
  2035. wait(1.5)
  2036. local Hair = AddInstance("Part",{
  2037. Parent = hed,
  2038. CFrame = hed.CFrame,
  2039. formFactor = "Symmetric",
  2040. Size = Vector3.new(1, 1, 1),
  2041. CanCollide = false,
  2042. TopSurface = "Smooth",
  2043. BottomSurface = "Smooth",
  2044. Locked = true,
  2045. })
  2046. local Weld = AddInstance("Weld",{
  2047. Parent = Hair,
  2048. Part0 = hed,
  2049. C0 = CFrame.new(0, 0.3, 0.45)*CFrame.Angles(0, 480.5, 0),
  2050. Part1 = Hair,
  2051. })
  2052. local Mesh = AddInstance("SpecialMesh",{
  2053. Parent = Hair,
  2054. MeshId = "rbxassetid://430736398",
  2055. TextureId = "rbxassetid://869796655",
  2056. Scale = Vector3.new(1,1,1),
  2057. VertexColor = Vector3.new(1, 1, 1),
  2058. })
  2059. local Cape = AddInstance("Part",{
  2060. Parent = Torso,
  2061. CFrame = Torso.CFrame,
  2062. formFactor = "Symmetric",
  2063. Size = Vector3.new(1, 1, 1),
  2064. CanCollide = false,
  2065. TopSurface = "Smooth",
  2066. BottomSurface = "Smooth",
  2067. Locked = true,
  2068. })
  2069. local Weld = AddInstance("Weld",{
  2070. Parent = Cape,
  2071. Part0 = Torso,
  2072. C0 = CFrame.new(0, -1.2, 0.65)*CFrame.Angles(0, 0, 0),
  2073. Part1 = Cape,
  2074. })
  2075. local Mesh = AddInstance("SpecialMesh",{
  2076. Parent = Cape,
  2077. MeshId = "rbxassetid://2774049768",
  2078. TextureId = "rbxassetid://2774049797",
  2079. Scale = Vector3.new(5, 4, 5),
  2080. VertexColor = Vector3.new(1, 1, 1),
  2081. })
  2082. local har3 = Instance.new("Part", char.Head)
  2083. har3.BrickColor = BrickColor.new("Black")
  2084. har3.Name = "Hair"
  2085. har3.formFactor = 0
  2086. har3.Size = Vector3.new(0,-0.25,0)
  2087. har3.BottomSurface = 0
  2088. har3.TopSurface = 0
  2089. har3.CanCollide = false
  2090. Mesh3 = Instance.new("SpecialMesh",har3)
  2091. Mesh3.MeshId = "rbxassetid://1018860047"
  2092. Mesh3.Scale=Vector3.new(1.01, .99, 1.01)
  2093. local bWeld = Instance.new("Weld", char.Head)
  2094. bWeld.Part0 = char.Head
  2095. bWeld.Part1 = har3
  2096. bWeld.C1 = CFrame.new(0,-.1,.3)
  2097.  
  2098. swait()
  2099. plr = game.Players.LocalPlayer
  2100. char = plr.Character
  2101. mouse = plr:GetMouse()
  2102. whitecolor = Color3.new(220, 188, 129)
  2103. epicmode = false
  2104. normal = true
  2105. for i,v in pairs(char:GetChildren()) do
  2106. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  2107. v:Destroy()
  2108. end
  2109. end
  2110. local shirt = Instance.new("Shirt",char)
  2111. shirt.ShirtTemplate = "rbxassetid://0"
  2112. local pants = Instance.new("Pants",char)
  2113. pants.PantsTemplate = "rbxassetid://0"
  2114. local bdycolors = char["Body Colors"]
  2115. bdycolors.HeadColor3 = whitecolor
  2116. bdycolors.LeftArmColor3 = whitecolor
  2117. bdycolors.LeftLegColor3 = whitecolor
  2118. bdycolors.RightArmColor3 = whitecolor
  2119. bdycolors.RightLegColor3 = whitecolor
  2120. bdycolors.TorsoColor3 = whitecolor
  2121. for i,v in pairs(char:GetChildren()) do
  2122. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  2123. v:Destroy()
  2124. end
  2125. end
  2126.  
  2127. local BC = Character["Body Colors"]
  2128. BC.HeadColor = BrickColor.new("Flame yellowish orange")
  2129. BC.LeftArmColor = BrickColor.new("Flame yellowish orange")
  2130. BC.LeftLegColor = BrickColor.new("Flame yellowish orange")
  2131. BC.RightArmColor = BrickColor.new("Flame yellowish orange")
  2132. BC.RightLegColor = BrickColor.new("Flame yellowish orange")
  2133. BC.TorsoColor = BrickColor.new("Curry")
  2134. end
  2135.  
  2136. mouse.Button1Down:connect(function(key)
  2137. if attack == false then
  2138. Ban()
  2139. end
  2140. end)
  2141. -----------------------------------------------
  2142.  
  2143. theme = Instance.new("Sound", Head)
  2144. theme.Volume = 0.7
  2145. theme.Name = "theme"
  2146. theme.Looped = true
  2147.  
  2148. mouse.KeyDown:connect(function(Press)
  2149. Press=Press:lower()
  2150. if Press=='z' then
  2151. id = 0
  2152. theme.SoundId = "rbxassetid://"..id
  2153. theme:Play()
  2154. end
  2155. end)
  2156.  
  2157. mouse.KeyDown:connect(function(Press)
  2158. Press=Press:lower()
  2159. if Press=='c' then
  2160. id = 143809158
  2161. theme.SoundId = "rbxassetid://"..id
  2162. theme:Play()
  2163. end
  2164. end)
  2165.  
  2166. mouse.KeyDown:connect(function(Press)
  2167. Press=Press:lower()
  2168. if Press=='v' then
  2169. id = 136343853
  2170. theme.SoundId = "rbxassetid://"..id
  2171. theme:Play()
  2172. end
  2173. end)
  2174.  
  2175. mouse.KeyDown:connect(function(Press)
  2176. Press=Press:lower()
  2177. if Press=='b' then
  2178. id = 317697384
  2179. theme.SoundId = "rbxassetid://"..id
  2180. theme:Play()
  2181. end
  2182. end)
  2183.  
  2184. mouse.KeyDown:connect(function(Press)
  2185. Press=Press:lower()
  2186. if Press=='f' then
  2187. dist = (tors.Position - mouse.Hit.p).magnitude
  2188. if dist <= 10000 then
  2189. tors.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,3,0)
  2190. end
  2191. end
  2192. end)
  2193.  
  2194. mouse.KeyDown:connect(function(Press)
  2195. Press=Press:lower()
  2196. if Press=='x' then
  2197. id = 235751894
  2198. theme.SoundId = "rbxassetid://"..id
  2199. theme:Play()
  2200. end
  2201. end)
  2202. mas:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement