cat568

Untitled

Jul 7th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Part0 = Instance.new("Part")
  19. SpecialMesh1 = Instance.new("SpecialMesh")
  20. Script2 = Instance.new("Script")
  21. Part0.Name = "BiggerHead"
  22. Part0.Parent = mas
  23. Part0.CFrame = CFrame.new(-19.0998592, 59.8199997, 119.710144, 0.999949157, 0, 0.010088495, 0, 1, 0, -0.0100884959, 0, 0.999949157)
  24. Part0.Orientation = Vector3.new(0, 0.579999983, 0)
  25. Part0.Position = Vector3.new(-19.0998592, 59.8199997, 119.710144)
  26. Part0.Rotation = Vector3.new(0, 0.579999983, 0)
  27. Part0.Size = Vector3.new(128.149994, 119.639992, 302.800018)
  28. Part0.Anchored = true
  29. Part0.BottomSurface = Enum.SurfaceType.Smooth
  30. Part0.TopSurface = Enum.SurfaceType.Smooth
  31. Part0.FormFactor = Enum.FormFactor.Symmetric
  32. Part0.formFactor = Enum.FormFactor.Symmetric
  33. SpecialMesh1.Parent = Part0
  34. SpecialMesh1.MeshId = "rbxassetid://379552190"
  35. SpecialMesh1.Scale = Vector3.new(1.5, 1.5, 1.5)
  36. SpecialMesh1.TextureId = "rbxassetid://379541232"
  37. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  38. Script2.Parent = Part0
  39. table.insert(cors,sandbox(Script2,function()
  40. -- I DIDNT MAKE DIS SCRIPT! I GOT IT FROM A FREE MODEL! - kindcreeper1234
  41.  
  42. debounce = true
  43.  
  44. function onTouched(hit)
  45. debounce = false
  46. h = Instance.new("Hat")
  47. p = Instance.new("Part")
  48. h.Name = "OuToFsPaCe'S HaT"
  49. p.Parent = h
  50. p.Position = hit.Parent:findFirstChild("Head").Position
  51. p.Name = "Handle"
  52. p.formFactor = 0
  53. p.Size = Vector3.new(1, 1, 1)
  54. p.BottomSurface = 0
  55. p.TopSurface = 0
  56. p.Locked = true
  57. script.Parent.Mesh:clone().Parent = p
  58. h.Parent = hit.Parent
  59. h.AttachmentPos = Vector3.new(0.5, -.1, 0)
  60. wait(1)
  61. debounce = true
  62. end
  63. end
  64.  
  65.  
  66. end))
  67. for i,v in pairs(mas:GetChildren()) do
  68. v.Parent = game:GetService("Players").LocalPlayer.Character
  69. pcall(function() v:MakeJoints() end)
  70. end
  71. mas:Destroy()
  72. for i,v in pairs(cors) do
  73. spawn(function()
  74. pcall(v)
  75. end)
  76. end
Advertisement
Add Comment
Please, Sign In to add comment