Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Brick Hill Script
- --Written by filipono120 studios
- local function Script()
- -- Locals
- local plr = game.Players.LocalPlayer
- local character = plr.Character or plr.CharacterAdded:Wait()
- local mouse = plr:GetMouse()
- --Settings
- local Action = nil;
- local Equipped = nil;
- --Motor6D
- local LS = character.Torso["Left Shoulder"]
- local RS = character.Torso["Right Shoulder"]
- local LH = character.Torso["Left Hip"]
- local RH = character.Torso["Right Hip"]
- --Functions
- local function DestroyAnimator()
- character["Humanoid"].Animator:Destroy()
- character["Animate"]:Destroy()
- end
- local function TweenAnimate(Weld, Style, Direction, WeldCFrame, Time)
- local Info = TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction])
- local Tween = game:GetService("TweenService"):Create(Weld, Info, {C0 = Weld.C0 * WeldCFrame})
- Tween:Play()
- Tween.Completed:Wait()
- return Tween
- end
- local function TweenAnimateV3(Weld, Style, Direction, WeldCFrame, Time)
- local Info = TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction])
- local Tween = game:GetService("TweenService"):Create(Weld, Info, {C0 = WeldCFrame})
- Tween:Play()
- Tween.Completed:Wait()
- return Tween
- end
- local function TweenAnimateV2(Weld, Style, Direction, WeldCFrame, Time)
- local Info = TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction])
- local Tween = game:GetService("TweenService"):Create(Weld, Info, {C0 = Weld.C0 * WeldCFrame})
- Tween:Play()
- return Tween
- end
- local function ResetMotor()
- RS.C0 = CFrame.new(0.993, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- LS.C0 = CFrame.new(-0.993, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0))
- RH.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- LH.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0))
- end
- local function Equip()
- RS.C0 = CFrame.new(0.993, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0))
- end
- local function Jump()
- ResetMotor()
- RS.C0 = CFrame.new(0.993, 0.5, 0) * CFrame.Angles(math.rad(180), math.rad(90), math.rad(0))
- LS.C0 = CFrame.new(-0.993, 0.5, 0) * CFrame.Angles(math.rad(180), math.rad(-90), math.rad(0))
- end
- --Netting players with network access
- local NetworkAccess = coroutine.create(function()
- settings().Physics.AllowSleep = false
- while true do
- game:GetService('RunService').RenderStepped:Wait()
- for _, players in pairs(game.Players:GetChildren()) do
- if players ~= game.Players.LocalPlayer then
- players.MaximumSimulationRadius = 0.1
- players.SimulationRadius = 0
- end
- end
- plr.MaximumSimulationRadius = math.pow(math.huge, math.huge)
- plr.SimulationRadius = math.huge * math.huge
- end
- end)
- coroutine.resume(NetworkAccess)
- --Destroying Default Animation
- wait(1 / 60)
- DestroyAnimator()
- --HumanoidSettings
- workspace.Gravity = 90.228
- character.Humanoid.JumpPower = 80
- --RBXScriptSignal Events
- --| Humanoid Events
- character.Humanoid.StateChanged:Connect(function(old, new)
- if (new == Enum.HumanoidStateType.Running) then
- Action = "Running"
- elseif (old == Enum.HumanoidStateType.Running and new == Enum.HumanoidStateType.Running) then
- Action = "Running"
- elseif (new == Enum.HumanoidStateType.Landed) then
- Action = "NaN"
- elseif (new == Enum.HumanoidStateType.Jumping) then
- Action = "Jumping"
- elseif (new == Enum.HumanoidStateType.Freefall) then
- Action = "Jumping"
- end
- end)
- character.Humanoid.Running:Connect(function(speed)
- if speed <= 0 then
- Action = "Idle"
- end
- end)
- --Brick Hill Gui
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- ScreenGui0 = Instance.new("ScreenGui")
- Frame1 = Instance.new("Frame")
- Frame2 = Instance.new("Frame")
- LocalScript3 = Instance.new("LocalScript")
- Frame4 = Instance.new("Frame")
- UIGridLayout5 = Instance.new("UIGridLayout")
- LocalScript6 = Instance.new("LocalScript")
- TextButton7 = Instance.new("TextButton")
- ScreenGui0.Name = "BrickHillUI"
- ScreenGui0.Parent = mas
- ScreenGui0.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame1.Name = "CoreHealth"
- Frame1.Parent = ScreenGui0
- Frame1.Position = UDim2.new(0.973000011, 0, 0.850000024, 0)
- Frame1.Size = UDim2.new(0, 26, 0, 195)
- Frame1.AnchorPoint = Vector2.new(0.5, 0.5)
- Frame1.BackgroundColor = BrickColor.new("Really red")
- Frame1.BackgroundColor3 = Color3.new(1, 0, 0)
- Frame1.BorderSizePixel = 2
- Frame2.Name = "ProgressBar"
- Frame2.Parent = Frame1
- Frame2.Position = UDim2.new(0, 0, 0, 195)
- Frame2.Size = UDim2.new(0, 26, -1, 0)
- Frame2.BackgroundColor = BrickColor.new("Lime green")
- Frame2.BackgroundColor3 = Color3.new(0.333333, 1, 0)
- Frame2.BorderSizePixel = 0
- LocalScript3.Name = "HealthBarScript"
- LocalScript3.Parent = Frame1
- table.insert(cors,sandbox(LocalScript3,function()
- --//CoreGui
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
- --//Variables
- local plr = game.Players.LocalPlayer
- local char = plr.Character or plr.CharacterAdded:Wait()
- local humanoid = char:WaitForChild("Humanoid")
- local health = script.Parent
- --//Health
- humanoid:GetPropertyChangedSignal("Health"):Connect(function()
- local healthChange = humanoid.Health / humanoid.MaxHealth
- health.ProgressBar:TweenSize(UDim2.new(0, 26, -healthChange, 0), Enum.EasingDirection.In, Enum.EasingStyle.Exponential, 0)
- end)
- end))
- Frame4.Name = "CoreBackpack"
- Frame4.Parent = ScreenGui0
- Frame4.Position = UDim2.new(0, 0, 0.869791687, 0)
- Frame4.Size = UDim2.new(0, 999, 0, 100)
- Frame4.BackgroundColor = BrickColor.new("Institutional white")
- Frame4.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame4.BackgroundTransparency = 1
- UIGridLayout5.Parent = Frame4
- LocalScript6.Name = "BackpackHandler"
- LocalScript6.Parent = ScreenGui0
- table.insert(cors,sandbox(LocalScript6,function()
- --//CoreGui
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
- --//Variables
- local Items = {};
- local Frames = {};
- local Equipped = nil;
- local Player = game.Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:Wait()
- local function Scan(Location)
- for index, v in pairs(Location:GetChildren()) do
- if v:IsA("Tool") then
- table.insert(Items, v)
- end
- end
- end
- local function Update()
- for index, v in pairs(Frames) do
- v:Destroy()
- end
- for index, v in pairs(Items) do
- local sam = script.Sample:Clone()
- sam.Name = v.Name
- sam.LayoutOrder = index
- sam.Parent = script.Parent.CoreBackpack
- sam.Text = v.Name
- table.insert(Frames, sam)
- if Equipped == nil then
- sam.BorderSizePixel = 2
- end
- sam.MouseButton1Click:Connect(function()
- if Equipped == nil or Equipped ~= v then
- Character.Humanoid:UnequipTools()
- wait()
- Character.Humanoid:EquipTool(v)
- Equipped = v
- else
- Character.Humanoid:UnequipTools()
- Equipped = nil
- end
- end)
- end
- end
- local function OnBackPackChanged()
- Items = {}
- Scan(Character)
- Scan(Player.Backpack)
- Update()
- end
- OnBackPackChanged()
- Player.Backpack.ChildAdded:Connect(OnBackPackChanged)
- Player.Backpack.ChildRemoved:Connect(OnBackPackChanged)
- Character.ChildAdded:Connect(OnBackPackChanged)
- Character.ChildRemoved:Connect(OnBackPackChanged)
- end))
- TextButton7.Name = "Sample"
- TextButton7.Parent = LocalScript6
- TextButton7.Size = UDim2.new(0, 100, 0, 100)
- TextButton7.BackgroundColor = BrickColor.new("Really black")
- TextButton7.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton7.BackgroundTransparency = 0.30000001192093
- TextButton7.Font = Enum.Font.Arial
- TextButton7.FontSize = Enum.FontSize.Size14
- TextButton7.Text = "ItemSample"
- TextButton7.TextColor = BrickColor.new("Institutional white")
- TextButton7.TextColor3 = Color3.new(1, 1, 1)
- TextButton7.TextScaled = true
- TextButton7.TextSize = 14
- TextButton7.TextWrap = true
- TextButton7.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- character.Humanoid.Died:Connect(function()
- ScreenGui0:Destroy()
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, true)
- end)
- --Animation Engine
- while true do
- wait()
- if Action == "Running" then
- TweenAnimateV2(RS, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- TweenAnimateV2(RH, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- TweenAnimateV2(LH, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- TweenAnimate(LS, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- TweenAnimateV2(RS, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimateV2(RH, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimateV2(LH, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimate(LS, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimateV2(RS, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimateV2(RH, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimateV2(LH, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimate(LS, "Back", "Out", CFrame.Angles(0, 0, math.rad(-50)), .33)
- TweenAnimateV2(RS, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- TweenAnimateV2(RH, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- TweenAnimateV2(LH, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- TweenAnimate(LS, "Back", "Out", CFrame.Angles(0, 0, math.rad(50)), .33)
- elseif Action == "Idle" then
- ResetMotor()
- elseif Action == "NaN" then
- ResetMotor()
- elseif Action == "Jumping" then
- Jump()
- end
- end
- end
- wait(1 / 60)
- Script()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement