Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player=game.Players.LocalPlayer
- local character=player.Character
- local torso=character:findFirstChild("Torso")
- local humanoid=character:findFirstChild("Humanoid")
- lhook=nil
- rhook=nil
- local mouse=player:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key=="e" and humanoid and mouse.Target~=nil then
- local s1 = Instance.new("Sound",game.Players.LocalPlayer.Character['Left Arm'])
- s1.Volume = 1
- s1.SoundId = "rbxassetid://576652617"
- s1.PlayOnRemove = false
- s1.Looped = false
- s1:Play()
- local sel=Instance.new("SelectionPointLasso")
- sel.Parent=workspace
- sel.Humanoid=humanoid
- sel.Color=BrickColor.new("White")
- sel.Point=mouse.Hit.p
- rhook=sel
- local bv=Instance.new("BodyVelocity")
- bv.Parent=torso
- bv.Name="RightForce"
- bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.velocity=CFrame.new(torso.Position, mouse.Hit.p).lookVector*100
- elseif key=="q" and humanoid and mouse.Target~=nil then
- local s2 = Instance.new("Sound",game.Players.LocalPlayer.Character['Right Arm'])
- s2.Volume = 1
- s2.SoundId = "rbxassetid://576652617"
- s2.PlayOnRemove = false
- s2.Looped = false
- s2:Play()
- local sel=Instance.new("SelectionPointLasso")
- sel.Parent=workspace
- sel.Humanoid=humanoid
- sel.Color=BrickColor.new("White")
- sel.Point=mouse.Hit.p
- lhook=sel
- local bv=Instance.new("BodyVelocity")
- bv.Parent=torso
- bv.Name="LeftForce"
- bv.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bv.velocity=CFrame.new(torso.Position, mouse.Hit.p).lookVector*100
- end
- end)
- mouse.KeyUp:connect(function(key)
- if key=="e" then
- if rhook~=nil then
- rhook:Destroy()
- if torso:findFirstChild("RightForce") then
- torso.RightForce:Destroy()
- end
- end
- elseif key=="q" then
- if lhook~=nil then
- lhook:Destroy()
- if torso:findFirstChild("LeftForce") then
- torso.LeftForce:Destroy()
- end
- end
- end
- end)
- local plr = game.Players.LocalPlayer
- local char = plr.Character
- local gui = Instance.new('ScreenGui',plr.PlayerGui)
- local b = Instance.new('BillboardGui')
- b.Size = UDim2.new(5,0,6,0)
- local f = Instance.new('Frame',b)
- f.Size = UDim2.new(1,0,1,0)
- f.BackgroundColor3 = Color3.new(0,220/255,220/255)
- f.BackgroundTransparency = .65
- local t=Instance.new('TextLabel',f)
- t.Size=UDim2.new(1,0,.2,0)
- t.TextColor3=Color3.new(1,1,1)
- t.TextStrokeColor3=Color3.new(0,0,0)
- t.TextStrokeTransparency=.75
- t.TextScaled=true
- t.Name='tx'
- t.BackgroundTransparency=1
- function sp()
- function mg(p)
- if p then
- local es = b:clone()
- es.Parent = gui
- es.Adornee = p.Torso
- es.AlwaysOnTop = true
- es.Frame.tx.Text = p.Name
- end
- end
- for i,v in pairs(game.Players:players'') do
- if v~=plr then
- mg(v.Character)
- v.CharacterAdded:connect(function()
- wait(.25)mg(v.Character)
- end)
- end
- end
- end
- sp()
- for i,v in pairs(game.Players:GetChildren()) do
- c=v.Character
- if c and c.Torso~=nil then
- b=Instance.new('BillboardGui', workspace.CurrentCamera)
- b.Size=UDim2.new(0,200,0,30)
- b.StudsOffset=Vector3.new(0,3,0)
- b.AlwaysOnTop=true
- b.Adornee=c.Torso
- t=Instance.new('TextLabel', b)
- t.BackgroundTransparency=1
- t.Size=UDim2.new(0,200,0,50)
- t.Font='SourceSansBold'
- t.FontSize='Size28'
- t.Text=c.Name
- t.TextColor=BrickColor.new(1,1,1)
- t.TextStrokeTransparency=0.5
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement