Advertisement
Reversal00

Untitled

May 16th, 2018
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 175.97 KB | None | 0 0
  1. -- Synapse Decompiler
  2. -- Purchase Here: https://brack4712.xyz/synapse/purchase/
  3.  
  4. Player = game.Players.LocalPlayer
  5. local Character = Player.Character
  6. if not Character or not Character.Parent then
  7. Character = Player.CharacterAdded:wait()
  8. end
  9. humanoid = Character:WaitForChild("Humanoid")
  10. mouse = Player:GetMouse()
  11. vector = Vector3.new()
  12. UserInputService = game:GetService("UserInputService")
  13. if Player.PlayerGui:FindFirstChild("TouchGui") then
  14. Player.PlayerGui:FindFirstChild("TouchGui"):remove()
  15. end
  16. game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"):SetTopbarTransparency(1)
  17. origcameraoffset = Vector3.new(0.2, 0.8, 0)
  18. if UserInputService.GamepadEnabled then
  19. origcameraoffset = Vector3.new(0, 0, 0)
  20. end
  21. cantchangeanim = false
  22. humanoid.CameraOffset = origcameraoffset
  23. storymode = nil
  24. if workspace:FindFirstChild("storymode") then
  25. storymode = workspace:FindFirstChild("storymode")
  26. end
  27. RunService = game:GetService("RunService")
  28. workspace.Camera.CameraType = "Custom"
  29. workspace.Camera.CameraSubject = humanoid
  30. custo = false
  31. renderstepped = RunService.Heartbeat
  32. ContentProvider = game:GetService("ContentProvider")
  33. rs = game.ReplicatedStorage
  34. rootpart = Character.HumanoidRootPart
  35. gui = Player.PlayerGui:WaitForChild("MainGui")
  36. effectz = rs:WaitForChild("effect")
  37. repeat
  38. wait()
  39. until Character.Parent
  40. local TweenService = game:GetService("TweenService")
  41. combatfolder = Character:WaitForChild("combat")
  42. allweps = rs:WaitForChild("weapons")
  43. keyinput = Player:WaitForChild("keyinput")
  44. StarterGui = game:GetService("StarterGui")
  45. StarterGui:SetCore("ChatWindowPosition", UDim2.new(0, 0, 0.475, 0))
  46. normalstepped = RunService.Stepped
  47. hud = gui:WaitForChild("Menu3")
  48. equipsword = false
  49. getsword = nil
  50. weptyp = ""
  51. gunmode = {}
  52. tool = rs.Tool:clone()
  53. tool.Parent = Character
  54. canautorotate = false
  55. disableautorotate = false
  56. changehud = UserInputService.TouchEnabled
  57. local StarterGui = game:GetService("StarterGui")
  58. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
  59. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
  60. StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
  61. function warning(text)
  62. local newwarn = gui.warn:clone()
  63. newwarn.Visible = true
  64. newwarn.info.Text = text
  65. newwarn.Name = "warning"
  66. newwarn.Parent = gui
  67. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.Out, 0, true, 0)
  68. local propertyGoals = {
  69. Position = UDim2.new(0.3, 0, 0.5, 0)
  70. }
  71. local tween2 = TweenService:Create(newwarn, tweenInfo, propertyGoals)
  72. tween2:Play()
  73. end
  74. function blindeffect(tim)
  75. newblind = rs.blindeffect:clone()
  76. newblind.Parent = gui
  77. newblind.blin:TweenPosition(UDim2.new(3, 0, -0.5, 0), "Out", "Quad", tim, true)
  78. game.Debris:AddItem(newblind, tim)
  79. end
  80. function sound(part, id, vo, tim, loop)
  81. local introsound = Instance.new("Sound")
  82. introsound.Parent = part
  83. introsound.SoundId = "rbxassetid://" .. id
  84. if loop then
  85. introsound.Looped = loop
  86. else
  87. game.Debris:AddItem(introsound, 10)
  88. end
  89. if loop == nil then
  90. game.Debris:AddItem(introsound, 10)
  91. end
  92. if vo then
  93. introsound.Volume = vo
  94. end
  95. introsound:Play()
  96. if tim then
  97. game.Debris:AddItem(introsound, tim)
  98. end
  99. end
  100. currentmageffect = 120
  101. numbertable = {
  102. "rbxassetid://1594210834",
  103. "rbxassetid://1594211109",
  104. "rbxassetid://1594211374",
  105. "rbxassetid://1594211585",
  106. "rbxassetid://1594211790",
  107. "rbxassetid://1594212021",
  108. "rbxassetid://1594212249",
  109. "rbxassetid://1594212511",
  110. "rbxassetid://1594212727",
  111. "rbxassetid://1594210560"
  112. }
  113. lockcenter = true
  114. preivewacc = Instance.new("Folder")
  115. preivewacc.Parent = rootpart
  116. keyinput.OnClientEvent:connect(function(key, a, b, c, d, e, f, g)
  117. if key == "susanoo" then
  118. spawn(function()
  119. local susanoo = a
  120. while susanoo.Parent do
  121. renderstepped:wait()
  122. if susanoo and susanoo.Parent then
  123. else
  124. break
  125. end
  126. susanoo.Torso.bp.Position = rootpart.Position
  127. susanoo.Torso.bg.cframe = rootpart.CFrame
  128. end
  129. end)
  130. end
  131. if key == "taijutsu" then
  132. for _, v in pairs(gui.Menu2.misc.frame:GetChildren()) do
  133. if v:IsA("ImageButton") then
  134. v.MouseEnter:connect(function()
  135. preivewacc:ClearAllChildren()
  136. if v.text.Text == "Rent/Buy" then
  137. else
  138. return
  139. end
  140. findacc = rs.allacc:FindFirstChild(v.item.Value.Name)
  141. if findacc then
  142. local gethat = findacc.hat:clone()
  143. equipmodeltobod(gethat)
  144. gethat.Parent = preivewacc
  145. gethat.Name = v.Name
  146. end
  147. end)
  148. v.MouseLeave:connect(function()
  149. end)
  150. v.MouseButton1Down:connect(function()
  151. sound(script, 154020879, 1)
  152. preivewacc:ClearAllChildren()
  153. currentbuy = v.item
  154. if v.text.Text == "Rent/Buy" then
  155. keyinput:FireServer("changeid", currentbuy)
  156. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  157. gui.followmouse.access.Visible = true
  158. gui.followmouse.access.Info.time.Text = "Time: 3 Days"
  159. gui.followmouse.access.Info.name.Text = currentbuy.Value.nam.Value
  160. gui.followmouse.access.Info.type.Text = string.upper(currentbuy.Value.Value)
  161. gui.followmouse.access.Info.money.Text = "Money: " .. currentbuy.Value.money.Value
  162. return
  163. end
  164. gui.followmouse.access.Visible = false
  165. keyinput:FireServer("acc", currentbuy)
  166. end)
  167. end
  168. end
  169. end
  170. if key == "coins" then
  171. gui.coins.Visible = true
  172. delay(2, function()
  173. gui.coins.Visible = false
  174. end)
  175. print(a .. "COINS")
  176. getlen = string.len(a)
  177. for gettt = 1, 5 do
  178. gui.coins:FindFirstChild(gettt).Image = ""
  179. end
  180. for gettt = 1, getlen do
  181. if tonumber(string.sub(a, gettt, gettt)) == 0 then
  182. gui.coins:FindFirstChild(gettt).Image = numbertable[10]
  183. else
  184. gui.coins:FindFirstChild(gettt).Image = numbertable[tonumber(string.sub(a, gettt, gettt))]
  185. end
  186. end
  187. end
  188. if key == "cooldown" then
  189. spawn(function()
  190. local namzzz = a
  191. local cooldowntim = b
  192. local ssdsds = gui.Menu3:FindFirstChild("key" .. namzzz)
  193. if ssdsds then
  194. local findgui = ssdsds:FindFirstChild("cooldown")
  195. if findgui then
  196. ssdsds.cooldown.Visible = true
  197. ssdsds.cooldown.Text = cooldowntim
  198. for nmb = 1, cooldowntim do
  199. wait(1)
  200. cooldowntim = cooldowntim - 1
  201. ssdsds.cooldown.Text = cooldowntim
  202. end
  203. ssdsds.cooldown.Visible = false
  204. end
  205. end
  206. end)
  207. end
  208. if key == "changekeyz" then
  209. for i = 1, #a do
  210. a[i].Image = b[i].Image
  211. end
  212. end
  213. if key == "sound" then
  214. introsound = Instance.new("Sound")
  215. introsound.Parent = script
  216. introsound.SoundId = "rbxassetid://" .. a
  217. introsound:Play()
  218. end
  219. if key == "lockcenter" then
  220. end
  221. if key == "message" then
  222. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  223. Text = a,
  224. Color = BrickColor.new("Teal").Color,
  225. Font = Enum.Font.SourceSansBold,
  226. FontSize = Enum.FontSize.Size28
  227. })
  228. end
  229. if key == "declinemoney" then
  230. hud.trade.money.Text.Value = "Enter Money"
  231. end
  232. end)
  233. loadgui = Player.PlayerGui:WaitForChild("loadgui")
  234. loadgui.ImageLabel.Visible = false
  235. effectz.OnClientEvent:connect(function(key, a, b, c, d, e, f, g)
  236. print(key)
  237. if key == "rockeffect" then
  238. magx = (rootpart.CFrame.p - a.p).magnitude
  239. if magx < 100 then
  240. local cfr = a
  241. for i = 1, 5 do
  242. local der3 = math.random(7, 10)
  243. local handle24 = rs.elementfolder.earth.rock:clone()
  244. handle24.CanCollide = false
  245. handle24.Parent = rootpart
  246. handle24.CFrame = cfr
  247. handle24.Size = Vector3.new(der3, der3, der3)
  248. handle24.Anchored = false
  249. handle24.Velocity = Vector3.new(math.random(-50, 50), math.random(56, 78), math.random(-50, 50))
  250. local b44 = Instance.new("BodyAngularVelocity")
  251. b44.Parent = handle24
  252. b44.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  253. b44.angularvelocity = Vector3.new(math.random(-7, 7), math.random(-7, 7), math.random(-7, 7))
  254. game.Debris:AddItem(handle24, 1)
  255. end
  256. end
  257. end
  258. if key == "fighteffect" then
  259. spawn(function()
  260. newpart = Instance.new("Part")
  261. newpart.Size = Vector3.new()
  262. newpart.CFrame = a
  263. newpart.CanCollide = false
  264. newpart.Anchored = true
  265. newpart.BrickColor = BrickColor.new("Bright yellow")
  266. newpart.Parent = rootpart
  267. game.Debris:AddItem(newpart, 0.3)
  268. for i = 1, 10 do
  269. local partA = newpart
  270. local attachmentA = Instance.new("Attachment", partA)
  271. attachmentA.Position = Vector3.new(0, 0, 0)
  272. local partB = newpart
  273. local attachmentB = Instance.new("Attachment", partB)
  274. attachmentB.Position = Vector3.new(0, 0, 0)
  275. local hingeConstraint = Instance.new("Beam", partA)
  276. hingeConstraint.Attachment0 = attachmentA
  277. hingeConstraint.Attachment1 = attachmentB
  278. hingeConstraint.Width0 = 0
  279. hingeConstraint.Width1 = 1
  280. hingeConstraint.LightEmission = 1
  281. hingeConstraint.Color = ColorSequence.new(newpart.BrickColor.Color)
  282. game.Debris:AddItem(attachmentA, 1)
  283. game.Debris:AddItem(attachmentB, 1)
  284. game.Debris:AddItem(hingeConstraint, 1)
  285. local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
  286. local tweenInfo2 = TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
  287. local propertyGoals = {
  288. Position = Vector3.new(math.random(-7, 7), math.random(-7, 7), math.random(-7, 7))
  289. }
  290. local propertyGoals2 = {Width0 = 0, Width1 = 0}
  291. local propertyGoals3 = {
  292. Width0 = 0,
  293. Width1 = 0,
  294. CurveSize0 = math.random(-7, 7),
  295. CurveSize1 = math.random(-7, 7)
  296. }
  297. local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
  298. local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
  299. local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
  300. tween:Play()
  301. tween2:Play()
  302. tween4:Play()
  303. end
  304. end)
  305. end
  306. if key == "explode" then
  307. magx = (rootpart.CFrame.p - a.p).magnitude
  308. if magx < 50 then
  309. for i = 1, 20 do
  310. normalstepped:wait()
  311. humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02)
  312. end
  313. humanoid.CameraOffset = origcameraoffset
  314. end
  315. end
  316. if key == "bodyflicker" then
  317. mag = (rootpart.CFrame.p - a.p).magnitude
  318. if mag <= currentmageffect then
  319. spawn(function()
  320. local beamz = script.beam:Clone()
  321. local spinztabl = {}
  322. local cfffr = a
  323. local amt = 10
  324. local tim = 0.1
  325. local sped = 150
  326. for s = 1, amt do
  327. local newspinz = beamz:clone()
  328. newspinz.CFrame = cfffr * CFrame.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
  329. origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
  330. newspinz.Parent = rootpart
  331. newspinz.Beam.Width0 = 1
  332. newspinz.Beam.Width1 = 1
  333. local tweenInfo = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  334. local propertyGoals = {Width0 = 0, Width1 = 0}
  335. local tween2 = TweenService:Create(newspinz.Beam, tweenInfo, propertyGoals)
  336. tween2:Play()
  337. newspinz.Beam.Color = ColorSequence.new(BrickColor.new("Really black").Color)
  338. newspinz.Anchored = true
  339. game.Debris:AddItem(newspinz, 0.2)
  340. end
  341. end)
  342. end
  343. end
  344. if key == "stopmode" then
  345. chargeanimz:Stop()
  346. charge2 = false
  347. keyinput:FireServer("mode", charge2)
  348. end
  349. if key == "stopcharge" then
  350. chargeanimz:Stop()
  351. charge = false
  352. keyinput:FireServer("charge", charge)
  353. end
  354. if key == "aurapart2" then
  355. mag = (rootpart.CFrame.p - a.p).magnitude
  356. if mag <= currentmageffect then
  357. spawn(function()
  358. local auras = rs.aura2:Clone()
  359. auras.BrickColor = BrickColor.new(b)
  360. auras.Parent = rootpart
  361. auras.Transparency = 0.5
  362. local cfsr = a * CFrame.Angles(0, 0, math.pi)
  363. auras.CFrame = cfsr
  364. auras.Size = auras.Size * c
  365. local keepsize = auras.Size
  366. local keepspinz = 0
  367. for bbfdfdfd = 1, 20 do
  368. normalstepped:wait()
  369. local added = math.random(-4, 4) * c
  370. auras.Size = keepsize + Vector3.new(added * 0.3, added * 0.3, added * 0.3)
  371. auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, math.random(-5, 5), 0)
  372. humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.2, math.random(-3, 3) * 0.2, math.random(-3, 3) * 0.2)
  373. end
  374. humanoid.CameraOffset = origcameraoffset
  375. for bbfdfdfd = 1, 20 do
  376. normalstepped:wait()
  377. auras.Size = auras.Size + Vector3.new(1, 1, 1)
  378. auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, math.random(-5, 5), 0)
  379. auras.Transparency = auras.Transparency + 0.08
  380. end
  381. auras:remove()
  382. end)
  383. end
  384. end
  385. if key == "aurapart" then
  386. mag = (rootpart.CFrame.p - a.p).magnitude
  387. if mag <= currentmageffect then
  388. spawn(function()
  389. local auras = rs.aura:Clone()
  390. auras.BrickColor = BrickColor.new(b)
  391. auras.Parent = rootpart
  392. local cfsr = a
  393. auras.CFrame = cfsr
  394. local keepspinz = 0
  395. for bbfdfdfd = 1, 50 do
  396. normalstepped:wait()
  397. keepspinz = keepspinz + 3
  398. auras.Size = auras.Size + Vector3.new(0.1, 0.1, 0.1)
  399. auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, 0, math.pi / 2) * CFrame.Angles(keepspinz * 0.1, 0, 0)
  400. end
  401. for bbfdfdfd = 1, 50 do
  402. normalstepped:wait()
  403. keepspinz = keepspinz + 4
  404. auras.Size = auras.Size + Vector3.new(0.3, 0.3, 0.3)
  405. auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, 0, math.pi / 2) * CFrame.Angles(keepspinz * 0.1, 0, 0)
  406. auras.Transparency = auras.Transparency + 0.01
  407. end
  408. for bbfdfdfd = 1, 20 do
  409. normalstepped:wait()
  410. keepspinz = keepspinz + 4
  411. auras.Size = auras.Size + Vector3.new(1, 1, 1)
  412. auras.CFrame = cfsr * CFrame.new(0, -2.2 + auras.Size.X / 2, 0) * CFrame.Angles(0, 0, math.pi / 2) * CFrame.Angles(keepspinz * 0.1, 0, 0)
  413. auras.Transparency = auras.Transparency + 0.08
  414. end
  415. auras:remove()
  416. end)
  417. end
  418. end
  419. if key == "modebeams" then
  420. mag = (rootpart.CFrame.p - a.p).magnitude
  421. if mag <= currentmageffect then
  422. spawn(function()
  423. local beamz = script.beam:Clone()
  424. local spinztabl = {}
  425. local cfffr = a
  426. local amt = 30
  427. local tim = 0.1
  428. local sped = 150
  429. local currentcolor = BrickColor.new("Gold").Color
  430. if b then
  431. currentcolor = BrickColor.new(b).Color
  432. end
  433. for s = 1, amt do
  434. normalstepped:wait()
  435. local newspinz = beamz:clone()
  436. newspinz.CFrame = cfffr * CFrame.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  437. origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
  438. newspinz.Parent = rootpart
  439. newspinz.Beam.Width0 = 2
  440. newspinz.Beam.Width1 = 2
  441. local tweenInfo = TweenInfo.new(0.15, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  442. local propertyGoals = {Width0 = 0, Width1 = 0}
  443. local tween2 = TweenService:Create(newspinz.Beam, tweenInfo, propertyGoals)
  444. tween2:Play()
  445. newspinz.Beam.Color = ColorSequence.new(currentcolor)
  446. local b = Instance.new("BodyVelocity")
  447. b.Parent = newspinz
  448. b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  449. b.velocity = Vector3.new(0, sped, 0)
  450. game.Debris:AddItem(newspinz, 0.2)
  451. end
  452. end)
  453. end
  454. end
  455. if key == "clashnoise" then
  456. mag = (rootpart.CFrame.p - a.p).magnitude
  457. if mag <= currentmageffect then
  458. local hitz = script.hit:Clone()
  459. hitz.Parent = workspace
  460. hitz.CFrame = a
  461. sound(hitz, 154020979, 5)
  462. hitz.aab:remove()
  463. game.Debris:AddItem(hitz, 1)
  464. end
  465. end
  466. if key == "hiteffect" then
  467. mag = (rootpart.CFrame.p - a.p).magnitude
  468. if mag <= currentmageffect then
  469. local hitz = script.hit:Clone()
  470. hitz.Parent = workspace
  471. hitz.CFrame = a
  472. hitz.aab:Emit()
  473. spawn(function()
  474. local beamz = script.beam:Clone()
  475. local spinztabl = {}
  476. local cfffr = a
  477. local amt = 10
  478. local tim = 0.1
  479. local sped = 50
  480. for s = 1, amt do
  481. local newspinz = beamz:clone()
  482. newspinz.CFrame = cfffr * CFrame.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  483. origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
  484. newspinz.CFrame = CFrame.new(newspinz.CFrame.p, cfffr.p) * CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi / 2, 0, 0)
  485. newspinz.Parent = rootpart
  486. newspinz.Beam.Color = ColorSequence.new(BrickColor.new("Gold").Color)
  487. local b = Instance.new("BodyVelocity")
  488. b.Parent = newspinz
  489. b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  490. b.velocity = origsp.lookVector * sped
  491. game.Debris:AddItem(newspinz, 0.1)
  492. end
  493. end)
  494. game.Debris:AddItem(hitz, 0.5)
  495. end
  496. end
  497. if key == "pusheffect" then
  498. spawn(function()
  499. mag = (rootpart.CFrame.p - a.p).magnitude
  500. if mag <= currentmageffect then
  501. local beamz = script.beam:Clone()
  502. local spinztabl = {}
  503. local cfffr = a
  504. local amt = b
  505. local tim = c
  506. local sped = d
  507. for s = 1, amt do
  508. local newspinz = beamz:clone()
  509. newspinz.CFrame = cfffr * CFrame.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
  510. origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
  511. newspinz.CFrame = CFrame.new(newspinz.CFrame.p, cfffr.p) * CFrame.new(0, 0, -4) * CFrame.Angles(-math.pi / 2, 0, 0)
  512. newspinz.Parent = rootpart
  513. local ab = math.random(1, 2)
  514. if ab == 1 then
  515. else
  516. newspinz.Beam.Color = ColorSequence.new(BrickColor.Black().Color)
  517. end
  518. local b = Instance.new("BodyVelocity")
  519. b.Parent = newspinz
  520. b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  521. b.velocity = origsp.lookVector * d
  522. game.Debris:AddItem(newspinz, c)
  523. end
  524. end
  525. end)
  526. end
  527. if key == "suckeffect" then
  528. spawn(function()
  529. mag = (rootpart.CFrame.p - a.p).magnitude
  530. if mag <= currentmageffect then
  531. local beamz = script.beam:Clone()
  532. local spinztabl = {}
  533. local cfffr = a
  534. local amt = b
  535. local tim = c
  536. local sped = d
  537. for s = 1, amt do
  538. wait(0.1)
  539. local newspinz = beamz:clone()
  540. newspinz.CFrame = cfffr * CFrame.new(math.random(-2, 2), 5, math.random(-2, 2))
  541. origsp = CFrame.new(newspinz.CFrame.p, cfffr.p)
  542. newspinz.CFrame = CFrame.new(newspinz.CFrame.p, cfffr.p) * CFrame.new(0, 0, -100) * CFrame.Angles(-math.pi / 2, 0, 0)
  543. newspinz.Parent = rootpart
  544. local ab = math.random(1, 2)
  545. if ab == 1 then
  546. else
  547. newspinz.Beam.Color = ColorSequence.new(BrickColor.Black().Color)
  548. end
  549. local b = Instance.new("BodyVelocity")
  550. b.Parent = newspinz
  551. b.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  552. b.velocity = origsp.lookVector * -d
  553. game.Debris:AddItem(newspinz, c)
  554. end
  555. end
  556. end)
  557. end
  558. if key == "putcloud" then
  559. spawn(function()
  560. mag = (rootpart.CFrame.p - b.p).magnitude
  561. if mag <= currentmageffect then
  562. do
  563. local col = BrickColor.new(a)
  564. local spinz = script.spin:Clone()
  565. local part = b
  566. local siz = c
  567. local handle2 = Instance.new("Part")
  568. local rise = d
  569. if d then
  570. rise = d
  571. else
  572. rise = 1
  573. end
  574. handle2.Size = Vector3.new(siz, siz, siz)
  575. handle2.Name = ""
  576. handle2.CFrame = part
  577. handle2.Material = "Neon"
  578. local ball = Instance.new("SpecialMesh")
  579. ball.Parent = handle2
  580. ball.MeshType = "Sphere"
  581. ball.Scale = Vector3.new(1, 1, 1)
  582. handle2.Anchored = true
  583. handle2.CanCollide = false
  584. handle2.BrickColor = col
  585. handle2.Parent = workspace
  586. handle2.Transparency = 1
  587. local spinztabl = {}
  588. game.Debris:AddItem(handle2, 9)
  589. delay(0, function()
  590. for s = 1, 3 do
  591. local newspinz = spinz:clone()
  592. newspinz.CFrame = handle2.CFrame * CFrame.Angles(0, math.random(-180, 180), 0) - Vector3.new(0, handle2.Size.Y / 2.5, 0)
  593. newspinz.Size = handle2.Size * 1.5 * Vector3.new(1, 0, 1) + Vector3.new(0, handle2.Size.Y / 6, 0)
  594. newspinz.Parent = handle2
  595. newspinz.BrickColor = col
  596. game.Debris:AddItem(newspinz, 9)
  597. table.insert(spinztabl, newspinz)
  598. wait(0.2)
  599. end
  600. end)
  601. game.Debris:AddItem(handle2, 10)
  602. local added = 2
  603. delay(0, function()
  604. while handle2.Parent do
  605. normalstepped:wait()
  606. added = added + 0.1 * (siz * 0.01)
  607. for _, v in pairs(spinztabl) do
  608. v.Size = v.Size + Vector3.new(0.1, added * 0.03, 0.1)
  609. v.CFrame = v.CFrame * CFrame.Angles(added * 0.01 * rise, added * 0.02, 0) + Vector3.new(0, (siz * 0.01 + added * 0.04) * rise, 0)
  610. v.Transparency = v.Transparency + 0.02
  611. end
  612. end
  613. end)
  614. wait(2)
  615. handle2:remove()
  616. end
  617. end
  618. end)
  619. end
  620. if key == "sandcombat" then
  621. spawn(function()
  622. mag = (rootpart.CFrame.p - b.CFrame.p).magnitude
  623. if mag <= currentmageffect then
  624. local col = BrickColor.new(a)
  625. local spinz = script.sand:Clone()
  626. local part = b
  627. local siz = c
  628. local transparency = d
  629. if transparency == nil then
  630. transparency = 0
  631. end
  632. local newspinz = spinz:clone()
  633. local angle = math.pi / 2
  634. local angle2 = math.random(-180, 180)
  635. newspinz.CFrame = part.CFrame * CFrame.Angles(0, angle, 0)
  636. newspinz.Size = newspinz.Size
  637. newspinz.Parent = workspace
  638. newspinz.BrickColor = col
  639. newspinz.Material = "SmoothPlastic"
  640. newspinz.Transparency = 1
  641. local direction = math.random(1, 2)
  642. if direction == 2 then
  643. direction = -1
  644. end
  645. local turn = math.random(1, 2)
  646. if turn == 2 then
  647. turn = -1
  648. end
  649. for i = 1, 10 do
  650. normalstepped:wait()
  651. if part and part.Parent then
  652. else
  653. break
  654. end
  655. newspinz.CFrame = part.CFrame * CFrame.new(0, 0, -i * 0.15) * CFrame.Angles(-i * 0.03 * direction * turn, angle, 0) * CFrame.Angles(0, i * 0.23 * direction, 0)
  656. newspinz.Transparency = newspinz.Transparency - 0.15
  657. newspinz.Size = newspinz.Size * 1.01
  658. end
  659. for i = 1, 20 do
  660. normalstepped:wait()
  661. if part and part.Parent then
  662. else
  663. break
  664. end
  665. newspinz.Transparency = newspinz.Transparency + 0.1
  666. newspinz.Size = newspinz.Size * 1.01
  667. newspinz.CFrame = newspinz.CFrame * CFrame.new(0, 0.1, 0.1) * CFrame.Angles(0, 0.1 * direction, 0)
  668. end
  669. end
  670. end)
  671. end
  672. if key == "sanddefence" then
  673. spawn(function()
  674. mag = (rootpart.CFrame.p - b.CFrame.p).magnitude
  675. if mag <= currentmageffect then
  676. local col = BrickColor.new(a)
  677. local spinz = script.spin:Clone()
  678. local part = b
  679. local siz = c
  680. local transparency = d
  681. if transparency == nil then
  682. transparency = 0
  683. end
  684. local handle2 = Instance.new("Part")
  685. handle2.Size = Vector3.new(siz, siz, siz)
  686. handle2.Name = ""
  687. handle2.CFrame = part.CFrame
  688. handle2.Material = "Neon"
  689. local ball = Instance.new("SpecialMesh")
  690. ball.Parent = handle2
  691. ball.MeshType = "Sphere"
  692. ball.Scale = Vector3.new(1, 1, 1)
  693. handle2.Anchored = true
  694. handle2.CanCollide = false
  695. handle2.BrickColor = col
  696. handle2.Parent = workspace
  697. game.Debris:AddItem(handle2, 9)
  698. handle2.Transparency = transparency
  699. handle2.Transparency = 1
  700. local spinztabl = {}
  701. for _, v in pairs(rs.elementfolder.sand.sandcoffin.notawel:GetChildren()) do
  702. if v:IsA("Texture") then
  703. local newpart = v:clone()
  704. newpart.Parent = handle2
  705. newpart.Transparency = 0.6
  706. end
  707. end
  708. local newspinz = spinz:clone()
  709. local angle = math.random(-180, 180)
  710. local angle2 = math.random(-180, 180)
  711. newspinz.CFrame = handle2.CFrame * CFrame.Angles(angle2, angle, 0)
  712. newspinz.Size = handle2.Size * 1.3 * Vector3.new(1, 0, 1) + Vector3.new(0, handle2.Size.Y / 4, 0)
  713. newspinz.Parent = handle2
  714. newspinz.BrickColor = col
  715. newspinz.Material = "SmoothPlastic"
  716. newspinz.Transparency = 0.6
  717. for i = 1, 90 do
  718. normalstepped:wait()
  719. if part and part.Parent then
  720. else
  721. break
  722. end
  723. handle2.CFrame = part.CFrame
  724. local otrsiz = math.random(-2, 2) * 0.5
  725. otrsiz = siz - otrsiz
  726. handle2.Size = Vector3.new(otrsiz, otrsiz, otrsiz)
  727. newspinz.CFrame = handle2.CFrame * CFrame.Angles(angle2, angle, 0) * CFrame.Angles(0, i * 0.05, 0)
  728. end
  729. game.Debris:AddItem(handle2, 0)
  730. game.Debris:AddItem(newspinz, 0)
  731. end
  732. end)
  733. end
  734. if key == "putexplosion" then
  735. spawn(function()
  736. mag = (rootpart.CFrame.p - b.p).magnitude
  737. if mag <= currentmageffect then
  738. do
  739. local col = BrickColor.new(a)
  740. local spinz = script.spin:Clone()
  741. local part = b
  742. local siz = c
  743. local transparency = d
  744. if transparency == nil then
  745. transparency = 0
  746. end
  747. local handle2 = Instance.new("Part")
  748. handle2.Size = Vector3.new(siz, siz, siz)
  749. handle2.Name = ""
  750. handle2.CFrame = part
  751. handle2.Material = "Neon"
  752. local ball = Instance.new("SpecialMesh")
  753. ball.Parent = handle2
  754. ball.MeshType = "Sphere"
  755. ball.Scale = Vector3.new(1, 1, 1)
  756. handle2.Anchored = true
  757. handle2.CanCollide = false
  758. handle2.BrickColor = col
  759. handle2.Parent = workspace
  760. game.Debris:AddItem(handle2, 9)
  761. handle2.Transparency = transparency
  762. local newpart = handle2:clone()
  763. newpart.Material = "Glass"
  764. newpart.Parent = handle2
  765. newpart.Transparency = 0.8
  766. newpart.Size = Vector3.new(siz, siz, siz) * 1.2
  767. newpart.BrickColor = BrickColor.White()
  768. local spinztabl = {}
  769. game.Debris:AddItem(newpart, 9)
  770. delay(0, function()
  771. for s = 1, 3 do
  772. local newspinz = spinz:clone()
  773. newspinz.CFrame = handle2.CFrame * CFrame.Angles(0, math.random(-180, 180), 0) - Vector3.new(0, handle2.Size.Y / 2.5, 0)
  774. newspinz.Size = handle2.Size * 1.5 * Vector3.new(1, 0, 1) + Vector3.new(0, handle2.Size.Y / 6, 0)
  775. newspinz.Parent = handle2
  776. game.Debris:AddItem(newspinz, 9)
  777. table.insert(spinztabl, newspinz)
  778. wait(0.2)
  779. end
  780. end)
  781. game.Debris:AddItem(handle2, 10)
  782. local kickawaysound = Instance.new("Sound")
  783. kickawaysound.Parent = handle2
  784. kickawaysound.SoundId = "rbxassetid://165970126"
  785. game.Debris:AddItem(kickawaysound, 9)
  786. kickawaysound.Pitch = 1 + math.random(-5, 5) * 0.05
  787. kickawaysound:Play()
  788. local explonpart = {}
  789. local baseexplo = Instance.new("Part")
  790. baseexplo.Transparency = 1
  791. baseexplo.BrickColor = col
  792. game.Debris:AddItem(baseexplo, 10)
  793. baseexplo.TopSurface = "Smooth"
  794. baseexplo.BottomSurface = "Smooth"
  795. baseexplo.Size = Vector3.new(siz, 0, siz)
  796. baseexplo.Name = ""
  797. baseexplo.CFrame = part * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  798. baseexplo.Material = "Neon"
  799. game.Debris:AddItem(baseexplo, 9)
  800. local ballex = Instance.new("SpecialMesh")
  801. ballex.Parent = baseexplo
  802. ballex.MeshType = "Sphere"
  803. ballex.Scale = Vector3.new(3, 0.01, 3)
  804. baseexplo.Anchored = true
  805. baseexplo.CanCollide = false
  806. baseexplo.Parent = handle2
  807. local explosio = {}
  808. local decal = Instance.new("Decal")
  809. decal.Texture = "http://www.roblox.com/asset/?id=861747018"
  810. decal.Parent = baseexplo
  811. decal.Face = "Top"
  812. table.insert(explosio, decal)
  813. local decal = Instance.new("Decal")
  814. decal.Texture = "http://www.roblox.com/asset/?id=861747018"
  815. decal.Parent = baseexplo
  816. decal.Face = "Bottom"
  817. table.insert(explosio, decal)
  818. table.insert(explonpart, baseexplo)
  819. local baseexplo = Instance.new("Part")
  820. game.Debris:AddItem(baseexplo, 9)
  821. baseexplo.Transparency = 1
  822. baseexplo.BrickColor = col
  823. game.Debris:AddItem(baseexplo, 10)
  824. baseexplo.TopSurface = "Smooth"
  825. baseexplo.BottomSurface = "Smooth"
  826. baseexplo.Size = Vector3.new(siz, 0, siz)
  827. baseexplo.Name = ""
  828. baseexplo.CFrame = part * CFrame.Angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180))
  829. baseexplo.Material = "Neon"
  830. local ballex = Instance.new("SpecialMesh")
  831. ballex.Parent = baseexplo
  832. ballex.MeshType = "Sphere"
  833. ballex.Scale = Vector3.new(3, 0.01, 3)
  834. baseexplo.Anchored = true
  835. baseexplo.CanCollide = false
  836. baseexplo.Parent = handle2
  837. local decal = Instance.new("Decal")
  838. decal.Texture = "http://www.roblox.com/asset/?id=861747018"
  839. decal.Parent = baseexplo
  840. decal.Face = "Top"
  841. table.insert(explosio, decal)
  842. local decal = Instance.new("Decal")
  843. decal.Texture = "http://www.roblox.com/asset/?id=861747018"
  844. decal.Parent = baseexplo
  845. decal.Face = "Bottom"
  846. table.insert(explosio, decal)
  847. table.insert(explonpart, baseexplo)
  848. local added = 2
  849. delay(0, function()
  850. while handle2.Parent do
  851. normalstepped:wait()
  852. added = added + 0.1 * (siz * 0.01)
  853. for _, v in pairs(explonpart) do
  854. v.Size = v.Size * 1.01 * Vector3.new(1, 0, 1)
  855. end
  856. for _, v in pairs(spinztabl) do
  857. v.Size = v.Size + Vector3.new(0.6, added * 0.03, 0.6)
  858. v.CFrame = v.CFrame * CFrame.Angles(0, added * 0.02, 0) + Vector3.new(0, siz * 0.01 + added * 0.04, 0)
  859. v.Transparency = v.Transparency + 0.02
  860. end
  861. for _, v in pairs(explosio) do
  862. v.Transparency = v.Transparency + 0.01
  863. end
  864. end
  865. end)
  866. for i = 1, 50 do
  867. normalstepped:wait()
  868. local otrsiz = math.random(-2, 2) * 0.5
  869. otrsiz = siz - otrsiz
  870. handle2.Size = Vector3.new(otrsiz, otrsiz, otrsiz)
  871. newpart.Size = Vector3.new(otrsiz, otrsiz, otrsiz) * 1.2
  872. end
  873. for i = 1, 10 do
  874. normalstepped:wait()
  875. handle2.Size = handle2.Size * 1.1
  876. handle2.Transparency = handle2.Transparency + 0.1
  877. newpart.Size = newpart.Size * 1.1
  878. newpart.Transparency = newpart.Transparency + 0.05
  879. end
  880. handle2:remove()
  881. end
  882. end
  883. end)
  884. end
  885. if a == "effect" then
  886. mag = (rootpart.CFrame.p - c.CFrame.p).magnitude
  887. if mag <= currentmageffect then
  888. geta = rs.ability:FindFirstChild(b)
  889. if geta then
  890. newef = geta:clone()
  891. newef.player.Value = key
  892. if c then
  893. newef.obj.Value = c
  894. end
  895. newef.Parent = Player.PlayerGui
  896. newef.Disabled = false
  897. end
  898. end
  899. end
  900. if key == "trail" then
  901. local part = Instance.new("Part")
  902. part.Anchored = true
  903. part.CanCollide = false
  904. part.formFactor = "Symmetric"
  905. part.TopSurface = 0
  906. part.BottomSurface = 0
  907. part.BrickColor = BrickColor.new(c)
  908. part.Transparency = 0.5
  909. part.Name = "Laser Shot"
  910. part.Locked = true
  911. part.Size = Vector3.new(0, 0, (a.p - b.p).magnitude)
  912. part.CFrame = CFrame.new((b.p + a.p) / 2 + 0 * (a.p - b.p).unit, a.p)
  913. part.Material = "Neon"
  914. local mesh = Instance.new("BlockMesh")
  915. mesh.Scale = Vector3.new(1, 1, 1)
  916. mesh.Parent = part
  917. part.Parent = rootpart
  918. game.Debris:AddItem(part, 0.05)
  919. end
  920. end)
  921. getcusto = workspace:WaitForChild("custo")
  922. incusto = false
  923. if getcusto.Value then
  924. incusto = true
  925. Player.PlayerScripts.CameraScript.Disabled = true
  926. keyinput:FireServer("reparent")
  927. wait(1)
  928. humanoid.WalkSpeed = 0
  929. idlanim = Instance.new("Animation")
  930. idlanim.AnimationId = "rbxassetid://" .. 1100326557
  931. idlanimz = humanoid:LoadAnimation(idlanim)
  932. idlanimz:Play()
  933. cloneitm = script.item:clone()
  934. getallcusto = rs.custo
  935. function createguis()
  936. movdown = 0
  937. getcustoss = getallcusto.face:GetChildren()
  938. for ssds = 1, #getcustoss do
  939. itm = getallcusto.face:FindFirstChild("face" .. ssds)
  940. if itm then
  941. movdown = movdown + 1
  942. newcloneitem = cloneitm:clone()
  943. newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
  944. newcloneitem.info.name.Text = itm.nam.Value
  945. newcloneitem.text.Text = "F A C E"
  946. objval = Instance.new("ObjectValue")
  947. objval.Value = itm
  948. objval.Name = "item"
  949. objval.Parent = newcloneitem
  950. newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
  951. newcloneitem.Parent = gui.Menu2.face.frame
  952. end
  953. end
  954. getcustoss = getallcusto.face:GetChildren()
  955. for ssds = 1, #getcustoss do
  956. itm = getallcusto.face:FindFirstChild("brow" .. ssds)
  957. if itm then
  958. movdown = movdown + 1
  959. newcloneitem = cloneitm:clone()
  960. newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
  961. newcloneitem.info.name.Text = itm.nam.Value
  962. newcloneitem.text.Text = "E Y E B R O W S"
  963. objval = Instance.new("ObjectValue")
  964. objval.Value = itm
  965. objval.Name = "item"
  966. objval.Parent = newcloneitem
  967. newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
  968. newcloneitem.Parent = gui.Menu2.face.frame
  969. end
  970. end
  971. getcustoss = getallcusto.face:GetChildren()
  972. for ssds = 1, #getcustoss do
  973. itm = getallcusto.face:FindFirstChild("scar" .. ssds)
  974. if itm then
  975. movdown = movdown + 1
  976. newcloneitem = cloneitm:clone()
  977. newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
  978. newcloneitem.info.name.Text = itm.nam.Value
  979. newcloneitem.text.Text = "D E S I G N"
  980. objval = Instance.new("ObjectValue")
  981. objval.Value = itm
  982. objval.Name = "item"
  983. objval.Parent = newcloneitem
  984. newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
  985. newcloneitem.Parent = gui.Menu2.face.frame
  986. end
  987. end
  988. getcustoss = getallcusto.face:GetChildren()
  989. for ssds = 1, #getcustoss do
  990. itm = getallcusto.face:FindFirstChild("mouth" .. ssds)
  991. if itm then
  992. movdown = movdown + 1
  993. newcloneitem = cloneitm:clone()
  994. newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (movdown - 1), 0)
  995. newcloneitem.info.name.Text = itm.nam.Value
  996. newcloneitem.text.Text = "M O U T H"
  997. objval = Instance.new("ObjectValue")
  998. objval.Value = itm
  999. objval.Name = "item"
  1000. objval.Parent = newcloneitem
  1001. newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390077643"
  1002. newcloneitem.Parent = gui.Menu2.face.frame
  1003. end
  1004. end
  1005. getcustoss = getallcusto.hair:GetChildren()
  1006. for ssds = 1, #getcustoss do
  1007. itm = getallcusto.hair:FindFirstChild("hair" .. ssds)
  1008. if itm then
  1009. newcloneitem = cloneitm:clone()
  1010. newcloneitem.Parent = gui.Menu2.hair.frame
  1011. newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (ssds - 1), 0)
  1012. newcloneitem.info.name.Text = itm.nam.Value
  1013. objval = Instance.new("ObjectValue")
  1014. objval.Value = itm
  1015. objval.Name = "item"
  1016. objval.Parent = newcloneitem
  1017. newcloneitem.text.Text = "H A I R"
  1018. newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390078054"
  1019. end
  1020. end
  1021. getcustoss = getallcusto.outfit:GetChildren()
  1022. for ssds = 1, #getcustoss do
  1023. itm = getallcusto.outfit:FindFirstChild("outfit" .. ssds)
  1024. if itm then
  1025. newcloneitem = cloneitm:clone()
  1026. newcloneitem.Parent = gui.Menu2.clothing.frame
  1027. newcloneitem.Position = UDim2.new(0.025, 0, 0.008 * (ssds - 1), 0)
  1028. newcloneitem.info.name.Text = itm.nam.Value
  1029. objval = Instance.new("ObjectValue")
  1030. objval.Value = itm
  1031. objval.Name = "item"
  1032. objval.Parent = newcloneitem
  1033. newcloneitem.text.Text = "C L O T H I N G"
  1034. newcloneitem.info.img.Image = "http://www.roblox.com/asset/?id=1390078460"
  1035. end
  1036. end
  1037. end
  1038. createguis()
  1039. currentshirt = ""
  1040. currentpants = ""
  1041. currentface = ""
  1042. currenteyecolor = ""
  1043. currentmouth = ""
  1044. currenthair = ""
  1045. currentskin = ""
  1046. currenthaircolor = ""
  1047. currentbrow = ""
  1048. currentscar = ""
  1049. for _, v in pairs(gui.Menu2.face.frame:GetChildren()) do
  1050. if v:IsA("ImageButton") then
  1051. v.MouseButton1Down:connect(function()
  1052. if v.item.Value:FindFirstChild("bro") then
  1053. currentbrow = v.item.Value.Value
  1054. Character.Head.brows.Texture = v.item.Value.Value
  1055. return
  1056. end
  1057. if v.item.Value:FindFirstChild("sca") then
  1058. currentscar = v.item.Value.Value
  1059. Character.Head.scar.Texture = v.item.Value.Value
  1060. return
  1061. end
  1062. if v.item.Value:FindFirstChild("mou") then
  1063. currentmouth = v.item.Value.Value
  1064. Character.Head.mouth.Texture = v.item.Value.Value
  1065. return
  1066. end
  1067. currentface = v.item.Value.Value
  1068. Character.Head.face.Texture = v.item.Value.Value
  1069. end)
  1070. end
  1071. end
  1072. for _, v in pairs(gui.Menu2.face.color:GetChildren()) do
  1073. if v:IsA("ImageButton") then
  1074. v.MouseButton1Down:connect(function()
  1075. currenteyecolor = v.Name
  1076. Character.Head.eyecolor.Color3 = BrickColor.new(currenteyecolor).Color
  1077. end)
  1078. end
  1079. end
  1080. for _, v in pairs(gui.Menu2.clothing.frame:GetChildren()) do
  1081. if v:IsA("ImageButton") then
  1082. v.MouseButton1Down:connect(function()
  1083. currentshirt = v.item.Value.shirt.ShirtTemplate
  1084. currentpants = v.item.Value.pants.PantsTemplate
  1085. Character.Shirt.ShirtTemplate = currentshirt
  1086. Character.Pants.PantsTemplate = currentpants
  1087. end)
  1088. end
  1089. end
  1090. lastshirt = Character.Shirt.ShirtTemplate
  1091. gui.Menu2.clothing.shirt.info.name.Changed:connect(function()
  1092. if tonumber(gui.Menu2.clothing.shirt.info.name.Text) then
  1093. keyinput:FireServer("getasset", "shirt", tonumber(gui.Menu2.clothing.shirt.info.name.Text))
  1094. elseif currentshirt == "" then
  1095. Character.Shirt.ShirtTemplate = lastshirt
  1096. else
  1097. Character.Shirt.ShirtTemplate = currentshirt
  1098. end
  1099. end)
  1100. keyinput.OnClientEvent:connect(function(key, ken2, ken3, ken4)
  1101. if key == "asset" then
  1102. if ken2 == "buyclothing" then
  1103. currentshirt = Character.Shirt.ShirtTemplate
  1104. currentpants = Character.Pants.PantsTemplate
  1105. end
  1106. if ken2 == "shirt" then
  1107. Character.Shirt.ShirtTemplate = ken3
  1108. keyinput:FireServer("changeshirt", Character.Shirt.ShirtTemplate)
  1109. elseif ken2 == "pant" then
  1110. Character.Pants.PantsTemplate = ken3
  1111. keyinput:FireServer("changepants", Character.Pants.PantsTemplate)
  1112. end
  1113. end
  1114. end)
  1115. lastpants = Character.Pants.PantsTemplate
  1116. gui.Menu2.clothing.pants.info.name.Changed:connect(function(valz)
  1117. if tonumber(gui.Menu2.clothing.pants.info.name.Text) then
  1118. keyinput:FireServer("getasset", "pant", tonumber(gui.Menu2.clothing.pants.info.name.Text))
  1119. elseif currentpants == "" then
  1120. Character.Pants.PantsTemplate = lastpants
  1121. else
  1122. Character.Pants.PantsTemplate = currentpants
  1123. end
  1124. end)
  1125. if Player:FindFirstChild("permclothing") then
  1126. gui.Menu2.clothing.buy.name.Text = "Wear"
  1127. end
  1128. gui.Menu2.clothing.buy.MouseButton1Down:connect(function()
  1129. if Player:FindFirstChild("permclothing") then
  1130. keyinput:FireServer("checkperm")
  1131. return
  1132. end
  1133. if tonumber(gui.Menu2.clothing.shirt.info.name.Text) then
  1134. keyinput:FireServer("changeshirt", Character.Shirt.ShirtTemplate)
  1135. else
  1136. gui.Menu2.clothing.pants.info.name.Text = 0
  1137. end
  1138. if tonumber(gui.Menu2.clothing.shirt.info.name.Text) then
  1139. keyinput:FireServer("changepants", Character.Pants.PantsTemplate)
  1140. else
  1141. gui.Menu2.clothing.shirt.info.name.Text = 0
  1142. end
  1143. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 196622642)
  1144. end)
  1145. for _, v in pairs(gui.Menu2.skin:GetChildren()) do
  1146. if v:IsA("ImageButton") then
  1147. v.Name = BrickColor.new(v.ImageColor3).Name
  1148. v.MouseButton1Down:connect(function()
  1149. currentskin = v.Name
  1150. for _, v in pairs(Character:GetChildren()) do
  1151. if v:IsA("MeshPart") or v:IsA("Part") then
  1152. v.BrickColor = BrickColor.new(currentskin)
  1153. end
  1154. end
  1155. end)
  1156. end
  1157. end
  1158. function equipmodeltobod(model)
  1159. for _, v in pairs(model:GetChildren()) do
  1160. if v:IsA("Part") or v:IsA("MeshPart") then
  1161. findpart = Character:FindFirstChild(v.Name)
  1162. if findpart and (findpart:IsA("Part") or findpart:IsA("MeshPart")) and findpart then
  1163. local newwel = Instance.new("Weld", findpart)
  1164. newwel.Part0 = findpart
  1165. newwel.Part1 = v
  1166. end
  1167. end
  1168. end
  1169. end
  1170. for _, v in pairs(gui.Menu2.hair.frame:GetChildren()) do
  1171. if v:IsA("ImageButton") then
  1172. v.MouseButton1Down:connect(function()
  1173. currenthair = v.item.Value.Name
  1174. if Character:FindFirstChild("hair") then
  1175. Character:FindFirstChild("hair"):remove()
  1176. end
  1177. local newhair = v.item.Value.hair:clone()
  1178. equipmodeltobod(newhair)
  1179. newhair.Parent = Character
  1180. for _, v in pairs(newhair:GetChildren()) do
  1181. if v.Name == "Hair" or v.Name == "hair" then
  1182. v.BrickColor = BrickColor.new(currenthaircolor)
  1183. end
  1184. end
  1185. end)
  1186. end
  1187. end
  1188. for _, v in pairs(gui.Menu2.hair.color:GetChildren()) do
  1189. if v:IsA("ImageButton") then
  1190. v.MouseButton1Down:connect(function()
  1191. currenthaircolor = v.Name
  1192. if Character:FindFirstChild("hair") then
  1193. newhair = Character:FindFirstChild("hair")
  1194. Character.Head.brows.Color3 = BrickColor.new(currenthaircolor).Color
  1195. for _, v in pairs(newhair:GetChildren()) do
  1196. if v.Name == "Hair" or v.Name == "hair" then
  1197. v.BrickColor = BrickColor.new(currenthaircolor)
  1198. end
  1199. end
  1200. end
  1201. end)
  1202. end
  1203. end
  1204. gui.terms.Visible = true
  1205. do
  1206. local terss = Instance.new("Sound")
  1207. terss.Parent = script
  1208. terss.SoundId = "rbxassetid://" .. 256887762
  1209. terss.Looped = true
  1210. terss:Play()
  1211. accepttemrs = false
  1212. canaccept = false
  1213. canaccept = true
  1214. gui.terms.accept.Text = "AGREE & CONTINUE"
  1215. gui.terms.accept.MouseButton1Down:connect(function()
  1216. if canaccept then
  1217. else
  1218. return
  1219. end
  1220. if accepttemrs then
  1221. return
  1222. end
  1223. terss:Stop()
  1224. accepttemrs = true
  1225. sound(gui, 138088421, 3)
  1226. blindeffect(4)
  1227. wait(0.5)
  1228. gui.terms.Visible = false
  1229. end)
  1230. repeat
  1231. wait()
  1232. UserInputService.MouseBehavior = Enum.MouseBehavior.Default
  1233. until gui.terms.Visible == false
  1234. terss:Stop()
  1235. local customusic = Instance.new("Sound")
  1236. customusic.Parent = script
  1237. customusic.SoundId = "rbxassetid://" .. 278866502
  1238. customusic.Looped = true
  1239. customusic:Play()
  1240. local customusic2 = Instance.new("Sound")
  1241. customusic2.Parent = script
  1242. customusic2.SoundId = "rbxassetid://" .. 278436188
  1243. customusic2.Looped = true
  1244. local customusic3 = Instance.new("Sound")
  1245. customusic3.Parent = script
  1246. customusic3.SoundId = "rbxassetid://" .. 891239053
  1247. customusic3.Looped = true
  1248. idlanim2 = Instance.new("Animation")
  1249. idlanim2.AnimationId = "rbxassetid://" .. 1374826353
  1250. idlanim2z = humanoid:LoadAnimation(idlanim2)
  1251. idlanim2z:Play()
  1252. flipdwonsz = Instance.new("Animation")
  1253. flipdwonsz.AnimationId = "rbxassetid://" .. 1374993115
  1254. flipdwonszxz = humanoid:LoadAnimation(flipdwonsz)
  1255. standstill = Instance.new("Animation")
  1256. standstill.AnimationId = "rbxassetid://" .. 1137175543
  1257. standstillz = humanoid:LoadAnimation(standstill)
  1258. activjus = Instance.new("Animation")
  1259. activjus.AnimationId = "rbxassetid://" .. 1372045909
  1260. activjusz = humanoid:LoadAnimation(activjus)
  1261. humanoid.AutoRotate = false
  1262. rootpart.CFrame = workspace.custocam.HumanoidRootPart.CFrame
  1263. rootpart.Anchored = true
  1264. wait()
  1265. Character.Parent = workspace
  1266. repeat
  1267. wait()
  1268. Character.Parent = workspace
  1269. until Character.Parent == workspace
  1270. customizgui = rs.cust:clone()
  1271. customizgui.Parent = Player.PlayerGui
  1272. customizgui.Adornee = rootpart
  1273. customizgui.Enabled = false
  1274. getscroll = rs.holdscroll:clone()
  1275. newmoto = Instance.new("Motor6D")
  1276. newmoto.Parent = getscroll
  1277. newmoto.Part0 = Character.UpperTorso
  1278. newmoto.Part1 = getscroll.rootpart
  1279. newmoto.C0 = CFrame.new(0, -1.1, -0.3)
  1280. getscroll.Parent = Character
  1281. gui.Menu2.Visible = true
  1282. gui.Menu2.closemenu.click.MouseButton1Down:connect(function()
  1283. aba = {
  1284. currentshirt,
  1285. currentpants,
  1286. currentface,
  1287. currenteyecolor,
  1288. currentmouth,
  1289. currenthair,
  1290. currentskin,
  1291. currenthaircolor,
  1292. currentbrow,
  1293. currentscar
  1294. }
  1295. keyinput:FireServer("publishnewcharacrer", aba)
  1296. gui.Menu2.clothing.Visible = false
  1297. gui.Menu2.face.Visible = false
  1298. gui.Menu2.hair.Visible = false
  1299. gui.Menu2.misc.Visible = false
  1300. gui.Menu2.misc2.Visible = false
  1301. gui.Menu2.closetab.Visible = false
  1302. gui.Menu2.skin.Visible = false
  1303. customizgui.Enabled = false
  1304. sound(rootpart, 484293505, 5)
  1305. preivewacc:ClearAllChildren()
  1306. activjusz:Play()
  1307. gui.Menu2.closemenu.Visible = false
  1308. wait(1.1)
  1309. newsub = rs.sub:clone()
  1310. newsub.CFrame = rootpart.CFrame
  1311. newsub.Parent = Character
  1312. game.Debris:AddItem(newsub, 2)
  1313. rootpart.CFrame = workspace.custocam.HumanoidRootPart.CFrame
  1314. sound(newsub, 189132954, 1)
  1315. wait(0.5)
  1316. guiscroll.Enabled = true
  1317. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1318. local propertyGoals = {
  1319. CFrame = workspace.custocam.Head.CFrame
  1320. }
  1321. local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1322. tween2:Play()
  1323. wait(0.8)
  1324. local propertyGoals = {
  1325. CFrame = rootpart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
  1326. }
  1327. local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1328. customusic2:Stop()
  1329. customusic:Play()
  1330. tween2:Play()
  1331. getscroll.Parent = Character
  1332. idlanim2z:Play()
  1333. idlanimz:Stop()
  1334. end)
  1335. firstelement = ""
  1336. secondelemnet = ""
  1337. thirdelemnet = ""
  1338. switch = 0
  1339. for _, v in pairs(gui.Menu4.main:GetChildren()) do
  1340. if v:IsA("ImageButton") and v:FindFirstChild("select") then
  1341. v.MouseButton1Down:connect(function()
  1342. if Player.tries.Value <= 0 then
  1343. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
  1344. sound(script, 138090596, 1)
  1345. return
  1346. end
  1347. sound(script, 154020879, 1)
  1348. if switch == 3 then
  1349. thirdelemnet = v.Name
  1350. v.select.Visible = true
  1351. switch = 0
  1352. keyinput:FireServer("switchelement", 3, thirdelemnet)
  1353. for _, ss in pairs(gui.Menu4.main:GetChildren()) do
  1354. if not (ss:IsA("ImageButton") and ss:FindFirstChild("select")) or ss.Name == firstelement or ss.Name == secondelemnet or ss.Name == thirdelemnet then
  1355. else
  1356. ss.select.Visible = false
  1357. end
  1358. end
  1359. return
  1360. end
  1361. if switch == 2 then
  1362. secondelemnet = v.Name
  1363. v.select.Visible = true
  1364. if Player:FindFirstChild("thirdelement") then
  1365. switch = 3
  1366. else
  1367. switch = 0
  1368. end
  1369. keyinput:FireServer("switchelement", 2, secondelemnet)
  1370. for _, ss in pairs(gui.Menu4.main:GetChildren()) do
  1371. if not (ss:IsA("ImageButton") and ss:FindFirstChild("select")) or ss.Name == firstelement or ss.Name == secondelemnet or ss.Name == thirdelemnet then
  1372. else
  1373. ss.select.Visible = false
  1374. end
  1375. end
  1376. return
  1377. end
  1378. firstelement = v.Name
  1379. v.select.Visible = true
  1380. keyinput:FireServer("switchelement", 1, firstelement)
  1381. switch = 2
  1382. for _, ss in pairs(gui.Menu4.main:GetChildren()) do
  1383. if not (ss:IsA("ImageButton") and ss:FindFirstChild("select")) or ss.Name == firstelement or ss.Name == secondelemnet or ss.Name == thirdelemnet then
  1384. else
  1385. ss.select.Visible = false
  1386. end
  1387. end
  1388. end)
  1389. end
  1390. end
  1391. gui.Menu4.main.KG1.spin.MouseButton1Down:connect(function()
  1392. sound(script, 154020879, 1)
  1393. if Player.tries.Value <= 0 then
  1394. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
  1395. return
  1396. end
  1397. keyinput:FireServer("respin", 1)
  1398. end)
  1399. gui.Menu4.main.KG2.spin.MouseButton1Down:connect(function()
  1400. sound(script, 154020879, 1)
  1401. if Player.tries.Value <= 0 then
  1402. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
  1403. return
  1404. end
  1405. keyinput:FireServer("respin", 2)
  1406. end)
  1407. gui.Menu4.main.KG3.spin.MouseButton1Down:connect(function()
  1408. sound(script, 154020879, 1)
  1409. if Player.tries.Value <= 0 then
  1410. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
  1411. return
  1412. end
  1413. keyinput:FireServer("respin", 3)
  1414. end)
  1415. gui.Menu4.main.KG4.spin.MouseButton1Down:connect(function()
  1416. if gui.Menu4.main.KG4.spin.name.Text == "MAX-RANK REQ" then
  1417. warning("NEED MAX-RANK")
  1418. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 226963112)
  1419. return
  1420. end
  1421. sound(script, 154020879, 1)
  1422. if Player.tries.Value <= 0 then
  1423. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 184356789)
  1424. return
  1425. end
  1426. keyinput:FireServer("respin", 4)
  1427. end)
  1428. gui.Menu4.closemenu.click.MouseButton1Down:connect(function()
  1429. sound(script, 154020879, 1)
  1430. gui.Menu4.Visible = false
  1431. gui.Menu2.clothing.Visible = false
  1432. gui.Menu2.face.Visible = false
  1433. gui.Menu2.hair.Visible = false
  1434. gui.Menu2.misc.Visible = false
  1435. gui.Menu2.skin.Visible = false
  1436. gui.Menu2.misc2.Visible = false
  1437. gui.Menu2.closetab.Visible = false
  1438. customizgui.Enabled = true
  1439. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1440. local propertyGoals = {
  1441. CFrame = workspace.custocam.cam2.CFrame
  1442. }
  1443. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1444. tween1:Play()
  1445. end)
  1446. gui.followmouse.access.Info.unlockrs.MouseButton1Down:connect(function()
  1447. gui.followmouse.access.Visible = false
  1448. game:GetService("MarketplaceService"):PromptProductPurchase(Player, currentbuy.Value.id.Value)
  1449. end)
  1450. gui.followmouse.access.Info.unlock.MouseButton1Down:connect(function()
  1451. gui.followmouse.access.Visible = false
  1452. keyinput:FireServer("buythisitem", currentbuy)
  1453. end)
  1454. gui.Menu2.closetab.click.MouseButton1Down:connect(function()
  1455. gui.Menu2.clothing.Visible = false
  1456. gui.Menu2.face.Visible = false
  1457. gui.Menu2.hair.Visible = false
  1458. gui.Menu2.misc.Visible = false
  1459. gui.Menu2.skin.Visible = false
  1460. gui.Menu2.misc2.Visible = false
  1461. gui.Menu2.closetab.Visible = false
  1462. preivewacc:ClearAllChildren()
  1463. gui.Menu4.Visible = false
  1464. customizgui.Enabled = true
  1465. gui.followmouse.access.Visible = false
  1466. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1467. local propertyGoals = {
  1468. CFrame = workspace.custocam.cam2.CFrame
  1469. }
  1470. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1471. tween1:Play()
  1472. end)
  1473. menuup = 0
  1474. menuright = 1
  1475. tabl1 = {
  1476. customizgui.Customize.elements,
  1477. customizgui.Customize.cloth,
  1478. customizgui.Customize.skin
  1479. }
  1480. tabl2 = {
  1481. customizgui.Customize.hair,
  1482. customizgui.Customize.face,
  1483. customizgui.Customize.misc
  1484. }
  1485. currentmou = tabl1[1]
  1486. function glowtext()
  1487. for _, v in pairs(tabl1) do
  1488. v.TextLabel.TextColor3 = BrickColor.White().Color
  1489. end
  1490. for _, v in pairs(tabl2) do
  1491. v.TextLabel.TextColor3 = BrickColor.White().Color
  1492. end
  1493. if currentmou then
  1494. currentmou.TextLabel.TextColor3 = BrickColor.new("Lime green").Color
  1495. end
  1496. end
  1497. glowtext()
  1498. UserInputService.InputBegan:connect(function(input, processed)
  1499. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  1500. if input.KeyCode ~= Enum.KeyCode.ButtonB or gui.Menu2.closetab.Visible then
  1501. elseif gui.Menu2.closemenu.Visible then
  1502. aba = {
  1503. currentshirt,
  1504. currentpants,
  1505. currentface,
  1506. currenteyecolor,
  1507. currentmouth,
  1508. currenthair,
  1509. currentskin,
  1510. currenthaircolor,
  1511. currentbrow,
  1512. currentscar
  1513. }
  1514. keyinput:FireServer("publishnewcharacrer", aba)
  1515. gui.Menu2.clothing.Visible = false
  1516. gui.Menu2.face.Visible = false
  1517. gui.Menu2.hair.Visible = false
  1518. gui.Menu2.misc.Visible = false
  1519. gui.Menu2.misc2.Visible = false
  1520. gui.Menu2.closetab.Visible = false
  1521. gui.Menu2.skin.Visible = false
  1522. customizgui.Enabled = false
  1523. sound(rootpart, 484293505, 5)
  1524. activjusz:Play()
  1525. gui.Menu2.closemenu.Visible = false
  1526. wait(1.1)
  1527. newsub = rs.sub:clone()
  1528. newsub.CFrame = rootpart.CFrame
  1529. newsub.Parent = Character
  1530. game.Debris:AddItem(newsub, 2)
  1531. rootpart.CFrame = workspace.custocam.HumanoidRootPart.CFrame
  1532. sound(newsub, 189132954, 1)
  1533. wait(0.5)
  1534. guiscroll.Enabled = true
  1535. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1536. local propertyGoals = {
  1537. CFrame = workspace.custocam.Head.CFrame
  1538. }
  1539. local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1540. tween2:Play()
  1541. wait(0.8)
  1542. local propertyGoals = {
  1543. CFrame = rootpart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
  1544. }
  1545. local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1546. customusic2:Stop()
  1547. customusic:Play()
  1548. tween2:Play()
  1549. getscroll.Parent = Character
  1550. idlanim2z:Play()
  1551. idlanimz:Stop()
  1552. end
  1553. if gui.Menu2.closemenu.Visible then
  1554. else
  1555. return
  1556. end
  1557. if input.KeyCode == Enum.KeyCode.DPadUp then
  1558. if customizgui.Enabled == false then
  1559. return
  1560. end
  1561. menuup = menuup - 1
  1562. if menuup > 3 then
  1563. menuup = 1
  1564. end
  1565. if 1 > menuup then
  1566. menuup = 3
  1567. end
  1568. if menuright == 1 then
  1569. currentmou = tabl1[menuup]
  1570. else
  1571. currentmou = tabl2[menuup]
  1572. end
  1573. glowtext()
  1574. end
  1575. if input.KeyCode == Enum.KeyCode.DPadDown then
  1576. if customizgui.Enabled == false then
  1577. return
  1578. end
  1579. menuup = menuup + 1
  1580. if menuup > 3 then
  1581. menuup = 1
  1582. end
  1583. if 1 > menuup then
  1584. menuup = 3
  1585. end
  1586. if menuright == 1 then
  1587. currentmou = tabl1[menuup]
  1588. else
  1589. currentmou = tabl2[menuup]
  1590. end
  1591. glowtext()
  1592. end
  1593. if input.KeyCode == Enum.KeyCode.DPadLeft then
  1594. if customizgui.Enabled == false then
  1595. return
  1596. end
  1597. menuright = 1
  1598. if menuright == 1 then
  1599. currentmou = tabl1[menuup]
  1600. else
  1601. currentmou = tabl2[menuup]
  1602. end
  1603. glowtext()
  1604. end
  1605. if input.KeyCode == Enum.KeyCode.DPadRight then
  1606. if customizgui.Enabled == false then
  1607. return
  1608. end
  1609. menuright = 2
  1610. if menuright == 1 then
  1611. currentmou = tabl1[menuup]
  1612. else
  1613. currentmou = tabl2[menuup]
  1614. end
  1615. glowtext()
  1616. end
  1617. if input.KeyCode == Enum.KeyCode.ButtonB and gui.Menu2.closetab.Visible then
  1618. gui.Menu2.clothing.Visible = false
  1619. gui.Menu2.face.Visible = false
  1620. gui.Menu2.hair.Visible = false
  1621. gui.Menu2.misc.Visible = false
  1622. gui.Menu2.skin.Visible = false
  1623. gui.Menu2.misc2.Visible = false
  1624. gui.Menu2.closetab.Visible = false
  1625. gui.Menu4.Visible = false
  1626. customizgui.Enabled = true
  1627. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1628. local propertyGoals = {
  1629. CFrame = workspace.custocam.cam2.CFrame
  1630. }
  1631. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1632. tween1:Play()
  1633. end
  1634. if input.KeyCode == Enum.KeyCode.ButtonA then
  1635. if customizgui.Enabled == false then
  1636. return
  1637. end
  1638. if currentmou == customizgui.Customize.elements then
  1639. customizgui.Enabled = false
  1640. gui.Menu4.Visible = true
  1641. gui.Menu2.closetab.Visible = true
  1642. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1643. local propertyGoals = {
  1644. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1645. }
  1646. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1647. tween1:Play()
  1648. end
  1649. if currentmou == customizgui.Customize.cloth then
  1650. customizgui.Enabled = false
  1651. gui.Menu2.clothing.Visible = true
  1652. gui.Menu2.closetab.Visible = true
  1653. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1654. local propertyGoals = {
  1655. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1656. }
  1657. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1658. tween1:Play()
  1659. end
  1660. if currentmou == customizgui.Customize.skin then
  1661. customizgui.Enabled = false
  1662. gui.Menu2.skin.Visible = true
  1663. gui.Menu2.closetab.Visible = true
  1664. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1665. local propertyGoals = {
  1666. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1667. }
  1668. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1669. tween1:Play()
  1670. end
  1671. if currentmou == customizgui.Customize.face then
  1672. customizgui.Enabled = false
  1673. gui.Menu2.face.Visible = true
  1674. gui.Menu2.closetab.Visible = true
  1675. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1676. local propertyGoals = {
  1677. CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
  1678. }
  1679. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1680. tween1:Play()
  1681. end
  1682. if currentmou == customizgui.Customize.hair then
  1683. customizgui.Enabled = false
  1684. gui.Menu2.hair.Visible = true
  1685. gui.Menu2.closetab.Visible = true
  1686. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1687. local propertyGoals = {
  1688. CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
  1689. }
  1690. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1691. tween1:Play()
  1692. end
  1693. if currentmou == customizgui.Customize.misc then
  1694. customizgui.Enabled = false
  1695. gui.Menu2.misc.Visible = true
  1696. gui.Menu2.misc2.Visible = true
  1697. gui.Menu2.closetab.Visible = true
  1698. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1699. local propertyGoals = {
  1700. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1701. }
  1702. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1703. tween1:Play()
  1704. end
  1705. end
  1706. end
  1707. end)
  1708. customizgui.Customize.elements.MouseButton1Down:connect(function()
  1709. customizgui.Enabled = false
  1710. gui.Menu4.Visible = true
  1711. gui.Menu2.closetab.Visible = true
  1712. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1713. local propertyGoals = {
  1714. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1715. }
  1716. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1717. tween1:Play()
  1718. end)
  1719. customizgui.Customize.cloth.MouseButton1Down:connect(function()
  1720. customizgui.Enabled = false
  1721. gui.Menu2.clothing.Visible = true
  1722. gui.Menu2.closetab.Visible = true
  1723. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1724. local propertyGoals = {
  1725. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1726. }
  1727. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1728. tween1:Play()
  1729. end)
  1730. customizgui.Customize.skin.MouseButton1Down:connect(function()
  1731. customizgui.Enabled = false
  1732. gui.Menu2.skin.Visible = true
  1733. gui.Menu2.closetab.Visible = true
  1734. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1735. local propertyGoals = {
  1736. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1737. }
  1738. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1739. tween1:Play()
  1740. end)
  1741. customizgui.Customize.face.MouseButton1Down:connect(function()
  1742. customizgui.Enabled = false
  1743. gui.Menu2.face.Visible = true
  1744. gui.Menu2.closetab.Visible = true
  1745. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1746. local propertyGoals = {
  1747. CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
  1748. }
  1749. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1750. tween1:Play()
  1751. end)
  1752. customizgui.Customize.hair.MouseButton1Down:connect(function()
  1753. customizgui.Enabled = false
  1754. gui.Menu2.hair.Visible = true
  1755. gui.Menu2.closetab.Visible = true
  1756. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1757. local propertyGoals = {
  1758. CFrame = rootpart.CFrame * CFrame.new(0, 2, -4) * CFrame.Angles(0, math.pi, 0)
  1759. }
  1760. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1761. tween1:Play()
  1762. end)
  1763. customizgui.Customize.misc.MouseButton1Down:connect(function()
  1764. customizgui.Enabled = false
  1765. gui.Menu2.misc.Visible = true
  1766. gui.Menu2.misc2.Visible = true
  1767. gui.Menu2.closetab.Visible = true
  1768. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1769. local propertyGoals = {
  1770. CFrame = rootpart.CFrame * CFrame.new(0, 0, -8) * CFrame.Angles(0, math.pi, 0)
  1771. }
  1772. local tween1 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1773. tween1:Play()
  1774. end)
  1775. guiscroll = getscroll.SurfaceGui:clone()
  1776. guiscroll.Parent = Player.PlayerGui
  1777. guiscroll.Adornee = getscroll.gui
  1778. if game.PlaceId == 1447439317 then
  1779. elseif Player:FindFirstChild("access") then
  1780. guiscroll.main.play.TextLabel.Visible = false
  1781. guiscroll.main.play.ImageColor3 = guiscroll.main.customize.ImageColor3
  1782. end
  1783. guiscroll.main.story.click.MouseButton1Down:connect(function()
  1784. keyinput:FireServer("story")
  1785. end)
  1786. newrootpartpos = nil
  1787. guiscroll.main.customize.click.MouseButton1Down:connect(function()
  1788. customusic2:Play()
  1789. customusic:Stop()
  1790. guiscroll.Enabled = false
  1791. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1792. local propertyGoals = {
  1793. CFrame = workspace.custocam.Head.CFrame
  1794. }
  1795. local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1796. tween2:Play()
  1797. wait(0.5)
  1798. local propertyGoals = {
  1799. CFrame = workspace.custocam.cam2.CFrame
  1800. }
  1801. local tween2 = TweenService:Create(workspace.Camera, tweenInfo, propertyGoals)
  1802. tween2:Play()
  1803. wait(1)
  1804. local propertyGoals = {
  1805. CFrame = workspace.custocam.cfr2.CFrame
  1806. }
  1807. local tween2 = TweenService:Create(rootpart, tweenInfo, propertyGoals)
  1808. tween2:Play()
  1809. wait(0.7)
  1810. getscroll.Parent = script
  1811. idlanim2z:Stop()
  1812. flipdwonszxz:Play()
  1813. wait(0.5)
  1814. standstillz:play()
  1815. flipdwonszxz:Stop()
  1816. idlanimz:Play()
  1817. customizgui.Enabled = true
  1818. gui.Menu2.closemenu.Visible = true
  1819. spinzz = 0
  1820. delay(0.3, function()
  1821. newrootpartpos = rootpart.CFrame
  1822. end)
  1823. end)
  1824. guiscroll.main.play.click.MouseButton1Down:connect(function()
  1825. getcusto.Value = false
  1826. keyinput:FireServer("respawn")
  1827. end)
  1828. local tweenInfo333 = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 0, false, 0)
  1829. local propertyGoals333 = {
  1830. CFrame = workspace.custocam.HumanoidRootPart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
  1831. }
  1832. local tween3333 = TweenService:Create(workspace.Camera, tweenInfo333, propertyGoals333)
  1833. workspace.Camera.CameraType = "Scriptable"
  1834. workspace.Camera.CFrame = workspace.custocam.Head.CFrame
  1835. wait(5)
  1836. blindeffect(4)
  1837. wait(0.5)
  1838. finish = rootpart.CFrame * CFrame.Angles(-0.7, 0, 0) * CFrame.new(0, 2, 0.2)
  1839. start = workspace.Camera.CFrame
  1840. workspace.Camera.CFrame = finish
  1841. idlanimz:Stop()
  1842. turnleft = false
  1843. turnright = false
  1844. mouse.KeyDown:connect(function(key)
  1845. if key == "a" then
  1846. turnleft = true
  1847. end
  1848. if key == "d" then
  1849. turnright = true
  1850. end
  1851. end)
  1852. mouse.KeyUp:connect(function(key)
  1853. if key == "a" then
  1854. turnleft = false
  1855. end
  1856. if key == "d" then
  1857. turnright = false
  1858. end
  1859. end)
  1860. spinzz = 0
  1861. keyinput:FireServer("updatetext")
  1862. while incusto do
  1863. renderstepped:wait()
  1864. rootpart.Anchored = true
  1865. if gui.Menu2.closemenu.Visible then
  1866. if turnleft then
  1867. spinzz = spinzz - 0.05
  1868. end
  1869. if turnright then
  1870. spinzz = spinzz + 0.05
  1871. end
  1872. if newrootpartpos then
  1873. rootpart.CFrame = newrootpartpos * CFrame.Angles(0, spinzz, 0)
  1874. end
  1875. end
  1876. end
  1877. end
  1878. end
  1879. Player.PlayerScripts.CameraScript.Disabled = false
  1880. gui:WaitForChild("tutorial")
  1881. if Player:FindFirstChild("dontshowtut") then
  1882. else
  1883. azb = Instance.new("StringValue", Player)
  1884. azb.Name = "dontshowtut"
  1885. gui.tutorial.Visible = true
  1886. end
  1887. delay(0.5, function()
  1888. gui.tutorial.closetab.click.MouseButton1Down:connect(function()
  1889. gui.tutorial.Visible = false
  1890. end)
  1891. gui.Menu3.controls.MouseButton1Down:connect(function()
  1892. gui.tutorial.Visible = true
  1893. end)
  1894. end)
  1895. mouse.KeyDown:connect(function(kezz)
  1896. kezz = string.lower(kezz)
  1897. if kezz == "j" then
  1898. if gui.tutorial.Visible then
  1899. gui.tutorial.Visible = false
  1900. return
  1901. end
  1902. gui.tutorial.Visible = true
  1903. end
  1904. end)
  1905. stickgyro = false
  1906. gyrfly = Instance.new("BodyGyro")
  1907. gyrfly.Parent = rootpart
  1908. gyrfly.D = 1000
  1909. gyrfly.P = 600
  1910. b5 = Instance.new("BodyVelocity")
  1911. b5.Parent = rootpart
  1912. b5.maxForce = Vector3.new(0, 0, 0)
  1913. b5.velocity = gyrfly.cframe.lookVector * 0
  1914. gyrfly.P = 2500
  1915. bp = Instance.new("BodyPosition")
  1916. bp.Parent = rootpart
  1917. bp.maxForce = Vector3.new(0, 0, 0)
  1918. bp.position = rootpart.CFrame.p
  1919. bp.P = 60000
  1920. hascontroller = false
  1921. UserInputService.GamepadConnected:connect(function(gamepad)
  1922. hascontroller = true
  1923. end)
  1924. UserInputService.GamepadDisconnected:connect(function(gamepad)
  1925. hascontroller = false
  1926. end)
  1927. if game:GetService("UserInputService").GamepadEnabled then
  1928. hascontroller = true
  1929. end
  1930. function mousehit()
  1931. if hascontroller then
  1932. cfr = mouse.hit
  1933. else
  1934. cfr = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
  1935. end
  1936. return cfr
  1937. end
  1938. theme = Instance.new("Sound")
  1939. theme.Parent = script
  1940. theme.SoundId = "rbxassetid://138141118"
  1941. theme.Looped = true
  1942. theme.Volume = 0.1
  1943. theme:Play()
  1944. punczzhL = Instance.new("Sound")
  1945. punczzhL.Parent = script
  1946. punczzhL.SoundId = "rbxassetid://1112042117"
  1947. punczzhL.Volume = 0.3
  1948. inmainpower = false
  1949. w = 0
  1950. a = 0
  1951. s = 0
  1952. d = 0
  1953. local MouseKeyboard = function(InputKey)
  1954. if InputKey.UserInputType == Enum.UserInputType.Keyboard then
  1955. keyinput:FireServer(InputKey.KeyCode.Name)
  1956. end
  1957. end
  1958. local MouseKeyboard2 = function(InputKey)
  1959. if InputKey.UserInputType == Enum.UserInputType.Keyboard then
  1960. keyinput:FireServer(InputKey.KeyCode.Name .. "end")
  1961. end
  1962. end
  1963. UserInputService.InputBegan:connect(MouseKeyboard)
  1964. UserInputService.InputEnded:connect(MouseKeyboard2)
  1965. origcombattab = {
  1966. 1066976150,
  1967. 1447706391,
  1968. 1447677652,
  1969. 1067018747,
  1970. 1447734654,
  1971. 1066993762,
  1972. 1447687045,
  1973. 1447698846,
  1974. 1067005694
  1975. }
  1976. origstrongcombattab = {
  1977. 1447946585,
  1978. 1447698846,
  1979. 1447897548
  1980. }
  1981. origcombattab2 = origcombattab
  1982. strongcombattab = origstrongcombattab
  1983. combatanim = Instance.new("Animation")
  1984. combatanim.AnimationId = "rbxassetid://"
  1985. combatanimz = humanoid:LoadAnimation(combatanim)
  1986. asidestep = Instance.new("Animation")
  1987. asidestep.AnimationId = "rbxassetid://" .. 1372515515
  1988. asidestepz = humanoid:LoadAnimation(asidestep)
  1989. dsidestep = Instance.new("Animation")
  1990. dsidestep.AnimationId = "rbxassetid://" .. 1372516317
  1991. dsidestepz = humanoid:LoadAnimation(dsidestep)
  1992. wstep = Instance.new("Animation")
  1993. wstep.AnimationId = "rbxassetid://" .. 1372557331
  1994. wstepz = humanoid:LoadAnimation(wstep)
  1995. landstep = Instance.new("Animation")
  1996. landstep.AnimationId = "rbxassetid://" .. 1372577992
  1997. landstepz = humanoid:LoadAnimation(landstep)
  1998. ssidestep = Instance.new("Animation")
  1999. ssidestep.AnimationId = "rbxassetid://" .. 1590228803
  2000. ssidestepz = humanoid:LoadAnimation(ssidestep)
  2001. function closestplr4(rp2)
  2002. addlength = 0
  2003. sword = Character:FindFirstChild("sword")
  2004. if sword then
  2005. addedlength = sword:GetModelSize()
  2006. addlength = addedlength.Y / 2
  2007. end
  2008. local closestDist2 = 10 + addlength
  2009. print(closestDist2)
  2010. local closestPlayer2
  2011. for index, playerz in ipairs(workspace:GetChildren()) do
  2012. if playerz.Name == rp2.Name then
  2013. elseif not (playerz:IsA("Model") and playerz:FindFirstChild("HumanoidRootPart") and playerz:FindFirstChild("Humanoid") and playerz:FindFirstChild("combat") and closestDist2 > (playerz.HumanoidRootPart.Position - rp2.HumanoidRootPart.Position).magnitude and math.acos((playerz.HumanoidRootPart.CFrame.p - rp2.HumanoidRootPart.Position).unit:Dot(rp2.HumanoidRootPart.CFrame.lookVector)) <= math.pi / 3) or playerz.combat.combo.Value >= 1 then
  2014. else
  2015. closestPlayer2 = playerz.HumanoidRootPart
  2016. closestDist2 = (playerz.HumanoidRootPart.Position - rp2.HumanoidRootPart.Position).magnitude
  2017. end
  2018. end
  2019. doubltal2 = {closestDist2, closestPlayer2}
  2020. return doubltal2
  2021. end
  2022. Character:WaitForChild("combat")
  2023. wait(1)
  2024. disableplr = false
  2025. hittabl = {
  2026. 1067048642,
  2027. 1067051864,
  2028. 1067054607,
  2029. 1067058857
  2030. }
  2031. hiteffect = Instance.new("Animation")
  2032. hiteffect.AnimationId = "rbxassetid://"
  2033. hiteffectz = humanoid:LoadAnimation(hiteffect)
  2034. dedeffec = Instance.new("Animation")
  2035. dedeffec.AnimationId = "rbxassetid://1170554956"
  2036. dedeffecz = humanoid:LoadAnimation(dedeffec)
  2037. oldfakehealth = combatfolder.fakehealth.Value
  2038. slowcharacterdown = false
  2039. changcharc = false
  2040. combatfolder.fakehealth.Changed:connect(function(aaaa)
  2041. if changcharc then
  2042. return
  2043. end
  2044. if combatfolder.fakehealth.Value < oldfakehealth then
  2045. changcharc = true
  2046. slowcharacterdown = true
  2047. wait(0.8)
  2048. slowcharacterdown = false
  2049. changcharc = false
  2050. end
  2051. oldfakehealth = combatfolder.fakehealth.Value
  2052. end)
  2053. combatfolder.down.Changed:connect(function(aa)
  2054. end)
  2055. puchback = false
  2056. combatfolder.addhit.Changed:connect(function(aaa)
  2057. if aaa == 0 then
  2058. else
  2059. getnum = math.random(1, #hittabl)
  2060. hiteffect.AnimationId = "rbxassetid://" .. hittabl[getnum]
  2061. hiteffectz = humanoid:LoadAnimation(hiteffect)
  2062. hiteffectz:Play()
  2063. if combatfolder.getpart.Value then
  2064. if inblock then
  2065. keyinput:FireServer("bodyflicker")
  2066. else
  2067. cfr = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), combatfolder.getpart.Value.Position * Vector3.new(1, 0, 1)) * CFrame.new(0, 0, 2) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  2068. end
  2069. end
  2070. rootpart.Velocity = cfr.lookVector * -90
  2071. end
  2072. end)
  2073. combatfolder.hit.Changed:connect(function(aaa)
  2074. if aaa then
  2075. disableplr = true
  2076. humanoid.AutoRotate = false
  2077. else
  2078. humanoid.AutoRotate = true
  2079. disableplr = false
  2080. gui.counter.Visible = false
  2081. keyinput:FireServer("counter", 2)
  2082. end
  2083. end)
  2084. combatfolder.counter.Changed:connect(function(aa)
  2085. if aa then
  2086. counteranim:Play()
  2087. aaa = closestplr4(Character)
  2088. if aaa[2] then
  2089. keyinput:FireServer("combat", aaa[2].Parent)
  2090. end
  2091. end
  2092. end)
  2093. disabled = false
  2094. combatfolder.combo.Changed:connect(function(aaa)
  2095. if aaa == 0 then
  2096. disabled = false
  2097. disableplr = false
  2098. bp.position = rootpart.CFrame.p
  2099. bp.maxForce = Vector3.new(0, 0, 0)
  2100. humanoid.AutoRotate = true
  2101. else
  2102. disabled = true
  2103. bp.maxForce = Vector3.new(1 / 0, 1 / 0, 1 / 0)
  2104. bp.position = rootpart.CFrame.p
  2105. disableplr = true
  2106. end
  2107. end)
  2108. inthefunction = false
  2109. pointo = script.pointto:clone()
  2110. pointo.Parent = Character
  2111. Player.target.Changed:connect(function()
  2112. if Player.target.Value then
  2113. inthefunction = true
  2114. pointo.Parent = rootpart
  2115. repeat
  2116. renderstepped:wait()
  2117. if Player.target.Value then
  2118. if Player.target.Value.Parent then
  2119. dsdsd = Player.target.Value:FindFirstChild("HumanoidRootPart")
  2120. if dsdsd then
  2121. maggg = (rootpart.CFrame.p - dsdsd.CFrame.p).magnitude
  2122. pointo.Parent = rootpart
  2123. castRay = Ray.new(Character.HumanoidRootPart.Position, Vector3.new(0, -999, 0))
  2124. hitff, at = game.Workspace:FindPartOnRay(castRay, Character)
  2125. if hitff then
  2126. pointo.CFrame = CFrame.new(Character.HumanoidRootPart.Position * Vector3.new(1, 0, 1), dsdsd.CFrame.p * Vector3.new(1, 0, 1)) * CFrame.Angles(0, math.pi, 0) * CFrame.new(0, 0, 1) + Vector3.new(0, at.Y, 0)
  2127. else
  2128. pointo.CFrame = CFrame.new(Character.HumanoidRootPart.Position * Vector3.new(1, 0, 1), dsdsd.CFrame.p * Vector3.new(1, 0, 1)) * CFrame.Angles(0, math.pi, 0) * CFrame.new(0, 0, 1) + Vector3.new(0, rootpart.Y - 2.1, 0)
  2129. end
  2130. if maggg >= 250 then
  2131. inthefunction = false
  2132. end
  2133. end
  2134. else
  2135. inthefunction = false
  2136. end
  2137. else
  2138. inthefunction = false
  2139. end
  2140. until inthefunction == false
  2141. pointo.Parent = script
  2142. keyinput:FireServer("losetarget")
  2143. end
  2144. end)
  2145. doanim = Instance.new("Animation")
  2146. doanim.AnimationId = "rbxassetid://"
  2147. doanimz = humanoid:LoadAnimation(doanim)
  2148. combatfolder.cconfig.pos.Changed:connect(function(aaa)
  2149. bp.position = combatfolder.cconfig.pos.Value
  2150. end)
  2151. combatfolder.cconfig.anim.Changed:connect(function(aaa)
  2152. doanimz:Stop()
  2153. doanim.AnimationId = "rbxassetid://" .. aaa
  2154. doanimz = humanoid:LoadAnimation(doanim)
  2155. doanimz:Play()
  2156. end)
  2157. slide = Instance.new("Animation")
  2158. slide.AnimationId = "rbxassetid://1178365931"
  2159. slidez = humanoid:LoadAnimation(slide)
  2160. sliding = false
  2161. punch = 0
  2162. enabled = false
  2163. modecam = false
  2164. anewcombo = ""
  2165. slowdownturn = false
  2166. docombo = false
  2167. slowdowncharacter = false
  2168. pushcharc = false
  2169. pushcharc2 = false
  2170. currentselect = 0
  2171. function locategui()
  2172. for _, v in pairs(gui.Menu3:GetChildren()) do
  2173. if v:IsA("ImageButton") and v:FindFirstChild("num") then
  2174. v.num.TextColor3 = BrickColor.White().Color
  2175. if v.Name == "key" .. currentselect then
  2176. v.num.TextColor3 = BrickColor.new("Lime green").Color
  2177. end
  2178. end
  2179. end
  2180. bbv = gui.Menu3:FindFirstChild("key" .. currentselect)
  2181. if bbv then
  2182. findguiz = bbv:FindFirstChild("cooldown")
  2183. if findguiz and findguiz.Visible then
  2184. currentselect = 0
  2185. locategui()
  2186. end
  2187. end
  2188. end
  2189. charge = false
  2190. charge2 = false
  2191. grapple = false
  2192. grap = nil
  2193. fakepart = nil
  2194. launchplr = false
  2195. grapplegun = nil
  2196. function equipmodeltobod(model)
  2197. for _, v in pairs(model:GetChildren()) do
  2198. if v:IsA("Part") or v:IsA("MeshPart") then
  2199. findpart = Character:FindFirstChild(v.Name)
  2200. if findpart and (findpart:IsA("Part") or findpart:IsA("MeshPart")) and findpart then
  2201. local newwel = Instance.new("Weld", findpart)
  2202. newwel.Part0 = findpart
  2203. newwel.Part1 = v
  2204. end
  2205. end
  2206. end
  2207. end
  2208. getofgrapple = false
  2209. currentselected = 0
  2210. function updateanim(speed)
  2211. if canautorotate then
  2212. walkanimanim:Stop()
  2213. runanimanim:Stop()
  2214. flymovanim:Stop()
  2215. flymov2anim:Stop()
  2216. chakrarunanim:Stop()
  2217. return
  2218. end
  2219. if wallclimb then
  2220. if w == 1 or s == 1 then
  2221. if chakrarun then
  2222. if chakrarunanim.IsPlaying then
  2223. else
  2224. chakrarunanim:Play()
  2225. end
  2226. walkanimanim:Stop()
  2227. flymovanim:Stop()
  2228. flymov2anim:Stop()
  2229. runanimanim:Stop()
  2230. else
  2231. if runanimanim.IsPlaying then
  2232. else
  2233. runanimanim:Play()
  2234. end
  2235. walkanimanim:Stop()
  2236. flymovanim:Stop()
  2237. flymov2anim:Stop()
  2238. chakrarunanim:Stop()
  2239. end
  2240. return
  2241. end
  2242. walkanimanim:Stop()
  2243. runanimanim:Stop()
  2244. flymovanim:Stop()
  2245. flymov2anim:Stop()
  2246. chakrarunanim:Stop()
  2247. return
  2248. end
  2249. if speed == nil then
  2250. speed = (rootpart.Velocity - Vector3.new(0, rootpart.Velocity.y, 0)).magnitude
  2251. end
  2252. if inmainpower then
  2253. if goingup then
  2254. goinupzanim:Play()
  2255. walkanimanim:Stop()
  2256. runanimanim:Stop()
  2257. flymovanim:Stop()
  2258. flymov2anim:Stop()
  2259. return
  2260. else
  2261. goinupzanim:Stop()
  2262. end
  2263. if goingdown then
  2264. goindzanim:Play()
  2265. walkanimanim:Stop()
  2266. runanimanim:Stop()
  2267. flymovanim:Stop()
  2268. flymov2anim:Stop()
  2269. return
  2270. else
  2271. goindzanim:Stop()
  2272. end
  2273. end
  2274. if speed > 10 then
  2275. landanims:Stop()
  2276. if inmainpower then
  2277. if run then
  2278. flymovanim:Stop()
  2279. if flymov2anim.IsPlaying then
  2280. else
  2281. flymov2anim:Play()
  2282. end
  2283. else
  2284. flymov2anim:Stop()
  2285. if flymovanim.IsPlaying then
  2286. else
  2287. flymovanim:Play()
  2288. end
  2289. end
  2290. elseif chakrarun then
  2291. walkanimanim:Stop()
  2292. runanimanim:Stop()
  2293. if chakrarunanim.IsPlaying then
  2294. else
  2295. chakrarunanim:Play()
  2296. end
  2297. elseif run then
  2298. walkanimanim:Stop()
  2299. chakrarunanim:Stop()
  2300. if runanimanim.IsPlaying then
  2301. else
  2302. runanimanim:Play()
  2303. end
  2304. else
  2305. chakrarunanim:Stop()
  2306. if walkanimanim.IsPlaying then
  2307. else
  2308. walkanimanim:Play()
  2309. end
  2310. runanimanim:Stop()
  2311. end
  2312. else
  2313. walkanimanim:Stop()
  2314. runanimanim:Stop()
  2315. flymovanim:Stop()
  2316. flymov2anim:Stop()
  2317. chakrarunanim:Stop()
  2318. end
  2319. end
  2320. inblock = false
  2321. blockidl = Instance.new("Animation")
  2322. blockidl.AnimationId = "rbxassetid://1389359506"
  2323. blockidlz = humanoid:LoadAnimation(blockidl)
  2324. forestgamemode = workspace:FindFirstChild("forest")
  2325. fmode = false
  2326. if forestgamemode then
  2327. fmode = true
  2328. Player.Chatted:connect(function(msg)
  2329. if Player.Neutral then
  2330. elseif string.lower(string.sub(msg, 1, 7)) == "invite " then
  2331. eee = game.Players:GetChildren()
  2332. addded = 0
  2333. for _, v in pairs(eee) do
  2334. if v.Neutral then
  2335. elseif v.TeamColor == Player.TeamColor then
  2336. addded = addded + 1
  2337. end
  2338. end
  2339. if addded >= 4 then
  2340. warning("SQUAD IS FULL")
  2341. return
  2342. end
  2343. for i = 1, #eee do
  2344. if string.find(string.lower(eee[i].Name), string.sub(string.lower(string.sub(msg, 8, 99999)), 0)) == 1 then
  2345. print(eee[i].Name)
  2346. invit = eee[i]
  2347. if invit.invite.inv.Value then
  2348. warning("Can't Invite player.")
  2349. return
  2350. end
  2351. if invit.Neutral then
  2352. else
  2353. warning("Player is already in squad.")
  2354. return
  2355. end
  2356. if invit == Player then
  2357. break
  2358. end
  2359. warning("Invited " .. invit.Name .. " to Squad")
  2360. effectz:FireServer("invite", invit.Character)
  2361. break
  2362. end
  2363. end
  2364. end
  2365. end)
  2366. end
  2367. delay(1, function()
  2368. menu = gui:WaitForChild("menu")
  2369. gui:WaitForChild("followmouse")
  2370. wait(0.6)
  2371. if fmode then
  2372. do
  2373. local teams = game.Teams
  2374. choosen = false
  2375. Player.invite.inv.Changed:connect(function(aa)
  2376. if aa then
  2377. gui.invite.Visible = true
  2378. gui.invite.info.Text = Player.invite.plr.Value.Name .. " invited you to their Organization"
  2379. else
  2380. gui.invite.Visible = false
  2381. end
  2382. end)
  2383. gui.invite.no.MouseButton1Down:connect(function()
  2384. gui.invite.Visible = false
  2385. effectz:FireServer("decline")
  2386. end)
  2387. gui.invite.yes.MouseButton1Down:connect(function()
  2388. gui.invite.Visible = false
  2389. effectz:FireServer("accept")
  2390. end)
  2391. gui.Menu3.logo.Visible = false
  2392. gui.Menu3.clickparty.Visible = true
  2393. keyinput.OnClientEvent:connect(function(key, a, b, c, d, e, f, g)
  2394. if key == "decal" then
  2395. gui.club.logopre.chang.Image = a
  2396. end
  2397. if key == "nam" then
  2398. gui.club.name.info.Text = a
  2399. end
  2400. end)
  2401. gui.club.confirm.MouseButton1Down:connect(function()
  2402. if currentcolor == "" then
  2403. warning("Please Complete Information!")
  2404. return
  2405. end
  2406. for _, s in pairs(teams:GetChildren()) do
  2407. if s:IsA("Team") and s.TeamColor.Name == currentcolor then
  2408. currentcolor = ""
  2409. warning("Team Color Already In Use!")
  2410. gui.club.none.ImageColor3 = BrickColor.White().Color
  2411. return
  2412. end
  2413. end
  2414. if gui.club.name.info.Text == "Enter Club Name" then
  2415. gui.club.name.info.Text = Player.Name .. "'s Club"
  2416. end
  2417. gui.club.Visible = false
  2418. effectz:FireServer("createclub", gui.club.name.info.Text, currentcolor, gui.club.logopre.chang.Image)
  2419. choosen = true
  2420. end)
  2421. currentcolor = ""
  2422. for _, v in pairs(gui.club.color:GetChildren()) do
  2423. if v:IsA("ImageButton") then
  2424. v.MouseButton1Down:connect(function()
  2425. for _, s in pairs(teams:GetChildren()) do
  2426. if s:IsA("Team") and s.TeamColor.Name == v.Name then
  2427. if Player.currentteam.Value then
  2428. if Player.currentteam.Value.TeamColor.Name == v.Name then
  2429. currentcolor = v.Name
  2430. gui.club.none.ImageColor3 = v.BackgroundColor3
  2431. return
  2432. else
  2433. warning("Team Color Already In Use!")
  2434. return
  2435. end
  2436. end
  2437. currentcolor = ""
  2438. warning("Team Color Already In Use!")
  2439. gui.club.none.ImageColor3 = BrickColor.White().Color
  2440. return
  2441. end
  2442. end
  2443. currentcolor = v.Name
  2444. gui.club.none.ImageColor3 = v.BackgroundColor3
  2445. end)
  2446. end
  2447. end
  2448. gui.club.name.info.Changed:connect(function()
  2449. end)
  2450. gui.club.logo.info.Changed:connect(function()
  2451. if tonumber(gui.club.logo.info.Text) then
  2452. keyinput:FireServer("decal", gui.club.logo.info.Text)
  2453. end
  2454. end)
  2455. gui.Menu3.clickparty.MouseButton1Down:connect(function()
  2456. if gui.club.Visible then
  2457. gui.club.Visible = false
  2458. return
  2459. end
  2460. gui.club.Visible = true
  2461. end)
  2462. gui.club.exit.click.MouseButton1Down:connect(function()
  2463. gui.club.Visible = false
  2464. end)
  2465. mouse.KeyDown:connect(function(key)
  2466. key = string.lower(key)
  2467. if key == "k" then
  2468. if gui.club.Visible then
  2469. gui.club.Visible = false
  2470. return
  2471. end
  2472. gui.club.Visible = true
  2473. end
  2474. end)
  2475. end
  2476. end
  2477. menu.Changed:connect(function()
  2478. if menu.Visible == false then
  2479. gui.followmouse.Equip1.Visible = false
  2480. gui.followmouse.Equip2.Visible = false
  2481. gui.followmouse.Purchase.Visible = false
  2482. gui.followmouse.kg.Visible = false
  2483. wait()
  2484. workspace.Camera.CFrame = Character.Head.CFrame * CFrame.new(0, 0, 15)
  2485. end
  2486. end)
  2487. currentjutsu = ""
  2488. currentwep = ""
  2489. currentunlock = ""
  2490. gui.menu.closetab.click.MouseButton1Down:connect(function()
  2491. if inmenu then
  2492. inmenu = false
  2493. gui.menu.Visible = false
  2494. keyinput:FireServer("mouselock", true)
  2495. end
  2496. end)
  2497. gui.followmouse.Purchase.Info.unlock.MouseButton1Down:connect(function()
  2498. keyinput:FireServer("unlockpower", currentunlock)
  2499. sound(script, 154020823, 1)
  2500. gui.followmouse.Equip1.Visible = false
  2501. gui.followmouse.Equip2.Visible = false
  2502. gui.followmouse.Purchase.Visible = false
  2503. gui.followmouse.kg.Visible = false
  2504. end)
  2505. gui.followmouse.Purchase.Info.mons.MouseButton1Down:connect(function()
  2506. keyinput:FireServer("buysub", changesub)
  2507. sound(script, 154020823, 1)
  2508. gui.followmouse.Equip1.Visible = false
  2509. gui.followmouse.Equip2.Visible = false
  2510. gui.followmouse.Purchase.Visible = false
  2511. gui.followmouse.kg.Visible = false
  2512. end)
  2513. gui.followmouse.Purchase.Info.rs.MouseButton1Down:connect(function()
  2514. sound(script, 154020823, 1)
  2515. gui.followmouse.Equip1.Visible = false
  2516. gui.followmouse.Equip2.Visible = false
  2517. gui.followmouse.Purchase.Visible = false
  2518. gui.followmouse.kg.Visible = false
  2519. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 235174326)
  2520. end)
  2521. for _, v in pairs(gui.followmouse.Equip2:GetChildren()) do
  2522. if v:IsA("TextButton") then
  2523. v.MouseButton1Down:connect(function()
  2524. gui.followmouse.Equip1.Visible = false
  2525. keyinput:FireServer("equipwep", v.Name, currentwep)
  2526. end)
  2527. end
  2528. end
  2529. currentkgequip = ""
  2530. for _, v in pairs(gui.followmouse.Equip1:GetChildren()) do
  2531. if v:IsA("TextButton") then
  2532. v.MouseButton1Down:connect(function()
  2533. gui.followmouse.Equip1.Visible = false
  2534. if currentjutsu == "kg" then
  2535. keyinput:FireServer("equippowerz", "kg", currentkgequip, v.Name)
  2536. else
  2537. keyinput:FireServer("equippowerz", v.Name, currentjutsu)
  2538. end
  2539. end)
  2540. end
  2541. end
  2542. for _, v in pairs(menu.Tai:GetChildren()) do
  2543. if v:IsA("ImageButton") then
  2544. v.MouseButton1Down:connect(function()
  2545. sound(script, 154020879, 1)
  2546. gui.followmouse.Equip1.Visible = false
  2547. gui.followmouse.Equip2.Visible = false
  2548. gui.followmouse.Purchase.Visible = false
  2549. gui.followmouse.kg.Visible = false
  2550. if v.lock.Visible and v.lock.Image == "rbxassetid://1519333418" then
  2551. desc = v:FindFirstChild("desc")
  2552. if desc then
  2553. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2554. gui.followmouse.Equip1.Visible = false
  2555. gui.followmouse.Equip2.Visible = false
  2556. gui.followmouse.Purchase.Visible = true
  2557. gui.followmouse.kg.Visible = false
  2558. gui.followmouse.Purchase.Info.Stat.Text = "Taijutsu: " .. desc.stat.Value
  2559. gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
  2560. gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
  2561. gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
  2562. gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
  2563. gui.followmouse.Purchase.Info.img.Image = v.Image
  2564. currentunlock = v
  2565. end
  2566. end
  2567. end)
  2568. end
  2569. end
  2570. gui.followmouse.Equip1.Changed:connect(function()
  2571. gui.followmouse.Equip1.Info.Visible = true
  2572. if gui.followmouse.Equip1.Visible == false then
  2573. gui.followmouse.Equip1.wep1.Visible = false
  2574. gui.followmouse.Equip1.wep2.Visible = false
  2575. gui.followmouse.Equip1.wep3.Visible = false
  2576. gui.followmouse.Equip1.Info.Position = UDim2.new(-0.5, 0, 1.2, 0)
  2577. end
  2578. end)
  2579. for _, v in pairs(menu.Nin:GetChildren()) do
  2580. if v:IsA("ImageButton") then
  2581. v.MouseButton1Down:connect(function()
  2582. sound(script, 154020879, 1)
  2583. if v.lock.Visible then
  2584. desc = v:FindFirstChild("desc")
  2585. if desc then
  2586. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2587. gui.followmouse.Equip1.Visible = false
  2588. gui.followmouse.Equip2.Visible = false
  2589. gui.followmouse.Purchase.Visible = true
  2590. gui.followmouse.kg.Visible = false
  2591. gui.followmouse.Purchase.Info.Stat.Text = "Ninjustu: " .. desc.stat.Value
  2592. gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
  2593. gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
  2594. gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
  2595. gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
  2596. gui.followmouse.Purchase.Info.img.Image = v.Image
  2597. currentunlock = v
  2598. end
  2599. return
  2600. end
  2601. desc = v:FindFirstChild("desc")
  2602. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2603. gui.followmouse.Equip1.Visible = true
  2604. gui.followmouse.Equip2.Visible = false
  2605. gui.followmouse.Purchase.Visible = false
  2606. gui.followmouse.kg.Visible = false
  2607. if v:FindFirstChild("noequipwep") then
  2608. gui.followmouse.Equip1.wep1.Visible = false
  2609. gui.followmouse.Equip1.wep2.Visible = false
  2610. gui.followmouse.Equip1.wep3.Visible = false
  2611. gui.followmouse.Equip1.Info.Position = UDim2.new(-0.5, 0, 1.2, 0)
  2612. else
  2613. gui.followmouse.Equip1.wep1.Visible = true
  2614. gui.followmouse.Equip1.wep2.Visible = true
  2615. gui.followmouse.Equip1.wep3.Visible = true
  2616. gui.followmouse.Equip1.Info.Position = UDim2.new(-0.5, 0, 1.8, 0)
  2617. end
  2618. gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
  2619. gui.followmouse.Equip1.Info.name.Text = desc.nam.Value
  2620. gui.followmouse.Equip1.Info.type.Text = "Type: " .. desc.typ.Value
  2621. currentjutsu = v.Name
  2622. end)
  2623. end
  2624. end
  2625. changesub = nil
  2626. gui.followmouse.Purchase.Info.unlock.Changed:connect(function()
  2627. if gui.followmouse.Purchase.Visible == false then
  2628. gui.followmouse.Purchase.Info.unlock.Visible = true
  2629. gui.followmouse.Purchase.Info.mons.Visible = false
  2630. gui.followmouse.Purchase.Info.rs.Visible = false
  2631. gui.followmouse.Purchase.Info.monz.Text = ""
  2632. end
  2633. end)
  2634. for _, v in pairs(menu.Sub:GetChildren()) do
  2635. if v:IsA("ImageButton") then
  2636. v.MouseButton1Down:connect(function()
  2637. sound(script, 154020879, 1)
  2638. if v.lock.Visible then
  2639. if v.lock.Image == "rbxassetid://1560780402" then
  2640. desc = v:FindFirstChild("desc2")
  2641. if desc then
  2642. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2643. gui.followmouse.Equip1.Visible = false
  2644. gui.followmouse.Equip2.Visible = false
  2645. gui.followmouse.Purchase.Visible = true
  2646. gui.followmouse.kg.Visible = false
  2647. gui.followmouse.Purchase.Info.Stat.Text = desc.nam.Value
  2648. gui.followmouse.Purchase.Info.level.Text = "Location: " .. desc.location.Value
  2649. gui.followmouse.Purchase.Info.money.Text = "Type: " .. desc.typ.Value
  2650. gui.followmouse.Purchase.Info.name.Text = desc.ist.Value
  2651. gui.followmouse.Purchase.Info.type.Text = "Spawn Time: " .. desc.spawn.Value
  2652. gui.followmouse.Purchase.Info.img.Image = v.Image
  2653. gui.followmouse.Purchase.Info.unlock.Visible = false
  2654. if v:FindFirstChild("money2") then
  2655. gui.followmouse.Purchase.Info.mons.Visible = true
  2656. gui.followmouse.Purchase.Info.rs.Visible = true
  2657. gui.followmouse.Purchase.Info.monz.Text = "RYO: " .. v.money2.Value
  2658. changesub = v
  2659. keyinput:FireServer("changesub", changesub)
  2660. else
  2661. gui.followmouse.Purchase.Info.mons.Visible = false
  2662. gui.followmouse.Purchase.Info.rs.Visible = false
  2663. gui.followmouse.Purchase.Info.monz.Text = ""
  2664. changesub = nil
  2665. keyinput:FireServer("changesub", changesub)
  2666. end
  2667. currentunlock = nil
  2668. end
  2669. return
  2670. end
  2671. desc = v:FindFirstChild("desc")
  2672. if desc then
  2673. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2674. gui.followmouse.Equip1.Visible = false
  2675. gui.followmouse.Equip2.Visible = false
  2676. gui.followmouse.Purchase.Visible = true
  2677. gui.followmouse.kg.Visible = false
  2678. gui.followmouse.Purchase.Info.Stat.Text = desc.minus.Value .. ": " .. desc.stat.Value
  2679. gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
  2680. gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
  2681. gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
  2682. gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
  2683. gui.followmouse.Purchase.Info.img.Image = v.Image
  2684. currentunlock = v
  2685. gui.followmouse.Purchase.Info.unlock.Visible = true
  2686. gui.followmouse.Purchase.Info.mons.Visible = false
  2687. gui.followmouse.Purchase.Info.rs.Visible = false
  2688. gui.followmouse.Purchase.Info.monz.Text = ""
  2689. changesub = nil
  2690. keyinput:FireServer("changesub", changesub)
  2691. end
  2692. return
  2693. end
  2694. if v.typ.Value == "mode" then
  2695. keyinput:FireServer("equipmode", v)
  2696. sound(script, 342472438)
  2697. return
  2698. end
  2699. gui.followmouse.Purchase.Info.unlock.Visible = true
  2700. desc = v:FindFirstChild("desc")
  2701. gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
  2702. gui.followmouse.Equip1.Info.name.Text = desc.nam.Value
  2703. gui.followmouse.Equip1.Info.type.Text = "Type: " .. desc.typ.Value
  2704. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2705. gui.followmouse.Equip1.Visible = true
  2706. gui.followmouse.Equip2.Visible = false
  2707. gui.followmouse.Purchase.Visible = false
  2708. gui.followmouse.kg.Visible = false
  2709. currentjutsu = v.Name
  2710. end)
  2711. end
  2712. end
  2713. for _, v in pairs(menu.Wep:GetChildren()) do
  2714. if v:IsA("ImageButton") then
  2715. v.MouseButton1Down:connect(function()
  2716. sound(script, 154020879, 1)
  2717. if v.lock.Visible then
  2718. desc = v:FindFirstChild("desc")
  2719. if desc then
  2720. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2721. gui.followmouse.Equip1.Visible = false
  2722. gui.followmouse.Equip2.Visible = false
  2723. gui.followmouse.Purchase.Visible = true
  2724. gui.followmouse.kg.Visible = false
  2725. gui.followmouse.Purchase.Info.Stat.Text = "Taijutsu: " .. desc.stat.Value
  2726. gui.followmouse.Purchase.Info.level.Text = "Level: " .. desc.cool.Value
  2727. gui.followmouse.Purchase.Info.money.Text = "Money: " .. desc.money.Value
  2728. gui.followmouse.Purchase.Info.name.Text = desc.nam.Value
  2729. gui.followmouse.Purchase.Info.type.Text = "Type: " .. desc.typ.Value
  2730. gui.followmouse.Purchase.Info.img.Image = v.Image
  2731. currentunlock = v
  2732. end
  2733. return
  2734. end
  2735. if Player.keys.wep1.Value == v.Name then
  2736. keyinput:FireServer("unequip", "wep1")
  2737. return
  2738. end
  2739. if Player.keys.wep2.Value == v.Name then
  2740. keyinput:FireServer("unequip", "wep2")
  2741. return
  2742. end
  2743. if Player.keys.wep3.Value == v.Name then
  2744. keyinput:FireServer("unequip", "wep3")
  2745. return
  2746. end
  2747. desc = v:FindFirstChild("desc")
  2748. gui.followmouse.Equip2.Info.cool.Text = "UNLOCKED"
  2749. gui.followmouse.Equip2.Info.name.Text = desc.nam.Value
  2750. gui.followmouse.Equip2.Info.type.Text = "Type: " .. desc.typ.Value
  2751. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2752. gui.followmouse.Equip1.Visible = false
  2753. gui.followmouse.Equip2.Visible = true
  2754. gui.followmouse.Purchase.Visible = false
  2755. gui.followmouse.kg.Visible = false
  2756. currentwep = v.Name
  2757. end)
  2758. end
  2759. end
  2760. for _, v in pairs(menu.Comp:GetChildren()) do
  2761. if v:IsA("ImageButton") then
  2762. v.MouseButton1Down:connect(function()
  2763. sound(script, 154020879, 1)
  2764. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2765. gui.followmouse.Equip1.Visible = false
  2766. gui.followmouse.Equip2.Visible = true
  2767. gui.followmouse.Purchase.Visible = false
  2768. gui.followmouse.kg.Visible = false
  2769. end)
  2770. end
  2771. end
  2772. for _, v in pairs(menu.KG1:GetChildren()) do
  2773. if v:IsA("ImageButton") then
  2774. v.MouseButton1Down:connect(function()
  2775. sound(script, 154020879, 1)
  2776. if v.lock.Visible then
  2777. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2778. gui.followmouse.Equip1.Visible = false
  2779. gui.followmouse.Equip2.Visible = false
  2780. gui.followmouse.Purchase.Visible = false
  2781. gui.followmouse.kg.Visible = true
  2782. for _, mn in pairs(rs.allkg:GetChildren()) do
  2783. if mn.Name == menu.KG1.kg.Value then
  2784. for _, nb in pairs(mn:GetChildren()) do
  2785. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2786. gui.followmouse.kg.Info.name.Text = nb.nam.Value
  2787. gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
  2788. end
  2789. end
  2790. end
  2791. end
  2792. return
  2793. end
  2794. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2795. gui.followmouse.Equip1.Visible = true
  2796. gui.followmouse.Equip2.Visible = false
  2797. gui.followmouse.Purchase.Visible = false
  2798. gui.followmouse.kg.Visible = false
  2799. for _, mn in pairs(rs.allkg:GetChildren()) do
  2800. if mn.Name == menu.KG1.kg.Value then
  2801. for _, nb in pairs(mn:GetChildren()) do
  2802. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2803. gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
  2804. gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
  2805. gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
  2806. end
  2807. end
  2808. end
  2809. end
  2810. currentjutsu = "kg"
  2811. currentkgequip = v
  2812. end)
  2813. end
  2814. end
  2815. for _, v in pairs(menu.KG2:GetChildren()) do
  2816. if v:IsA("ImageButton") then
  2817. v.MouseButton1Down:connect(function()
  2818. sound(script, 154020879, 1)
  2819. if v.lock.Visible then
  2820. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2821. gui.followmouse.Equip1.Visible = false
  2822. gui.followmouse.Equip2.Visible = false
  2823. gui.followmouse.Purchase.Visible = false
  2824. gui.followmouse.kg.Visible = true
  2825. for _, mn in pairs(rs.allkg:GetChildren()) do
  2826. if mn.Name == menu.KG2.kg.Value then
  2827. for _, nb in pairs(mn:GetChildren()) do
  2828. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2829. gui.followmouse.kg.Info.name.Text = nb.nam.Value
  2830. gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
  2831. end
  2832. end
  2833. end
  2834. end
  2835. return
  2836. end
  2837. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2838. gui.followmouse.Equip1.Visible = true
  2839. gui.followmouse.Equip2.Visible = false
  2840. gui.followmouse.Purchase.Visible = false
  2841. gui.followmouse.kg.Visible = false
  2842. for _, mn in pairs(rs.allkg:GetChildren()) do
  2843. if mn.Name == menu.KG2.kg.Value then
  2844. for _, nb in pairs(mn:GetChildren()) do
  2845. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2846. gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
  2847. gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
  2848. gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
  2849. end
  2850. end
  2851. end
  2852. end
  2853. currentjutsu = "kg"
  2854. currentkgequip = v
  2855. end)
  2856. end
  2857. end
  2858. for _, v in pairs(menu.KG3:GetChildren()) do
  2859. if v:IsA("ImageButton") then
  2860. v.MouseButton1Down:connect(function()
  2861. sound(script, 154020879, 1)
  2862. if v.lock.Visible then
  2863. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2864. gui.followmouse.Equip1.Visible = false
  2865. gui.followmouse.Equip2.Visible = false
  2866. gui.followmouse.Purchase.Visible = false
  2867. gui.followmouse.kg.Visible = true
  2868. for _, mn in pairs(rs.allkg:GetChildren()) do
  2869. if mn.Name == menu.KG3.kg.Value then
  2870. for _, nb in pairs(mn:GetChildren()) do
  2871. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2872. gui.followmouse.kg.Info.name.Text = nb.nam.Value
  2873. gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
  2874. end
  2875. end
  2876. end
  2877. end
  2878. return
  2879. end
  2880. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2881. gui.followmouse.Equip1.Visible = true
  2882. gui.followmouse.Equip2.Visible = false
  2883. gui.followmouse.Purchase.Visible = false
  2884. gui.followmouse.kg.Visible = false
  2885. for _, mn in pairs(rs.allkg:GetChildren()) do
  2886. if mn.Name == menu.KG3.kg.Value then
  2887. for _, nb in pairs(mn:GetChildren()) do
  2888. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2889. gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
  2890. gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
  2891. gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
  2892. end
  2893. end
  2894. end
  2895. end
  2896. currentjutsu = "kg"
  2897. currentkgequip = v
  2898. end)
  2899. end
  2900. end
  2901. for _, v in pairs(menu.KG4:GetChildren()) do
  2902. if v:IsA("ImageButton") then
  2903. v.MouseButton1Down:connect(function()
  2904. sound(script, 154020879, 1)
  2905. if v.lock.Visible then
  2906. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2907. gui.followmouse.Equip1.Visible = false
  2908. gui.followmouse.Equip2.Visible = false
  2909. gui.followmouse.Purchase.Visible = false
  2910. gui.followmouse.kg.Visible = true
  2911. for _, mn in pairs(rs.allkg:GetChildren()) do
  2912. if mn.Name == menu.KG4.kg.Value then
  2913. for _, nb in pairs(mn:GetChildren()) do
  2914. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2915. gui.followmouse.kg.Info.name.Text = nb.nam.Value
  2916. gui.followmouse.kg.Info.type.Text = "Level: " .. nb.lvl.Value
  2917. end
  2918. end
  2919. end
  2920. end
  2921. return
  2922. end
  2923. gui.followmouse.Position = UDim2.new(0, mouse.x, 0, mouse.y)
  2924. gui.followmouse.Equip1.Visible = true
  2925. gui.followmouse.Equip2.Visible = false
  2926. gui.followmouse.Purchase.Visible = false
  2927. gui.followmouse.kg.Visible = false
  2928. for _, mn in pairs(rs.allkg:GetChildren()) do
  2929. if mn.Name == menu.KG4.kg.Value then
  2930. for _, nb in pairs(mn:GetChildren()) do
  2931. if nb:IsA("StringValue") and nb.Value == v.kg.Value then
  2932. gui.followmouse.Equip1.Info.cool.Text = "UNLOCKED"
  2933. gui.followmouse.Equip1.Info.name.Text = nb.nam.Value
  2934. gui.followmouse.Equip1.Info.type.Text = "Type: " .. nb.typ.Value
  2935. end
  2936. end
  2937. end
  2938. end
  2939. currentjutsu = "kg"
  2940. currentkgequip = v
  2941. end)
  2942. end
  2943. end
  2944. function closeallframes()
  2945. for _, v in pairs(menu:GetChildren()) do
  2946. if v:IsA("ScrollingFrame") or v:IsA("Frame") then
  2947. v.Visible = false
  2948. end
  2949. end
  2950. gui.followmouse.Equip1.Visible = false
  2951. gui.followmouse.Equip2.Visible = false
  2952. gui.followmouse.Purchase.Visible = false
  2953. gui.followmouse.kg.Visible = false
  2954. end
  2955. menu.Companions.MouseButton1Down:connect(function()
  2956. closeallframes()
  2957. menu.Comp.Visible = true
  2958. sound(script, 154020823, 1)
  2959. end)
  2960. menu.Kekkei1.MouseButton1Down:connect(function()
  2961. closeallframes()
  2962. menu.KG1.Visible = true
  2963. sound(script, 154020823, 1)
  2964. end)
  2965. menu.team.MouseButton1Down:connect(function()
  2966. closeallframes()
  2967. menu.Teams.Visible = true
  2968. sound(script, 154020823, 1)
  2969. end)
  2970. menu.Teams.Invite.Changed:connect(function()
  2971. if menu.Teams.Invite.Text == "" or menu.Teams.Invite.Text == "ENTER NAME" then
  2972. menu.Teams.Invite.frame.Visible = false
  2973. menu.Teams.Invite.frame:ClearAllChildren()
  2974. else
  2975. menu.Teams.Invite.frame.Visible = true
  2976. menu.Teams.Invite.frame:ClearAllChildren()
  2977. numzzz = 0
  2978. eee = game.Players:GetChildren()
  2979. for i = 1, #eee do
  2980. if string.find(string.lower(eee[i].Name), string.sub(string.lower(menu.Teams.Invite.Text), 0)) ~= 1 or menu.Teams.Invite.frame:FindFirstChild(eee[i].Name) then
  2981. else
  2982. numzzz = numzzz + 1
  2983. a = script.text:clone()
  2984. a.Parent = menu.Teams.Invite.frame
  2985. a.Name = eee[i].Name
  2986. a.Position = UDim2.new(0, 0, numzzz * 1.15, 0)
  2987. a.Text = eee[i].Name
  2988. end
  2989. end
  2990. for i, v in pairs(menu.Teams.Invite.frame:GetChildren()) do
  2991. if v.ClassName == "TextButton" then
  2992. v.MouseButton1Down:connect(function()
  2993. keyinput:FireServer("addteam", v.Text)
  2994. menu.Teams.Invite.Text = "ENTER NAME"
  2995. end)
  2996. end
  2997. end
  2998. end
  2999. end)
  3000. menu.Teams.Invite.p1.delete.MouseButton1Down:connect(function()
  3001. keyinput:FireServer("removethisplr", 1)
  3002. end)
  3003. menu.Teams.Invite.p2.delete.MouseButton1Down:connect(function()
  3004. keyinput:FireServer("removethisplr", 2)
  3005. end)
  3006. menu.Teams.Invite.p3.delete.MouseButton1Down:connect(function()
  3007. keyinput:FireServer("removethisplr", 3)
  3008. end)
  3009. menu.Teams.Invite.p4.delete.MouseButton1Down:connect(function()
  3010. keyinput:FireServer("removethisplr", 4)
  3011. end)
  3012. delaysave = false
  3013. menu.save.MouseButton1Down:connect(function()
  3014. if delaysave then
  3015. return
  3016. end
  3017. delaysave = true
  3018. menu.save.num.Text = "SAVING.."
  3019. keyinput:FireServer("save")
  3020. wait(5)
  3021. delaysave = false
  3022. menu.save.num.Text = "SAVE"
  3023. end)
  3024. menu.robux.MouseButton1Down:connect(function()
  3025. closeallframes()
  3026. menu.rob.Visible = true
  3027. sound(script, 154020823, 1)
  3028. end)
  3029. for _, v in pairs(menu.rob:GetChildren()) do
  3030. if v:IsA("ImageButton") then
  3031. if v:FindFirstChild("pass") then
  3032. v.MouseButton1Down:connect(function()
  3033. game:GetService("MarketplaceService"):PromptProductPurchase(Player, v.pass.Value)
  3034. end)
  3035. end
  3036. if v:FindFirstChild("gpass") then
  3037. v.MouseButton1Down:connect(function()
  3038. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.userId, v.gpass.Value) then
  3039. else
  3040. game:GetService("MarketplaceService"):PromptGamePassPurchase(Player, v.gpass.Value)
  3041. end
  3042. end)
  3043. end
  3044. end
  3045. end
  3046. menu.Kekkei2.MouseButton1Down:connect(function()
  3047. closeallframes()
  3048. menu.KG2.Visible = true
  3049. sound(script, 154020823, 1)
  3050. end)
  3051. menu.Taijutsu.MouseButton1Down:connect(function()
  3052. closeallframes()
  3053. menu.Tai.Visible = true
  3054. sound(script, 154020823, 1)
  3055. end)
  3056. gui.Menu3.clickmenu.MouseButton1Down:connect(function()
  3057. if inmenu then
  3058. inmenu = false
  3059. gui.menu.Visible = false
  3060. keyinput:FireServer("mouselock", true)
  3061. return
  3062. end
  3063. inmenu = true
  3064. gui.menu.Visible = true
  3065. keyinput:FireServer("mouselock", false)
  3066. end)
  3067. menu.Kekkei3.MouseButton1Down:connect(function()
  3068. closeallframes()
  3069. menu.KG3.Visible = true
  3070. sound(script, 154020823, 1)
  3071. end)
  3072. menu.Kekkei4.MouseButton1Down:connect(function()
  3073. closeallframes()
  3074. if gui.Menu4.main.KG4.spin.name.Text == "MAX-RANK REQ" then
  3075. game:GetService("MarketplaceService"):PromptProductPurchase(Player, 226963112)
  3076. return
  3077. end
  3078. menu.KG4.Visible = true
  3079. sound(script, 154020823, 1)
  3080. end)
  3081. menu.Ninjutsu.MouseButton1Down:connect(function()
  3082. closeallframes()
  3083. menu.Nin.Visible = true
  3084. sound(script, 154020823, 1)
  3085. end)
  3086. menu.Roleplay.MouseButton1Down:connect(function()
  3087. closeallframes()
  3088. menu.rp.Visible = true
  3089. sound(script, 154020823, 1)
  3090. end)
  3091. menu.Subjutsu.MouseButton1Down:connect(function()
  3092. closeallframes()
  3093. menu.Sub.Visible = true
  3094. sound(script, 154020823, 1)
  3095. end)
  3096. menu.Weapons.MouseButton1Down:connect(function()
  3097. closeallframes()
  3098. menu.Wep.Visible = true
  3099. sound(script, 154020823, 1)
  3100. end)
  3101. menu.Credits.MouseButton1Down:connect(function()
  3102. closeallframes()
  3103. menu.Cred.Visible = true
  3104. sound(script, 154020823, 1)
  3105. end)
  3106. menu.Stats.MouseButton1Down:connect(function()
  3107. closeallframes()
  3108. menu.Stat.Visible = true
  3109. sound(script, 154020823, 1)
  3110. end)
  3111. gui.Menu3.BarHealth.bar.Size = UDim2.new(0.89 * (combatfolder.fakehealth.Value / combatfolder.fakehealth.MaxValue), 0, 0.48, 0)
  3112. gui.Menu3.BarChakra.bar.Size = UDim2.new(0.89 * (combatfolder.magic.Value / combatfolder.magic.MaxValue), 0, 0.48, 0)
  3113. gui.Menu3.BarMode.bar.Size = UDim2.new(0.72 * (combatfolder.mode.Value / combatfolder.mode.MaxValue), 0, 0.48, 0)
  3114. gui.Menu3.BarStamina.bar.Size = UDim2.new(0.89 * (combatfolder.stamina.Value / combatfolder.stamina.MaxValue), 0, 0.48, 0)
  3115. combatfolder.stamina.Changed:connect(function()
  3116. gui.Menu3.BarStamina.bar.Size = UDim2.new(0.89 * (combatfolder.stamina.Value / combatfolder.stamina.MaxValue), 0, 0.48, 0)
  3117. gui.Menu3.BarStamina.redbar:TweenSize(gui.Menu3.BarStamina.bar.Size, "Out", "Quad", 1, true)
  3118. end)
  3119. combatfolder.mode.Changed:connect(function()
  3120. gui.Menu3.BarMode.bar.Size = UDim2.new(0.72 * (combatfolder.mode.Value / combatfolder.mode.MaxValue), 0, 0.48, 0)
  3121. gui.Menu3.BarMode.redbar:TweenSize(gui.Menu3.BarMode.bar.Size, "Out", "Quad", 1, true)
  3122. end)
  3123. combatfolder.magic.Changed:connect(function()
  3124. gui.Menu3.BarChakra.bar.Size = UDim2.new(0.89 * (combatfolder.magic.Value / combatfolder.magic.MaxValue), 0, 0.48, 0)
  3125. gui.Menu3.BarChakra.num.Text = combatfolder.magic.Value .. "/" .. combatfolder.magic.MaxValue
  3126. gui.Menu3.BarChakra.redbar:TweenSize(gui.Menu3.BarChakra.bar.Size, "Out", "Quad", 1, true)
  3127. end)
  3128. combatfolder.fakehealth.Changed:connect(function()
  3129. gui.Menu3.BarHealth.bar.Size = UDim2.new(0.89 * (combatfolder.fakehealth.Value / combatfolder.fakehealth.MaxValue), 0, 0.48, 0)
  3130. gui.Menu3.BarHealth.redbar:TweenSize(gui.Menu3.BarHealth.bar.Size, "Out", "Quad", 1, true)
  3131. gui.Menu3.BarHealth.num.Text = combatfolder.fakehealth.Value .. "/" .. combatfolder.fakehealth.MaxValue
  3132. if combatfolder.fakehealth.Value == combatfolder.fakehealth.MinValue then
  3133. wait(5)
  3134. end
  3135. end)
  3136. for _, v in pairs(menu.Stat:GetChildren()) do
  3137. if v:IsA("TextLabel") and v:FindFirstChild("add") then
  3138. v.add.MouseButton1Down:connect(function()
  3139. keyinput:FireServer("addpoint", v.Name)
  3140. end)
  3141. end
  3142. end
  3143. lsttext = ""
  3144. menu.rp.rp.Changed:connect(function(property)
  3145. if property == "Text" then
  3146. lsttext = menu.rp.rp.Text
  3147. ab = string.len(lsttext)
  3148. if ab > 12 then
  3149. menu.rp.rp.Text = string.sub(menu.rp.rp.Text, 1, 12)
  3150. end
  3151. keyinput:FireServer("nam", menu.rp.rp.Text)
  3152. end
  3153. end)
  3154. for _, v in pairs(menu.rp.clans:GetChildren()) do
  3155. if v:IsA("TextButton") then
  3156. v.MouseButton1Down:connect(function()
  3157. keyinput:FireServer("changeclan", v.Text, v)
  3158. end)
  3159. end
  3160. end
  3161. for _, v in pairs(menu.rp.villages:GetChildren()) do
  3162. if v:IsA("TextButton") then
  3163. v.MouseButton1Down:connect(function()
  3164. keyinput:FireServer("changevill", v.Text, v)
  3165. end)
  3166. end
  3167. end
  3168. menu.KG1.Equip.MouseButton1Down:connect(function()
  3169. sound(script, 154020823, 1)
  3170. keyinput:FireServer("kg", 1)
  3171. end)
  3172. menu.KG2.Equip.MouseButton1Down:connect(function()
  3173. sound(script, 154020823, 1)
  3174. keyinput:FireServer("kg", 2)
  3175. end)
  3176. menu.KG3.Equip.MouseButton1Down:connect(function()
  3177. sound(script, 154020823, 1)
  3178. keyinput:FireServer("kg", 3)
  3179. end)
  3180. menu.KG4.Equip.MouseButton1Down:connect(function()
  3181. sound(script, 154020823, 1)
  3182. keyinput:FireServer("kg", 4)
  3183. end)
  3184. end)
  3185. function Poszz(pos1, pos2)
  3186. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  3187. return CFrame.new(pos1, pos3)
  3188. end
  3189. inmenu = false
  3190. inship = false
  3191. pawn = script.punch:clone()
  3192. currentorder = 0
  3193. currentframe = {}
  3194. currentcombos = {"weakstrong"}
  3195. addcombat = 0
  3196. gui:WaitForChild("comboframe")
  3197. function creategui(tyyp)
  3198. gui.comboframe:ClearAllChildren()
  3199. currentorder = currentorder + 1
  3200. table.insert(currentframe, tyyp)
  3201. numz = 0
  3202. addcombat = 1
  3203. for i = 1, currentorder do
  3204. local newgui = pawn:clone()
  3205. newgui.Position = UDim2.new(0.475 - (currentorder - i / 2) * 0.027 / 1.08 + (i - 1) * 0.04, 0, 0.75, 0)
  3206. if currentframe[i] == "weak" then
  3207. newgui.weak.Visible = true
  3208. else
  3209. newgui.strong.Visible = true
  3210. end
  3211. newgui.ImageColor3 = BrickColor.Blue().Color
  3212. newgui.Parent = gui.comboframe
  3213. numz = currentorder
  3214. end
  3215. strongui = nil
  3216. local newgui = pawn:clone()
  3217. newgui.Position = UDim2.new(0.475 - (currentorder - numz / 2) * 0.027 / 1.08 + (numz - 1) * 0.04 + 0.05, 0, 0.67, 0)
  3218. newgui.strong.Visible = true
  3219. newgui.ImageColor3 = BrickColor.Green().Color
  3220. newgui.Parent = gui.comboframe
  3221. strongui = newgui
  3222. local newgui = pawn:clone()
  3223. newgui.Position = UDim2.new(0.475 - (currentorder - numz / 2) * 0.027 / 1.08 + (numz - 1) * 0.04 + 0.093, 0, 0.58, 0)
  3224. newgui:ClearAllChildren()
  3225. newgui.ImageColor3 = BrickColor.White().Color
  3226. newgui.Parent = gui.comboframe
  3227. newgui.Visible = false
  3228. currentcomboszz = newgui
  3229. local newgui = pawn:clone()
  3230. newgui.Position = UDim2.new(0.475 - (currentorder - numz / 2) * 0.027 / 1.08 + (numz - 1) * 0.04 + 0.05, 0, 0.77, 0)
  3231. newgui.weak.Visible = true
  3232. newgui.ImageColor3 = BrickColor.Green().Color
  3233. newgui.Parent = gui.comboframe
  3234. anewcombo = ""
  3235. for i = 1, #currentframe do
  3236. anewcombo = anewcombo .. currentframe[i]
  3237. end
  3238. alreadycombo = false
  3239. lastwan = ""
  3240. if currentcombos[1] then
  3241. for _, dsss in pairs(currentcombos) do
  3242. if anewcombo == dsss then
  3243. lastwan = dsss
  3244. break
  3245. end
  3246. end
  3247. end
  3248. predictcombo = anewcombo .. "strong"
  3249. for _, dsss in pairs(currentcombos) do
  3250. if predictcombo == dsss then
  3251. strongui.ImageColor3 = BrickColor.new("Gold").Color
  3252. for _, v in pairs(gui.menu.Tai:GetChildren()) do
  3253. if v:FindFirstChild("combo") and v.combo.Value == predictcombo then
  3254. currentcomboszz.Image = v.Image
  3255. currentcomboszz.Visible = true
  3256. end
  3257. end
  3258. break
  3259. end
  3260. end
  3261. predictcombo = anewcombo .. "weak"
  3262. for _, dsss in pairs(currentcombos) do
  3263. if predictcombo == dsss then
  3264. strongui.ImageColor3 = BrickColor.new("Gold").Color
  3265. newgui.strong.Visible = false
  3266. newgui.weak.Visible = true
  3267. for _, v in pairs(gui.menu.Tai:GetChildren()) do
  3268. if v:FindFirstChild("combo") and v.combo.Value == predictcombo then
  3269. currentcomboszz.Image = v.Image
  3270. currentcomboszz.Visible = true
  3271. end
  3272. end
  3273. break
  3274. end
  3275. end
  3276. if alreadycombo then
  3277. elseif lastwan == "strongstrongstrongstrongstrongstrongweak" then
  3278. combatanimz:Stop()
  3279. alreadycombo = true
  3280. gui.comboframe:ClearAllChildren()
  3281. currentorder = 0
  3282. currentframe = {}
  3283. enabled = true
  3284. slowdowncharacter = true
  3285. disableautorotate = true
  3286. delay(0, function()
  3287. keyinput:FireServer("combo2", "custom", 1541484681, "reverseflame")
  3288. pushcharc2 = true
  3289. for i = 1, 6 do
  3290. wait()
  3291. wait(0.1)
  3292. pushcharc = true
  3293. if aaa[2] then
  3294. keyinput:FireServer("combat", aaa[2].Parent)
  3295. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3296. end
  3297. wait(0.1)
  3298. pushcharc = false
  3299. end
  3300. pushcharc = true
  3301. pushcharc2 = false
  3302. end)
  3303. wait(1.5)
  3304. pushcharc = false
  3305. slowdowncharacter = false
  3306. disableautorotate = false
  3307. end
  3308. if alreadycombo then
  3309. elseif lastwan == "weakweakweakweakweakweakstrong" then
  3310. combatanimz:Stop()
  3311. alreadycombo = true
  3312. gui.comboframe:ClearAllChildren()
  3313. currentorder = 0
  3314. currentframe = {}
  3315. enabled = true
  3316. slowdowncharacter = true
  3317. disableautorotate = true
  3318. delay(0, function()
  3319. keyinput:FireServer("combo2", "custom", 1541457570, "blow")
  3320. for i = 1, 6 do
  3321. wait()
  3322. wait(0.1)
  3323. pushcharc = true
  3324. if aaa[2] then
  3325. keyinput:FireServer("combat", aaa[2].Parent)
  3326. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3327. end
  3328. wait(0.1)
  3329. pushcharc = false
  3330. end
  3331. pushcharc = true
  3332. end)
  3333. wait(1.5)
  3334. pushcharc = false
  3335. slowdowncharacter = false
  3336. disableautorotate = false
  3337. end
  3338. if alreadycombo then
  3339. elseif lastwan == "strongstrongstrongstrongstrongweak" then
  3340. combatanimz:Stop()
  3341. alreadycombo = true
  3342. gui.comboframe:ClearAllChildren()
  3343. currentorder = 0
  3344. currentframe = {}
  3345. enabled = true
  3346. slowdowncharacter = true
  3347. disableautorotate = true
  3348. delay(0, function()
  3349. keyinput:FireServer("combo2", "custom", 1540035592, "blowback")
  3350. for i = 1, 5 do
  3351. wait()
  3352. wait(0.1)
  3353. pushcharc = true
  3354. if aaa[2] then
  3355. keyinput:FireServer("combat", aaa[2].Parent)
  3356. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3357. end
  3358. wait(0.1)
  3359. pushcharc = false
  3360. end
  3361. pushcharc = true
  3362. end)
  3363. wait(1.5)
  3364. pushcharc = false
  3365. slowdowncharacter = false
  3366. disableautorotate = false
  3367. end
  3368. if alreadycombo then
  3369. elseif lastwan == "weakweakweakweakweakstrong" then
  3370. combatanimz:Stop()
  3371. alreadycombo = true
  3372. gui.comboframe:ClearAllChildren()
  3373. currentorder = 0
  3374. currentframe = {}
  3375. enabled = true
  3376. slowdowncharacter = true
  3377. disableautorotate = true
  3378. delay(0, function()
  3379. keyinput:FireServer("combo2", "custom", 1538607915, "whirl")
  3380. for i = 1, 5 do
  3381. wait()
  3382. wait(0.1)
  3383. pushcharc = true
  3384. if aaa[2] then
  3385. keyinput:FireServer("combat", aaa[2].Parent)
  3386. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3387. end
  3388. wait(0.1)
  3389. pushcharc = false
  3390. end
  3391. pushcharc = true
  3392. end)
  3393. wait(1.5)
  3394. pushcharc = false
  3395. slowdowncharacter = false
  3396. disableautorotate = false
  3397. end
  3398. if alreadycombo then
  3399. elseif lastwan == "strongstrongstrongstrongweak" then
  3400. combatanimz:Stop()
  3401. alreadycombo = true
  3402. gui.comboframe:ClearAllChildren()
  3403. currentorder = 0
  3404. currentframe = {}
  3405. enabled = true
  3406. slowdowncharacter = true
  3407. disableautorotate = true
  3408. delay(0, function()
  3409. keyinput:FireServer("combo2", "custom", 1538498176, "dragonfist")
  3410. for i = 1, 5 do
  3411. wait()
  3412. wait(0.1)
  3413. pushcharc = true
  3414. if aaa[2] then
  3415. keyinput:FireServer("combat", aaa[2].Parent)
  3416. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3417. end
  3418. wait(0.1)
  3419. pushcharc = false
  3420. end
  3421. pushcharc = true
  3422. end)
  3423. wait(1.5)
  3424. pushcharc = false
  3425. slowdowncharacter = false
  3426. disableautorotate = false
  3427. end
  3428. if alreadycombo then
  3429. elseif lastwan == "weakweakweakweakstrong" then
  3430. combatanimz:Stop()
  3431. alreadycombo = true
  3432. gui.comboframe:ClearAllChildren()
  3433. currentorder = 0
  3434. currentframe = {}
  3435. enabled = true
  3436. slowdowncharacter = true
  3437. disableautorotate = true
  3438. delay(0, function()
  3439. keyinput:FireServer("combo2", "custom", 1538498176, "dragonfist")
  3440. for i = 1, 5 do
  3441. wait()
  3442. wait(0.1)
  3443. pushcharc = true
  3444. if aaa[2] then
  3445. keyinput:FireServer("combat", aaa[2].Parent)
  3446. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3447. end
  3448. wait(0.1)
  3449. pushcharc = false
  3450. end
  3451. pushcharc = true
  3452. end)
  3453. wait(1.5)
  3454. pushcharc = false
  3455. slowdowncharacter = false
  3456. disableautorotate = false
  3457. end
  3458. if alreadycombo then
  3459. elseif lastwan == "strongstrongstrongweak" then
  3460. combatanimz:Stop()
  3461. alreadycombo = true
  3462. gui.comboframe:ClearAllChildren()
  3463. currentorder = 0
  3464. currentframe = {}
  3465. enabled = true
  3466. slowdowncharacter = true
  3467. disableautorotate = true
  3468. delay(0, function()
  3469. keyinput:FireServer("combo2", "custom", 1538146587)
  3470. for i = 1, 5 do
  3471. wait()
  3472. wait(0.1)
  3473. pushcharc = true
  3474. if aaa[2] then
  3475. keyinput:FireServer("combat", aaa[2].Parent)
  3476. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3477. end
  3478. wait(0.1)
  3479. pushcharc = false
  3480. end
  3481. pushcharc = true
  3482. end)
  3483. wait(1.5)
  3484. pushcharc = false
  3485. slowdowncharacter = false
  3486. disableautorotate = false
  3487. end
  3488. if alreadycombo then
  3489. elseif lastwan == "strongstrongweak" then
  3490. combatanimz:Stop()
  3491. alreadycombo = true
  3492. gui.comboframe:ClearAllChildren()
  3493. currentorder = 0
  3494. currentframe = {}
  3495. enabled = true
  3496. slowdowncharacter = true
  3497. disableautorotate = true
  3498. delay(0, function()
  3499. keyinput:FireServer("combo2", "custom", 1538071658, "entry")
  3500. wait(0.2)
  3501. pushcharc2 = true
  3502. wait(1.1)
  3503. pushcharc2 = false
  3504. landstepz:Play()
  3505. end)
  3506. wait(1.5)
  3507. pushcharc = false
  3508. slowdowncharacter = false
  3509. disableautorotate = false
  3510. end
  3511. if alreadycombo then
  3512. elseif lastwan == "strongweak" then
  3513. combatanimz:Stop()
  3514. alreadycombo = true
  3515. gui.comboframe:ClearAllChildren()
  3516. currentorder = 0
  3517. currentframe = {}
  3518. enabled = true
  3519. slowdowncharacter = true
  3520. disableautorotate = true
  3521. delay(0, function()
  3522. keyinput:FireServer("combo2", "custom", 1537985686, "thousand")
  3523. for i = 1, 5 do
  3524. wait()
  3525. wait(0.1)
  3526. pushcharc = true
  3527. if aaa[2] then
  3528. keyinput:FireServer("combat", aaa[2].Parent)
  3529. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3530. end
  3531. wait(0.1)
  3532. pushcharc = false
  3533. end
  3534. pushcharc = true
  3535. end)
  3536. wait(1.5)
  3537. pushcharc = false
  3538. slowdowncharacter = false
  3539. disableautorotate = false
  3540. end
  3541. if alreadycombo then
  3542. elseif lastwan == "weakweakweakstrong" then
  3543. combatanimz:Stop()
  3544. alreadycombo = true
  3545. gui.comboframe:ClearAllChildren()
  3546. currentorder = 0
  3547. currentframe = {}
  3548. enabled = true
  3549. slowdowncharacter = true
  3550. disableautorotate = true
  3551. delay(0, function()
  3552. keyinput:FireServer("combo2", 3)
  3553. for i = 1, 5 do
  3554. wait()
  3555. wait(0.1)
  3556. pushcharc = true
  3557. if aaa[2] then
  3558. keyinput:FireServer("combat", aaa[2].Parent)
  3559. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3560. end
  3561. wait(0.1)
  3562. pushcharc = false
  3563. end
  3564. keyinput:FireServer("combo2", 4)
  3565. pushcharc = true
  3566. end)
  3567. wait(1.5)
  3568. pushcharc = false
  3569. slowdowncharacter = false
  3570. disableautorotate = false
  3571. end
  3572. if alreadycombo then
  3573. elseif lastwan == "weakweakstrong" then
  3574. combatanimz:Stop()
  3575. alreadycombo = true
  3576. gui.comboframe:ClearAllChildren()
  3577. currentorder = 0
  3578. currentframe = {}
  3579. enabled = true
  3580. slowdowncharacter = true
  3581. disableautorotate = true
  3582. keyinput:FireServer("combo2", 2)
  3583. delay(0, function()
  3584. for i = 1, 5 do
  3585. wait()
  3586. wait(0.1)
  3587. pushcharc = true
  3588. if aaa[2] then
  3589. keyinput:FireServer("combat", aaa[2].Parent)
  3590. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3591. end
  3592. wait(0.1)
  3593. pushcharc = false
  3594. end
  3595. pushcharc = true
  3596. end)
  3597. wait(1.5)
  3598. pushcharc = false
  3599. slowdowncharacter = false
  3600. disableautorotate = false
  3601. end
  3602. if alreadycombo then
  3603. elseif lastwan == "weakstrong" then
  3604. combatanimz:Stop()
  3605. alreadycombo = true
  3606. gui.comboframe:ClearAllChildren()
  3607. currentorder = 0
  3608. currentframe = {}
  3609. enabled = true
  3610. slowdowncharacter = true
  3611. disableautorotate = true
  3612. keyinput:FireServer("combo2", 1)
  3613. delay(0, function()
  3614. for i = 1, 5 do
  3615. wait()
  3616. pushcharc = true
  3617. if aaa[2] then
  3618. keyinput:FireServer("combat", aaa[2].Parent)
  3619. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  3620. end
  3621. wait(0.2)
  3622. pushcharc = false
  3623. end
  3624. end)
  3625. wait(1.5)
  3626. pushcharc = false
  3627. slowdowncharacter = false
  3628. disableautorotate = false
  3629. end
  3630. if #currentframe > 10 then
  3631. gui.comboframe:ClearAllChildren()
  3632. currentorder = 0
  3633. currentframe = {}
  3634. end
  3635. end
  3636. holddownsword = false
  3637. holddown2 = false
  3638. intreejump = false
  3639. UserInputService.InputEnded:connect(function(input, processed)
  3640. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  3641. if input.KeyCode == Enum.KeyCode.ButtonA then
  3642. kufunction(" ")
  3643. end
  3644. if input.KeyCode == Enum.KeyCode.ButtonY then
  3645. kufunction("z")
  3646. end
  3647. if input.KeyCode == Enum.KeyCode.ButtonX then
  3648. kufunction("c")
  3649. end
  3650. if input.KeyCode == Enum.KeyCode.ButtonB then
  3651. kufunction("block")
  3652. if inmenu then
  3653. inmenu = false
  3654. gui.menu.Visible = false
  3655. keyinput:FireServer("mouselock", true)
  3656. end
  3657. if gui.club.Visible then
  3658. gui.club.Visible = false
  3659. end
  3660. if gui.tutorial.Visible then
  3661. gui.tutorial.Visible = false
  3662. end
  3663. end
  3664. if input.KeyCode == Enum.KeyCode.ButtonL2 then
  3665. kdfunction("clickrup")
  3666. end
  3667. if input.KeyCode == Enum.KeyCode.DPadLeft then
  3668. if inmenu then
  3669. return
  3670. end
  3671. kufunction("q")
  3672. end
  3673. if input.KeyCode == Enum.KeyCode.DPadDown then
  3674. if inmenu then
  3675. return
  3676. end
  3677. kufunction("v")
  3678. end
  3679. if input.KeyCode == Enum.KeyCode.DPadRight then
  3680. if inmenu then
  3681. return
  3682. end
  3683. kufunction("e")
  3684. end
  3685. if input.KeyCode == Enum.KeyCode.DPadUp then
  3686. if inmenu then
  3687. return
  3688. end
  3689. kufunction("w")
  3690. end
  3691. if input.KeyCode == Enum.KeyCode.ButtonL3 then
  3692. kufunction("0")
  3693. end
  3694. if input.KeyCode == Enum.KeyCode.ButtonX then
  3695. holddownx = false
  3696. end
  3697. if input.KeyCode == Enum.KeyCode.DPadUp then
  3698. if inmenu then
  3699. return
  3700. end
  3701. holddownup = false
  3702. end
  3703. end
  3704. end)
  3705. keyz = {
  3706. "r",
  3707. "t",
  3708. "y",
  3709. "f",
  3710. "g",
  3711. "h",
  3712. "1",
  3713. "2",
  3714. "3"
  3715. }
  3716. currentkeey = 0
  3717. UserInputService.InputChanged:connect(function(input, processed)
  3718. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  3719. slowdownturn = true
  3720. if input.KeyCode == Enum.KeyCode.Thumbstick1 then
  3721. a = 0
  3722. d = 0
  3723. w = 0
  3724. s = 0
  3725. if input.Position.X > 0.2 then
  3726. a = 0
  3727. d = 1
  3728. elseif input.Position.X < -0.2 then
  3729. a = 1
  3730. d = 0
  3731. end
  3732. if input.Position.Y == 1 then
  3733. w = 1
  3734. s = 0
  3735. elseif input.Position.Y == -1 then
  3736. w = 0
  3737. d = 1
  3738. end
  3739. end
  3740. end
  3741. end)
  3742. holddownx = false
  3743. holddownup = false
  3744. holdowzzzn = ""
  3745. function fireapower()
  3746. apos = mousehit()
  3747. keyinput:FireServer("mouse", apos)
  3748. keyinput:FireServer("firepower", currentselect)
  3749. currentselect = 0
  3750. locategui()
  3751. end
  3752. function typguis(getadd)
  3753. if getadd == "left" then
  3754. for i = 1, 9 do
  3755. gui.Menu3["key" .. i].img.Visible = false
  3756. end
  3757. for i = 1, 5 do
  3758. gui.Menu3["key" .. i].img.Visible = true
  3759. end
  3760. gui.Menu3["key" .. 5].img.Image = "rbxassetid://1049820267"
  3761. gui.Menu3.RB.Visible = false
  3762. gui.Menu3.LB.Visible = true
  3763. elseif getadd == "right" then
  3764. for i = 1, 9 do
  3765. gui.Menu3["key" .. i].img.Visible = false
  3766. end
  3767. for i = 5, 9 do
  3768. gui.Menu3["key" .. i].img.Visible = true
  3769. end
  3770. gui.Menu3["key" .. 5].img.Image = "rbxassetid://1049819993"
  3771. gui.Menu3.RB.Visible = true
  3772. gui.Menu3.LB.Visible = false
  3773. elseif getadd == "revert" then
  3774. gui.Menu3.RB.Visible = true
  3775. gui.Menu3.LB.Visible = true
  3776. for i = 1, 9 do
  3777. gui.Menu3["key" .. i].img.Visible = false
  3778. end
  3779. end
  3780. end
  3781. function setholdown(bag)
  3782. holddown = bag
  3783. keyinput:FireServer("holddown", holddown)
  3784. end
  3785. UserInputService.InputBegan:connect(function(input, processed)
  3786. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  3787. if input.KeyCode == Enum.KeyCode.ButtonR1 then
  3788. currentkeey = currentkeey + 1
  3789. if currentkeey > #keyz then
  3790. currentkeey = 1
  3791. end
  3792. kdfunction(keyz[currentkeey])
  3793. end
  3794. if input.KeyCode == Enum.KeyCode.ButtonL1 then
  3795. currentkeey = currentkeey - 1
  3796. if currentkeey < 1 then
  3797. currentkeey = #keyz
  3798. end
  3799. kdfunction(keyz[currentkeey])
  3800. end
  3801. if input.KeyCode == Enum.KeyCode.ButtonX and holddownup then
  3802. kdfunction("b")
  3803. return
  3804. end
  3805. if input.KeyCode == Enum.KeyCode.DPadUp then
  3806. if inmenu then
  3807. return
  3808. end
  3809. holddownup = true
  3810. end
  3811. if input.KeyCode == Enum.KeyCode.ButtonA then
  3812. kdfunction(" ")
  3813. end
  3814. if input.KeyCode == Enum.KeyCode.ButtonY then
  3815. kdfunction("z")
  3816. end
  3817. if input.KeyCode == Enum.KeyCode.ButtonX then
  3818. kdfunction("c")
  3819. end
  3820. if input.KeyCode == Enum.KeyCode.ButtonB then
  3821. kdfunction("block")
  3822. end
  3823. if input.KeyCode == Enum.KeyCode.ButtonL2 then
  3824. kdfunction("clickr")
  3825. end
  3826. if input.KeyCode == Enum.KeyCode.DPadDown then
  3827. if inmenu then
  3828. return
  3829. end
  3830. kdfunction("v")
  3831. end
  3832. if input.KeyCode == Enum.KeyCode.DPadLeft then
  3833. if inmenu then
  3834. return
  3835. end
  3836. kdfunction("q")
  3837. end
  3838. if input.KeyCode == Enum.KeyCode.DPadRight then
  3839. if inmenu then
  3840. return
  3841. end
  3842. kdfunction("e")
  3843. end
  3844. if input.KeyCode == Enum.KeyCode.DPadUp then
  3845. if inmenu then
  3846. return
  3847. end
  3848. kdfunction("w")
  3849. end
  3850. if input.KeyCode == Enum.KeyCode.ButtonL3 then
  3851. kdfunction("0")
  3852. end
  3853. end
  3854. end)
  3855. wcooldown = false
  3856. qcooldown = false
  3857. ecooldown = false
  3858. scooldown = false
  3859. function kdfunction(key)
  3860. key = string.lower(key)
  3861. if key == "z" then
  3862. apos = mousehit()
  3863. keyinput:FireServer("mouse", apos)
  3864. end
  3865. if key == "w" then
  3866. w = 1
  3867. end
  3868. if key == "s" then
  3869. s = 1
  3870. end
  3871. if key == "a" then
  3872. a = 1
  3873. end
  3874. if key == "d" then
  3875. d = 1
  3876. end
  3877. if not inbuilding or key == "0" or key == "x" or key == "1" or key == "2" or key == "3" or key == "c" or key == " " then
  3878. else
  3879. return
  3880. end
  3881. if storymode then
  3882. dontdisable = false
  3883. if storymode.onlycombatkeys.Value then
  3884. if key == "clickr" or key == "clickrup" or key == "clickl" or key == " " or key == "q" or key == "e" or key:byte() == 9 or key == "block" or key == "0" or key == "w" or key == "x" then
  3885. dontdisable = true
  3886. print("FDFD")
  3887. else
  3888. return
  3889. end
  3890. else
  3891. dontdisable = true
  3892. end
  3893. if dontdisable then
  3894. if key == storymode.certainkey.Value then
  3895. effectz:FireServer("certainkey", "")
  3896. elseif storymode.disablekeys.Value then
  3897. return
  3898. end
  3899. end
  3900. end
  3901. if key == "clickrup" then
  3902. holddown2 = false
  3903. if holddownsword then
  3904. holddownsword = false
  3905. end
  3906. end
  3907. if key:byte() == 9 or key == "block" then
  3908. if inblock then
  3909. return
  3910. end
  3911. inblock = true
  3912. blockidlz:Play()
  3913. keyinput:FireServer("block", true)
  3914. end
  3915. if key == "m" then
  3916. if inmenu then
  3917. inmenu = false
  3918. gui.menu.Visible = false
  3919. keyinput:FireServer("mouselock", true)
  3920. return
  3921. end
  3922. inmenu = true
  3923. gui.menu.Visible = true
  3924. keyinput:FireServer("mouselock", false)
  3925. end
  3926. if key == "r" then
  3927. if inblock or holddown then
  3928. return
  3929. end
  3930. if currentselect == 1 then
  3931. currentselect = 0
  3932. locategui()
  3933. return
  3934. end
  3935. currentselect = tonumber("1")
  3936. locategui()
  3937. end
  3938. if key == "t" then
  3939. if inblock or holddown then
  3940. return
  3941. end
  3942. if currentselect == 2 then
  3943. currentselect = 0
  3944. locategui()
  3945. return
  3946. end
  3947. currentselect = tonumber("2")
  3948. locategui()
  3949. end
  3950. if key == "y" then
  3951. if inblock or holddown then
  3952. return
  3953. end
  3954. if currentselect == 3 then
  3955. currentselect = 0
  3956. locategui()
  3957. return
  3958. end
  3959. currentselect = tonumber("3")
  3960. locategui()
  3961. end
  3962. if key == "f" then
  3963. if inblock or holddown then
  3964. return
  3965. end
  3966. if currentselect == 4 then
  3967. currentselect = 0
  3968. locategui()
  3969. return
  3970. end
  3971. currentselect = tonumber("4")
  3972. locategui()
  3973. end
  3974. if key == "g" then
  3975. if inblock or holddown then
  3976. return
  3977. end
  3978. if currentselect == 5 then
  3979. currentselect = 0
  3980. locategui()
  3981. return
  3982. end
  3983. currentselect = tonumber("5")
  3984. locategui()
  3985. end
  3986. if key == "h" then
  3987. if inblock or holddown then
  3988. return
  3989. end
  3990. if currentselect == 6 then
  3991. currentselect = 0
  3992. locategui()
  3993. return
  3994. end
  3995. currentselect = tonumber("6")
  3996. locategui()
  3997. end
  3998. if key == "1" then
  3999. if inblock or holddown then
  4000. return
  4001. end
  4002. if currentselect == 7 then
  4003. currentselect = 0
  4004. locategui()
  4005. keyinput:FireServer("removesword")
  4006. return
  4007. end
  4008. currentselect = tonumber("7")
  4009. locategui()
  4010. keyinput:FireServer("wep1")
  4011. end
  4012. if key == "2" then
  4013. if inblock or holddown then
  4014. return
  4015. end
  4016. if currentselect == 8 then
  4017. currentselect = 0
  4018. locategui()
  4019. keyinput:FireServer("removesword")
  4020. return
  4021. end
  4022. currentselect = tonumber("8")
  4023. locategui()
  4024. keyinput:FireServer("wep2")
  4025. end
  4026. if key == "3" then
  4027. if inblock or holddown then
  4028. return
  4029. end
  4030. if currentselect == 9 then
  4031. currentselect = 0
  4032. locategui()
  4033. keyinput:FireServer("removesword")
  4034. return
  4035. end
  4036. currentselect = tonumber("9")
  4037. locategui()
  4038. keyinput:FireServer("wep3")
  4039. end
  4040. if key == "0" then
  4041. chakrarun = true
  4042. updateanim()
  4043. end
  4044. if key == "e" and gui.counter.Visible then
  4045. keyinput:FireServer("counter", 1)
  4046. end
  4047. if enabled or disableplr or disabled or combatfolder.stunplayer.Value or combatfolder.down.Value or inship then
  4048. return
  4049. end
  4050. if key == "b" then
  4051. keyinput:FireServer("createclone")
  4052. end
  4053. if key == "clickl" then
  4054. if inblock then
  4055. return
  4056. end
  4057. if 5 <= combatfolder.stamina.Value then
  4058. combatfolder.stamina.Value = combatfolder.stamina.Value - 5
  4059. else
  4060. return
  4061. end
  4062. if holddown2 or holddownsword then
  4063. return
  4064. end
  4065. enabled = true
  4066. punczzhL:Play()
  4067. punch = punch + 1
  4068. if punch > #origcombattab then
  4069. punch = 1
  4070. end
  4071. disableautorotate = true
  4072. combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
  4073. if equipsword then
  4074. aaasds = math.random(1, 2)
  4075. if aaasds == 2 then
  4076. combatanim.AnimationId = "rbxassetid://" .. origcombattab2[punch]
  4077. end
  4078. end
  4079. combatanimz = humanoid:LoadAnimation(combatanim)
  4080. combatanimz:Play()
  4081. aaa = closestplr4(Character)
  4082. keyinput:FireServer("slash")
  4083. slowdowncharacter = true
  4084. local canthrow = true
  4085. local findswordz = Character:FindFirstChild("sword")
  4086. if findswordz and findswordz:FindFirstChild("throw2") then
  4087. canthrow = false
  4088. punch = 1
  4089. combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
  4090. combatanimz = humanoid:LoadAnimation(combatanim)
  4091. combatanimz:Play()
  4092. keyinput:FireServer("checkwep", apos)
  4093. wait(combatanimz.Length - 0.3)
  4094. end
  4095. if canthrow then
  4096. creategui("weak")
  4097. keyinput:FireServer("combat")
  4098. if aaa[2] then
  4099. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  4100. end
  4101. if inmainpower then
  4102. rootpart.Velocity = rootpart.CFrame.lookVector * 30
  4103. else
  4104. rootpart.Velocity = rootpart.CFrame.lookVector * 30
  4105. end
  4106. pushcharc = true
  4107. if equipsword then
  4108. wait(combatanimz.Length - 0.3)
  4109. else
  4110. wait(combatanimz.Length - 0.3)
  4111. end
  4112. end
  4113. pushcharc = false
  4114. enabled = false
  4115. slowdowncharacter = false
  4116. disableautorotate = false
  4117. end
  4118. if key == "clickr" then
  4119. if inblock then
  4120. return
  4121. end
  4122. if 5 <= combatfolder.stamina.Value then
  4123. combatfolder.stamina.Value = combatfolder.stamina.Value - 5
  4124. else
  4125. return
  4126. end
  4127. print(equipsword, strongcombattab[3], "SfsdfSD")
  4128. if equipsword and strongcombattab[3] then
  4129. enabled = true
  4130. holddown2 = true
  4131. holddownsword = true
  4132. local amtoftime = 0
  4133. local createnoise = 0
  4134. combatanimz:Stop()
  4135. combatanim.AnimationId = "rbxassetid://" .. strongcombattab[1]
  4136. combatanimz = humanoid:LoadAnimation(combatanim)
  4137. combatanimz:Play()
  4138. repeat
  4139. amtoftime = amtoftime + 0.02
  4140. createnoise = createnoise + 0.05
  4141. if createnoise >= 1 - createnoise then
  4142. createnoise = 0
  4143. sound(rootpart, 180204562, 1)
  4144. humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02)
  4145. end
  4146. combatanimz:AdjustSpeed(0.4)
  4147. if amtoftime >= 1 then
  4148. combatanimz:Stop()
  4149. combatanim.AnimationId = "rbxassetid://" .. strongcombattab[2]
  4150. combatanimz = humanoid:LoadAnimation(combatanim)
  4151. combatanimz:Play()
  4152. break
  4153. end
  4154. renderstepped:wait()
  4155. until holddownsword == false or holddown
  4156. if amtoftime >= 1 then
  4157. if amtoftime >= 1 then
  4158. keyinput:FireServer("getwepchakra")
  4159. end
  4160. repeat
  4161. humanoid.CameraOffset = origcameraoffset + Vector3.new(math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02, math.random(-3, 3) * 0.02)
  4162. createnoise = createnoise + 0.1
  4163. if createnoise >= 0.8 then
  4164. createnoise = 0
  4165. sound(rootpart, 180204562, 1)
  4166. end
  4167. renderstepped:wait()
  4168. until holddownsword == false
  4169. pushcharc = true
  4170. combatanimz:Stop()
  4171. punczzhL:Play()
  4172. punch = punch + 1
  4173. if punch > #origcombattab then
  4174. punch = 1
  4175. end
  4176. disableautorotate = true
  4177. combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
  4178. combatanimz = humanoid:LoadAnimation(combatanim)
  4179. combatanimz:Play()
  4180. sound(rootpart, 260430015, 5)
  4181. holddown2 = false
  4182. keyinput:FireServer("combat2")
  4183. aaa = closestplr4(Character)
  4184. if aaa[2] then
  4185. keyinput:FireServer("combo", aaa[2].Parent)
  4186. end
  4187. cantchangeanim = true
  4188. keyinput:FireServer("fireweppower")
  4189. wait(combatanimz.Length - 0.2)
  4190. else
  4191. pushcharc = true
  4192. combatanimz:Stop()
  4193. punch = punch + 1
  4194. if punch > #origcombattab then
  4195. punch = 1
  4196. end
  4197. disableautorotate = true
  4198. combatanim.AnimationId = "rbxassetid://" .. origcombattab[punch]
  4199. if equipsword then
  4200. aaasds = math.random(1, 2)
  4201. if aaasds == 2 then
  4202. punch = punch + 1
  4203. punczzhL:Play()
  4204. if punch > #strongcombattab then
  4205. punch = 1
  4206. end
  4207. combatanim.AnimationId = "rbxassetid://" .. origstrongcombattab[punch]
  4208. end
  4209. end
  4210. combatanimz = humanoid:LoadAnimation(combatanim)
  4211. combatanimz:Play()
  4212. aaa = closestplr4(Character)
  4213. keyinput:FireServer("slash")
  4214. slowdowncharacter = true
  4215. creategui("strong")
  4216. keyinput:FireServer("combat2")
  4217. if aaa[2] then
  4218. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  4219. end
  4220. wait(combatanimz.Length - 0.2)
  4221. end
  4222. cantchangeanim = false
  4223. holddown2 = false
  4224. pushcharc = false
  4225. slowdowncharacter = false
  4226. holddownsword = false
  4227. enabled = false
  4228. disableautorotate = false
  4229. return
  4230. end
  4231. enabled = true
  4232. punch = punch + 1
  4233. punczzhL:Play()
  4234. if punch > #strongcombattab then
  4235. punch = 1
  4236. end
  4237. combatanim.AnimationId = "rbxassetid://" .. strongcombattab[punch]
  4238. combatanimz = humanoid:LoadAnimation(combatanim)
  4239. combatanimz:Play()
  4240. aaa = closestplr4(Character)
  4241. keyinput:FireServer("slash")
  4242. slowdowncharacter = true
  4243. apos = mousehit()
  4244. local canthrow = true
  4245. local findswordz = Character:FindFirstChild("sword")
  4246. if findswordz and (findswordz:FindFirstChild("throw") or findswordz:FindFirstChild("throw2")) then
  4247. canthrow = false
  4248. keyinput:FireServer("checkwep", apos)
  4249. wait(combatanimz.Length - 0.3)
  4250. end
  4251. if canthrow then
  4252. creategui("strong")
  4253. keyinput:FireServer("combat2")
  4254. if aaa[2] then
  4255. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaa[2].Parent.HumanoidRootPart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.p.Y, 0)
  4256. end
  4257. pushcharc = true
  4258. if inmainpower then
  4259. rootpart.Velocity = rootpart.CFrame.lookVector * 30
  4260. else
  4261. rootpart.Velocity = rootpart.CFrame.lookVector * 30
  4262. end
  4263. if equipsword then
  4264. wait(combatanimz.Length)
  4265. else
  4266. wait(combatanimz.Length - 0.3)
  4267. end
  4268. pushcharc = false
  4269. end
  4270. enabled = false
  4271. slowdowncharacter = false
  4272. end
  4273. if key == "z" then
  4274. if charge then
  4275. return
  4276. end
  4277. if delaycharge then
  4278. return
  4279. end
  4280. chargeanimz:Play()
  4281. charge2 = true
  4282. keyinput:FireServer("mode", charge2)
  4283. holddown = false
  4284. if humanoid.AutoRotate == false then
  4285. humanoid.AutoRotate = true
  4286. end
  4287. keyinput:FireServer("holddown", holddown)
  4288. end
  4289. if key == "c" then
  4290. if charge2 then
  4291. return
  4292. end
  4293. if delaycharge then
  4294. return
  4295. end
  4296. chargeanimz:Play()
  4297. charge = true
  4298. keyinput:FireServer("charge", charge)
  4299. holddown = false
  4300. if humanoid.AutoRotate == false then
  4301. humanoid.AutoRotate = true
  4302. end
  4303. keyinput:FireServer("holddown", holddown)
  4304. end
  4305. if key == " " then
  4306. if flash then
  4307. else
  4308. cfr = rootpart.CFrame * CFrame.new(0, 0, -5)
  4309. local path = Ray.new(rootpart.CFrame.p, (cfr.p - rootpart.CFrame.p).unit * 10)
  4310. local Hit, Position = game.Workspace:FindPartOnRay(path, Character)
  4311. if Hit then
  4312. if intreejump then
  4313. return
  4314. end
  4315. if Hit:IsDescendantOf(workspace.Tree) then
  4316. intreejump = true
  4317. jumpanimanim:Stop()
  4318. treeidlzz:Stop()
  4319. dbljumpanimanim:Stop()
  4320. rootpart.Velocity = Vector3.new(0, 0, 0)
  4321. rootpart.Velocity = rootpart.CFrame.lookVector * -30 + Vector3.new(0, 100, 0)
  4322. treejumpz:Play()
  4323. sound(rootpart, 147722270, 2)
  4324. wait(0.3)
  4325. intreejump = false
  4326. return
  4327. else
  4328. end
  4329. end
  4330. end
  4331. if cantdoublejump then
  4332. return
  4333. end
  4334. doublejump = doublejump + 1
  4335. cfr = rootpart.CFrame * CFrame.new(0, -5, 0)
  4336. local path = Ray.new(rootpart.CFrame.p, (cfr.p - rootpart.CFrame.p).unit * 300)
  4337. local Hit, Position = game.Workspace:FindPartOnRay(path, Character)
  4338. if Hit and Hit:IsDescendantOf(workspace.Tree) and Hit.Name == "leaf" then
  4339. lstjump = Hit
  4340. end
  4341. delay(0.4, function()
  4342. lstjump = nil
  4343. if doublejump == 1 then
  4344. doublejump = 0
  4345. end
  4346. end)
  4347. if 2 <= doublejump then
  4348. if inblock then
  4349. doublejump = 0
  4350. cantdoublejump = true
  4351. delay(1, function()
  4352. cantdoublejump = false
  4353. end)
  4354. inteleport = true
  4355. keyinput:FireServer("sub")
  4356. rootpart.CFrame = rootpart.CFrame + Vector3.new(math.random(-5, 5), 50, math.random(-5, 5))
  4357. fallanims:Play()
  4358. wait(0.5)
  4359. inteleport = false
  4360. else
  4361. doublejump = 0
  4362. cantdoublejump = true
  4363. delay(1, function()
  4364. cantdoublejump = false
  4365. end)
  4366. if w == 1 and lstjump then
  4367. lstjump = nil
  4368. jumpanimanim:Stop()
  4369. treeidlzz:Stop()
  4370. treejumpz:Stop()
  4371. dbljumpanimanim:Stop()
  4372. rootpart.Velocity = Vector3.new(0, 0, 0)
  4373. rootpart.Velocity = rootpart.CFrame.lookVector * 150 + Vector3.new(0, 70, 0)
  4374. sound(rootpart, 147722270, 2)
  4375. for i = 1, 5 do
  4376. renderstepped:wait()
  4377. forwardtreez:Play()
  4378. end
  4379. wait(0.3)
  4380. forwardtreez:Stop()
  4381. dbljumpanimanim:Play()
  4382. rootpart.Velocity = Vector3.new(0, 0, 0)
  4383. return
  4384. end
  4385. sound(rootpart, 147722227, 1)
  4386. rootpart.Velocity = rootpart.Velocity + Vector3.new(0, 100, 0)
  4387. dbljumpanimanim:Play()
  4388. wait(0.6)
  4389. fallanims:Play()
  4390. end
  4391. end
  4392. end
  4393. end
  4394. chakrarun = false
  4395. mouse.KeyDown:connect(function(key)
  4396. if charge or charge2 then
  4397. return
  4398. end
  4399. kdfunction(key)
  4400. end)
  4401. slidespeed = 0
  4402. fly = false
  4403. goingup = false
  4404. goingdown = false
  4405. function closegui()
  4406. for i = 1, 10 do
  4407. findgui = gui.comboframe:FindFirstChild(i)
  4408. if findgui then
  4409. findgui.Visible = false
  4410. end
  4411. end
  4412. end
  4413. run = true
  4414. doublejump = 0
  4415. cantdoublejump = false
  4416. delaycharge = false
  4417. pressw = 0
  4418. presss = 0
  4419. pressa = 0
  4420. pressd = 0
  4421. function kufunction(key)
  4422. key = string.lower(key)
  4423. if key == "z" then
  4424. apos = mousehit()
  4425. keyinput:FireServer("mouse", apos)
  4426. end
  4427. if key == "w" then
  4428. w = 0
  4429. end
  4430. if key == "s" then
  4431. s = 0
  4432. end
  4433. if key == "a" then
  4434. a = 0
  4435. end
  4436. if key == "d" then
  4437. d = 0
  4438. end
  4439. if not inbuilding or key == "0" or key == "x" or key == "1" or key == "2" or key == "3" or key == "c" or key == " " then
  4440. else
  4441. return
  4442. end
  4443. if storymode then
  4444. dontdisable = false
  4445. if storymode.onlycombatkeys.Value then
  4446. if key == "clickr" or key == "clickrup" or key == "clickl" or key == " " or key == "q" or key == "e" or key:byte() == 9 or key == "block" or key == "0" or key == "w" or key == "x" then
  4447. dontdisable = true
  4448. print("FDFD")
  4449. else
  4450. return
  4451. end
  4452. else
  4453. dontdisable = true
  4454. end
  4455. if dontdisable then
  4456. if key == storymode.certainkey.Value then
  4457. effectz:FireServer("certainkey", "")
  4458. elseif storymode.disablekeys.Value then
  4459. return
  4460. end
  4461. end
  4462. end
  4463. if key:byte() == 9 or key == "block" then
  4464. inblock = false
  4465. blockidlz:Stop()
  4466. keyinput:FireServer("block", false)
  4467. end
  4468. if key == "w" then
  4469. if enabled or disabled or disableplr or wcooldown then
  4470. return
  4471. end
  4472. if inblock then
  4473. return
  4474. end
  4475. pressw = pressw + 1
  4476. delay(0.3, function()
  4477. if pressw == 1 then
  4478. pressw = 0
  4479. end
  4480. end)
  4481. if pressw == 2 then
  4482. wcooldown = true
  4483. delay(2, function()
  4484. wcooldown = false
  4485. end)
  4486. pressw = 0
  4487. if combatfolder.stamina.Value >= 30 then
  4488. enabled = true
  4489. keyinput:FireServer("dashstamina")
  4490. sound(rootpart, 147722227)
  4491. stickgyro = true
  4492. for i = 1, 4 do
  4493. local partA = rootpart
  4494. local attachmentA = Instance.new("Attachment", partA)
  4495. attachmentA.Position = Vector3.new(0, 0, 0)
  4496. local partB = rootpart
  4497. local attachmentB = Instance.new("Attachment", partB)
  4498. attachmentB.Position = Vector3.new(0, 0, 0)
  4499. local hingeConstraint = Instance.new("Beam", partA)
  4500. hingeConstraint.Attachment0 = attachmentA
  4501. hingeConstraint.Attachment1 = attachmentB
  4502. hingeConstraint.Width0 = 0
  4503. hingeConstraint.Width1 = 1
  4504. hingeConstraint.LightEmission = 1
  4505. hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
  4506. game.Debris:AddItem(attachmentA, 1)
  4507. game.Debris:AddItem(attachmentB, 1)
  4508. game.Debris:AddItem(hingeConstraint, 1)
  4509. local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
  4510. local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
  4511. local propertyGoals = {
  4512. Position = Vector3.new(math.random(-15, 15), math.random(-15, 15), 30)
  4513. }
  4514. local propertyGoals2 = {Width0 = 0, Width1 = 0}
  4515. local propertyGoals3 = {
  4516. Width0 = 0,
  4517. Width1 = 0,
  4518. CurveSize0 = math.random(-7, 7),
  4519. CurveSize1 = math.random(-7, 7)
  4520. }
  4521. local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
  4522. local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
  4523. local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
  4524. tween:Play()
  4525. tween2:Play()
  4526. tween4:Play()
  4527. end
  4528. disableautorotate = true
  4529. b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
  4530. b5.Velocity = rootpart.CFrame.lookVector * 100
  4531. wstepz:Play()
  4532. for rtr = 1, 50 do
  4533. renderstepped:wait()
  4534. aaa = closestplr4(Character)
  4535. if aaa[2] then
  4536. gyrfly.MaxTorque = Vector3.new()
  4537. rootpart.Velocity = Vector3.new(0, 0, 0)
  4538. b5.maxForce = Vector3.new(0, 0, 0)
  4539. b5.Velocity = rootpart.CFrame.lookVector * 0
  4540. stickgyro = false
  4541. rootpart.CFrame = aaa[2].CFrame * CFrame.new(0, 0, -4) * CFrame.Angles(0, math.pi, 0)
  4542. keyinput:FireServer("combo", aaa[2].Parent)
  4543. combatanim.AnimationId = "rbxassetid://" .. origcombattab[#origcombattab]
  4544. combatanimz = humanoid:LoadAnimation(combatanim)
  4545. combatanimz:Play()
  4546. wait(0.6)
  4547. break
  4548. end
  4549. cfrssszzz = rootpart.CFrame * CFrame.new(0, 0, -5)
  4550. local pathd = Ray.new(rootpart.CFrame.p, (cfrssszzz.p - rootpart.CFrame.p).unit * 5)
  4551. local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
  4552. if Hitd then
  4553. break
  4554. end
  4555. end
  4556. disableautorotate = false
  4557. rootpart.Velocity = Vector3.new(0, 0, 0)
  4558. b5.maxForce = Vector3.new(0, 0, 0)
  4559. b5.Velocity = rootpart.CFrame.lookVector * 0
  4560. sound(rootpart, 268933900)
  4561. enabled = false
  4562. wstepz:Stop()
  4563. landstepz:Play()
  4564. gyrfly.MaxTorque = Vector3.new()
  4565. stickgyro = false
  4566. end
  4567. end
  4568. end
  4569. if key == "s" then
  4570. if enabled or disabled or disableplr or scooldown then
  4571. return
  4572. end
  4573. if inblock then
  4574. return
  4575. end
  4576. presss = presss + 1
  4577. delay(0.2, function()
  4578. if presss == 1 then
  4579. presss = 0
  4580. end
  4581. end)
  4582. if presss == 2 then
  4583. scooldown = true
  4584. delay(2, function()
  4585. scooldown = false
  4586. end)
  4587. presss = 0
  4588. if combatfolder.stamina.Value >= 30 then
  4589. keyinput:FireServer("dashstamina")
  4590. enabled = true
  4591. cfr2 = rootpart.CFrame
  4592. b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
  4593. b5.Velocity = cfr2.lookVector * -100
  4594. ssidestepz:Play()
  4595. sound(rootpart, 147722227)
  4596. disableautorotate = true
  4597. stickgyro = true
  4598. for i = 1, 4 do
  4599. local partA = rootpart
  4600. local attachmentA = Instance.new("Attachment", partA)
  4601. attachmentA.Position = Vector3.new(0, 0, 0)
  4602. local partB = rootpart
  4603. local attachmentB = Instance.new("Attachment", partB)
  4604. attachmentB.Position = Vector3.new(0, 0, 0)
  4605. local hingeConstraint = Instance.new("Beam", partA)
  4606. hingeConstraint.Attachment0 = attachmentA
  4607. hingeConstraint.Attachment1 = attachmentB
  4608. hingeConstraint.Width0 = 0
  4609. hingeConstraint.Width1 = 1
  4610. hingeConstraint.LightEmission = 1
  4611. hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
  4612. game.Debris:AddItem(attachmentA, 1)
  4613. game.Debris:AddItem(attachmentB, 1)
  4614. game.Debris:AddItem(hingeConstraint, 1)
  4615. local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
  4616. local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
  4617. local propertyGoals = {
  4618. Position = Vector3.new(math.random(-15, 15), math.random(-15, 15), -30)
  4619. }
  4620. local propertyGoals2 = {Width0 = 0, Width1 = 0}
  4621. local propertyGoals3 = {
  4622. Width0 = 0,
  4623. Width1 = 0,
  4624. CurveSize0 = math.random(-7, 7),
  4625. CurveSize1 = math.random(-7, 7)
  4626. }
  4627. local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
  4628. local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
  4629. local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
  4630. tween:Play()
  4631. tween2:Play()
  4632. tween4:Play()
  4633. end
  4634. for i = 1, 30 do
  4635. renderstepped:wait()
  4636. cfr2 = rootpart.CFrame * CFrame.new(0, 0, 1)
  4637. local pathd = Ray.new(rootpart.CFrame.p, (cfr2.p - rootpart.CFrame.p).unit * 5)
  4638. local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
  4639. if Hitd then
  4640. break
  4641. end
  4642. end
  4643. disableautorotate = false
  4644. sound(rootpart, 268933900)
  4645. rootpart.Velocity = Vector3.new(0, 0, 0)
  4646. b5.maxForce = Vector3.new(0, 0, 0)
  4647. b5.Velocity = cfr2.lookVector * 0
  4648. enabled = false
  4649. gyrfly.MaxTorque = Vector3.new()
  4650. landstepz:Play()
  4651. ssidestepz:Stop()
  4652. stickgyro = false
  4653. end
  4654. end
  4655. end
  4656. if key == "q" then
  4657. if enabled or disabled or disableplr or qcooldown then
  4658. return
  4659. end
  4660. if combatfolder.stamina.Value >= 30 then
  4661. keyinput:FireServer("dashstamina")
  4662. enabled = true
  4663. qcooldown = true
  4664. delay(2, function()
  4665. qcooldown = false
  4666. end)
  4667. cfr2 = rootpart.CFrame * CFrame.Angles(0, math.pi / 2, 0)
  4668. b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
  4669. b5.Velocity = cfr2.lookVector * 100
  4670. asidestepz:Play()
  4671. sound(rootpart, 147722227)
  4672. disableautorotate = true
  4673. stickgyro = true
  4674. for i = 1, 4 do
  4675. local partA = rootpart
  4676. local attachmentA = Instance.new("Attachment", partA)
  4677. attachmentA.Position = Vector3.new(0, 0, 0)
  4678. local partB = rootpart
  4679. local attachmentB = Instance.new("Attachment", partB)
  4680. attachmentB.Position = Vector3.new(0, 0, 0)
  4681. local hingeConstraint = Instance.new("Beam", partA)
  4682. hingeConstraint.Attachment0 = attachmentA
  4683. hingeConstraint.Attachment1 = attachmentB
  4684. hingeConstraint.Width0 = 0
  4685. hingeConstraint.Width1 = 1
  4686. hingeConstraint.LightEmission = 1
  4687. hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
  4688. game.Debris:AddItem(attachmentA, 1)
  4689. game.Debris:AddItem(attachmentB, 1)
  4690. game.Debris:AddItem(hingeConstraint, 1)
  4691. local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
  4692. local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
  4693. local propertyGoals = {
  4694. Position = Vector3.new(30, math.random(-15, 15), math.random(-15, 15))
  4695. }
  4696. local propertyGoals2 = {Width0 = 0, Width1 = 0}
  4697. local propertyGoals3 = {
  4698. Width0 = 0,
  4699. Width1 = 0,
  4700. CurveSize0 = math.random(-7, 7),
  4701. CurveSize1 = math.random(-7, 7)
  4702. }
  4703. local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
  4704. local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
  4705. local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
  4706. tween:Play()
  4707. tween2:Play()
  4708. tween4:Play()
  4709. end
  4710. for i = 1, 30 do
  4711. renderstepped:wait()
  4712. cfr2 = rootpart.CFrame * CFrame.new(-1, 0, 0)
  4713. local pathd = Ray.new(rootpart.CFrame.p, (cfr2.p - rootpart.CFrame.p).unit * 5)
  4714. local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
  4715. if Hitd then
  4716. break
  4717. end
  4718. end
  4719. disableautorotate = false
  4720. sound(rootpart, 268933900)
  4721. rootpart.Velocity = Vector3.new(0, 0, 0)
  4722. b5.maxForce = Vector3.new(0, 0, 0)
  4723. b5.Velocity = cfr2.lookVector * 0
  4724. enabled = false
  4725. gyrfly.MaxTorque = Vector3.new()
  4726. stickgyro = false
  4727. end
  4728. end
  4729. if key == "e" then
  4730. if enabled or disabled or disableplr or ecooldown then
  4731. return
  4732. end
  4733. if combatfolder.stamina.Value >= 30 then
  4734. keyinput:FireServer("dashstamina")
  4735. enabled = true
  4736. ecooldown = true
  4737. delay(2, function()
  4738. ecooldown = false
  4739. end)
  4740. sound(rootpart, 147722227)
  4741. cfr2 = rootpart.CFrame * CFrame.Angles(0, -math.pi / 2, 0)
  4742. b5.maxForce = Vector3.new(1 / 0, 0, 1 / 0)
  4743. b5.Velocity = cfr2.lookVector * 100
  4744. dsidestepz:Play()
  4745. stickgyro = true
  4746. disableautorotate = true
  4747. for i = 1, 4 do
  4748. local partA = rootpart
  4749. local attachmentA = Instance.new("Attachment", partA)
  4750. attachmentA.Position = Vector3.new(0, 0, 0)
  4751. local partB = rootpart
  4752. local attachmentB = Instance.new("Attachment", partB)
  4753. attachmentB.Position = Vector3.new(0, 0, 0)
  4754. local hingeConstraint = Instance.new("Beam", partA)
  4755. hingeConstraint.Attachment0 = attachmentA
  4756. hingeConstraint.Attachment1 = attachmentB
  4757. hingeConstraint.Width0 = 0
  4758. hingeConstraint.Width1 = 1
  4759. hingeConstraint.LightEmission = 1
  4760. hingeConstraint.Color = ColorSequence.new(BrickColor.White().Color)
  4761. game.Debris:AddItem(attachmentA, 1)
  4762. game.Debris:AddItem(attachmentB, 1)
  4763. game.Debris:AddItem(hingeConstraint, 1)
  4764. local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 5, false, 0)
  4765. local tweenInfo2 = TweenInfo.new(0.7, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut, 0, false, 0)
  4766. local propertyGoals = {
  4767. Position = Vector3.new(-30, math.random(-15, 15), math.random(-15, 15))
  4768. }
  4769. local propertyGoals2 = {Width0 = 0, Width1 = 0}
  4770. local propertyGoals3 = {
  4771. Width0 = 0,
  4772. Width1 = 0,
  4773. CurveSize0 = math.random(-7, 7),
  4774. CurveSize1 = math.random(-7, 7)
  4775. }
  4776. local tween = TweenService:Create(hingeConstraint, tweenInfo, propertyGoals2)
  4777. local tween2 = TweenService:Create(attachmentB, tweenInfo2, propertyGoals)
  4778. local tween4 = TweenService:Create(hingeConstraint, tweenInfo2, propertyGoals3)
  4779. tween:Play()
  4780. tween2:Play()
  4781. tween4:Play()
  4782. end
  4783. for i = 1, 30 do
  4784. renderstepped:wait()
  4785. cfr2 = rootpart.CFrame * CFrame.new(1, 0, 0)
  4786. local pathd = Ray.new(rootpart.CFrame.p, (cfr2.p - rootpart.CFrame.p).unit * 5)
  4787. local Hitd, Positiond = game.Workspace:FindPartOnRay(pathd, Character)
  4788. if Hitd then
  4789. break
  4790. end
  4791. end
  4792. disableautorotate = false
  4793. rootpart.Velocity = Vector3.new(0, 0, 0)
  4794. b5.maxForce = Vector3.new(0, 0, 0)
  4795. sound(rootpart, 268933900)
  4796. b5.Velocity = cfr2.lookVector * 0
  4797. enabled = false
  4798. gyrfly.MaxTorque = Vector3.new()
  4799. stickgyro = false
  4800. end
  4801. end
  4802. if key == "0" then
  4803. chakrarun = false
  4804. updateanim()
  4805. end
  4806. if key == "v" then
  4807. if flash then
  4808. flash = false
  4809. if wallclimb then
  4810. wallclimb = false
  4811. canclimb = false
  4812. gyrfly.maxTorque = Vector3.new(0, 0, 0)
  4813. gyrfly.P = origp
  4814. gyrfly.D = origd
  4815. b5.maxForce = Vector3.new(0, 0, 0)
  4816. rootpart.CFrame = CFrame.new(rootpart.Position.X, rootpart.Position.Y, rootpart.Position.Z)
  4817. aaaas = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
  4818. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaaas.p * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.Y, 0)
  4819. humanoid.Jump = true
  4820. humanoid.PlatformStand = false
  4821. walkanimanim:Stop()
  4822. rootpart.Velocity = rootpart.Velocity + Vector3.new(0, 100, 0)
  4823. end
  4824. keyinput:FireServer("walkon", flash)
  4825. return
  4826. end
  4827. flash = true
  4828. keyinput:FireServer("walkon", flash)
  4829. end
  4830. if (key == " " or key == "q" or key == "e") and wallclimb then
  4831. wallclimb = false
  4832. canclimb = false
  4833. gyrfly.maxTorque = Vector3.new(0, 0, 0)
  4834. gyrfly.P = origp
  4835. gyrfly.D = origd
  4836. b5.maxForce = Vector3.new(0, 0, 0)
  4837. rootpart.CFrame = CFrame.new(rootpart.Position.X, rootpart.Position.Y, rootpart.Position.Z)
  4838. aaaas = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
  4839. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaaas.p * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.Y, 0)
  4840. humanoid.Jump = true
  4841. humanoid.PlatformStand = false
  4842. walkanimanim:Stop()
  4843. rootpart.Velocity = rootpart.Velocity + Vector3.new(0, 100, 0)
  4844. end
  4845. if enabled or holddown then
  4846. return
  4847. end
  4848. if key == "c" then
  4849. if delaycharge then
  4850. return
  4851. end
  4852. delaycharge = true
  4853. delay(0.3, function()
  4854. delaycharge = false
  4855. end)
  4856. chargeanimz:Stop()
  4857. charge = false
  4858. keyinput:FireServer("charge", charge)
  4859. end
  4860. if key == "z" then
  4861. if delaycharge then
  4862. return
  4863. end
  4864. delaycharge = true
  4865. delay(0.3, function()
  4866. delaycharge = false
  4867. end)
  4868. chargeanimz:Stop()
  4869. charge2 = false
  4870. keyinput:FireServer("mode", charge2)
  4871. end
  4872. if key == " " then
  4873. goingup = false
  4874. end
  4875. if key == "z" then
  4876. goingdown = false
  4877. end
  4878. if key == "x" then
  4879. end
  4880. if key == "c" then
  4881. slidespeed = 0
  4882. end
  4883. end
  4884. mouse.KeyUp:connect(function(key)
  4885. kufunction(key)
  4886. end)
  4887. canclickagain = false
  4888. nosz = false
  4889. holddown = false
  4890. fire = false
  4891. if changehud then
  4892. gui.Menu3.mobile.Visible = true
  4893. UserInputService.JumpRequest:connect(function()
  4894. kdfunction(" ")
  4895. end)
  4896. lockguis = false
  4897. gui.Menu3.mobile.lock.MouseButton1Down:connect(function()
  4898. if lockguis then
  4899. gui.Menu3.mobile.lock.ImageColor3 = BrickColor.White().Color
  4900. for _, v in pairs(gui.Menu3.mobile:GetChildren()) do
  4901. if not v:IsA("ImageButton") or v.Name == "lock" then
  4902. else
  4903. v.Active = true
  4904. end
  4905. end
  4906. lockguis = false
  4907. return
  4908. end
  4909. gui.Menu3.mobile.lock.ImageColor3 = BrickColor.Red().Color
  4910. for _, v in pairs(gui.Menu3.mobile:GetChildren()) do
  4911. if not v:IsA("ImageButton") or v.Name == "lock" then
  4912. else
  4913. v.Active = false
  4914. end
  4915. end
  4916. lockguis = true
  4917. end)
  4918. gui.Menu3.mobile.Left.MouseButton1Down:connect(function()
  4919. kdfunction("q")
  4920. end)
  4921. gui.Menu3.mobile.Left.MouseButton1Up:connect(function()
  4922. kufunction("q")
  4923. end)
  4924. gui.Menu3.mobile.Right.MouseButton1Down:connect(function()
  4925. kdfunction("e")
  4926. end)
  4927. gui.Menu3.mobile.Right.MouseButton1Up:connect(function()
  4928. kufunction("e")
  4929. end)
  4930. gui.Menu3.mobile.Top.MouseButton1Down:connect(function()
  4931. kdfunction("w")
  4932. end)
  4933. gui.Menu3.mobile.Top.MouseButton1Up:connect(function()
  4934. kufunction("w")
  4935. end)
  4936. gui.Menu3.mobile.Shield.MouseButton1Down:connect(function()
  4937. kdfunction("block")
  4938. end)
  4939. gui.Menu3.mobile.Shield.MouseButton1Up:connect(function()
  4940. kufunction("block")
  4941. end)
  4942. gui.Menu3.mobile.clon.MouseButton1Up:connect(function()
  4943. kdfunction("b")
  4944. end)
  4945. gui.Menu3.mobile.clon.MouseButton1Up:connect(function()
  4946. kufunction("b")
  4947. end)
  4948. gui.Menu3.mobile.chakra.MouseButton1Down:connect(function()
  4949. kdfunction("c")
  4950. end)
  4951. gui.Menu3.mobile.chakra.MouseButton1Up:connect(function()
  4952. kufunction("c")
  4953. end)
  4954. gui.Menu3.mobile.chakrafoot.MouseButton1Down:connect(function()
  4955. kdfunction("v")
  4956. end)
  4957. gui.Menu3.mobile.chakrafoot.MouseButton1Up:connect(function()
  4958. kufunction("v")
  4959. end)
  4960. gui.Menu3.mobile.mode.MouseButton1Down:connect(function()
  4961. kdfunction("z")
  4962. end)
  4963. gui.Menu3.mobile.mode.MouseButton1Up:connect(function()
  4964. kufunction("z")
  4965. end)
  4966. gui.Menu3.mobile.punch1.MouseButton1Down:connect(function()
  4967. kdfunction("clickl")
  4968. end)
  4969. gui.Menu3.mobile.punch2.MouseButton1Down:connect(function()
  4970. kdfunction("clickr")
  4971. end)
  4972. gui.Menu3.mobile.punch2.MouseButton1Up:connect(function()
  4973. kdfunction("clickrup")
  4974. end)
  4975. getrun = false
  4976. gui.Menu3.mobile.run.MouseButton1Up:connect(function()
  4977. if getrun then
  4978. getrun = false
  4979. kufunction("0")
  4980. return
  4981. end
  4982. getrun = true
  4983. kdfunction("0")
  4984. end)
  4985. for _, v in pairs(gui.Menu3:GetChildren()) do
  4986. if v:IsA("ImageButton") then
  4987. v.MouseButton1Down:connect(function()
  4988. if v.Name == "key1" then
  4989. kdfunction("r")
  4990. elseif v.Name == "key2" then
  4991. kdfunction("t")
  4992. elseif v.Name == "key3" then
  4993. kdfunction("y")
  4994. elseif v.Name == "key4" then
  4995. kdfunction("f")
  4996. elseif v.Name == "key5" then
  4997. kdfunction("g")
  4998. elseif v.Name == "key6" then
  4999. kdfunction("h")
  5000. elseif v.Name == "key7" then
  5001. kdfunction("1")
  5002. elseif v.Name == "key8" then
  5003. kdfunction("2")
  5004. elseif v.Name == "key9" then
  5005. kdfunction("3")
  5006. elseif v.Name == "clickmenu" then
  5007. end
  5008. end)
  5009. end
  5010. end
  5011. end
  5012. if changehud then
  5013. else
  5014. mouse.Button1Up:connect(function()
  5015. holddown = false
  5016. apos = mousehit()
  5017. keyinput:FireServer("mouse", apos)
  5018. keyinput:FireServer("holddown", holddown)
  5019. if humanoid.AutoRotate == false then
  5020. humanoid.AutoRotate = true
  5021. end
  5022. if currentselect == 0 and equipsword and weptyp == "gun" then
  5023. abcanimanim:Stop()
  5024. end
  5025. end)
  5026. mouse.Button2Down:connect(function()
  5027. if inbuilding then
  5028. return
  5029. end
  5030. if changehud then
  5031. return
  5032. end
  5033. if nosz then
  5034. return
  5035. end
  5036. if fire or canclickagain then
  5037. return
  5038. end
  5039. if enabled or disableplr or disabled or combatfolder.stunplayer.Value or combatfolder.down.Value or inship then
  5040. return
  5041. end
  5042. kdfunction("clickr")
  5043. end)
  5044. mouse.Button2Up:connect(function()
  5045. kdfunction("clickrup")
  5046. end)
  5047. mouse.Button1Down:connect(function()
  5048. if inbuilding then
  5049. return
  5050. end
  5051. charff = mouse.Target
  5052. if charff then
  5053. if charff.Name == "enter" then
  5054. return
  5055. end
  5056. headtye = charff.Parent:FindFirstChild("Head")
  5057. rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
  5058. if charff.Name == "leader" then
  5059. return
  5060. end
  5061. if charff.Parent:FindFirstChild("quest") then
  5062. return
  5063. end
  5064. end
  5065. holddown = true
  5066. keyinput:FireServer("holddown", holddown)
  5067. if currentselect == 0 then
  5068. kdfunction("clickl")
  5069. if equipsword then
  5070. end
  5071. else
  5072. apos = mousehit()
  5073. keyinput:FireServer("mouse", apos)
  5074. keyinput:FireServer("firepower", currentselect)
  5075. currentselect = 0
  5076. locategui()
  5077. end
  5078. end)
  5079. end
  5080. if changehud then
  5081. mouse.Button1Down:connect(function()
  5082. if inbuilding then
  5083. return
  5084. end
  5085. charff = mouse.Target
  5086. if charff then
  5087. if charff.Name == "enter" then
  5088. return
  5089. end
  5090. headtye = charff.Parent:FindFirstChild("Head")
  5091. rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
  5092. if charff.Name == "leader" then
  5093. return
  5094. end
  5095. if charff.Parent:FindFirstChild("quest") then
  5096. return
  5097. end
  5098. end
  5099. holddown = true
  5100. keyinput:FireServer("holddown", holddown)
  5101. if currentselect == 0 then
  5102. if equipsword then
  5103. end
  5104. else
  5105. cfrz = rootpart.CFrame * CFrame.new(0, 0, -50)
  5106. keyinput:FireServer("mouse", cfrz)
  5107. keyinput:FireServer("firepower", currentselect)
  5108. currentselect = 0
  5109. locategui()
  5110. end
  5111. end)
  5112. tool.Parent = script
  5113. wait()
  5114. tool.Parent = Character
  5115. mouse.Button1Up:connect(function()
  5116. holddown = false
  5117. keyinput:FireServer("holddown", holddown)
  5118. if humanoid.AutoRotate == false then
  5119. humanoid.AutoRotate = true
  5120. end
  5121. if currentselect == 0 and equipsword and weptyp == "gun" then
  5122. abcanimanim:Stop()
  5123. end
  5124. end)
  5125. end
  5126. aaa = Instance.new("Sound", script)
  5127. aaa.SoundId = "rbxassetid://172886049"
  5128. aaa.Volume = 0.2
  5129. aaa.Looped = true
  5130. aaa:Play()
  5131. goup = false
  5132. onoff = true
  5133. flyanim = Instance.new("Animation")
  5134. flyanim.AnimationId = "rbxassetid://1125408344"
  5135. flyanimanim = humanoid:LoadAnimation(flyanim)
  5136. weaponidl = Instance.new("Animation")
  5137. weaponidl.AnimationId = "rbxassetid://" .. 0
  5138. weaponidlz = humanoid:LoadAnimation(weaponidl)
  5139. fakerp = rootpart:clone()
  5140. fakerp:ClearAllChildren()
  5141. fakerp.Name = "fakerp"
  5142. fakerp.Parent = rootpart
  5143. newrp = Instance.new("Motor6D", fakerp)
  5144. newrp.C1 = CFrame.new(-1.1920929E-7, 0.150000036, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5145. newrp.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5146. newrp.Part0 = rootpart
  5147. newrp.Part1 = fakerp
  5148. canclimb = false
  5149. rootC0 = newrp.C0
  5150. rootC1 = newrp.C1
  5151. wallclimb = false
  5152. walkonwall = rs.walkonwall:clone()
  5153. walkonwall.rp.CFrame = CFrame.new(rootpart.CFrame.X, rootpart.CFrame.Y, rootpart.CFrame.Z)
  5154. walkonwall.Parent = Character
  5155. humanoid.Changed:connect(function()
  5156. if disableplr or sliding or inmainpower or combatfolder.down.Value or underwater or inchat or inship then
  5157. humanoid.Jump = false
  5158. end
  5159. if disabled or combatfolder.stunplayer.Value then
  5160. humanoid.Jump = false
  5161. humanoid.AutoRotate = false
  5162. end
  5163. end)
  5164. combatfolder.stunplayer.Changed:connect(function(aa)
  5165. if aa then
  5166. humanoid.AutoRotate = false
  5167. else
  5168. humanoid.AutoRotate = true
  5169. docombo = false
  5170. end
  5171. end)
  5172. hud = gui.Menu3
  5173. hud.Visible = true
  5174. inchat = false
  5175. chatpos = Vector3.new()
  5176. chatnpc = nil
  5177. dontdomission = false
  5178. sendtrade = false
  5179. currentnumtex = 0
  5180. plrd = nil
  5181. inbuilding = false
  5182. inteleport = false
  5183. entertheme = Instance.new("Sound")
  5184. entertheme.Parent = script
  5185. entertheme.SoundId = "rbxassetid://"
  5186. entertheme.Looped = true
  5187. entertheme.Volume = 0.5
  5188. mouse.Button1Down:connect(function()
  5189. if inteleport then
  5190. return
  5191. end
  5192. charff = mouse.Target
  5193. if charff then
  5194. if charff.Name == "enter" then
  5195. if not charff:FindFirstChild("gamepass") or Player:FindFirstChild(charff.gamepass.Value) then
  5196. else
  5197. sound(script, 140910216, 3)
  5198. inmenu = true
  5199. gui.menu.Visible = true
  5200. closeallframes()
  5201. menu.rob.Visible = true
  5202. sound(script, 154020823, 1)
  5203. keyinput:FireServer("mouselock", false)
  5204. return
  5205. end
  5206. mag = (Character.HumanoidRootPart.CFrame.p - charff.CFrame.p).magnitude
  5207. if mag < 15 then
  5208. inbuilding = true
  5209. inteleport = true
  5210. sound(script, 858508159)
  5211. entertheme:Stop()
  5212. entertheme.SoundId = "rbxassetid://" .. charff.song.Value
  5213. entertheme.Volume = 0.5
  5214. entertheme:Play()
  5215. blindeffect(2)
  5216. wait(0.2)
  5217. if flash then
  5218. flash = false
  5219. if wallclimb then
  5220. wallclimb = false
  5221. canclimb = false
  5222. gyrfly.maxTorque = Vector3.new(0, 0, 0)
  5223. gyrfly.P = origp
  5224. gyrfly.D = origd
  5225. b5.maxForce = Vector3.new(0, 0, 0)
  5226. rootpart.CFrame = CFrame.new(rootpart.Position.X, rootpart.Position.Y, rootpart.Position.Z)
  5227. aaaas = workspace.Camera.CFrame * CFrame.new(0, 0, -400)
  5228. rootpart.CFrame = CFrame.new(rootpart.CFrame.p * Vector3.new(1, 0, 1), aaaas.p * Vector3.new(1, 0, 1)) + Vector3.new(0, rootpart.CFrame.Y, 0)
  5229. humanoid.Jump = true
  5230. humanoid.PlatformStand = false
  5231. walkanimanim:Stop()
  5232. rootpart.Velocity = Vector3.new(0, 0, 0)
  5233. end
  5234. keyinput:FireServer("walkon", flash)
  5235. end
  5236. rootpart.CFrame = workspace.enterable:FindFirstChild(charff.whereto.Value).spawn.CFrame
  5237. if charff:FindFirstChild("leave") then
  5238. entertheme:Stop()
  5239. wait(0.5)
  5240. inbuilding = false
  5241. end
  5242. inteleport = false
  5243. return
  5244. end
  5245. end
  5246. headtye = charff.Parent:FindFirstChild("Head")
  5247. rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
  5248. if charff.Parent:FindFirstChild("quest") then
  5249. headtye = charff.Parent:FindFirstChild("Head")
  5250. rptye = charff.Parent:FindFirstChild("HumanoidRootPart")
  5251. mainnpc = charff.Parent:FindFirstChild("quest")
  5252. dontdothis = charff.Parent:FindFirstChild("dontclick")
  5253. if dontdothis then
  5254. return
  5255. end
  5256. if headtye and rptye and mainnpc then
  5257. sendtrade = false
  5258. mag = (Character.HumanoidRootPart.CFrame.p - charff.CFrame.p).magnitude
  5259. if mag < 9 then
  5260. chatpos = headtye.Position
  5261. chatnpc = mainnpc
  5262. dontdomission = false
  5263. endchat = false
  5264. if chatnpc:FindFirstChild("quest") then
  5265. loadtext.Value = mainnpc["dia" .. math.random(1, 3)].Value
  5266. else
  5267. loadtext.Value = mainnpc.dia1.Value
  5268. end
  5269. print("TALKING")
  5270. currentnumtex = 1
  5271. inchat = true
  5272. currentcfr = chatnpc.Parent.HumanoidRootPart.CFrame
  5273. keyinput:FireServer("mouselock", false)
  5274. while inchat do
  5275. renderstepped:wait()
  5276. magwss = (rootpart.Position - chatnpc.Parent.HumanoidRootPart.Position).magnitude
  5277. chatnpc.Parent.HumanoidRootPart.CFrame = CFrame.new(currentcfr.p * Vector3.new(1, 0, 1), rootpart.Position * Vector3.new(1, 0, 1)) + Vector3.new(0, currentcfr.Y, 0)
  5278. if 9 < magwss then
  5279. inchat = false
  5280. chatgui.Visible = false
  5281. loadtext.Value = ""
  5282. sayfirstext = false
  5283. chatgui.HB.int.Visible = true
  5284. end
  5285. end
  5286. keyinput:FireServer("mouselock", true)
  5287. end
  5288. return
  5289. end
  5290. end
  5291. end
  5292. end)
  5293. loadtext = Instance.new("StringValue")
  5294. currenttext = nil
  5295. breaktext = false
  5296. talkin = {
  5297. "rbxassetid://1591m50581",
  5298. "rbxassetid://1591750826",
  5299. "rbxassetid://1591751091",
  5300. "rbxassetid://1591751380",
  5301. "rbxassetid://1591751571"
  5302. }
  5303. loadtext.Changed:connect(function(aas)
  5304. chatgui.HB.endit.Visible = false
  5305. chatgui.HB.int.Visible = false
  5306. origmouthtexture = nil
  5307. if storymode and chatnpc then
  5308. origmouthtextur = chatnpc.Head.mouth.Texture
  5309. end
  5310. length = string.len(aas)
  5311. intype = true
  5312. for var = 1, length do
  5313. wait()
  5314. if intype == false then
  5315. typin.Text = ""
  5316. break
  5317. end
  5318. typin.Text = string.sub(aas, 1, var)
  5319. if origmouthtextur and string.sub(aas, var, var) == " " then
  5320. chatnpc.Head.mouth.Texture = talkin[math.random(1, #talkin)]
  5321. else
  5322. end
  5323. sound(rootpart, 147982968)
  5324. if chatgui.Visible == false then
  5325. break
  5326. end
  5327. end
  5328. if storymode then
  5329. chatnpc.Head.mouth.Texture = origmouthtextur
  5330. end
  5331. chatgui.HB.endit.Visible = true
  5332. if endchat then
  5333. else
  5334. chatgui.HB.int.Visible = true
  5335. end
  5336. intype = false
  5337. end)
  5338. function endchatz()
  5339. if storymode then
  5340. return
  5341. end
  5342. sound(rootpart, 1313904913)
  5343. inchat = false
  5344. chatgui.Visible = false
  5345. loadtext.Value = ""
  5346. sayfirstext = false
  5347. chatgui.HB.int.Visible = true
  5348. endchat = false
  5349. loadtext.Value = ""
  5350. keyinput:FireServer("declinetrade")
  5351. end
  5352. function chatintz()
  5353. if storymode then
  5354. return
  5355. end
  5356. if endchat then
  5357. return
  5358. end
  5359. if dontdomission then
  5360. return
  5361. end
  5362. sound(rootpart, 915576050)
  5363. currentnumtex = currentnumtex + 1
  5364. aa = chatnpc:GetChildren()
  5365. aaa = chatnpc:FindFirstChild("dia" .. currentnumtex)
  5366. if chatnpc:FindFirstChild("quest") then
  5367. aaa = nil
  5368. if chatnpc.Parent.Head.showtarget.Enabled then
  5369. else
  5370. endchat = true
  5371. loadtext.Value = "Come back tommorow, " .. Player.Name .. " for another mission!"
  5372. return
  5373. end
  5374. if Player.mission:FindFirstChild("mission") and Player.mission.mission.currentmiss.Value == chatnpc.Parent.Name then
  5375. endchat = true
  5376. loadtext.Value = "You haven't completed my mission."
  5377. return
  5378. end
  5379. end
  5380. if aaa then
  5381. loadtext.Value = aaa.Value
  5382. else
  5383. inchat = false
  5384. chatgui.Visible = false
  5385. loadtext.Value = ""
  5386. sayfirstext = false
  5387. chatgui.HB.int.Visible = true
  5388. endchat = false
  5389. if chatnpc:FindFirstChild("shop") then
  5390. gui.Menu3.Visible = false
  5391. elseif chatnpc:FindFirstChild("quest") then
  5392. if chatnpc.Parent.Head.showtarget.Enabled then
  5393. effectz:FireServer("takemission", chatnpc)
  5394. else
  5395. loadtext.Value = "Come back tommorow!"
  5396. return
  5397. end
  5398. elseif chatnpc:FindFirstChild("pres") then
  5399. keyinput:FireServer("pres")
  5400. elseif chatnpc:FindFirstChild("exp") then
  5401. elseif chatnpc:FindFirstChild("place") then
  5402. keyinput:FireServer("save")
  5403. wait(0.5)
  5404. game:GetService("TeleportService"):Teleport(chatnpc:FindFirstChild("place").Value)
  5405. end
  5406. end
  5407. end
  5408. chatgui = gui:WaitForChild("chat")
  5409. arrow = chatgui.arrow
  5410. cam = workspace.Camera
  5411. typin = chatgui.HB.type
  5412. intype = false
  5413. chatgui.HB.endit.MouseButton1Down:connect(function()
  5414. endchatz()
  5415. end)
  5416. endchat = false
  5417. sayfirstext = false
  5418. chatgui.HB.int.MouseButton1Down:connect(function()
  5419. chatintz()
  5420. end)
  5421. tradedecsion = false
  5422. invitor = nil
  5423. itm = rs:WaitForChild("item2"):Clone()
  5424. currentradegui = nil
  5425. allitems = rs.allitems
  5426. clickonce = false
  5427. skill = nil
  5428. currentitm = nil
  5429. currentitm2 = nil
  5430. combatselect = ""
  5431. powerselect = ""
  5432. function updateguis()
  5433. end
  5434. treejump = Instance.new("Animation")
  5435. treejump.AnimationId = "rbxassetid://" .. 1491957276
  5436. treejumpz = humanoid:LoadAnimation(treejump)
  5437. forwardtree = Instance.new("Animation")
  5438. forwardtree.AnimationId = "rbxassetid://" .. 1492086277
  5439. forwardtreez = humanoid:LoadAnimation(forwardtree)
  5440. treeidlz = Instance.new("Animation")
  5441. treeidlz.AnimationId = "rbxassetid://" .. 1491971501
  5442. treeidlzz = humanoid:LoadAnimation(treeidlz)
  5443. idlanim = Instance.new("Animation")
  5444. idlanim.AnimationId = "rbxassetid://" .. 1100326557
  5445. idlanimz = humanoid:LoadAnimation(idlanim)
  5446. idlanimz:Play()
  5447. chargeanim = Instance.new("Animation")
  5448. chargeanim.AnimationId = "rbxassetid://" .. 1289783805
  5449. chargeanimz = humanoid:LoadAnimation(chargeanim)
  5450. hangonwallz = Instance.new("Animation")
  5451. hangonwallz.AnimationId = "rbxassetid://" .. 1169075696
  5452. hangonwallanim = humanoid:LoadAnimation(hangonwallz)
  5453. grapplepow = Instance.new("Animation")
  5454. grapplepow.AnimationId = "rbxassetid://" .. 1168899599
  5455. grapplepowanim = humanoid:LoadAnimation(grapplepow)
  5456. grapplefly = Instance.new("Animation")
  5457. grapplefly.AnimationId = "rbxassetid://" .. 1169043784
  5458. grappleflyanim = humanoid:LoadAnimation(grapplefly)
  5459. walkanim = Instance.new("Animation")
  5460. walkanim.AnimationId = "rbxassetid://" .. 1167012846
  5461. walkanimanim = humanoid:LoadAnimation(walkanim)
  5462. dbljumpanim = Instance.new("Animation")
  5463. dbljumpanim.AnimationId = "rbxassetid://" .. 1124864132
  5464. dbljumpanimanim = humanoid:LoadAnimation(dbljumpanim)
  5465. fallanim = Instance.new("Animation")
  5466. fallanim.AnimationId = "rbxassetid://" .. 1125022591
  5467. fallanims = humanoid:LoadAnimation(fallanim)
  5468. landanim = Instance.new("Animation")
  5469. landanim.AnimationId = "rbxassetid://" .. 1100856762
  5470. landanims = humanoid:LoadAnimation(landanim)
  5471. runanim = Instance.new("Animation")
  5472. runanim.AnimationId = "rbxassetid://" .. 1124601840
  5473. runanimanim = humanoid:LoadAnimation(runanim)
  5474. chakrarunz = Instance.new("Animation")
  5475. chakrarunz.AnimationId = "rbxassetid://" .. 1289880031
  5476. chakrarunanim = humanoid:LoadAnimation(chakrarunz)
  5477. jumpanim = Instance.new("Animation")
  5478. jumpanim.AnimationId = "rbxassetid://" .. 1124611885
  5479. jumpanimanim = humanoid:LoadAnimation(jumpanim)
  5480. flymov = Instance.new("Animation")
  5481. flymov.AnimationId = "rbxassetid://" .. 1125418279
  5482. flymovanim = humanoid:LoadAnimation(flymov)
  5483. flymov2 = Instance.new("Animation")
  5484. flymov2.AnimationId = "rbxassetid://" .. 1125424428
  5485. flymov2anim = humanoid:LoadAnimation(flymov2)
  5486. goinupz = Instance.new("Animation")
  5487. goinupz.AnimationId = "rbxassetid://" .. 1125460295
  5488. goinupzanim = humanoid:LoadAnimation(goinupz)
  5489. goindz = Instance.new("Animation")
  5490. goindz.AnimationId = "rbxassetid://" .. 1125466382
  5491. goindzanim = humanoid:LoadAnimation(goindz)
  5492. counter = Instance.new("Animation")
  5493. counter.AnimationId = "rbxassetid://" .. 1149363923
  5494. counteranim = humanoid:LoadAnimation(counter)
  5495. freefalling = Instance.new("Animation")
  5496. freefalling.AnimationId = "rbxassetid://" .. 1137105878
  5497. freefallinganim = humanoid:LoadAnimation(freefalling)
  5498. quickland = Instance.new("Animation")
  5499. quickland.AnimationId = "rbxassetid://" .. 1137175543
  5500. quicklandanim = humanoid:LoadAnimation(quickland)
  5501. archeranim = Instance.new("Animation")
  5502. archeranim.AnimationId = "rbxassetid://" .. 1140123447
  5503. archeranimanim = humanoid:LoadAnimation(archeranim)
  5504. abcanim = Instance.new("Animation")
  5505. abcanim.AnimationId = "rbxassetid://" .. 0
  5506. abcanimanim = humanoid:LoadAnimation(abcanim)
  5507. characterpoweranim = Instance.new("Animation")
  5508. characterpoweranim.AnimationId = "rbxassetid://" .. 0
  5509. characterpoweranimanim = humanoid:LoadAnimation(characterpoweranim)
  5510. anim323 = Instance.new("Animation")
  5511. anim323.AnimationId = "rbxassetid://" .. 1181695297
  5512. swimming = humanoid:LoadAnimation(anim323)
  5513. anim323 = Instance.new("Animation")
  5514. anim323.AnimationId = "rbxassetid://" .. 1181655119
  5515. swimmingidl = humanoid:LoadAnimation(anim323)
  5516. underwater = false
  5517. humanoid.StateChanged:connect(function(aaa)
  5518. if aaa == Enum.HumanoidStateType.Jumping and distancegrd > 100 and freefall == false then
  5519. freefall = true
  5520. freefallinganim:Play()
  5521. end
  5522. if aaa == Enum.HumanoidStateType.Landed then
  5523. if freefallinganim.IsPlaying then
  5524. quicklandanim:Play()
  5525. end
  5526. freefall = false
  5527. freefallinganim:Stop()
  5528. updateanim()
  5529. end
  5530. if aaa == Enum.HumanoidStateType.Landed then
  5531. walkanimanim:Stop()
  5532. runanimanim:Stop()
  5533. if fallanims.IsPlaying then
  5534. landanims:Play()
  5535. fallanims:Stop()
  5536. end
  5537. updateanim()
  5538. end
  5539. end)
  5540. jumpin = false
  5541. humanoid.Running:connect(function(speed)
  5542. updateanim(speed)
  5543. end)
  5544. updateanim()
  5545. freefall = false
  5546. humanoid.Jumping:connect(function(speed)
  5547. jumpanimanim:Play()
  5548. walkanimanim:Stop()
  5549. runanimanim:Stop()
  5550. end)
  5551. target = rs.target:Clone()
  5552. target.Parent = Player.PlayerGui
  5553. missiontarg = rs.targetmiss:Clone()
  5554. missiontarg.Parent = Player.PlayerGui
  5555. missiontarg2 = rs.targetmiss:Clone()
  5556. missiontarg2.Parent = Player.PlayerGui
  5557. missiontarg3 = rs.targetmiss:Clone()
  5558. missiontarg3.Parent = Player.PlayerGui
  5559. missiontarg4 = rs.targetmiss:Clone()
  5560. missiontarg4.Parent = Player.PlayerGui
  5561. currentmission = nil
  5562. distancegrd = 0
  5563. hangonwall = false
  5564. local GameSettings = UserSettings().GameSettings
  5565. dx, dy = 0, 0
  5566. m2 = 0
  5567. ddd = 0
  5568. ggg = 0
  5569. fff = 0
  5570. hhh = 0
  5571. turnship = 0
  5572. local function MouseMoved(Input)
  5573. if Input.UserInputType == Enum.UserInputType.MouseMovement then
  5574. local dx, dy = Input.Delta.x * 0.1, Input.Delta.y * 0.1
  5575. local m2 = dx * dx + dy * dy
  5576. ddf = Character.Head.Position
  5577. cfr = CFrame.new(ddf.X, ddf.Y, ddf.Z)
  5578. ddd = ddd - dx * 2
  5579. ggg = ggg - dy * 2
  5580. fff = fff - dx * 5
  5581. hhh = hhh - dy * 5
  5582. if hhh >= 90 then
  5583. hhh = 90
  5584. end
  5585. if hhh <= -90 then
  5586. hhh = -90
  5587. end
  5588. if fff >= 90 then
  5589. fff = 90
  5590. end
  5591. if fff <= -90 then
  5592. fff = -90
  5593. end
  5594. end
  5595. end
  5596. UserInputService.InputChanged:connect(MouseMoved)
  5597. grounded = false
  5598. combat = Character:WaitForChild("combat")
  5599. newwaterpart = Instance.new("Part")
  5600. newwaterpart.Size = Vector3.new(500, 7, 500)
  5601. newwaterpart.Anchored = true
  5602. newwaterpart.CanCollide = false
  5603. newwaterpart.Transparency = 1
  5604. newwater = Instance.new("Texture")
  5605. newwater.Face = "Top"
  5606. newwater.Parent = newwaterpart
  5607. newwater.StudsPerTileU = 50
  5608. newwater.StudsPerTileV = 50
  5609. newwater.Transparency = 0.8
  5610. newwater.Texture = "http://www.roblox.com/asset/?id=18361792"
  5611. newwaterpart.Parent = Character
  5612. newwaterpart.CanCollide = false
  5613. upptertorsooriug = CFrame.new(-5.96046448E-8, -0.450000018, 1.1920929E-7, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5614. upptertorsooriug0 = CFrame.new(-1.1920929E-7, 0.550000072, 7.64462551E-20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  5615. upptertorso = Character.UpperTorso.Waist
  5616. upptertorso.C0 = upptertorsooriug0
  5617. upptertorso.C1 = upptertorsooriug
  5618. local asin = math.asin
  5619. Neck = Character.Head.Neck
  5620. local CFNew, CFAng = CFrame.new, CFrame.Angles
  5621. local YOffset = Neck.C0.Y
  5622. origc0 = Neck.C0
  5623. gui:WaitForChild("comboframe")
  5624. charinfo = Character.Head:WaitForChild("charinfo")
  5625. charinfo.BarHealth.Visible = false
  5626. Player.PlayerScripts.ControlScript.Disabled = true
  5627. wait()
  5628. Player.PlayerScripts.ControlScript.Disabled = false
  5629. touchgui = nil
  5630. offsetx, offsety = 0, 0
  5631. if Player.PlayerGui:FindFirstChild("TouchGui") then
  5632. touchgui = Player.PlayerGui:FindFirstChild("TouchGui").TouchControlFrame.ThumbstickFrame.StickImage
  5633. touchframe = Player.PlayerGui:FindFirstChild("TouchGui").TouchControlFrame
  5634. offsetx = touchgui.Position.X.Offset
  5635. offsety = touchgui.Position.Y.Offset
  5636. slowdownturn = true
  5637. end
  5638. function leveleffect()
  5639. sound(script, 154020823, 1)
  5640. newblind = rs.leveleffect:clone()
  5641. newblind.Parent = gui
  5642. newblind.level.bg.slide:TweenPosition(UDim2.new(2, 0, -0.5, 0), "Out", "Quad", 2, true)
  5643. sound(script, 858508159, 2)
  5644. game.Debris:AddItem(newblind, 1.5)
  5645. end
  5646. lastpos = rootpart.CFrame
  5647. sharinganfolder = Instance.new("Folder")
  5648. sharinganfolder.Parent = Player.PlayerGui
  5649. byakuganfolder = Instance.new("Folder")
  5650. byakuganfolder.Parent = Character
  5651. clonegui = script.getgui:clone()
  5652. combatfolder.currentmode.Changed:connect(function()
  5653. sharinganfolder:ClearAllChildren()
  5654. byakuganfolder:ClearAllChildren()
  5655. end)
  5656. waterwalk = script.waterwalk:Clone()
  5657. takechakraaway = false
  5658. canminushealth = false
  5659. underwaterblur = Instance.new("BlurEffect")
  5660. underwaterblur.Name = "menublur"
  5661. underwaterz = Instance.new("Sound")
  5662. underwaterz.Parent = script
  5663. underwaterz.SoundId = "rbxassetid://130802432"
  5664. underwaterz.Looped = true
  5665. underwaterz:Stop()
  5666. getorigambient = game.Lighting.Ambient
  5667. naturalactiv = false
  5668. makenoise = false
  5669. wait()
  5670. currentpos = Instance.new("Sound")
  5671. currentpos.Parent = script
  5672. currentpos.SoundId = "rbxassetid://"
  5673. currentpos.Looped = true
  5674. nearpos = Instance.new("StringValue")
  5675. currentmusic = 0
  5676. canbevisible = 0
  5677. nearpos.Changed:connect(function()
  5678. gui.nearpos.Visible = true
  5679. gui.nearpos.where.Text = nearpos.Value
  5680. canbevisible = 10
  5681. sound(script, 246930031, 4)
  5682. currentpos:Stop()
  5683. currentpos.SoundId = "rbxassetid://" .. currentmusic
  5684. currentpos.Looped = true
  5685. end)
  5686. local closestspawn = function(rp2)
  5687. local closestDist2 = 400
  5688. local closestPlayer2
  5689. for index, playerz in ipairs(workspace.posnames:GetChildren()) do
  5690. if closestDist2 > (playerz.Position - rp2.HumanoidRootPart.Position).magnitude then
  5691. closestPlayer2 = playerz
  5692. closestDist2 = (playerz.Position - rp2.HumanoidRootPart.Position).magnitude
  5693. end
  5694. end
  5695. doubltal2 = closestPlayer2
  5696. return doubltal2
  5697. end
  5698. headturn = true
  5699. gettim = workspace.summon:FindFirstChild("globaltime")
  5700. RunService.RenderStepped:connect(function()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement