Advertisement
Mr-Shadow_Cat

test

Feb 4th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Script3 = Instance.new("Script")
  23. Model0.Name = "NinjaMaskOfDarkness"
  24. Model0.Parent = mas
  25. Part1.Name = "ShadowMaskGiver"
  26. Part1.Parent = Model0
  27. Part1.BrickColor = BrickColor.new("Bright yellow")
  28. Part1.Reflectance = 0.20000000298023
  29. Part1.Anchored = true
  30. Part1.Size = Vector3.new(2, 1.20000005, 1)
  31. Part1.CFrame = CFrame.new(0, 0.600004971, 9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  32. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  33. Part1.Position = Vector3.new(0, 0.600004971, 9.5)
  34. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  35. SpecialMesh2.Parent = Part1
  36. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1286427"
  37. SpecialMesh2.Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  38. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1309894"
  39. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  40. SpecialMesh2.Scale = Vector3.new(1.10000002, 1.10000002, 1.10000002)
  41. Script3.Parent = Part1
  42. table.insert(cors,sandbox(Script3,function()
  43. -- (Hat Giver Script - Loaded.)
  44.  
  45.  
  46.  
  47. debounce = true
  48.  
  49.  
  50.  
  51. function onTouched(hit)
  52.  
  53. if (hit.Parent:findFirstChild("Humanoid") ~= nil and debounce == true) then
  54.  
  55. debounce = false
  56.  
  57. h = Instance.new("Hat")
  58.  
  59. p = Instance.new("Part")
  60.  
  61. h.Name = "Top Hat"
  62.  
  63. p.Parent = h
  64.  
  65. p.Position = hit.Parent:findFirstChild("Head").Position
  66.  
  67. p.Name = "Handle"
  68.  
  69. p.formFactor = 0
  70.  
  71. p.Size = Vector3.new(2, 1, 1)
  72.  
  73. p.BottomSurface = 0
  74.  
  75. p.TopSurface = 0
  76.  
  77. p.Locked = true
  78.  
  79. script.Parent.Mesh:clone().Parent = p
  80.  
  81. h.Parent = hit.Parent
  82.  
  83. h.AttachmentPos = Vector3.new(0, .38, 0)
  84.  
  85. wait(5)
  86.  
  87. debounce = true
  88.  
  89. end
  90.  
  91. end
  92.  
  93.  
  94.  
  95. script.Parent.Touched:connect(onTouched)
  96.  
  97.  
  98.  
  99. -- Proof to kewlmaiaII
  100. end))
  101. for i,v in pairs(mas:GetChildren()) do
  102. v.Parent = game:GetService("Players").LocalPlayer.Character
  103. pcall(function() v:MakeJoints() end)
  104. end
  105. mas:Destroy()
  106. for i,v in pairs(cors) do
  107. spawn(function()
  108. pcall(v)
  109. end)
  110. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement