Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.30 KB | None | 0 0
  1. local player=game.Players.LocalPlayer
  2. local character=player.Character
  3. local torso=character:findFirstChild("Torso")
  4. local humanoid=character:findFirstChild("Humanoid")
  5.  
  6. lhook=nil
  7. rhook=nil
  8.  
  9. local mouse=player:GetMouse()
  10.  
  11.  
  12. mouse.KeyDown:connect(function(key)
  13. if key=="e" and humanoid and mouse.Target~=nil then
  14. local s1 = Instance.new("Sound",game.Players.LocalPlayer.Character['Left Arm'])
  15. s1.Volume = 1
  16. s1.SoundId = "rbxassetid://576652617"
  17. s1.PlayOnRemove = false
  18. s1.Looped = false
  19. s1:Play()
  20. local sel=Instance.new("SelectionPointLasso")
  21. sel.Parent=workspace
  22. sel.Humanoid=humanoid
  23. sel.Color=BrickColor.new("White")
  24. sel.Point=mouse.Hit.p
  25.  
  26. rhook=sel
  27. local bv=Instance.new("BodyVelocity")
  28. bv.Parent=torso
  29. bv.Name="RightForce"
  30. bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  31. bv.velocity=CFrame.new(torso.Position, mouse.Hit.p).lookVector*100
  32. elseif key=="q" and humanoid and mouse.Target~=nil then
  33. local s2 = Instance.new("Sound",game.Players.LocalPlayer.Character['Right Arm'])
  34. s2.Volume = 1
  35. s2.SoundId = "rbxassetid://576652617"
  36. s2.PlayOnRemove = false
  37. s2.Looped = false
  38. s2:Play()
  39. local sel=Instance.new("SelectionPointLasso")
  40. sel.Parent=workspace
  41. sel.Humanoid=humanoid
  42. sel.Color=BrickColor.new("White")
  43. sel.Point=mouse.Hit.p
  44. lhook=sel
  45. local bv=Instance.new("BodyVelocity")
  46. bv.Parent=torso
  47. bv.Name="LeftForce"
  48. bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  49. bv.velocity=CFrame.new(torso.Position, mouse.Hit.p).lookVector*100
  50. end
  51. end)
  52.  
  53. mouse.KeyUp:connect(function(key)
  54. if key=="e" then
  55. if rhook~=nil then
  56. rhook:Destroy()
  57. if torso:findFirstChild("RightForce") then
  58. torso.RightForce:Destroy()
  59. end
  60. end
  61. elseif key=="q" then
  62. if lhook~=nil then
  63. lhook:Destroy()
  64. if torso:findFirstChild("LeftForce") then
  65. torso.LeftForce:Destroy()
  66. end
  67. end
  68. end
  69. end)
  70.  
  71.  
  72. local plr = game.Players.LocalPlayer
  73. local char = plr.Character
  74. local gui = Instance.new('ScreenGui',plr.PlayerGui)
  75.  
  76. local b = Instance.new('BillboardGui')
  77. b.Size = UDim2.new(5,0,6,0)
  78. local f = Instance.new('Frame',b)
  79. f.Size = UDim2.new(1,0,1,0)
  80. f.BackgroundColor3 = Color3.new(0,220/255,220/255)
  81. f.BackgroundTransparency = .65
  82. local t=Instance.new('TextLabel',f)
  83. t.Size=UDim2.new(1,0,.2,0)
  84. t.TextColor3=Color3.new(1,1,1)
  85. t.TextStrokeColor3=Color3.new(0,0,0)
  86. t.TextStrokeTransparency=.75
  87. t.TextScaled=true
  88. t.Name='tx'
  89. t.BackgroundTransparency=1
  90.  
  91. function sp()
  92. function mg(p)
  93. if p then
  94. local es = b:clone()
  95. es.Parent = gui
  96. es.Adornee = p.Torso
  97. es.AlwaysOnTop = true
  98. es.Frame.tx.Text = p.Name
  99. end
  100. end
  101.  
  102. for i,v in pairs(game.Players:players'') do
  103. if v~=plr then
  104. mg(v.Character)
  105. v.CharacterAdded:connect(function()
  106. wait(.25)mg(v.Character)
  107. end)
  108. end
  109. end
  110. end
  111. sp()
  112.  
  113.  
  114.  
  115. for i,v in pairs(game.Players:GetChildren()) do
  116. c=v.Character
  117. if c and c.Torso~=nil then
  118. b=Instance.new('BillboardGui', workspace.CurrentCamera)
  119. b.Size=UDim2.new(0,200,0,30)
  120. b.StudsOffset=Vector3.new(0,3,0)
  121. b.AlwaysOnTop=true
  122. b.Adornee=c.Torso
  123. t=Instance.new('TextLabel', b)
  124. t.BackgroundTransparency=1
  125. t.Size=UDim2.new(0,200,0,50)
  126. t.Font='SourceSansBold'
  127. t.FontSize='Size28'
  128. t.Text=c.Name
  129. t.TextColor=BrickColor.new(1,1,1)
  130. t.TextStrokeTransparency=0.5
  131. end
  132. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement