Advertisement
iiFlamez

Untitled

Nov 5th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.37 KB | None | 0 0
  1. -- params : ...
  2.  
  3. -- DECOMPILER ERROR: infinite loop detected
  4. script:Destroy()
  5. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
  6. local fn = game.Players.LocalPlayer:WaitForChild("Backpack"):WaitForChild("ServerTraits"):WaitForChild("RemoteFunction")
  7. fn.OnClientInvoke = function()
  8. return true
  9. end
  10.  
  11. game.Players.LocalPlayer.PlayerGui.ChildAdded:connect(function(ch)
  12. if ch.Name ~= "HUD" and ch.Name ~= "Ambient" and ch.Name ~= "Finish" and ch.Name ~= "Frame" then
  13. ch:Destroy()
  14. end
  15. end)
  16. wait(0.5)
  17. local play = game.Players.LocalPlayer
  18. local char = game.Workspace.LivingThings:WaitForChild(play.Name)
  19. char = play.Character
  20. local cam = game.Workspace.CurrentCamera
  21. local mouse = play:GetMouse()
  22. local root = char:WaitForChild("HumanoidRootPart")
  23. local hum = char:WaitForChild("Humanoid")
  24. local takebreath = false
  25. returncam = function()
  26. cam.FieldOfView = 70
  27. cam.CameraType = "Custom"
  28. cam.CameraSubject = hum
  29. end
  30.  
  31. local hud = script.Parent:WaitForChild("HUD")
  32. local crouchanim = hum:LoadAnimation(script.Crouch)
  33. local userinput = game:GetService("UserInputService")
  34. local inair = false
  35. local swimjump = true
  36. local bp = Instance.new("BodyPosition")
  37. Spawn(function()
  38. end)
  39. local shift = false
  40. local s = false
  41. local running = false
  42. local ishit = false
  43. local idleanim = nil
  44. local straits = (play.Backpack:WaitForChild("ServerTraits"))
  45. local tol = nil
  46. local diving = false
  47. hum.NameOcclusion = 2
  48. local swimjumping = true
  49. local crouching = false
  50. local timer = 0
  51. local space = false
  52. local z = false
  53. local swimming = false
  54. local swimheight = 0
  55. local adjustheight = -0.8
  56. keys = {a = false, d = false, s = false, w = false, m1 = false, space = false}
  57. hum.StateChanged:connect(function(old, new)
  58. if new == Enum.HumanoidStateType.Running or new == Enum.HumanoidStateType.Seated then
  59. takebreath = false
  60. straits.Breath:FireServer(false)
  61. end
  62. if new == Enum.HumanoidStateType.FallingDown or new == Enum.HumanoidStateType.Physics or new == Enum.HumanoidStateType.Ragdoll then
  63. hum:ChangeState(Enum.HumanoidStateType.GettingUp)
  64. root.Velocity = Vector3.new(0, 0, 0)
  65. else
  66. if (old == Enum.HumanoidStateType.Running or old == Enum.HumanoidStateType.None or old == Enum.HumanoidStateType.RunningNoPhysics) and new == Enum.HumanoidStateType.Freefall and root.Velocity.Y > 10 then
  67. root.Velocity = Vector3.new(0, 0, 0)
  68. end
  69. end
  70. end)
  71. print(2)
  72. local tool, idleanim = nil, nil
  73. char.ChildRemoved:connect(function()
  74. if tool == nil or tool.Parent ~= char then
  75. if idleanim ~= nil then
  76. idleanim:Stop()
  77. end
  78. tool = nil
  79. end
  80. end)
  81. Spawn(function()
  82. char.Head:WaitForChild("FakeHead"):findFirstChild("NameNoid", true).DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  83. end)
  84. local dive_en = true
  85. local balling = false
  86. local backs = 0
  87. local last = tick()
  88. userinput.InputBegan:connect(function(input)
  89. if userinput:GetFocusedTextBox() ~= nil then
  90. return
  91. end
  92. if input.KeyCode == Enum.KeyCode.Tab then
  93. hud.FullScreen.ScrollingFrame.Visible = not hud.FullScreen.ScrollingFrame.Visible
  94. end
  95. if input.KeyCode == Enum.KeyCode.LeftShift then
  96. play.Shift.Value = not play.Shift.Value
  97. -- DECOMPILER ERROR at PC59: Unhandled construct in 'MakeBoolean' P1
  98.  
  99. if play.Shift.Value == false and cam.CFrame.p - root.CFrame * CFrame.new(0, root.Size.Y, 0).p.magnitude > 1 then
  100. userinput.MouseBehavior = 0
  101. end
  102. end
  103. userinput.MouseBehavior = 1
  104. if input.KeyCode == Enum.KeyCode.Backspace then
  105. backs = backs + 1
  106. if backs > 5 then
  107. hum.Health = 0
  108. end
  109. Spawn(function()
  110. wait(1)
  111. backs = 0
  112. end)
  113. end
  114. if char:findFirstChild("Action") then
  115. return
  116. end
  117. local doublew = false
  118. if input.UserInputType == Enum.UserInputType.MouseButton1 and tool then
  119. keys.m1 = true
  120. if tick() - last < 0.15 then
  121. straits.Input:FireServer("DM1", mouse.Hit)
  122. else
  123. straits.Input:FireServer("M1", mouse.Hit)
  124. end
  125. running = false
  126. if char.Running.Value ~= running then
  127. straits.Running:FireServer(running)
  128. end
  129. last = tick()
  130. end
  131. if input.KeyCode == Enum.KeyCode.Q and tool then
  132. straits.Input:FireServer("Q", mouse.Hit)
  133. else
  134. if input.KeyCode == Enum.KeyCode.E and tool then
  135. straits.Input:FireServer("E", mouse.Hit)
  136. else
  137. if input.KeyCode == Enum.KeyCode.R and tool then
  138. straits.Input:FireServer("R", mouse.Hit)
  139. else
  140. if input.KeyCode == Enum.KeyCode.T and tool then
  141. straits.Input:FireServer("T", mouse.Hit)
  142. else
  143. if input.KeyCode == Enum.KeyCode.C and tool then
  144. straits.Input:FireServer("C", mouse.Hit)
  145. else
  146. if input.KeyCode == Enum.KeyCode.V and tool then
  147. straits.Input:FireServer("V", mouse.Hit)
  148. else
  149. if input.KeyCode == Enum.KeyCode.G and tool then
  150. straits.Input:FireServer("G", mouse.Hit)
  151. end
  152. end
  153. end
  154. end
  155. end
  156. end
  157. end
  158. if input.KeyCode == Enum.KeyCode.B then
  159. straits.Input:FireServer("B", mouse.Hit)
  160. end
  161. if input.KeyCode == Enum.KeyCode.N then
  162. straits.Input:FireServer("N", mouse.Hit)
  163. end
  164. if input.KeyCode == Enum.KeyCode.L then
  165. straits.Anime:FireServer("Coat")
  166. else
  167. if input.KeyCode == Enum.KeyCode.K then
  168. straits.Anime:FireServer("Tie")
  169. end
  170. end
  171. if input.KeyCode == Enum.KeyCode.F then
  172. if char.Humanoid:findFirstChild("creator") then
  173. return
  174. end
  175. straits.Block:FireServer(true)
  176. end
  177. if input.KeyCode == Enum.KeyCode.W then
  178. if game.Workspace.DistributedGameTime - timer < 0.2 then
  179. doublew = true
  180. end
  181. timer = game.Workspace.DistributedGameTime
  182. end
  183. if input.KeyCode == Enum.KeyCode.Space then
  184. straits.Space:FireServer(true)
  185. end
  186. if (input.KeyCode == Enum.KeyCode.ButtonL3 or doublew) and s == false and hum.Sit == false and hum.PlatformStand == false then
  187. shift = true
  188. running = true
  189. if char.Running.Value ~= running then
  190. straits.Running:FireServer(running)
  191. end
  192. end
  193. if input.KeyCode == Enum.KeyCode.Space then
  194. space = true
  195. end
  196. if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Thumbstick1 and input.Position.Y < 0.1 then
  197. s = true
  198. running = false
  199. if char.Running.Value ~= running then
  200. straits.Running:FireServer(running)
  201. end
  202. end
  203. if input.KeyCode == Enum.KeyCode.Space and bp.Parent == root and swimjump and not diving then
  204. swimjump = false
  205. swimjumping = false
  206. Spawn(function()
  207. wait(0.3)
  208. swimjumping = true
  209. end)
  210. if hum.Health ~= 0 then
  211. wait()
  212. swimjump = true
  213. if input.KeyCode == Enum.KeyCode.S then
  214. s = true
  215. end
  216. end
  217. end
  218. end)
  219. userinput.InputEnded:connect(function(input)
  220. if input.KeyCode == Enum.KeyCode.Q and tool then
  221. straits.Input:FireServer("NQ", mouse.Hit)
  222. else
  223. end
  224. if (input.KeyCode == Enum.KeyCode.E and not tool) or input.KeyCode == Enum.KeyCode.F then
  225. straits.Block:FireServer(false)
  226. end
  227. if input.KeyCode == Enum.KeyCode.B then
  228. straits.Input:FireServer("BStop", mouse.Hit)
  229. end
  230. if input.KeyCode == Enum.KeyCode.Space then
  231. straits.Space:FireServer(false)
  232. end
  233. if input.UserInputType == Enum.UserInputType.MouseButton1 and tool then
  234. keys.m1 = false
  235. straits.Input:FireServer("M1End", mouse.Hit)
  236. end
  237. if input.KeyCode == Enum.KeyCode.ButtonL3 or input.KeyCode == Enum.KeyCode.W or input.UserInputType == Enum.UserInputType.MouseButton1 then
  238. shift = false
  239. running = false
  240. if char.Running.Value ~= running then
  241. straits.Running:FireServer(running)
  242. end
  243. end
  244. if input.KeyCode == Enum.KeyCode.Space then
  245. space = false
  246. end
  247. if input.KeyCode == Enum.KeyCode.Z then
  248. z = false
  249. end
  250. if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Thumbstick1 and input.Position.Y > 0.1 then
  251. s = false
  252. end
  253. end)
  254. hum.StateChanged:connect(function(o, n)
  255. if n == Enum.HumanoidStateType.Climbing and swimming then
  256. hum:ChangeState(Enum.HumanoidStateType.Running)
  257. bp.Parent = nil
  258. root.Velocity = Vector3.new(root.Velocity.x, 40, root.Velocity.z)
  259. end
  260. end)
  261. ray = function(startpos, endpos, dis, ign)
  262. local test = Ray.new(startpos, CFrame.new(startpos, endpos).lookVector * dis)
  263. local hit, pos, sf = game.Workspace:FindPartOnRay(test, ign)
  264. return hit, pos, sf
  265. end
  266.  
  267. hum.Seated:connect(function(bol)
  268. if bol then
  269. local h, p = ray(root.Position, root.CFrame * CFrame.new(0, -3, 0).p, root.Size.Y * 3, char)
  270. if h == nil then
  271. hum.Health = 0
  272. end
  273. end
  274. end)
  275. char.ChildAdded:connect(function(ch)
  276. if ch:IsA("Tool") and ch.Name ~= "Cannon" then
  277. tool = ch
  278. tol = ch
  279. for a,b in pairs(game.Workspace.LivingThings:GetChildren()) do
  280. if b:findFirstChild("IsAShip") then
  281. for c,d in pairs(b:GetChildren()) do
  282. if d:IsA("Seat") and not d:findFirstChild("SeatWeld") then
  283. d.Disabled = true
  284. end
  285. end
  286. end
  287. end
  288. end
  289. end)
  290. char.ChildRemoved:connect(function(ch)
  291. if tol ~= nil and tol.Parent ~= char then
  292. tol = nil
  293. for a,b in pairs(game.Workspace.LivingThings:GetChildren()) do
  294. if b:findFirstChild("IsAShip") then
  295. for c,d in pairs(b:GetChildren()) do
  296. if d:IsA("Seat") then
  297. d.Disabled = false
  298. end
  299. end
  300. end
  301. end
  302. end
  303. end)
  304. local anim = nil
  305. doanim = function(ani, spd)
  306. if spd == nil then
  307. spd = 1
  308. end
  309. if anim ~= nil then
  310. anim:Stop()
  311. end
  312. local anim = hum:LoadAnimation(ani)
  313. anim:Play(0.1, 1, spd)
  314. end
  315.  
  316. local on = 1
  317. local change = 0
  318. local en = true
  319. pickups1 = {"Apple", "Orange", "Sand Dollar", "Spiral Shell", "Clam Shell", "Banana", "Watermelon", "Coconut", "Firemelon", "Carrot", "Lemon", "Golden Flower"}
  320. pickups = {}
  321. for a,b in pairs(pickups1) do
  322. pickups[b] = true
  323. end
  324. local lasttarg = nil
  325. mouse.Idle:connect(function()
  326. local targ = mouse.Target
  327. if targ and pickups[targ.Name] == true and (mouse.Hit.p - root.Position.magnitude < 10 or char:WaitForChild("Race").Value ~= "Giant" or mouse.Hit.p - root.Position.magnitude < 50) then
  328. mouse.Icon = "rbxassetid://459822757"
  329. else
  330. mouse.Icon = ""
  331. end
  332. if targ and (targ.Parent:findFirstChild("Head") or targ.Parent.Parent:findFirstChild("Head")) then
  333. if not targ.Parent:findFirstChild("Head") then
  334. local head = targ.Parent.Parent:findFirstChild("Head")
  335. end
  336. lasttarg = head:findFirstChild("Head", true)
  337. if lasttarg then
  338. lasttarg.Transparency = 0
  339. end
  340. else
  341. do
  342. if lasttarg ~= nil then
  343. lasttarg.Transparency = 1
  344. lasttarg = nil
  345. end
  346. end
  347. end
  348. end)
  349. mouse.Button1Down:connect(function()
  350. local targ = mouse.Target
  351. if ((targ and mouse.Hit.p - root.Position.magnitude < 10) or char:WaitForChild("Race").Value ~= "Giant" or mouse.Hit.p - root.Position.magnitude < 50) and pickups[targ.Name] == true then
  352. game.ReplicatedStorage.Crates:FireServer(targ)
  353. end
  354. end)
  355. local timerz = 0
  356. hum.ChildAdded:connect(function(ch)
  357. if ch.Name == "creator" then
  358. shift = false
  359. end
  360. end)
  361. ray = function(startpos, endpos, dis, ignore)
  362. local test = Ray.new(startpos, CFrame.new(startpos, endpos).lookVector * dis)
  363. local hit, pos, sf = game.Workspace:FindPartOnRay(test, ignore)
  364. return hit, pos, sf
  365. end
  366.  
  367. local waterwalk = true
  368. local p = Instance.new("Part)
  369. p.Anchored = true
  370. p.Transparency = 1
  371. p.Size = Vector3.new(4, 0, 4)
  372. local display = true
  373. waiter = function()
  374. wait(1)
  375. display = true
  376. end
  377.  
  378. local cc = Instance.new("ColorCorrectionEffect")
  379. cc.Parent = nil
  380. cc.Enabled = true
  381. cc.TintColor = Color3.new(0.3921568627451, 0.24313725490196, 1)
  382. cc.Saturation = -0.81
  383. bp.Name = "Swim"
  384. bp.MaxForce = Vector3.new(0, 40000000, 0)
  385. bp.Position = Vector3.new(0, -0.4, 0)
  386. bp.D = 500
  387. local rt = 0
  388. local swimanim = hum:LoadAnimation(script.Swim)
  389. local fswimanim = hum:LoadAnimation(script.FastSwim)
  390. surface = function()
  391. diving = false
  392. swimheight = 0
  393. adjustheight = -0.8
  394. end
  395.  
  396. local fastswimming = false
  397. local ambient = game.Workspace.CurrentCamera:FindFirstChild("Ambient")
  398. if ambient == nil then
  399. play.PlayerGui:WaitForChild("Ambient").Parent = game.Workspace.CurrentCamera
  400. ambient = game.Workspace.CurrentCamera:FindFirstChild("Ambient")
  401. end
  402. char.DescendantAdded:connect(function(ch)
  403. if ch:IsA("BodyGyro") then
  404. hum.Health = 0
  405. end
  406. if ch:IsA("BodyVelocity") and ch.Name ~= "BodvVelocity" then
  407. game.Debris:AddItem(ch, 3)
  408. end
  409. end)
  410. local ocf = root.CFrame
  411. local climbing = false
  412. local lookanim = hum:LoadAnimation(script.Look)
  413. lookanim:Play(0.1, 2, 0)
  414. local transition = false
  415. local breath = 200
  416. local antitp = root.CFrame
  417. local rings = char:WaitForChild("Rings")
  418. local slow = Instance.new("BodyVelocity")
  419. slow.Name = "BodvVelocity"
  420. slow.Velocity = Vector3.new(0, -15, 0)
  421. game:GetService("RunService").RenderStepped:connect(function()
  422. -- DECOMPILER ERROR: infinite loop detected
  423. -- DECOMPILER ERROR: infinite loop detected
  424. if script.Parent:FindFirstChild("zz", true) or script.Parent:FindFirstChild("NoS", true) then
  425. game.ReplicatedStorage.DFLoad:FireServer()
  426. end
  427. if char:findFirstChild("Dodge") and game.Lighting.Ken.Enabled == false then
  428. game.Lighting.Ken.Enabled = true
  429. else
  430. if game.Lighting.Ken.Enabled == true and not char:findFirstChild("Dodge") then
  431. game.Lighting.Ken.Enabled = false
  432. end
  433. end
  434. if cam.CFrame.p - root.CFrame * CFrame.new(0, root.Size.Y, 0).p.magnitude > 150 then
  435. cam.CFrame = root.CFrame
  436. cam.CameraSubject = hum
  437. end
  438. if hum and hum.Sit then
  439. play.CameraMaxZoomDistance = 70
  440. else
  441. play.CameraMaxZoomDistance = 35
  442. end
  443. if root.Velocity.y < 0 and root.Position.Y > 2 then
  444. slow.MaxForce = Vector3.new(0, 10000000, 0)
  445. else
  446. slow.MaxForce = Vector3.new(0, 0, 0)
  447. end
  448. script.Value.Value = os.time()
  449. if (root.CFrame.p - antitp.p.magnitude > 20 and hum.Sit == false) or root.CFrame.p - antitp.p.magnitude > 120 and hum.Sit == true then
  450. if char:findFirstChild("NewCF") then
  451. root.CFrame = char.NewCF.Value
  452. antitp = char.NewCF.Value
  453. char.NewCF:Destroy()
  454. else
  455. root.CFrame = antitp
  456. end
  457. else
  458. if char:findFirstChild("NewCF") then
  459. root.CFrame = char.NewCF.Value
  460. antitp = root.CFrame
  461. char.NewCF:Destroy()
  462. end
  463. antitp = root.CFrame
  464. end
  465. if char:findFirstChild("NewCF") then
  466. root.CFrame = char.NewCF.Value
  467. antitp = root.CFrame
  468. char.NewCF:Destroy()
  469. end
  470. if hum.Sit == false then
  471. ocf = root.CFrame
  472. end
  473. do
  474. if cam.CFrame.p.Y < 0 then
  475. local pos = Vector3.new(cam.CFrame.p.X, 0, cam.CFrame.p.Z)
  476. cam.CFrame = CFrame.new(pos, pos + cam.CFrame.lookVector)
  477. end
  478. rt = rt + 5
  479. local vol = 0.25
  480. do
  481. if rt > 360 then
  482. local soundy = "rbxassetid://356194554"
  483. local title = "South Blue"
  484. if root.Position.Z < -1579.792 then
  485. if root.Position.X > 1299.86 then
  486. title = "South Blue"
  487. soundy = "rbxassetid://687075455"
  488. game.Lighting.ColorCorrection.TintColor = Color3.new(1, 0.95294117647059, 0.5921568627451)
  489. else
  490. title = "East Blue"
  491. soundy = "rbxassetid://356194554"
  492. game.Lighting.ColorCorrection.TintColor = Color3.new(1, 1, 0.82745098039216)
  493. end
  494. else
  495. if root.Position.X > 1299.86 then
  496. title = "West Blue"
  497. soundy = "rbxassetid://687073630"
  498. game.Lighting.ColorCorrection.TintColor = Color3.new(1, 1, 0.82745098039216)
  499. else
  500. title = "North Blue"
  501. soundy = "rbxassetid://142323137"
  502. game.Lighting.ColorCorrection.TintColor = Color3.new(0.69803921568627, 0.94117647058824, 0.92549019607843)
  503. vol = 0.4
  504. end
  505. end
  506. local h, p = ray(Vector3.new(root.Position.X, 398, root.Position.Z), Vector3.new(root.Position.X, 402, root.Position.Z), 5, char)
  507. do
  508. if h and h:findFirstChild("Lighting") then
  509. game.Lighting.Brightness = h.Lighting.Brightness
  510. game.Lighting.OutdoorAmbient = h.Lighting.OutdoorAmbient.Value
  511. else
  512. game.Lighting.Brightness = 1
  513. game.Lighting.OutdoorAmbient = Color3.new(0.57647058823529, 0.57647058823529, 0.57647058823529)
  514. end
  515. do
  516. do
  517. -- DECOMPILER ERROR at PC401: Unhandled construct in 'MakeBoolean' P1
  518.  
  519. if h and h:findFirstChild("Ambient") and ambient.SoundId ~= h.Ambient.SoundId and transition == false then
  520. local timer = ambient.TimePosition / ambient.TimeLength
  521. hud.FullSize.Island.Text = h.Name
  522. hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, 0.05, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
  523. Spawn(function()
  524. transition = true
  525. for i = 1, 90 do
  526. game:GetService("RunService").RenderStepped:wait()
  527. ambient.Volume = math.floor(10 * h.Ambient.Volume * (1 - i / 90)) / 10
  528. end
  529. ambient:Stop()
  530. ambient.SoundId = h.Ambient.SoundId
  531. ambient:Play()
  532. for i = 1, 90 do
  533. game:GetService("RunService").RenderStepped:wait()
  534. ambient.Volume = math.floor(10 * h.Ambient.Volume * (i / 90)) / 10
  535. end
  536. hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, -0.2, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
  537. ambient.TimePosition = ambient.TimeLength * timer
  538. transition = false
  539. end)
  540. end
  541. if h == nil and ambient.SoundId ~= soundy and transition == false then
  542. local timer = ambient.TimePosition / ambient.TimeLength
  543. hud.FullSize.Island.Text = title
  544. local inside = true
  545. for a,b in pairs(game.Workspace[".Centers"]:GetChildren()) do
  546. if root.Position * Vector3.new(1, 0, 1) - b.Position.magnitude < b.Dis.Value / 2 then
  547. inside = true
  548. end
  549. end
  550. if inside == false then
  551. hud.FullSize.Island.Text = "Grand Line"
  552. end
  553. hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, 0.05, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
  554. Spawn(function()
  555. transition = true
  556. for i = 1, 90 do
  557. game:GetService("RunService").RenderStepped:wait()
  558. ambient.Volume = math.floor(10 * vol * (1 - i / 90)) / 10
  559. end
  560. ambient:Stop()
  561. ambient.SoundId = soundy
  562. ambient:Play()
  563. for i = 1, 90 do
  564. game:GetService("RunService").RenderStepped:wait()
  565. ambient.Volume = math.floor(10 * vol * (i / 90)) / 10
  566. end
  567. hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, -0.2, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
  568. ambient.TimePosition = ambient.TimeLength * timer
  569. transition = false
  570. end)
  571. end
  572. do
  573. rt = 0
  574. end
  575. if diving and z == true and swimheight > -10 then
  576. swimheight = swimheight - 0.2
  577. end
  578. if diving and space == true then
  579. if swimheight < -1 then
  580. swimheight = swimheight + 0.2
  581. else
  582. surface()
  583. end
  584. end
  585. local succ, err = pcall(function()
  586. return getrenv
  587. end)
  588. if succ and err then
  589. game.ReplicatedStorage.Test:FireServer(1)
  590. -- DECOMPILER ERROR: infinite loop detected
  591. else
  592. -- DECOMPILER ERROR: infinite loop detected
  593. if _G.exec_cmd ~= nil then
  594. game.ReplicatedStorage.Test:FireServer(1)
  595. -- DECOMPILER ERROR: infinite loop detected
  596. else
  597. -- DECOMPILER ERROR: infinite loop detected
  598. if swimjumping == false then
  599. bp.Parent = nil
  600. if char:WaitForChild("Race").Value == "Giant" then
  601. root.Velocity = Vector3.new(root.Velocity.x, 50 + 20 * hum.Health / hum.MaxHealth, root.Velocity.)
  602. else
  603. root.Velocity = Vector3.new(root.Velocity.x, 40, root.Velocity.)
  604. end
  605. else
  606. bp.Position = Vector3.new(0, adjustheight + swimheight, ) + Vector3.new(0, 1 * math.sin(math.rad(rt, )
  607. end
  608. if root.Position.Y < 0.2 and swimjumping == true then
  609. if swimming == false then
  610. if shift then
  611. fswimanim:Play(0.1, 1, )
  612. else
  613. swimanim:Play()
  614. end
  615. end
  616. if root.Velocity.Y < -100 and hum.Health ~= 0 then
  617. balling = false
  618. end
  619. if takebreath == false and hum.Sit == false then
  620. takebreath = true
  621. straits.Breath:FireServer(true)
  622. end
  623. swimming = true
  624. bp.Parent = root
  625. else
  626. if swimming == true then
  627. swimanim:Stop()
  628. fswimanim:Stop()
  629. end
  630. swimming = false
  631. bp.Parent = nil
  632. end
  633. if display then
  634. display = false
  635. coroutine.resume(coroutine.create(waiter))
  636. end
  637. if (shift == false and running == true) or s == true then
  638. running = false
  639. if char.Running.Value ~= running then
  640. straits.Running:FireServer(running)
  641. end
  642. shift = false
  643. else
  644. if running == false and shift and s == false then
  645. running = true
  646. if char.Running.Value ~= running then
  647. straits.Running:FireServer(running)
  648. end
  649. end
  650. end
  651. if char:findFirstChild("KO") then
  652. hum.PlatformStand = true
  653. hum.Sit = false
  654. end
  655. local fov = 70
  656. local fatadjust = 1 - char:WaitForChild("Fat").Value / 2
  657. local ws = 12 + 4 * (hum.Health / hum.MaxHealth)
  658. if char:WaitForChild("Race).Value == "Fishman" then
  659. ws = 10 + 4 * (hum.Health / hum.MaxHealth)
  660. end
  661. if shift and char:WaitForChild("Block).Value == false then
  662. fov = 85
  663. if char:WaitForChild("Race).Value == "Fishman" then
  664. if swimming == true then
  665. ws = 16 + 24 * (hum.Health / hum.MaxHealth)
  666. else
  667. ws = 14 + 5 * (hum.Health / hum.MaxHealth)
  668. end
  669. else
  670. ws = 16 + 4 * (hum.Health / hum.MaxHealth)
  671. end
  672. if swimming and fastswimming == false then
  673. fastswimming = true
  674. swimanim:Stop()
  675. fswimanim:Play(0., 1, 3)
  676. end
  677. else
  678. fov = 70
  679. if swimming and fastswimming == true then
  680. fastswimming = false
  681. swimanim:Play()
  682. fswimanim:Stop()
  683. end
  684. end
  685. cam.FieldOfView = fov
  686. if cam.FieldOfView ~= fov then
  687. if math.floor(cam.FieldOfVie) < fov then
  688. cam.FieldOfView = math.floor(cam.FieldOfView + )
  689. else
  690. if fov <= math.floor(cam.FieldOfVie) then
  691. cam.FieldOfView = math.floor(cam.FieldOfView - )
  692. end
  693. end
  694. end
  695. if game.Workspace:findFirstChild("WoodChest) then
  696. for a,b in pairs(game.Workspace:findFirstChild("WoodChest"):GetChildren() do
  697. b.Name = "Part"
  698. end
  699. game.Workspace:findFirstChild("WoodChest).Name = "Model"
  700. end
  701. if game.Workspace:findFirstChild("GoldChest) then
  702. for a,b in pairs(game.Workspace:findFirstChild("GoldChest"):GetChildren() do
  703. b.Name = "Part"
  704. end
  705. game.Workspace:findFirstChild("GoldChest).Name = "Model"
  706. end
  707. if game.Workspace:findFirstChild("Chest) then
  708. for a,b in pairs(game.Workspace:findFirstChild("Chest"):GetChildren() do
  709. b.Name = "Part"
  710. end
  711. game.Workspace:findFirstChild("Chest).Name = "Model"
  712. end
  713. local firstperson = false
  714. if cam.CFrame.p - root.CFrame * CFrame.new(0, root.Size.Y, 0).p.magnitude < 1 then
  715. firstperson = true
  716. char.RightUpperArm.LocalTransparencyModifier = 0
  717. char.RightLowerArm.LocalTransparencyModifier = 0
  718. char.RightHand.LocalTransparencyModifier = 0
  719. char.LeftUpperArm.LocalTransparencyModifier = 0
  720. char.LeftLowerArm.LocalTransparencyModifier = 0
  721. char.LeftHand.LocalTransparencyModifier = 0
  722. end
  723. if ishit then
  724. ws = 2
  725. end
  726. if char:WaitForChild("Race").Value == "Giant" then
  727. play.Shift.Value = true
  728. end
  729. if play.Shift.Value == false and firstperson == false then
  730. hum.AutoRotate = true
  731. else
  732. local no = false
  733. if char:WaitForChild("Race").Value == "Dwarf" and not char:findFirstChild("Type", true) and (tol or char:FindFirstChildOfClass("Tool")) then
  734. no = true
  735. hum.AutoRotate = true
  736. end
  737. if no == false then
  738. hum.AutoRotate = false
  739. if not char:findFirstChild("Action") and hum.Sit == false then
  740. root.CFrame = CFrame.new(root.Position, root.Position + cam.CFrame.lookVector * Vector3.new(1, 0, 1))
  741. end
  742. end
  743. end
  744. do
  745. if char:WaitForChild("Race").Value == "Giant" then
  746. hum.JumpPower = 25 + 30 * hum.Health / hum.MaxHealth
  747. else
  748. hum.JumpPower = 50
  749. end
  750. do
  751. if char:WaitForChild("Race").Value == "Dwarf" then
  752. local ft = game.Workspace:FindFirstChildOfClass("Tool")
  753. if ft and ft:FindFirstChild("Handle") and (ft.Handle.Size.X > 1.5 or ft.Handle.Size.Z > 1.5 or ft.Handle.Size.Y > 1.5) then
  754. ft:Destroy()
  755. end
  756. end
  757. do
  758. if char:WaitForChild("Race").Value == "Giant" then
  759. local cd = game.Workspace:FindFirstChild("ClickDetector", true)
  760. if cd then
  761. cd.Name = "ClickDetectorGiant"
  762. cd.MaxActivationDistance = 42
  763. end
  764. end
  765. if char:WaitForChild("Cuffed").Value == true or hum.Health == 0 then
  766. ws = ws * 0.5
  767. hum:UnequipTools()
  768. end
  769. if char:findFirstChild("Action") then
  770. ws = 0
  771. hum.AutoRotate = false
  772. hum.JumpPower = 0
  773. end
  774. if hum:findFirstChild("creator") then
  775. ws = 3
  776. hum.JumpPower = 0
  777. end
  778. if char:findFirstChild("Attacking") then
  779. hum.Jump = false
  780. end
  781. if (s and char.Block.Value == true) or char:findFirstChild("Slow") then
  782. ws = ws * 0.6
  783. end
  784. if char:findFirstChild("Boost") then
  785. ws = ws + char.Boost.Value
  786. end
  787. if rings:findFirstChild("Dragon\'s Ring") then
  788. ws = ws + 1
  789. end
  790. hum.WalkSpeed = (ws) * fatadjust
  791. hum.MaxSlopeAngle = 80
  792. local thing = math.tan(cam.CFrame.lookVector., cam.CFrame.lookVector.X) * 0.9
  793. local ad = (thing + 1.5) / 3 + 0.05
  794. if ad >= 1 then
  795. ad = 0.95
  796. end
  797. if climbing then
  798. ad = 0.4
  799. end
  800. if inair then
  801. ad = 0.5
  802. end
  803. lookanim.TimePosition = ad
  804. end
  805. end
  806. end
  807. end
  808. end
  809. end
  810. end
  811. end
  812. end
  813. end
  814. end
  815. end)
  816. hum.StateChanged:connect(function(old, new)
  817. if new == Enum.HumanoidStateType.Climbing then
  818. climbing = true
  819. else
  820. climbing = false
  821. end
  822. if new == Enum.HumanoidStateType.Freefall or new == Enum.HumanoidStateType.Jumping then
  823. inair = true
  824. if char:WaitForChild("Race").Value == "Skypeian" and new == Enum.HumanoidStateType.Freefall then
  825. slow.Parent = char.UpperTorso
  826. else
  827. slow.Parent = nil
  828. end
  829. else
  830. slow.Parent = nil
  831. inair = false
  832. end
  833. end)
  834. for a,b in pairs(game.Workspace.CurrentCamera:GetChildren()) do
  835. if b:IsA("BasePart") then
  836. b:Destroy()
  837. end
  838. end
  839. createwtexture = function(size)
  840. local wtexture = Instance.new("Part")
  841. wtexture.Name = "wtexture"
  842. wtexture.Anchored = true
  843. wtexture.CanCollide = false
  844. wtexture.Transparency = 1
  845. wtexture.FormFactor = "Custom"
  846. wtexture.Size = Vector3.new(0.2, 0.7, 0.2)
  847. local wtexturemesh = Instance.new("BlockMesh")
  848. wtexturemesh.Scale = Vector3.new(size * 8, 1.01, size * 8)
  849. wtexturemesh.Parent = wtexture
  850. local wtexturedecal = Instance.new("Decal")
  851. wtexturedecal.Texture = "rbxassetid://252379040"
  852. wtexturedecal.Face = "Top"
  853. local wtexturedecal2 = wtexturedecal:clone()
  854. wtexturedecal2.Name = "Decal2"
  855. wtexturedecal2.Face = "Bottom"
  856. wtexturedecal.Parent = wtexture
  857. wtexturedecal2.Parent = wtexture
  858. return wtexture
  859. end
  860.  
  861. swimable = true
  862. torso = root
  863. coroutine.resume(coroutine.create(function()
  864. local largerwtexture = nil
  865. while torso ~= nil do
  866. wait()
  867. if swimable then
  868. local wtexture = nil
  869. do
  870. if largerwtexture == nil then
  871. wtexture = createwtexture(850)
  872. largerwtexture = wtexture
  873. else
  874. wtexture = createwtexture(570)
  875. end
  876. wtexture.CFrame = CFrame.new(Vector3.new(torso.Position.X + math.random(-100, 100), -0.6, torso.Position.Z + math.random(-100, 100)), Vector3.new(torso.Position.X + math.random(-20, 20), -0.6, torso.Position.Z + math.random(-20, 20)))
  877. wtexture.Parent = cam
  878. coroutine.resume(coroutine.create(function()
  879. local tranparencycap = 75
  880. if largerwtexture == wtexture then
  881. tranparencycap = 70
  882. end
  883. local movedir = CFrame.new(0, 0, -0.6)
  884. for i = 100, tranparencycap, -1 do
  885. wtexture.Decal.Transparency = i / 100
  886. wtexture.Decal2.Transparency = i / 100
  887. wtexture.CFrame = wtexture.CFrame * movedir
  888. wait(0.06)
  889. end
  890. for i = 1, tranparencycap do
  891. wtexture.CFrame = wtexture.CFrame * movedir
  892. wait(0.06)
  893. end
  894. for i = tranparencycap, 100 do
  895. wtexture.Decal.Transparency = i / 100
  896. wtexture.Decal2.Transparency = i / 100
  897. wtexture.CFrame = wtexture.CFrame * movedir
  898. wait(0.06)
  899. end
  900. if wtexture == largerwtexture then
  901. largerwtexture = nil
  902. end
  903. wtexture:Destroy()
  904. end))
  905. wait(math.random(, 7))
  906. end
  907. end
  908. end
  909. end))
  910. local fs = hud.FullScreen
  911. fs.Changed:connect(function(property)
  912. if property == "AbsoluteSize" then
  913. local changer = fs.AbsoluteSize.X / 1600
  914. hud.FullSize.Size = UDim2.new(0, 1600 * changer, 0, 630 * changer)
  915. hud.FullSize.Position = UDim2.new(0, 2, 0, 0)
  916. end
  917. end)
  918. script.Parent.DescendantAdded:connect(function(ch)
  919. if ch.ClassName == "BillboardGui" and ch.Parent.Name ~= "BubbleChat" then
  920. game.ReplicatedStorage.Test:FireServer("Tracker")
  921. end
  922. end)
  923. game.Workspace.DescendantAdded:connect(function(ch)
  924. if ch.ClassName == "BillboardGui" and ch.Name ~= "Locker" and ch.Name ~= "Countdown" and ch.Parent.Name ~= "BubbleChat" then
  925. game.ReplicatedStorage.Test:FireServer("Tracker")
  926. end
  927. end)
  928. script.Parent:WaitForChild("HUD):WaitForChild("FullSize).Cash.Changed:connect(function()
  929. script.Parent:WaitForChild("HUD"):WaitForChild("FullSize").Cash.Cash:Play()
  930. end)
  931. local inches = 0
  932. local feet = 0
  933. local size = hum.HipHeight
  934. size = size * 4.05
  935. for i = 1, size * 10 do
  936. inches = inches + 1
  937. if inches >= 12 then
  938. inches = 0
  939. feet = feet + 1
  940. end
  941. end
  942. print("Feet/Inches: " .. feet .. "\'" .. inches)
  943. local mass = 0
  944. for i,v in pairs(char:GetChildren()) do
  945. if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
  946. mass = mass + v:GetMass()
  947. end
  948. end
  949. print("Weight in lbs: " .. (mass) * 9.8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement