Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- params : ...
- -- DECOMPILER ERROR: infinite loop detected
- script:Destroy()
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false)
- local fn = game.Players.LocalPlayer:WaitForChild("Backpack"):WaitForChild("ServerTraits"):WaitForChild("RemoteFunction")
- fn.OnClientInvoke = function()
- return true
- end
- game.Players.LocalPlayer.PlayerGui.ChildAdded:connect(function(ch)
- if ch.Name ~= "HUD" and ch.Name ~= "Ambient" and ch.Name ~= "Finish" and ch.Name ~= "Frame" then
- ch:Destroy()
- end
- end)
- wait(0.5)
- local play = game.Players.LocalPlayer
- local char = game.Workspace.LivingThings:WaitForChild(play.Name)
- char = play.Character
- local cam = game.Workspace.CurrentCamera
- local mouse = play:GetMouse()
- local root = char:WaitForChild("HumanoidRootPart")
- local hum = char:WaitForChild("Humanoid")
- local takebreath = false
- returncam = function()
- cam.FieldOfView = 70
- cam.CameraType = "Custom"
- cam.CameraSubject = hum
- end
- local hud = script.Parent:WaitForChild("HUD")
- local crouchanim = hum:LoadAnimation(script.Crouch)
- local userinput = game:GetService("UserInputService")
- local inair = false
- local swimjump = true
- local bp = Instance.new("BodyPosition")
- Spawn(function()
- end)
- local shift = false
- local s = false
- local running = false
- local ishit = false
- local idleanim = nil
- local straits = (play.Backpack:WaitForChild("ServerTraits"))
- local tol = nil
- local diving = false
- hum.NameOcclusion = 2
- local swimjumping = true
- local crouching = false
- local timer = 0
- local space = false
- local z = false
- local swimming = false
- local swimheight = 0
- local adjustheight = -0.8
- keys = {a = false, d = false, s = false, w = false, m1 = false, space = false}
- hum.StateChanged:connect(function(old, new)
- if new == Enum.HumanoidStateType.Running or new == Enum.HumanoidStateType.Seated then
- takebreath = false
- straits.Breath:FireServer(false)
- end
- if new == Enum.HumanoidStateType.FallingDown or new == Enum.HumanoidStateType.Physics or new == Enum.HumanoidStateType.Ragdoll then
- hum:ChangeState(Enum.HumanoidStateType.GettingUp)
- root.Velocity = Vector3.new(0, 0, 0)
- else
- 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
- root.Velocity = Vector3.new(0, 0, 0)
- end
- end
- end)
- print(2)
- local tool, idleanim = nil, nil
- char.ChildRemoved:connect(function()
- if tool == nil or tool.Parent ~= char then
- if idleanim ~= nil then
- idleanim:Stop()
- end
- tool = nil
- end
- end)
- Spawn(function()
- char.Head:WaitForChild("FakeHead"):findFirstChild("NameNoid", true).DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- end)
- local dive_en = true
- local balling = false
- local backs = 0
- local last = tick()
- userinput.InputBegan:connect(function(input)
- if userinput:GetFocusedTextBox() ~= nil then
- return
- end
- if input.KeyCode == Enum.KeyCode.Tab then
- hud.FullScreen.ScrollingFrame.Visible = not hud.FullScreen.ScrollingFrame.Visible
- end
- if input.KeyCode == Enum.KeyCode.LeftShift then
- play.Shift.Value = not play.Shift.Value
- -- DECOMPILER ERROR at PC59: Unhandled construct in 'MakeBoolean' P1
- if play.Shift.Value == false and cam.CFrame.p - root.CFrame * CFrame.new(0, root.Size.Y, 0).p.magnitude > 1 then
- userinput.MouseBehavior = 0
- end
- end
- userinput.MouseBehavior = 1
- if input.KeyCode == Enum.KeyCode.Backspace then
- backs = backs + 1
- if backs > 5 then
- hum.Health = 0
- end
- Spawn(function()
- wait(1)
- backs = 0
- end)
- end
- if char:findFirstChild("Action") then
- return
- end
- local doublew = false
- if input.UserInputType == Enum.UserInputType.MouseButton1 and tool then
- keys.m1 = true
- if tick() - last < 0.15 then
- straits.Input:FireServer("DM1", mouse.Hit)
- else
- straits.Input:FireServer("M1", mouse.Hit)
- end
- running = false
- if char.Running.Value ~= running then
- straits.Running:FireServer(running)
- end
- last = tick()
- end
- if input.KeyCode == Enum.KeyCode.Q and tool then
- straits.Input:FireServer("Q", mouse.Hit)
- else
- if input.KeyCode == Enum.KeyCode.E and tool then
- straits.Input:FireServer("E", mouse.Hit)
- else
- if input.KeyCode == Enum.KeyCode.R and tool then
- straits.Input:FireServer("R", mouse.Hit)
- else
- if input.KeyCode == Enum.KeyCode.T and tool then
- straits.Input:FireServer("T", mouse.Hit)
- else
- if input.KeyCode == Enum.KeyCode.C and tool then
- straits.Input:FireServer("C", mouse.Hit)
- else
- if input.KeyCode == Enum.KeyCode.V and tool then
- straits.Input:FireServer("V", mouse.Hit)
- else
- if input.KeyCode == Enum.KeyCode.G and tool then
- straits.Input:FireServer("G", mouse.Hit)
- end
- end
- end
- end
- end
- end
- end
- if input.KeyCode == Enum.KeyCode.B then
- straits.Input:FireServer("B", mouse.Hit)
- end
- if input.KeyCode == Enum.KeyCode.N then
- straits.Input:FireServer("N", mouse.Hit)
- end
- if input.KeyCode == Enum.KeyCode.L then
- straits.Anime:FireServer("Coat")
- else
- if input.KeyCode == Enum.KeyCode.K then
- straits.Anime:FireServer("Tie")
- end
- end
- if input.KeyCode == Enum.KeyCode.F then
- if char.Humanoid:findFirstChild("creator") then
- return
- end
- straits.Block:FireServer(true)
- end
- if input.KeyCode == Enum.KeyCode.W then
- if game.Workspace.DistributedGameTime - timer < 0.2 then
- doublew = true
- end
- timer = game.Workspace.DistributedGameTime
- end
- if input.KeyCode == Enum.KeyCode.Space then
- straits.Space:FireServer(true)
- end
- if (input.KeyCode == Enum.KeyCode.ButtonL3 or doublew) and s == false and hum.Sit == false and hum.PlatformStand == false then
- shift = true
- running = true
- if char.Running.Value ~= running then
- straits.Running:FireServer(running)
- end
- end
- if input.KeyCode == Enum.KeyCode.Space then
- space = true
- end
- if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Thumbstick1 and input.Position.Y < 0.1 then
- s = true
- running = false
- if char.Running.Value ~= running then
- straits.Running:FireServer(running)
- end
- end
- if input.KeyCode == Enum.KeyCode.Space and bp.Parent == root and swimjump and not diving then
- swimjump = false
- swimjumping = false
- Spawn(function()
- wait(0.3)
- swimjumping = true
- end)
- if hum.Health ~= 0 then
- wait()
- swimjump = true
- if input.KeyCode == Enum.KeyCode.S then
- s = true
- end
- end
- end
- end)
- userinput.InputEnded:connect(function(input)
- if input.KeyCode == Enum.KeyCode.Q and tool then
- straits.Input:FireServer("NQ", mouse.Hit)
- else
- end
- if (input.KeyCode == Enum.KeyCode.E and not tool) or input.KeyCode == Enum.KeyCode.F then
- straits.Block:FireServer(false)
- end
- if input.KeyCode == Enum.KeyCode.B then
- straits.Input:FireServer("BStop", mouse.Hit)
- end
- if input.KeyCode == Enum.KeyCode.Space then
- straits.Space:FireServer(false)
- end
- if input.UserInputType == Enum.UserInputType.MouseButton1 and tool then
- keys.m1 = false
- straits.Input:FireServer("M1End", mouse.Hit)
- end
- if input.KeyCode == Enum.KeyCode.ButtonL3 or input.KeyCode == Enum.KeyCode.W or input.UserInputType == Enum.UserInputType.MouseButton1 then
- shift = false
- running = false
- if char.Running.Value ~= running then
- straits.Running:FireServer(running)
- end
- end
- if input.KeyCode == Enum.KeyCode.Space then
- space = false
- end
- if input.KeyCode == Enum.KeyCode.Z then
- z = false
- end
- if input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.Thumbstick1 and input.Position.Y > 0.1 then
- s = false
- end
- end)
- hum.StateChanged:connect(function(o, n)
- if n == Enum.HumanoidStateType.Climbing and swimming then
- hum:ChangeState(Enum.HumanoidStateType.Running)
- bp.Parent = nil
- root.Velocity = Vector3.new(root.Velocity.x, 40, root.Velocity.z)
- end
- end)
- ray = function(startpos, endpos, dis, ign)
- local test = Ray.new(startpos, CFrame.new(startpos, endpos).lookVector * dis)
- local hit, pos, sf = game.Workspace:FindPartOnRay(test, ign)
- return hit, pos, sf
- end
- hum.Seated:connect(function(bol)
- if bol then
- local h, p = ray(root.Position, root.CFrame * CFrame.new(0, -3, 0).p, root.Size.Y * 3, char)
- if h == nil then
- hum.Health = 0
- end
- end
- end)
- char.ChildAdded:connect(function(ch)
- if ch:IsA("Tool") and ch.Name ~= "Cannon" then
- tool = ch
- tol = ch
- for a,b in pairs(game.Workspace.LivingThings:GetChildren()) do
- if b:findFirstChild("IsAShip") then
- for c,d in pairs(b:GetChildren()) do
- if d:IsA("Seat") and not d:findFirstChild("SeatWeld") then
- d.Disabled = true
- end
- end
- end
- end
- end
- end)
- char.ChildRemoved:connect(function(ch)
- if tol ~= nil and tol.Parent ~= char then
- tol = nil
- for a,b in pairs(game.Workspace.LivingThings:GetChildren()) do
- if b:findFirstChild("IsAShip") then
- for c,d in pairs(b:GetChildren()) do
- if d:IsA("Seat") then
- d.Disabled = false
- end
- end
- end
- end
- end
- end)
- local anim = nil
- doanim = function(ani, spd)
- if spd == nil then
- spd = 1
- end
- if anim ~= nil then
- anim:Stop()
- end
- local anim = hum:LoadAnimation(ani)
- anim:Play(0.1, 1, spd)
- end
- local on = 1
- local change = 0
- local en = true
- pickups1 = {"Apple", "Orange", "Sand Dollar", "Spiral Shell", "Clam Shell", "Banana", "Watermelon", "Coconut", "Firemelon", "Carrot", "Lemon", "Golden Flower"}
- pickups = {}
- for a,b in pairs(pickups1) do
- pickups[b] = true
- end
- local lasttarg = nil
- mouse.Idle:connect(function()
- local targ = mouse.Target
- 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
- mouse.Icon = "rbxassetid://459822757"
- else
- mouse.Icon = ""
- end
- if targ and (targ.Parent:findFirstChild("Head") or targ.Parent.Parent:findFirstChild("Head")) then
- if not targ.Parent:findFirstChild("Head") then
- local head = targ.Parent.Parent:findFirstChild("Head")
- end
- lasttarg = head:findFirstChild("Head", true)
- if lasttarg then
- lasttarg.Transparency = 0
- end
- else
- do
- if lasttarg ~= nil then
- lasttarg.Transparency = 1
- lasttarg = nil
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- local targ = mouse.Target
- 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
- game.ReplicatedStorage.Crates:FireServer(targ)
- end
- end)
- local timerz = 0
- hum.ChildAdded:connect(function(ch)
- if ch.Name == "creator" then
- shift = false
- end
- end)
- ray = function(startpos, endpos, dis, ignore)
- local test = Ray.new(startpos, CFrame.new(startpos, endpos).lookVector * dis)
- local hit, pos, sf = game.Workspace:FindPartOnRay(test, ignore)
- return hit, pos, sf
- end
- local waterwalk = true
- local p = Instance.new("Part)
- p.Anchored = true
- p.Transparency = 1
- p.Size = Vector3.new(4, 0, 4)
- local display = true
- waiter = function()
- wait(1)
- display = true
- end
- local cc = Instance.new("ColorCorrectionEffect")
- cc.Parent = nil
- cc.Enabled = true
- cc.TintColor = Color3.new(0.3921568627451, 0.24313725490196, 1)
- cc.Saturation = -0.81
- bp.Name = "Swim"
- bp.MaxForce = Vector3.new(0, 40000000, 0)
- bp.Position = Vector3.new(0, -0.4, 0)
- bp.D = 500
- local rt = 0
- local swimanim = hum:LoadAnimation(script.Swim)
- local fswimanim = hum:LoadAnimation(script.FastSwim)
- surface = function()
- diving = false
- swimheight = 0
- adjustheight = -0.8
- end
- local fastswimming = false
- local ambient = game.Workspace.CurrentCamera:FindFirstChild("Ambient")
- if ambient == nil then
- play.PlayerGui:WaitForChild("Ambient").Parent = game.Workspace.CurrentCamera
- ambient = game.Workspace.CurrentCamera:FindFirstChild("Ambient")
- end
- char.DescendantAdded:connect(function(ch)
- if ch:IsA("BodyGyro") then
- hum.Health = 0
- end
- if ch:IsA("BodyVelocity") and ch.Name ~= "BodvVelocity" then
- game.Debris:AddItem(ch, 3)
- end
- end)
- local ocf = root.CFrame
- local climbing = false
- local lookanim = hum:LoadAnimation(script.Look)
- lookanim:Play(0.1, 2, 0)
- local transition = false
- local breath = 200
- local antitp = root.CFrame
- local rings = char:WaitForChild("Rings")
- local slow = Instance.new("BodyVelocity")
- slow.Name = "BodvVelocity"
- slow.Velocity = Vector3.new(0, -15, 0)
- game:GetService("RunService").RenderStepped:connect(function()
- -- DECOMPILER ERROR: infinite loop detected
- -- DECOMPILER ERROR: infinite loop detected
- if script.Parent:FindFirstChild("zz", true) or script.Parent:FindFirstChild("NoS", true) then
- game.ReplicatedStorage.DFLoad:FireServer()
- end
- if char:findFirstChild("Dodge") and game.Lighting.Ken.Enabled == false then
- game.Lighting.Ken.Enabled = true
- else
- if game.Lighting.Ken.Enabled == true and not char:findFirstChild("Dodge") then
- game.Lighting.Ken.Enabled = false
- end
- end
- if cam.CFrame.p - root.CFrame * CFrame.new(0, root.Size.Y, 0).p.magnitude > 150 then
- cam.CFrame = root.CFrame
- cam.CameraSubject = hum
- end
- if hum and hum.Sit then
- play.CameraMaxZoomDistance = 70
- else
- play.CameraMaxZoomDistance = 35
- end
- if root.Velocity.y < 0 and root.Position.Y > 2 then
- slow.MaxForce = Vector3.new(0, 10000000, 0)
- else
- slow.MaxForce = Vector3.new(0, 0, 0)
- end
- script.Value.Value = os.time()
- 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
- if char:findFirstChild("NewCF") then
- root.CFrame = char.NewCF.Value
- antitp = char.NewCF.Value
- char.NewCF:Destroy()
- else
- root.CFrame = antitp
- end
- else
- if char:findFirstChild("NewCF") then
- root.CFrame = char.NewCF.Value
- antitp = root.CFrame
- char.NewCF:Destroy()
- end
- antitp = root.CFrame
- end
- if char:findFirstChild("NewCF") then
- root.CFrame = char.NewCF.Value
- antitp = root.CFrame
- char.NewCF:Destroy()
- end
- if hum.Sit == false then
- ocf = root.CFrame
- end
- do
- if cam.CFrame.p.Y < 0 then
- local pos = Vector3.new(cam.CFrame.p.X, 0, cam.CFrame.p.Z)
- cam.CFrame = CFrame.new(pos, pos + cam.CFrame.lookVector)
- end
- rt = rt + 5
- local vol = 0.25
- do
- if rt > 360 then
- local soundy = "rbxassetid://356194554"
- local title = "South Blue"
- if root.Position.Z < -1579.792 then
- if root.Position.X > 1299.86 then
- title = "South Blue"
- soundy = "rbxassetid://687075455"
- game.Lighting.ColorCorrection.TintColor = Color3.new(1, 0.95294117647059, 0.5921568627451)
- else
- title = "East Blue"
- soundy = "rbxassetid://356194554"
- game.Lighting.ColorCorrection.TintColor = Color3.new(1, 1, 0.82745098039216)
- end
- else
- if root.Position.X > 1299.86 then
- title = "West Blue"
- soundy = "rbxassetid://687073630"
- game.Lighting.ColorCorrection.TintColor = Color3.new(1, 1, 0.82745098039216)
- else
- title = "North Blue"
- soundy = "rbxassetid://142323137"
- game.Lighting.ColorCorrection.TintColor = Color3.new(0.69803921568627, 0.94117647058824, 0.92549019607843)
- vol = 0.4
- end
- end
- local h, p = ray(Vector3.new(root.Position.X, 398, root.Position.Z), Vector3.new(root.Position.X, 402, root.Position.Z), 5, char)
- do
- if h and h:findFirstChild("Lighting") then
- game.Lighting.Brightness = h.Lighting.Brightness
- game.Lighting.OutdoorAmbient = h.Lighting.OutdoorAmbient.Value
- else
- game.Lighting.Brightness = 1
- game.Lighting.OutdoorAmbient = Color3.new(0.57647058823529, 0.57647058823529, 0.57647058823529)
- end
- do
- do
- -- DECOMPILER ERROR at PC401: Unhandled construct in 'MakeBoolean' P1
- if h and h:findFirstChild("Ambient") and ambient.SoundId ~= h.Ambient.SoundId and transition == false then
- local timer = ambient.TimePosition / ambient.TimeLength
- hud.FullSize.Island.Text = h.Name
- hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, 0.05, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
- Spawn(function()
- transition = true
- for i = 1, 90 do
- game:GetService("RunService").RenderStepped:wait()
- ambient.Volume = math.floor(10 * h.Ambient.Volume * (1 - i / 90)) / 10
- end
- ambient:Stop()
- ambient.SoundId = h.Ambient.SoundId
- ambient:Play()
- for i = 1, 90 do
- game:GetService("RunService").RenderStepped:wait()
- ambient.Volume = math.floor(10 * h.Ambient.Volume * (i / 90)) / 10
- end
- hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, -0.2, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
- ambient.TimePosition = ambient.TimeLength * timer
- transition = false
- end)
- end
- if h == nil and ambient.SoundId ~= soundy and transition == false then
- local timer = ambient.TimePosition / ambient.TimeLength
- hud.FullSize.Island.Text = title
- local inside = true
- for a,b in pairs(game.Workspace[".Centers"]:GetChildren()) do
- if root.Position * Vector3.new(1, 0, 1) - b.Position.magnitude < b.Dis.Value / 2 then
- inside = true
- end
- end
- if inside == false then
- hud.FullSize.Island.Text = "Grand Line"
- end
- hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, 0.05, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
- Spawn(function()
- transition = true
- for i = 1, 90 do
- game:GetService("RunService").RenderStepped:wait()
- ambient.Volume = math.floor(10 * vol * (1 - i / 90)) / 10
- end
- ambient:Stop()
- ambient.SoundId = soundy
- ambient:Play()
- for i = 1, 90 do
- game:GetService("RunService").RenderStepped:wait()
- ambient.Volume = math.floor(10 * vol * (i / 90)) / 10
- end
- hud.FullSize.Island:TweenPosition(UDim2.new(0.4, 0, -0.2, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Sine, 0.5)
- ambient.TimePosition = ambient.TimeLength * timer
- transition = false
- end)
- end
- do
- rt = 0
- end
- if diving and z == true and swimheight > -10 then
- swimheight = swimheight - 0.2
- end
- if diving and space == true then
- if swimheight < -1 then
- swimheight = swimheight + 0.2
- else
- surface()
- end
- end
- local succ, err = pcall(function()
- return getrenv
- end)
- if succ and err then
- game.ReplicatedStorage.Test:FireServer(1)
- -- DECOMPILER ERROR: infinite loop detected
- else
- -- DECOMPILER ERROR: infinite loop detected
- if _G.exec_cmd ~= nil then
- game.ReplicatedStorage.Test:FireServer(1)
- -- DECOMPILER ERROR: infinite loop detected
- else
- -- DECOMPILER ERROR: infinite loop detected
- if swimjumping == false then
- bp.Parent = nil
- if char:WaitForChild("Race").Value == "Giant" then
- root.Velocity = Vector3.new(root.Velocity.x, 50 + 20 * hum.Health / hum.MaxHealth, root.Velocity.)
- else
- root.Velocity = Vector3.new(root.Velocity.x, 40, root.Velocity.)
- end
- else
- bp.Position = Vector3.new(0, adjustheight + swimheight, ) + Vector3.new(0, 1 * math.sin(math.rad(rt, )
- end
- if root.Position.Y < 0.2 and swimjumping == true then
- if swimming == false then
- if shift then
- fswimanim:Play(0.1, 1, )
- else
- swimanim:Play()
- end
- end
- if root.Velocity.Y < -100 and hum.Health ~= 0 then
- balling = false
- end
- if takebreath == false and hum.Sit == false then
- takebreath = true
- straits.Breath:FireServer(true)
- end
- swimming = true
- bp.Parent = root
- else
- if swimming == true then
- swimanim:Stop()
- fswimanim:Stop()
- end
- swimming = false
- bp.Parent = nil
- end
- if display then
- display = false
- coroutine.resume(coroutine.create(waiter))
- end
- if (shift == false and running == true) or s == true then
- running = false
- if char.Running.Value ~= running then
- straits.Running:FireServer(running)
- end
- shift = false
- else
- if running == false and shift and s == false then
- running = true
- if char.Running.Value ~= running then
- straits.Running:FireServer(running)
- end
- end
- end
- if char:findFirstChild("KO") then
- hum.PlatformStand = true
- hum.Sit = false
- end
- local fov = 70
- local fatadjust = 1 - char:WaitForChild("Fat").Value / 2
- local ws = 12 + 4 * (hum.Health / hum.MaxHealth)
- if char:WaitForChild("Race).Value == "Fishman" then
- ws = 10 + 4 * (hum.Health / hum.MaxHealth)
- end
- if shift and char:WaitForChild("Block).Value == false then
- fov = 85
- if char:WaitForChild("Race).Value == "Fishman" then
- if swimming == true then
- ws = 16 + 24 * (hum.Health / hum.MaxHealth)
- else
- ws = 14 + 5 * (hum.Health / hum.MaxHealth)
- end
- else
- ws = 16 + 4 * (hum.Health / hum.MaxHealth)
- end
- if swimming and fastswimming == false then
- fastswimming = true
- swimanim:Stop()
- fswimanim:Play(0., 1, 3)
- end
- else
- fov = 70
- if swimming and fastswimming == true then
- fastswimming = false
- swimanim:Play()
- fswimanim:Stop()
- end
- end
- cam.FieldOfView = fov
- if cam.FieldOfView ~= fov then
- if math.floor(cam.FieldOfVie) < fov then
- cam.FieldOfView = math.floor(cam.FieldOfView + )
- else
- if fov <= math.floor(cam.FieldOfVie) then
- cam.FieldOfView = math.floor(cam.FieldOfView - )
- end
- end
- end
- if game.Workspace:findFirstChild("WoodChest) then
- for a,b in pairs(game.Workspace:findFirstChild("WoodChest"):GetChildren() do
- b.Name = "Part"
- end
- game.Workspace:findFirstChild("WoodChest).Name = "Model"
- end
- if game.Workspace:findFirstChild("GoldChest) then
- for a,b in pairs(game.Workspace:findFirstChild("GoldChest"):GetChildren() do
- b.Name = "Part"
- end
- game.Workspace:findFirstChild("GoldChest).Name = "Model"
- end
- if game.Workspace:findFirstChild("Chest) then
- for a,b in pairs(game.Workspace:findFirstChild("Chest"):GetChildren() do
- b.Name = "Part"
- end
- game.Workspace:findFirstChild("Chest).Name = "Model"
- end
- local firstperson = false
- if cam.CFrame.p - root.CFrame * CFrame.new(0, root.Size.Y, 0).p.magnitude < 1 then
- firstperson = true
- char.RightUpperArm.LocalTransparencyModifier = 0
- char.RightLowerArm.LocalTransparencyModifier = 0
- char.RightHand.LocalTransparencyModifier = 0
- char.LeftUpperArm.LocalTransparencyModifier = 0
- char.LeftLowerArm.LocalTransparencyModifier = 0
- char.LeftHand.LocalTransparencyModifier = 0
- end
- if ishit then
- ws = 2
- end
- if char:WaitForChild("Race").Value == "Giant" then
- play.Shift.Value = true
- end
- if play.Shift.Value == false and firstperson == false then
- hum.AutoRotate = true
- else
- local no = false
- if char:WaitForChild("Race").Value == "Dwarf" and not char:findFirstChild("Type", true) and (tol or char:FindFirstChildOfClass("Tool")) then
- no = true
- hum.AutoRotate = true
- end
- if no == false then
- hum.AutoRotate = false
- if not char:findFirstChild("Action") and hum.Sit == false then
- root.CFrame = CFrame.new(root.Position, root.Position + cam.CFrame.lookVector * Vector3.new(1, 0, 1))
- end
- end
- end
- do
- if char:WaitForChild("Race").Value == "Giant" then
- hum.JumpPower = 25 + 30 * hum.Health / hum.MaxHealth
- else
- hum.JumpPower = 50
- end
- do
- if char:WaitForChild("Race").Value == "Dwarf" then
- local ft = game.Workspace:FindFirstChildOfClass("Tool")
- 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
- ft:Destroy()
- end
- end
- do
- if char:WaitForChild("Race").Value == "Giant" then
- local cd = game.Workspace:FindFirstChild("ClickDetector", true)
- if cd then
- cd.Name = "ClickDetectorGiant"
- cd.MaxActivationDistance = 42
- end
- end
- if char:WaitForChild("Cuffed").Value == true or hum.Health == 0 then
- ws = ws * 0.5
- hum:UnequipTools()
- end
- if char:findFirstChild("Action") then
- ws = 0
- hum.AutoRotate = false
- hum.JumpPower = 0
- end
- if hum:findFirstChild("creator") then
- ws = 3
- hum.JumpPower = 0
- end
- if char:findFirstChild("Attacking") then
- hum.Jump = false
- end
- if (s and char.Block.Value == true) or char:findFirstChild("Slow") then
- ws = ws * 0.6
- end
- if char:findFirstChild("Boost") then
- ws = ws + char.Boost.Value
- end
- if rings:findFirstChild("Dragon\'s Ring") then
- ws = ws + 1
- end
- hum.WalkSpeed = (ws) * fatadjust
- hum.MaxSlopeAngle = 80
- local thing = math.tan(cam.CFrame.lookVector., cam.CFrame.lookVector.X) * 0.9
- local ad = (thing + 1.5) / 3 + 0.05
- if ad >= 1 then
- ad = 0.95
- end
- if climbing then
- ad = 0.4
- end
- if inair then
- ad = 0.5
- end
- lookanim.TimePosition = ad
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
- hum.StateChanged:connect(function(old, new)
- if new == Enum.HumanoidStateType.Climbing then
- climbing = true
- else
- climbing = false
- end
- if new == Enum.HumanoidStateType.Freefall or new == Enum.HumanoidStateType.Jumping then
- inair = true
- if char:WaitForChild("Race").Value == "Skypeian" and new == Enum.HumanoidStateType.Freefall then
- slow.Parent = char.UpperTorso
- else
- slow.Parent = nil
- end
- else
- slow.Parent = nil
- inair = false
- end
- end)
- for a,b in pairs(game.Workspace.CurrentCamera:GetChildren()) do
- if b:IsA("BasePart") then
- b:Destroy()
- end
- end
- createwtexture = function(size)
- local wtexture = Instance.new("Part")
- wtexture.Name = "wtexture"
- wtexture.Anchored = true
- wtexture.CanCollide = false
- wtexture.Transparency = 1
- wtexture.FormFactor = "Custom"
- wtexture.Size = Vector3.new(0.2, 0.7, 0.2)
- local wtexturemesh = Instance.new("BlockMesh")
- wtexturemesh.Scale = Vector3.new(size * 8, 1.01, size * 8)
- wtexturemesh.Parent = wtexture
- local wtexturedecal = Instance.new("Decal")
- wtexturedecal.Texture = "rbxassetid://252379040"
- wtexturedecal.Face = "Top"
- local wtexturedecal2 = wtexturedecal:clone()
- wtexturedecal2.Name = "Decal2"
- wtexturedecal2.Face = "Bottom"
- wtexturedecal.Parent = wtexture
- wtexturedecal2.Parent = wtexture
- return wtexture
- end
- swimable = true
- torso = root
- coroutine.resume(coroutine.create(function()
- local largerwtexture = nil
- while torso ~= nil do
- wait()
- if swimable then
- local wtexture = nil
- do
- if largerwtexture == nil then
- wtexture = createwtexture(850)
- largerwtexture = wtexture
- else
- wtexture = createwtexture(570)
- end
- 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)))
- wtexture.Parent = cam
- coroutine.resume(coroutine.create(function()
- local tranparencycap = 75
- if largerwtexture == wtexture then
- tranparencycap = 70
- end
- local movedir = CFrame.new(0, 0, -0.6)
- for i = 100, tranparencycap, -1 do
- wtexture.Decal.Transparency = i / 100
- wtexture.Decal2.Transparency = i / 100
- wtexture.CFrame = wtexture.CFrame * movedir
- wait(0.06)
- end
- for i = 1, tranparencycap do
- wtexture.CFrame = wtexture.CFrame * movedir
- wait(0.06)
- end
- for i = tranparencycap, 100 do
- wtexture.Decal.Transparency = i / 100
- wtexture.Decal2.Transparency = i / 100
- wtexture.CFrame = wtexture.CFrame * movedir
- wait(0.06)
- end
- if wtexture == largerwtexture then
- largerwtexture = nil
- end
- wtexture:Destroy()
- end))
- wait(math.random(, 7))
- end
- end
- end
- end))
- local fs = hud.FullScreen
- fs.Changed:connect(function(property)
- if property == "AbsoluteSize" then
- local changer = fs.AbsoluteSize.X / 1600
- hud.FullSize.Size = UDim2.new(0, 1600 * changer, 0, 630 * changer)
- hud.FullSize.Position = UDim2.new(0, 2, 0, 0)
- end
- end)
- script.Parent.DescendantAdded:connect(function(ch)
- if ch.ClassName == "BillboardGui" and ch.Parent.Name ~= "BubbleChat" then
- game.ReplicatedStorage.Test:FireServer("Tracker")
- end
- end)
- game.Workspace.DescendantAdded:connect(function(ch)
- if ch.ClassName == "BillboardGui" and ch.Name ~= "Locker" and ch.Name ~= "Countdown" and ch.Parent.Name ~= "BubbleChat" then
- game.ReplicatedStorage.Test:FireServer("Tracker")
- end
- end)
- script.Parent:WaitForChild("HUD):WaitForChild("FullSize).Cash.Changed:connect(function()
- script.Parent:WaitForChild("HUD"):WaitForChild("FullSize").Cash.Cash:Play()
- end)
- local inches = 0
- local feet = 0
- local size = hum.HipHeight
- size = size * 4.05
- for i = 1, size * 10 do
- inches = inches + 1
- if inches >= 12 then
- inches = 0
- feet = feet + 1
- end
- end
- print("Feet/Inches: " .. feet .. "\'" .. inches)
- local mass = 0
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
- mass = mass + v:GetMass()
- end
- end
- print("Weight in lbs: " .. (mass) * 9.8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement