Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --1. Open up ROBLOX Studio and edit a place.
- --2. Insert a script into Workspace and paste the code from above into it (change the hat id to suit your needs)
- --3. Copy the output from the script
- --4. Run the script in a LocalScript (or from your level 7 exploit)
- --5. Profit?
- --if you want to give a hat to someone else, simply change the last line from
- --Accessory.Parent = game.Players.LocalPlayer.Character
- --to
- --Accessory.Parent = game.Players['OtherPlayer'].Character
- -- enjoy
- local Properties = {
- Accessory = {'Name','AttachmentForward','AttachmentPos','AttachmentRight','AttachmentUp'},
- Handle = {'Name','Size', 'Transparency', 'Parent'},
- Attachment = {'Name', 'Position', 'Rotation', 'Axis', 'SecondaryAxis', 'Parent'},
- Mesh = {'MeshId','Scale','TextureId','Parent'}
- }
- function LoadAsset(AssetId)
- local printMe = "" -- DONT TOUCH
- local Hat = game:GetService("InsertService"):LoadAsset(AssetId):GetChildren()[1]
- local Handle = Hat:FindFirstChild('Handle')
- local Mesh = Handle:FindFirstChild('Mesh')
- local Attachment = nil
- for i, Object in pairs(Handle:GetChildren()) do if Object:IsA('Attachment') then Attachment = Object break end end
- local Temp = {{'Accessory',Hat},{'Handle',Handle},{'Mesh',Mesh},{'Attachment',Attachment}}
- for i, Array in pairs(Temp) do
- local Properties_ = Properties[Array[1]]
- for ii, Property in pairs(Properties_) do
- if ii == 1 then printMe = printMe..Array[1]..' = Instance.new("'..Array[2].ClassName..'")\n' end
- local TypeOfValue = typeof(Array[2][Property])
- if TypeOfValue == 'string' then TypeOfValue = {'"', '"'} elseif TypeOfValue == 'Vector3' then TypeOfValue = {'Vector3.new(',')'} else TypeOfValue = {'',''} end
- if Property ~= 'Parent' then
- printMe = printMe..Array[1]..'.'..Property..' = '..TypeOfValue[1]..tostring(Array[2][Property])..TypeOfValue[2].."\n"
- else
- local Parent = (Array[1] == 'Handle' and 'Accessory' or 'Handle')
- printMe = printMe..Array[1]..'.Parent = '..Parent..'\n'
- end
- end
- end
- printMe = printMe..'Accessory.Parent = game.Players.LocalPlayer.Character'
- print(printMe)
- end
- local HatId = 17877340 -- change this to any hat id
- LoadAsset(HatId)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement