Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Decal2 = Instance.new("Decal")
- Script3 = Instance.new("Script")
- IntValue4 = Instance.new("IntValue")
- Model0.Name = "BadgeAwarder"
- Model0.Parent = mas
- Part1.Name = "Platform"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Reflectance = 1
- Part1.Size = Vector3.new(10, 1.20000005, 10)
- Part1.CFrame = CFrame.new(49.5599976, 45.0007439, -59.7700005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.BackSurface = Enum.SurfaceType.Weld
- Part1.BottomSurface = Enum.SurfaceType.Weld
- Part1.FrontSurface = Enum.SurfaceType.Weld
- Part1.LeftSurface = Enum.SurfaceType.Weld
- Part1.RightSurface = Enum.SurfaceType.Weld
- Part1.TopSurface = Enum.SurfaceType.Weld
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Position = Vector3.new(49.5599976, 45.0007439, -59.7700005)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Decal2.Parent = Part1
- Decal2.Texture = "http://www.roblox.com/asset/?id=1389644733"
- Decal2.Face = Enum.NormalId.Top
- Script3.Name = "BadgeAwarderScript"
- Script3.Parent = Part1
- table.insert(cors,sandbox(Script3,function()
- print("Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value)
- -- ROBLOX scripter hackers, see what you can do with this:
- -- game:GetService("BadgeService"):UserHasBadge(userid, badgeid)
- function OnTouch(part)
- if (part.Parent:FindFirstChild("Humanoid") ~= nil) then
- local p = game.Players:GetPlayerFromCharacter(part.Parent)
- if (p ~= nil) then
- print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
- local b = game:GetService("BadgeService")
- b:AwardBadge(p.userId, script.Parent.BadgeID.Value)
- end
- end
- end
- script.Parent.Touched:connect(OnTouch)
- end))
- IntValue4.Name = "BadgeID"
- IntValue4.Parent = Part1
- IntValue4.Value = 1063102800
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Decal2 = Instance.new("Decal")
- Script3 = Instance.new("Script")
- IntValue4 = Instance.new("IntValue")
- Model0.Name = "BadgeAwarder"
- Model0.Parent = mas
- Part1.Name = "Platform"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Reflectance = 1
- Part1.Size = Vector3.new(10, 1.20000005, 10)
- Part1.CFrame = CFrame.new(49.5599976, 45.0007439, -59.7700005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.BackSurface = Enum.SurfaceType.Weld
- Part1.BottomSurface = Enum.SurfaceType.Weld
- Part1.FrontSurface = Enum.SurfaceType.Weld
- Part1.LeftSurface = Enum.SurfaceType.Weld
- Part1.RightSurface = Enum.SurfaceType.Weld
- Part1.TopSurface = Enum.SurfaceType.Weld
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Position = Vector3.new(49.5599976, 45.0007439, -59.7700005)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Decal2.Parent = Part1
- Decal2.Texture = "http://www.roblox.com/asset/?id=1389644733"
- Decal2.Face = Enum.NormalId.Top
- Script3.Name = "BadgeAwarderScript"
- Script3.Parent = Part1
- table.insert(cors,sandbox(Script3,function()
- print("Badge Awarder Loaded. BadgeID: " .. script.Parent.BadgeID.Value)
- -- ROBLOX scripter hackers, see what you can do with this:
- -- game:GetService("BadgeService"):UserHasBadge(userid, badgeid)
- function OnTouch(part)
- if (part.Parent:FindFirstChild("Humanoid") ~= nil) then
- local p = game.Players:GetPlayerFromCharacter(part.Parent)
- if (p ~= nil) then
- print("Awarding BadgeID: " ..script.Parent.BadgeID.Value .. " to UserID: " .. p.userId)
- local b = game:GetService("BadgeService")
- b:AwardBadge(p.userId, script.Parent.BadgeID.Value)
- end
- end
- end
- script.Parent.Touched:connect(OnTouch)
- end))
- IntValue4.Name = "BadgeID"
- IntValue4.Parent = Part1
- IntValue4.Value = 1060922754
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement