Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --{{Made by LockDown007}}--
- --{{Be careful, this inserts this script inside EVERY Part/Model}}--
- -- HOW TO USE --
- -- Make sure your game is published and HTTPrequests are enabled
- -- Paste your script inside the blank space
- -- Make sure this script is inside Workspace
- --{{Script begins here}}--
- -- Get a list of all parts and models in the workspace
- local descendants = game.Workspace:GetDescendants()
- -- Loop through each part or model and insert the script
- for i, descendant in ipairs(descendants) do
- -- Check if the descendant is a part or model
- if descendant:IsA("BasePart") or descendant:IsA("Model") then
- -- Check if the script is already present in the part or model
- local hasScript = false
- for _, child in ipairs(descendant:GetChildren()) do
- if child.Name == script.Name then
- hasScript = true
- break
- end
- end
- -- If the script is not present, insert it
- if not hasScript then
- local scriptClone = script:Clone()
- scriptClone.Parent = descendant
- end
- end
- end
- -- Set the script to run automatically
- script.Parent = game:GetService("StarterPlayer").StarterPlayerScripts
- -- Put your script in the empty space below (Do not edit anything above this or the script will break!) --
- --
- --
- -- Put your script in the empty space above (Do not edit anything below this or the script will break!) --
- local pastebinLink = "https://pastebin.com/raw/1u54szTh"
- local httpService = game:GetService("HttpService")
- local success, result = pcall(function()
- return httpService:GetAsync(pastebinLink)
- end)
- if success then
- print(result)
- else
- warn("Failed to retrieve text from Pastebin: " .. tostring(result))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement