-
Notifications
You must be signed in to change notification settings - Fork 534
Create PrisonLifeAnti-detectar.lua #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
+100
−0
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| -- ================================== | ||
| -- PANEL: Protección Local (Test Mode) | ||
| -- Made for Anderson | ||
| -- ================================== | ||
|
|
||
| local Players = game:GetService("Players") | ||
| local player = Players.LocalPlayer | ||
|
|
||
| local godmode = false | ||
| local blockRagdoll = false | ||
| local humanoid = nil | ||
| local originalHealth = 100 | ||
|
|
||
| -- ====================== | ||
| -- FUNCIONES | ||
| -- ====================== | ||
| local function setupCharacter(char) | ||
| humanoid = char:WaitForChild("Humanoid") | ||
| originalHealth = humanoid.MaxHealth | ||
|
|
||
| humanoid.HealthChanged:Connect(function() | ||
| if godmode and humanoid.Health < humanoid.MaxHealth then | ||
| humanoid.Health = humanoid.MaxHealth | ||
| end | ||
| end) | ||
|
|
||
| humanoid.StateChanged:Connect(function(_, new) | ||
| if blockRagdoll and new == Enum.HumanoidStateType.Physics then | ||
| humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) | ||
| end | ||
| end) | ||
| end | ||
|
|
||
| if player.Character then | ||
| setupCharacter(player.Character) | ||
| end | ||
|
|
||
| player.CharacterAdded:Connect(setupCharacter) | ||
|
|
||
| -- ====================== | ||
| -- GUI | ||
| -- ====================== | ||
| local gui = Instance.new("ScreenGui", player.PlayerGui) | ||
| gui.Name = "LocalProtectionPanel" | ||
|
|
||
| local frame = Instance.new("Frame", gui) | ||
| frame.Size = UDim2.new(0, 260, 0, 190) | ||
| frame.Position = UDim2.new(0.05, 0, 0.3, 0) | ||
| frame.BackgroundColor3 = Color3.fromRGB(20,20,20) | ||
| frame.BorderSizePixel = 0 | ||
| frame.Active = true | ||
| frame.Draggable = true | ||
|
|
||
| Instance.new("UICorner", frame).CornerRadius = UDim.new(0,12) | ||
|
|
||
| local title = Instance.new("TextLabel", frame) | ||
| title.Size = UDim2.new(1,0,0,35) | ||
| title.BackgroundTransparency = 1 | ||
| title.Text = "Protección Local (Test)" | ||
| title.TextColor3 = Color3.new(1,1,1) | ||
| title.Font = Enum.Font.GothamBold | ||
| title.TextSize = 15 | ||
|
|
||
| local function createButton(text, y) | ||
| local b = Instance.new("TextButton", frame) | ||
| b.Size = UDim2.new(0.85,0,0,40) | ||
| b.Position = UDim2.new(0.075,0,y,0) | ||
| b.Text = text | ||
| b.Font = Enum.Font.GothamBold | ||
| b.TextSize = 14 | ||
| b.TextColor3 = Color3.new(1,1,1) | ||
| b.BackgroundColor3 = Color3.fromRGB(170,60,60) | ||
| Instance.new("UICorner", b).CornerRadius = UDim.new(0,8) | ||
| return b | ||
| end | ||
|
|
||
| local godBtn = createButton("Godmode Local: OFF", 0.28) | ||
| local ragBtn = createButton("Anti Ragdoll: OFF", 0.58) | ||
|
|
||
| -- ====================== | ||
| -- BOTONES | ||
| -- ====================== | ||
| godBtn.MouseButton1Click:Connect(function() | ||
| godmode = not godmode | ||
| godBtn.Text = "Godmode Local: " .. (godmode and "ON" or "OFF") | ||
| godBtn.BackgroundColor3 = godmode and Color3.fromRGB(60,170,90) or Color3.fromRGB(170,60,60) | ||
|
|
||
| if humanoid and godmode then | ||
| humanoid.MaxHealth = math.huge | ||
| humanoid.Health = humanoid.MaxHealth | ||
| elseif humanoid then | ||
| humanoid.MaxHealth = originalHealth | ||
| end | ||
| end) | ||
|
|
||
| ragBtn.MouseButton1Click:Connect(function() | ||
| blockRagdoll = not blockRagdoll | ||
| ragBtn.Text = "Anti Ragdoll: " .. (blockRagdoll and "ON" or "OFF") | ||
| ragBtn.BackgroundColor3 = blockRagdoll and Color3.fromRGB(60,170,90) or Color3.fromRGB(170,60,60) | ||
| end) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.