Advertisement
Zarcus

Untitled

Aug 10th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. player = game.Players.Max5709
  2. brick = nil
  3. beamer = nil
  4. mode = "teleport"
  5.  
  6. function onTouched(hit)
  7. if beamer.Transparency == 1 then return true end
  8. if mode == "kill" then
  9. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  10. if plyr ~= nil then
  11. plyr.Character:BreakJoints()
  12. end
  13. end
  14. if mode == "ban" then
  15. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  16. if plyr ~= nil then
  17. plyr:Remove()
  18. end
  19. end
  20. if mode == "teleport" then
  21. plyr = game.Players:GetPlayerFromCharacter(hit.Parent)
  22. if plyr ~= nil then
  23. pos = player.Character.Torso.Position + Vector3.new(0,10,0)
  24. plyr.Character.Torso.CFrame = CFrame.new(pos)
  25. end
  26. end
  27. end
  28.  
  29. function onChatted(msg)
  30. if(string.sub(msg:lower(), 1, 6) == "speed:") then
  31. speed = string.sub(msg, 7)
  32. speed = tonumber(speed)
  33. if speed ~= nil then
  34. local h = Instance.new("Hint")
  35. h.Parent = player
  36. h.Text = "Speed changed to "..tostring(speed).."..."
  37. for _,v in pairs(player.Character:GetChildren()) do
  38. if v.className == "Humanoid" then
  39. v.WalkSpeed = speed
  40. end
  41. end
  42. wait(2)
  43. h:Remove()
  44. end
  45. end
  46. if(string.sub(msg:lower(),1,8) == "script//") then
  47. stuff = string.sub(msg, 9)
  48. a, b = pcall(loadstring(stuff))
  49. if a == false then
  50. local m = Instance.new("Message")
  51. m.Parent = workspace
  52. m.Text = tostring(b)
  53. game:GetService("Debris"):AddItem(m,3)
  54. end
  55. end
  56. if(string.sub(msg:lower(),1,5) == "mode:") then
  57. mode = string.sub(msg:lower(), 6)
  58. end
  59. if msg == "on" then
  60. beamer.Transparency = 0.5
  61. local cd = Instance.new("CylinderMesh")
  62. cd.Parent = beamer
  63. end
  64. if msg == "off" then
  65. beamer.Transparency = 1
  66. end
  67. if msg == "reset" then
  68. player.Character:BreakJoints()
  69. end
  70. if(string.sub(msg:lower(),1,6) == "color:") then
  71. color = string.sub(msg,7)
  72. local h = Instance.new("Hint")
  73. h.Parent = player
  74. h.Text = "Color changed to "..color.."..."
  75. brick.BrickColor = BrickColor.new(color)
  76. wait(2)
  77. h:Remove()
  78. end
  79. if msg == "fix" then
  80. player.Character.Torso.CFrame = CFrame.new(0,10,0)
  81. end
  82. if(string.sub(msg:lower(), 1,5) == "down:") then
  83. num = string.sub(msg, 6)
  84. num = tonumber(num)
  85. if num ~= nil then
  86. local h = Instance.new("Hint")
  87. h.Parent = player
  88. h.Text = "Went down by \""..num.."\" studs..."
  89. pos = player.Character.Torso.Position
  90. player.Character.Torso.CFrame = CFrame.new(pos.x, pos.y-num, pos.z)
  91. wait()
  92. h:Remove()
  93. end
  94. end
  95. end
  96.  
  97. player.Chatted:connect(onChatted)
  98.  
  99. p = Instance.new("Part")
  100. p.Parent = player.Character
  101. p.Size = Vector3.new(15,5,15)
  102. beam = Instance.new("Part")
  103. beam.Transparency = 0.7
  104. beam.BrickColor = BrickColor.Red()
  105. beam.Size = Vector3.new(15,500,15)
  106. beam.Parent = player.Character
  107. beam.Transparency = 1
  108. beam.Locked = true
  109. beamer = beam
  110. beam.Anchored = true
  111. beam.Touched:connect(onTouched)
  112. beam.CanCollide = false
  113. local cd = Instance.new("CylinderMesh")
  114. cd.Parent = beam
  115. p.Anchored = true
  116. local c = Instance.new("CylinderMesh")
  117. c.Parent = p
  118. p.Locked = true
  119. p.BrickColor = BrickColor.Black()
  120. brick = p
  121. while true do
  122. wait()
  123. if player.SuperSafeChat == true then
  124. player.SuperSafeChat = false
  125. end
  126. p.Parent = nil
  127. beam.Parent = nil
  128. p.Position = player.Character.Torso.Position - Vector3.new(0,5.2,0)
  129. size = player.Character.Humanoid.WalkSpeed
  130. p.Size = Vector3.new(size,5,size)
  131. beam.Position = p.Position - Vector3.new(0,255,0)
  132. p.Parent = player.Character
  133. beam.Parent = player.Character
  134. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement