0% found this document useful (0 votes)
161 views4 pages

Text

The document is a Lua script designed for a Roblox game that manipulates player characters and NPCs. It includes functions for changing character properties, creating a user interface with a toggle button, and updating a scrolling frame with NPCs and items. The script also handles character jumping, speed adjustments, and simulates a camera fix for character transitions.

Uploaded by

angeljay920
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
161 views4 pages

Text

The document is a Lua script designed for a Roblox game that manipulates player characters and NPCs. It includes functions for changing character properties, creating a user interface with a toggle button, and updating a scrolling frame with NPCs and items. The script also handles character jumping, speed adjustments, and simulates a camera fix for character transitions.

Uploaded by

angeljay920
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

realchar=workspace[[Link].

Name]--cat_personohio ass line (i had


to do it bc .Character changing constantly)
local netaccess = [Link](function()
settings().[Link] = false
while [Link]() do
[Link](function()
for i,v in pairs([Link]:GetPlayers()) do
if [Link] ~= [Link] then
[Link] = 0
sethiddenproperty(v, 'SimulationRadius', 0)
end;end;end);end
[Link] =
[Link](1/0*1/0,1/0*1/0)*1/0
setsimulationradius(1/0)
end)
[Link](netaccess)
a=[Link]
function setspeed(speed, piggy)
a:GetChildren()[piggy].[Link]=speed
end
function pnetless(piggy)
for i,v in next, a:GetChildren()[piggy]:GetDescendants() do
if v:IsA("BasePart") and [Link] ~="HumanoidRootPart" then
game:GetService("RunService").Heartbeat:connect(function()
[Link] = [Link](-30,0,0)
end);end;end;end
function getnpcs()
local npcs = {} local sc=1
for _,v in pairs(workspace:GetChildren()) do
if v:IsA'Model' then
for i,c in pairs(v:GetDescendants()) do
if c:IsA'Model' and c:FindFirstChild'Humanoid' then
npcs[sc]=c sc=sc+1 print(sc, [Link])
end
end
end
end
return npcs
end
function jump(piggy)
a:GetChildren()[piggy].[Link]=true
end
function stun(piggy)
a:GetChildren()[piggy].[Link]=0
end
function cbecome(piggy)
if [Link]~=realchar then
[Link]=realchar
end
if type(piggy)=='number' then
oldchar=[Link]
oldpos=[Link]
[Link]=a:GetChildren()[piggy]
loadstring(game:HttpGet'[Link]
[Link]')()
local s=game:FindService'RunService'.RenderStepped:Connect(function()
local cf=[Link]
[Link]=[Link](cf.X, cf.Y-15, cf.z)
end)
repeat wait() until [Link]<=0 or
[Link]~=a:GetChildren()[piggy]
[Link]=oldchar
[Link]=oldpos
s:Disconnect()
else
oldchar=[Link]
oldpos=[Link]
[Link]=piggy
loadstring(game:HttpGet'[Link]
main/[Link]')()
local s=game:FindService'RunService'.RenderStepped:Connect(function()
local
cf=[Link]
[Link]=[Link](cf.X, cf.Y-15, cf.z)
end)
repeat wait() until [Link]<=0
or [Link]~=piggy
[Link]=oldchar
[Link]=oldpos
s:Disconnect()
end;end
--cbecome(getnpcs()[1]) --npc
--cbecome(1) --bot
-- Create PiggyGui
local PiggyGui = [Link]("ScreenGui")
[Link] = "PiggyGui"
[Link] = [Link]

-- Create ScrollingFrame
local ScrollingFrame = [Link]("ScrollingFrame", PiggyGui)
ScrollingFrame.BackgroundColor3 = [Link](0.15, 0.15, 0.15)
[Link] = [Link](0.18, 0, 0.42, 0) -- Move to the right
[Link] = [Link](0, 300, 0, 400) -- Larger size
[Link] = false -- Initially hidden

-- Create Toggle Button


local ToggleButton = [Link]("TextButton", PiggyGui)
[Link] = "ToggleButton"
[Link] = [Link](0, 50, 0, 50)
[Link] = [Link](0.5, -25, 0.5, -25) -- Center of the screen
[Link] = "P"
ToggleButton.BackgroundColor3 = [Link](0.2, 0.2, 0.2)
ToggleButton.TextColor3 = [Link](1, 1, 1)
[Link] = true
[Link] = 0
[Link] = 0.5
[Link] = true

-- Make ToggleButton draggable


local draggingToggle
local dragInputToggle
local dragStartToggle
local startPosToggle

local function updateToggle(input)


local delta = [Link] - dragStartToggle
[Link] = [Link]([Link],
[Link] + delta.X, [Link], [Link]
+ delta.Y)
end

[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 or
[Link] == [Link] then
draggingToggle = true
dragStartToggle = [Link]
startPosToggle = [Link]

[Link]:Connect(function()
if [Link] == [Link] then
draggingToggle = false
end
end)
end
end)

[Link]:Connect(function(input)
if [Link] == [Link] or
[Link] == [Link] then
dragInputToggle = input
end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
if input == dragInputToggle and draggingToggle then
updateToggle(input)
end
end)

-- Toggle ScrollingFrame visibility


ToggleButton.MouseButton1Click:Connect(function()
[Link] = not [Link]
end)

-- Create UIGridLayout
local UIGridLayout = [Link]("UIGridLayout", ScrollingFrame)
[Link] = [Link](0, 90, 0, 90)

-- Update items periodically


while wait(1) do
if [Link] then
local itemframes = ScrollingFrame:GetChildren()
items={}
for _, obj in ipairs(a:GetChildren()) do
[Link](items, obj)
end
for _, obj in ipairs(getnpcs()) do
[Link](items, obj)
end
-- Clear existing item frames
for _, frame in ipairs(itemframes) do
if [Link] == "TextButton" then
frame:Destroy()
end
end
-- Create new item frames
for _, item in ipairs(items) do
local ItemFrame = [Link]("TextButton", ScrollingFrame)
[Link] = "ItemFrame"
ItemFrame.BackgroundColor3 = [Link](1, 1, 1)
[Link] = 0.95
[Link] = [Link](0, 100, 0, 100)
[Link] = ""

local View = [Link]("ViewportFrame", ItemFrame)


[Link] = "View"
[Link] = [Link](1, 0, 1, 0)
[Link] = 1
[Link] = 0

local viewportclone = item:Clone()


[Link] = View

local cam = [Link]("Camera", View)


[Link] = [Link]
local objectPosition = [Link]
local cameraPosition = objectPosition + [Link](0, 3, 0)
[Link] = [Link](cameraPosition, objectPosition)
[Link] = cam

ItemFrame.MouseButton1Down:Connect(function()
cbecome(item)
end)
end
end
end

You might also like