Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local _p = "_p"
- for i,v in pairs(debug.getregistry()) do
- if type(v) == 'function' then
- for i,v in pairs(debug.getupvalues(v)) do
- local ret,tab = pcall (function() return v["NPCChat"] end)
- if ret == true and type(tab) == "table" then
- _p = v
- break
- end
- end
- end
- end
- local Utilities = _p.Utilities
- local create = Utilities.Create
- local write = Utilities.Write
- local roundedFrame = _p.RoundedFrame
- local plr = _p.player
- local mouse = plr:GetMouse()
- local char = plr.Character
- local c = workspace.CurrentCamera
- local userInput = game:GetService("UserInputService")
- local speed = 60
- local ignM, ignW, ignPS = true, true, true
- function getNextMovement(deltaTime)
- local nextMove = Vector3.new()
- -- Left/Right
- if userInput:IsKeyDown("A") or userInput:IsKeyDown("Left") then
- nextMove = Vector3.new(-1,0,0)
- elseif userInput:IsKeyDown("D") or userInput:IsKeyDown("Right") then
- nextMove = Vector3.new(1,0,0)
- end
- -- Forward/Back
- if userInput:IsKeyDown("W") or userInput:IsKeyDown("Up") then
- nextMove = nextMove + Vector3.new(0,0,-1)
- elseif userInput:IsKeyDown("S") or userInput:IsKeyDown("Down") then
- nextMove = nextMove + Vector3.new(0,0,1)
- end
- -- Up/Down
- if userInput:IsKeyDown("Space") then
- nextMove = nextMove + Vector3.new(0,1,0)
- elseif userInput:IsKeyDown("LeftControl") then
- nextMove = nextMove + Vector3.new(0,-1,0)
- end
- return CFrame.new( nextMove * (speed * deltaTime) )
- end
- local Visible = false
- local arrow, close
- local bg = roundedFrame:new({
- CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
- BackgroundColor3 = Color3.new(0.3, 0.3, 0.3),
- Size = UDim2.new(0.5, 0, 0.6, 0),
- Position = UDim2.new(0.5, 0, 1.3, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- ZIndex = math.huge*math.huge, -- infront of everything bby
- Parent = Utilities.frontGui,
- --Button = true,
- --MouseButton1Click = function()
- --end,
- })
- local Debounce = false
- local function Toggle()
- if Debounce then return end
- Debounce = true
- Visible = not Visible
- if Visible then
- _p.Utilities.Tween(.5, 'easeOutCubic', function(a)
- bg.Position = UDim2.new(0.5, 0, 1.3-0.8*a, 0)
- arrow.Rotation = 180-180*a
- close:setBackgroundColor3(Color3.new(1*a, .8-.4*a, .4)) -- from green to red
- end)
- else
- _p.Utilities.Tween(.5, 'easeInCubic', function(a)
- bg.Position = UDim2.new(0.5, 0, 0.5+0.8*a, 0)
- arrow.Rotation = 180*a
- close:setBackgroundColor3(Color3.new(1-1*a, .4+.4*a, .4)) -- from red to green
- end)
- end
- Debounce = false
- end
- write('LL Hax v2.0')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0, 0, 0.1, 0),
- Position = UDim2.new(0.5, 0, 0.05, 0),
- ZIndex = 3,
- Parent = bg.gui,
- }),
- })
- close = roundedFrame:new({
- CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
- BackgroundColor3 = Color3.new(0, .8, .4),
- Size = UDim2.new(0.125, 0, 0.2, 0),
- Position = UDim2.new(1, 0, 0, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- ZIndex = 3,
- Parent = bg.gui,
- Button = true,
- MouseButton1Click = Toggle,
- })
- arrow = create("ImageLabel")({
- BackgroundTransparency = 1,
- Image = "rbxassetid://1174799555", -- 2984940561
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.new(1, 0, 1, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.5, 0, 0.5, 0),
- Rotation = 180,
- ZIndex = 31,
- Parent = close.gui
- })
- write('NoClip: ')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0, 0, 0.1, 0),
- Position = UDim2.new(0.15, 0, 0.25, 0),
- ZIndex = 3,
- Parent = bg.gui,
- }),
- })
- local NCtipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.5, 0, 0.3, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(NCtipBg, 'Toggles no clip (so you can go though walls, use "w" "a" "s" "d" "space" and "left control" to move)')
- local ncToggle = _p.ToggleButton:new {
- Size = UDim2.new(0.0, 0, 0.1, 0),
- Position = UDim2.new(0.375, 0, 0.26, 0),
- Value = false,
- ZIndex = 3, Parent = bg.gui,
- }
- local root = char:WaitForChild("HumanoidRootPart")
- local currentPos, lastUpdate
- ncToggle.ValueChanged:connect(function()
- if ncToggle.Value then
- currentPos = root.Position
- root.Anchored = true
- lastUpdate = tick()
- for _, Part in pairs(char:GetDescendants())do
- if Part:IsA("Humanoid") then
- Part.PlatformStand = true
- end
- end
- while ncToggle.Value do
- wait()
- local delta = tick()-lastUpdate
- local look = (c.Focus.p-c.CoordinateFrame.p).unit
- local move = getNextMovement(delta)
- local pos = root.Position
- root.CFrame = CFrame.new(pos,pos+look) * move
- lastUpdate = tick()
- end
- else
- root.Anchored = false
- root.Velocity = Vector3.new()
- for _, Part in pairs(char:GetDescendants())do
- if Part:IsA("Humanoid") then
- Part.PlatformStand = false
- end
- end
- end
- end)
- write('Jumping: ')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0, 0, 0.1, 0),
- Position = UDim2.new(0.18, 0, 0.385, 0),
- ZIndex = 3,
- Parent = bg.gui,
- }),
- })
- local JMPtipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.565, 0, 0.44, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(JMPtipBg, 'Toggles whether you can jump or not.')
- local jmpToggle = _p.ToggleButton:new {
- Size = UDim2.new(0.0, 0, 0.1, 0),
- Position = UDim2.new(0.44, 0, 0.4, 0),
- Value = false,
- ZIndex = 3, Parent = bg.gui,
- }
- jmpToggle.ValueChanged:connect(function()
- _p.MasterControl:SetJumpEnabled(jmpToggle.Value)
- end)
- write('Menu: ')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0, 0, 0.1, 0),
- Position = UDim2.new(0.125, 0, 0.535, 0),
- ZIndex = 3,
- Parent = bg.gui,
- }),
- })
- local MNUtipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.45, 0, 0.58, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(MNUtipBg, 'Takes the menu buttons off / on screen .')
- local mnuToggle = _p.ToggleButton:new {
- Size = UDim2.new(0.0, 0, 0.1, 0),
- Position = UDim2.new(0.325, 0, 0.54, 0),
- Value = _p.Menu.enabled,
- ZIndex = 3, Parent = bg.gui,
- }
- mnuToggle.ValueChanged:connect(function()
- _p.Menu.preventEnable = false -- hehe boi
- ignM = false
- if mnuToggle.Value then
- _p.Menu:enable()
- else
- _p.Menu:disable()
- end
- ignM = true
- end)
- write('Walking: ')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0, 0, 0.1, 0),
- Position = UDim2.new(0.175, 0, 0.67, 0),
- ZIndex = 3,
- Parent = bg.gui,
- }),
- })
- local WLKtipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.545, 0, 0.72, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(WLKtipBg, 'Toggles whether walking is enabled.')
- local wlkToggle = _p.ToggleButton:new {
- Size = UDim2.new(0.0, 0, 0.1, 0),
- Position = UDim2.new(0.425, 0, 0.68, 0),
- Value = _p.MasterControl.WalkEnabled,
- ZIndex = 3, Parent = bg.gui,
- }
- wlkToggle.ValueChanged:connect(function()
- ignW = false
- _p.MasterControl.WalkEnabled = wlkToggle.Value
- ignW = true
- end)
- write('Players: ')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0, 0, 0.1, 0),
- Position = UDim2.new(0.175, 0, 0.81, 0),
- ZIndex = 3,
- Parent = bg.gui,
- }),
- })
- local PLRStipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.545, 0, 0.86, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(PLRStipBg, 'Hides / shows other players and their loomians.')
- local plrsToggle = _p.ToggleButton:new {
- Size = UDim2.new(0.0, 0, 0.1, 0),
- Position = UDim2.new(0.425, 0, 0.82, 0),
- Value = not _p.CutsceneManager.OtherPlayersHidden,
- ZIndex = 3, Parent = bg.gui,
- }
- plrsToggle.ValueChanged:connect(function()
- ignPS = false
- if plrsToggle.Value then
- _p.CutsceneManager:ShowOtherPlayers()
- else
- _p.CutsceneManager:HideOtherPlayers()
- end
- ignPS = true
- end)
- spawn(function()
- while true do
- if ignM and _p.Menu.enabled ~= mnuToggle.Value then
- mnuToggle:animateToValue(_p.Menu.enabled)
- end
- if ignW and _p.MasterControl.WalkEnabled ~= wlkToggle.Value then
- wlkToggle:animateToValue(_p.MasterControl.WalkEnabled)
- end
- if ignPS and _p.CutsceneManager.OtherPlayersHidden == plrsToggle.Value then
- plrsToggle:animateToValue(not _p.CutsceneManager.OtherPlayersHidden)
- end
- wait()
- end
- end)
- local pc = roundedFrame:new({
- CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
- BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
- Size = UDim2.new(0.25, 0, 0.15, 0),
- Position = UDim2.new(0.775, 0, 0.3, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- ZIndex = 2,
- Parent = bg.gui,
- Button = true,
- MouseButton1Click = function()
- _p.Menu.pc:bootUp()
- end,
- })
- write('Open PC')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0.4, 0, 0.4, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.5, 0, 0.5, 0),
- ZIndex = 3,
- Parent = pc.gui,
- }),
- })
- local PCtipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.95, 0, 0.28, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(PCtipBg, 'Opens your pc, works anywhere!')
- local heal = roundedFrame:new({
- CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
- BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
- Size = UDim2.new(0.25, 0, 0.15, 0),
- Position = UDim2.new(0.775, 0, 0.475, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- ZIndex = 2,
- Parent = bg.gui,
- Button = true,
- MouseButton1Click = function()
- spawn(Toggle) -- good one mate!
- _p.Network:get("heal", "HealthCenter", "HealMachine1")
- end,
- })
- write('Heal')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0.6, 0, 0.6, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.5, 0, 0.5, 0),
- ZIndex = 3,
- Parent = heal.gui,
- }),
- })
- local healtipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.95, 0, 0.46, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(healtipBg, 'Heals the loomians in your party, works anywhere!')
- local eBattle = roundedFrame:new({
- CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
- BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
- Size = UDim2.new(0.3, 0, 0.15, 0),
- Position = UDim2.new(0.75, 0, 0.65, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- ZIndex = 2,
- Parent = bg.gui,
- Button = true,
- MouseButton1Click = function()
- if _p.Battle.currentBattle then
- _p.Battle.currentBattle.BattleEnded:fire()
- else
- _p.NPCChat:say('You must be in a battle for this to work!')
- end
- end,
- })
- write('End Battle')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0.4, 0, 0.4, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.5, 0, 0.5, 0),
- ZIndex = 3,
- Parent = eBattle.gui,
- }),
- })
- local eBtltipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.95, 0, 0.64, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(eBtltipBg, 'Ends the current battle instantly.')
- local unstuck = roundedFrame:new({
- CornerRadius = Utilities.gui.AbsoluteSize.Y * 0.031,
- BackgroundColor3 = Color3.new(0.1, 0.1, 0.1),
- Size = UDim2.new(0.3, 0, 0.15, 0),
- Position = UDim2.new(0.75, 0, 0.825, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- ZIndex = 2,
- Parent = bg.gui,
- Button = true,
- MouseButton1Click = function()
- _p.Menu.options:getUnstuck(true)
- end,
- })
- write('Get Unstuck')({
- Scaled = true,
- Frame = create("Frame")({
- BackgroundTransparency = 1,
- Size = UDim2.new(0.4, 0, 0.4, 0),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.5, 0, 0.5, 0),
- ZIndex = 3,
- Parent = unstuck.gui,
- }),
- })
- local unstucktipBg = create("TextButton")({
- BackgroundTransparency = 1,
- SizeConstraint = Enum.SizeConstraint.RelativeYY,
- Size = UDim2.fromScale(0.15, 0.16),
- AnchorPoint = Vector2.new(0.5, 0.5),
- Position = UDim2.new(0.95, 0, 0.82, 0),
- Font = Enum.Font.Gotham,
- Text = utf8.char(9432),
- TextScaled = true,
- TextColor3 = Color3.new(1, 1, 1),
- ZIndex = 6,
- Parent = bg.gui
- })
- _p.ToolTip:create(unstucktipBg, 'Get Unstuck but no timer limitations.')
- mouse.KeyDown:Connect(function(k)
- if k == 'r' then
- Toggle()
- end
- end)
- _p.NPCChat:say("Thank you for using LL Hax v2.0!")
- _p.NPCChat.bottom = true
- _p.NPCChat:say("Made By BlueGuyCodes")
- _p.NPCChat.bottom = nil
- Toggle()
Add Comment
Please, Sign In to add comment