thatonepuggo

thanos glove

Aug 11th, 2020 (edited)
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 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. Tool0 = Instance.new("Tool")
  20. Script1 = Instance.new("Script")
  21. Part2 = Instance.new("Part")
  22. SpecialMesh3 = Instance.new("SpecialMesh")
  23. Tool0.Name = "InfinityGuantlet"
  24. Tool0.Parent = owner.Backpack
  25. Tool0.TextureId = "rbxassetid://2988454230"
  26. Tool0.CanBeDropped = false
  27. Tool0.Grip = CFrame.new(-0.0127496719, 0.63266778, -0.0348548889, 0.0626006722, -0.997026205, 0.044944223, 0, 0.0450325459, 0.998985589, -0.99803865, -0.0625371709, 0.00281906757)
  28. Tool0.GripForward = Vector3.new(-0.044944223, -0.998985589, -0.00281906757)
  29. Tool0.GripPos = Vector3.new(-0.0127496719, 0.63266778, -0.0348548889)
  30. Tool0.GripRight = Vector3.new(0.0626006722, 0, -0.99803865)
  31. Tool0.GripUp = Vector3.new(-0.997026205, 0.0450325459, -0.0625371709)
  32. Tool0.ToolTip = "go commit thanos snap"
  33. Part2.Name = "Handle"
  34. Part2.Parent = Tool0
  35. Part2.CFrame = CFrame.new(-5.71000004, 2.53001451, -11.3100004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  36. Part2.Position = Vector3.new(-5.71000004, 2.53001451, -11.3100004)
  37. Part2.Size = Vector3.new(4, 1, 2)
  38. Part2.BottomSurface = Enum.SurfaceType.Smooth
  39. Part2.TopSurface = Enum.SurfaceType.Smooth
  40. Part2.Massless = true
  41. Part2.CanCollide = false
  42. SpecialMesh3.Parent = Part2
  43. SpecialMesh3.MeshId = "rbxassetid://2988437577"
  44. SpecialMesh3.TextureId = "rbxassetid://2988454230"
  45. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  46. SpecialMesh3.Scale = Vector3.new(1.5,1.5,2)
  47. Script1.Parent = Tool0
  48. table.insert(cors,sandbox(Script1,function()
  49. script.Parent.Activated:Connect(function()
  50. local ownerplr = owner
  51. local ownerchar = ownerplr.Character
  52. wait()
  53. local p = Instance.new("Part",workspace)
  54. local a = Instance.new("Sound",p)
  55. a.Name = "snap"
  56. a.SoundId = "rbxassetid://3091498183"
  57. a.Volume = 2
  58. a:Play()
  59. p.Material = Enum.Material.ForceField
  60. p.Anchored = true
  61. p.Shape = Enum.PartType.Ball
  62. p.Transparency = 0
  63. p.Position = script.Parent.Handle.Position
  64. p.CanCollide = false
  65. p.Size = Vector3.new(1,1,1)
  66. p.TopSurface = Enum.SurfaceType.Smooth
  67. p.BottomSurface = Enum.SurfaceType.Smooth
  68. local ts = game:GetService("TweenService")
  69. local part = p
  70. local info = TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0)
  71. local goals = {Transparency = 1,Size = Vector3.new(30,30,30) }
  72. local t = ts:Create(part,info,goals)
  73. t:Play()
  74. p.Touched:Connect(function(hit)
  75. local char = hit.Parent
  76. local plr = game.Players:GetPlayerFromCharacter(char)
  77. local hum = char:FindFirstChildWhichIsA("Humanoid")
  78. if hum then
  79. if char ~= ownerchar then
  80. for _, child in pairs(char:GetDescendants()) do
  81. if child:IsA("Part") or child:IsA("MeshPart") or child:IsA("Decal") then
  82. part = child
  83. local goals = {Transparency = 1}
  84. local t = ts:Create(part,info,goals)
  85. t:Play()
  86. end
  87. end
  88. wait(1.5)
  89. a:Destroy()
  90. char:Destroy()
  91. else
  92. hum.MaxHealth = math.huge
  93. wait()
  94. hum.Health = hum.MaxHealth
  95. end
  96. end
  97. end)
  98. p.Touched:Connect(function(hit)
  99. local char = hit.Parent
  100. local ts = game:GetService("TweenService")
  101. if char:FindFirstChildWhichIsA("Humanoid") and char ~= ownerchar and not char.Head:FindFirstChild("thanossnapbbord") and not char:FindFirstChild("thanossnapalreadydone") then
  102. local bbord = Instance.new("BillboardGui",char.Head)
  103. local marker = Instance.new("BoolValue",char)
  104. marker.Name = "thanossnapalreadydone"
  105. marker.Value = true
  106. bbord.Name = "thanossnapbbord"
  107. bbord.Size = UDim2.new(7,0,1,0)
  108. bbord.StudsOffset = Vector3.new(0,3,0)
  109. bbord.LightInfluence = 0
  110. local t = Instance.new("TextLabel",bbord)
  111. t.Size = UDim2.new(1,0,1,0)
  112. t.TextScaled = true
  113. t.TextColor3 = Color3.fromRGB(99, 95, 98)
  114. t.Font = Enum.Font.SourceSans
  115. t.Text = "I don't feel so good.."
  116. t.TextStrokeTransparency = 0
  117. t.BackgroundTransparency = 1
  118. local info = TweenInfo.new(1,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0)
  119. local goals = {TextTransparency = 1, TextStrokeTransparency = 1}
  120. ts:Create(t,info,goals):Play()
  121. wait(1)
  122. bbord:Destroy()
  123. end
  124. end)
  125. wait(1)
  126. p:Destroy()
  127. end)
  128. end))
  129.  
  130. for i,v in pairs(mas:GetChildren()) do
  131. v.Parent = workspace
  132. pcall(function() v:MakeJoints() end)
  133. end
  134. mas:Destroy()
  135. for i,v in pairs(cors) do
  136. spawn(function()
  137. pcall(v)
  138. end)
  139. end
Add Comment
Please, Sign In to add comment