Niccotin

Untitled

Mar 20th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
  3. local debounce = false
  4. function Generate(parents)
  5. if parents ~= nil then
  6. a=Instance.new("SurfaceGui",parents)
  7. a.Adornee = parents
  8. a.CanvasSize = Vector2.new(100,100)
  9. a.ToolPunchThroughDistance = 100
  10. b=Instance.new("TextButton",a)
  11. b.Text = "Touch Me For Robux"
  12. b.TextWrapped = true
  13. b.BorderColor3 = Color3.new(0,1,0)
  14. b.TextColor3 = Color3.new(0,1,0)
  15. b.BackgroundColor3 = Color3.new(0,0.25,0)
  16. b.Size = UDim2.new(1,-10,1,-10)
  17. b.Position = UDim2.new(0,5,0,5)
  18. parents.Touched:connect(function(otherPart)
  19. if game.Players:FindFirstChild(otherPart.Parent.Name) ~= nil then
  20. if debounce == false then
  21. debounce = true
  22. c = Instance.new("ForceField",parents.Parent)
  23. e = Instance.new("Sound",parents)
  24. e.SoundId = "rbxassetid://159490394"
  25. e:Play()
  26. d = Instance.new("Explosion",workspace)
  27. d.Position = parents.Position
  28. d.BlastPressure = 4000000
  29. d.BlastRadius = 40000000
  30. d.ExplosionType = 2
  31. d.DestroyJointRadiusPercent = 1
  32. wait()
  33. c:Remove()
  34. debounce = false
  35. end
  36. end
  37. end)
  38. end
  39. end
  40.  
  41. if Player ~= nil then
  42. if Player.Character ~= nil then
  43. if Player.Character:FindFirstChild("Torso") then
  44. Generate(Player.Character:FindFirstChild("Torso"))
  45. end
  46. end
  47. end
Add Comment
Please, Sign In to add comment