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")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Script3 = Instance.new("Script")
- Model0.Name = "NinjaMaskOfDarkness"
- Model0.Parent = mas
- Part1.Name = "ShadowMaskGiver"
- Part1.Parent = Model0
- Part1.BrickColor = BrickColor.new("Bright yellow")
- Part1.Reflectance = 0.20000000298023
- Part1.Anchored = true
- Part1.Size = Vector3.new(2, 1.20000005, 1)
- Part1.CFrame = CFrame.new(0, 0.600004971, 9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- Part1.Position = Vector3.new(0, 0.600004971, 9.5)
- Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1286427"
- SpecialMesh2.Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1309894"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002)
- Script3.Parent = Part1
- table.insert(cors,sandbox(Script3,function()
- -- (Hat Giver Script - Loaded.)
- debounce = true
- function onTouched(hit)
- if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
- debounce = false
- h = Instance.new("Hat")
- p = Instance.new("Part")
- h.Name = "Top Hat"
- p.Parent = h
- p.Position = hit.Parent:findFirstChild("Head").Position
- p.Name = "Handle"
- p.formFactor = 0
- p.Size = Vector3.new(2, 1, 1)
- p.BottomSurface = 0
- p.TopSurface = 0
- p.Locked = true
- script.Parent.Mesh:clone().Parent = p
- h.Parent = hit.Parent
- h.AttachmentPos = Vector3.new(0, .38, 0)
- wait(5)
- debounce = true
- end
- end
- script.Parent.Touched:connect(onTouched)
- -- Proof to kewlmaiaII
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character
- 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