kleber1234

Tp and Delete

May 26th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. game:GetService('Players').LocalPlayer.Character.Head:remove()
  2. wait(0.3)
  3. game:GetService('Players').LocalPlayer.Character:remove()
  4. wait()
  5. game:GetService('Players').LocalPlayer.CharacterAdded:connect(function(char)
  6. local a=Instance.new("Tool")a.RequiresHandle=false;a.Name="Delete"local b=game.Players.LocalPlayer;a.Parent=b:WaitForChild("Backpack")local c=b:GetMouse()local d=false;local e=Instance.new("SelectionBox")e.Color3=Color3.new(0,0.6,0.6,6)e.Parent=b.PlayerGui;local c=b:GetMouse()local e=Instance.new("SelectionBox")e.Color3=Color3.new(0,0.6,0.6,6)e.Parent=b.PlayerGui;e.Name="derp"c.Move:connect(function()if d then local f=c.Target;if not f then e.Adornee=nil else if f:IsA("BasePart")then e.Adornee=f else e.Adornee=nil end end end end)a.Equipped:Connect(function()d=true end)a.Unequipped:Connect(function()e.Adornee=nil;d=false end)a.Activated:Connect(function()if e.Adornee then local g=Instance.new("Explosion")g.Parent=game.Workspace;g.Position=e.Adornee.Position;g.BlastPressure=0;local h=Instance.new("Sound")h.SoundId="http://www.roblox.com/asset/?id=315775189"h.Parent=game.Workspace;h:Play()e.Adornee:Destroy()e.Adornee=nil end end)
  7. wait()
  8. player1=game.Players.LocalPlayer
  9.  
  10. q=Instance.new('HopperBin', player1.Backpack)
  11. q.Name = 'Click Teleport'
  12.  
  13.  
  14. bin = q
  15.  
  16.  
  17.  
  18. function teleportPlayer(pos)
  19. local player = game.Players.LocalPlayer
  20. if player == nil or player.Character == nil then return end
  21. player.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
  22. end
  23.  
  24.  
  25. enabled = true
  26. function onButton1Down(mouse)
  27. if not enabled then
  28. return
  29. end
  30.  
  31. local player = game.Players.LocalPlayer
  32. if player == nil then return end
  33.  
  34.  
  35. enabled = false
  36. local cf = mouse.Hit
  37. local v = cf.lookVector
  38.  
  39. teleportPlayer(cf.p)
  40.  
  41. wait()
  42. enabled = true
  43.  
  44. end
  45.  
  46. function onSelected(mouse)
  47. mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
  48. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  49. end
  50.  
  51. bin.Selected:connect(onSelected)
  52.  
  53. char.ChildAdded:connect(function(ch)
  54. print(ch.Name)
  55. end)
  56. end)
Add Comment
Please, Sign In to add comment