Nova355killer

view/tp to cmd bar

Nov 21st, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. local WS = game:GetService('Workspace')
  2. local Plrs = game:GetService('Players')
  3.  
  4. local Plr = Plrs.LocalPlayer
  5. local MOUSE = Plr:GetMouse()
  6.  
  7. s = Instance.new("ScreenGui", Plr.PlayerGui)
  8. s.Enabled = true
  9. s.Name = "Gui"
  10.  
  11. f = Instance.new("Frame", s)
  12. f.Position = UDim2.new(0.84, 8 , 0.88, 4)
  13. f.AnchorPoint = Vector2.new(1,1)
  14. f.BorderSizePixel = 4
  15. f.BorderColor3 = Color3.new(255,255,255)
  16. f.Size = UDim2.new(0.2, 0, 0.1, 20)
  17. f.BackgroundColor3 = Color3.new(0,0,0)
  18. f.BackgroundTransparency = 0.7
  19. f.Draggable = true
  20. f.Active = true
  21.  
  22. note = Instance.new("TextLabel", f)
  23. note.TextColor3 = Color3.new(0,0,0)
  24. note.BackgroundColor3 = Color3.new(255,255,255)
  25. note.BorderColor3 = Color3.new(27,42,90)
  26. note.BackgroundTransparency = 0.2
  27. note.Size = UDim2.new(0, 384 , 0, 50)
  28. note.Font = "SourceSansBold"
  29. note.FontSize = "Size32"
  30. note.TextSize = 21
  31. note.Text = ("ChucklezGoWild view/tp bar")
  32.  
  33. join = Instance.new("TextBox", f)
  34. join.Name = "Join"
  35. join.Text = " "
  36. join.TextColor3 = Color3.new(255,255,255)
  37. join.BackgroundColor3 = Color3.new(255,255,255)
  38. join.BackgroundTransparency = 1
  39. join.Position = UDim2.new(0.09, 0 , 0, 59)
  40. join.Size = UDim2.new(0, 300 , 0, 50)
  41. join.Font = "SourceSans"
  42. join.FontSize = "Size32"
  43. join.TextSize = 31
  44. join.TextTransparency = 0.1
  45. join.TextStrokeTransparency = 1
  46.  
  47. function grab(str, lp)
  48. str = str:lower()
  49. plrz = {}
  50. if str == "me" then
  51. table.insert(plrz, Plr)
  52. else
  53. for i,v in pairs(Plrs:GetChildren()) do
  54. if v.Name:lower():find(str) then
  55. table.insert(plrz, v)
  56. end
  57. end
  58. end
  59. return plrz
  60. end
  61.  
  62. join.FocusLost:connect(function(active)
  63. if active then
  64. if join.Text:lower():sub(1,5) == "view " then
  65. local fin = grab(join.Text:sub(6), Plr)
  66. for i,v in pairs(fin) do
  67. WS.Camera.CameraSubject = v.Character.Humanoid
  68. end
  69. elseif join.Text:lower():sub(1,3) == "to " then
  70. local fin = grab(join.Text:sub(4), Plr)
  71. for i,v in pairs(fin) do
  72. pos = Plr.Character.HumanoidRootPart.CFrame
  73. Plr.Character.HumanoidRootPart.CFrame = CFrame.new(v.Character.HumanoidRootPart.CFrame.x,v.Character.HumanoidRootPart.CFrame.y,v.Character.HumanoidRootPart.CFrame.z + 10)
  74. Plr.Character.HumanoidRootPart.Anchored = true
  75. wait(0.1)
  76. Plr.Character.Humanoid.Jump = true
  77. Plr.Character.HumanoidRootPart.Anchored = false
  78. end
  79. elseif join.Text:lower() == "back" then
  80. Plr.Character.HumanoidRootPart.CFrame = pos
  81. Plr.Character.HumanoidRootPart.Anchored = true
  82. wait(0.1)
  83. Plr.Character.Humanoid.Jump = true
  84. Plr.Character.HumanoidRootPart.Anchored = false
  85. end
  86. end
  87. end)
Advertisement
Add Comment
Please, Sign In to add comment