Advertisement
refrop

name changer v1

Jul 25th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. targettedOn = false
  2. function onTouched(hit)
  3. hole:Play()
  4. hit.CanCollide=false
  5. wait(.5)
  6. hit.CanCollide = true
  7. debounce = true
  8.  
  9. end
  10.  
  11. dft = {}
  12.  
  13. function GetPlayers()
  14. local c = game.Players:GetChildren()
  15. for i = 1, #c do
  16. table.insert(dft, c[i].Name)
  17. end
  18. end
  19.  
  20. function Randomize()
  21. GetPlayers()
  22. local d = math.random(1, #dft)
  23. s = d
  24.  
  25.  
  26.  
  27. end
  28.  
  29. playertarg = game.Players.LocalPlayer
  30. chara = playertarg.Character
  31. Mouse = playertarg:GetMouse()
  32. targetted = nil
  33.  
  34. New = function(Object, Parent, Name, Data)
  35. local Object = Instance.new(Object)
  36. for Index, Value in pairs(Data or {}) do
  37. Object[Index] = Value
  38. end
  39. Object.Parent = Parent
  40. Object.Name = Name
  41. return Object
  42. end
  43.  
  44.  
  45.  
  46. crosshair = Instance.new("BillboardGui",chara)
  47. crosshair.Size = UDim2.new(10,0,10,0)
  48. crosshair.Enabled = false
  49. imgl = Instance.new("ImageLabel",crosshair)
  50. imgl.Position = UDim2.new(0,0,0,0)
  51. imgl.Size = UDim2.new(1,0,1,0)
  52. imgl.Image = "rbxassetid://160506713"
  53. imgl.BackgroundTransparency = 1
  54. imgl.ImageTransparency = .7
  55. imgl.ImageColor3 = Color3.new(0,0,0)
  56.  
  57. CV="Maroon"
  58. Player = game.Players.LocalPlayer
  59. Character = Player.Character
  60. local txt = Instance.new("BillboardGui", Character)
  61. txt.Adornee = Character .Head
  62. txt.Name = "_status"
  63. txt.Size = UDim2.new(2, 0, 1.2, 0)
  64. txt.StudsOffset = Vector3.new(-9, 8, 0)
  65. local text = Instance.new("TextLabel", txt)
  66. text.Size = UDim2.new(10, 0, 7, 0)
  67. text.FontSize = "Size24"
  68. text.TextScaled = true
  69. text.TextTransparency = 0
  70. text.BackgroundTransparency = 1
  71. text.TextTransparency = 0
  72. text.TextStrokeTransparency = 0
  73. text.Font = "Bodoni"
  74. text.TextStrokeColor3 = Color3.new(255,255,255)
  75.  
  76. v=Instance.new("Part")
  77. v.Name = "ColorBrick"
  78. v.Parent=Player.Character
  79. v.FormFactor="Symmetric"
  80. v.Anchored=true
  81. v.CanCollide=false
  82. v.BottomSurface="Smooth"
  83. v.TopSurface="Smooth"
  84. v.Size=Vector3.new(10,5,3)
  85. v.Transparency=1
  86. v.CFrame=Character.Torso.CFrame
  87. v.BrickColor=BrickColor.new(CV)
  88. v.Transparency=1
  89. text.TextColor3 = Color3.new(0,0,0)
  90. v.Shape="Block"
  91. text.Text = "Name"
  92. -----------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement