Advertisement
RobloxScripty

Untitled

Jul 5th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.45 KB | None | 0 0
  1. --------------------------------------------------[[ MediaFire -- LuaModelBot]]----------------------------------------
  2. script.Parent = nil
  3.  
  4. local Name = "LuaModelMaker"
  5. local Me = game:GetService("Mr_Anonymous1st")
  6. local BotColors = {StartUpColor = "Really blue", StartUpBackupColor = "Bright blue", OtherColors = {}}
  7. local Size = {1,1,1} -- Table for Vectors, XD
  8. local AntiRemove = true
  9. local Bot = nil
  10. local Moving = false
  11. local Time = 0.1
  12.  
  13. function Chat(Text)
  14. if Bot ~= nil then
  15. game:GetService("Chat"):Chat(Bot.Head,Text,Enum.ChatColor.Blue)
  16. else
  17. return "LuaModelBot is not visible"
  18. end
  19. end
  20.  
  21. function BootUpBot()
  22. if AntiRemove == true then
  23. local Model = Instance.new("Model", Workspace)
  24. Model.Name = "LuaModelBot"
  25. Bot = Model
  26. local Humanoid = Instance.new("Humanoid", Model)
  27. Humanoid.MaxHealth = 0
  28. local Head = Instance.new("Part", Model)
  29. Head.CanCollide = false
  30. Head.BrickColor = BrickColor.new(BotColors.StartUpColor)
  31. Head.Size = Vector3.new(Size[1], Size[2], Size[3])
  32. Head.Name = "Head"
  33. Head.Position = Vector3.new(0,10,0)
  34. local Mesh = Instance.new("BlockMesh", Head)
  35. local Decal = Instance.new("Decal", Head)
  36. Decal.Texture = Me.Character.Head.face.Texture
  37. local BP = Instance.new("BodyPosition", Head)
  38. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  39. BP.position = Me.Character.Torso.CFrame:toWorldSpace(CFrame.new(4, 0.5,-1)).p
  40. local BG = Instance.new("BodyGyro", Head)
  41. BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  42. BG.cframe = Me.Character.Torso.CFrame * CFrame.Angles(0,0,0)
  43.  
  44. local RightArm = Instance.new("Part", Model)
  45. RightArm.CanCollide = false
  46. RightArm.BrickColor = BrickColor.new(BotColors.StartUpBackupColor)
  47. RightArm.Size = Vector3.new(1,1,1)
  48. RightArm.Name = "RightArm"
  49. RightArm.Position = Me.Character.Torso.CFrame:toWorldSpace(CFrame.new(3, 0.5,-1)).p
  50. local Mesh2 = Instance.new("BlockMesh", RightArm)
  51. Mesh2.Scale = Vector3.new(Size[1]/3,Size[2]/3,Size[3]-0.1)
  52. local Weld = Instance.new("Weld", RightArm)
  53. Weld.Part0 = RightArm
  54. Weld.Part1 = Head
  55. Weld.C1 = CFrame.new(Size[3]/2+0.1,0,0)
  56.  
  57. local LeftArm = Instance.new("Part", Model)
  58. LeftArm.CanCollide = false
  59. LeftArm.BrickColor = BrickColor.new(BotColors.StartUpBackupColor)
  60. LeftArm.Size = Vector3.new(1,1,1)
  61. LeftArm.Name = "RightArm"
  62. LeftArm.Position = Me.Character.Torso.CFrame:toWorldSpace(CFrame.new(3, 0.5,-1)).p
  63. local Mesh3 = Instance.new("BlockMesh", LeftArm)
  64. Mesh3.Scale = Vector3.new(Size[1]/3,Size[2]/3,Size[3]-0.1)
  65. local Weld = Instance.new("Weld", LeftArm)
  66. Weld.Part0 = LeftArm
  67. Weld.Part1 = Head
  68. Weld.C1 = CFrame.new(-Size[3]/2-0.1,0,0)
  69.  
  70. coroutine.wrap(function() while wait() and AntiRemove == true do
  71. if Moving == false then
  72. BG.cframe = Me.Character.Torso.CFrame * CFrame.Angles(0,0,0)
  73. BP.position = Me.Character.Torso.CFrame:toWorldSpace(CFrame.new(4, 0.5,-1)).p
  74. end
  75. end end)()
  76. else
  77. Bot = nil
  78. end
  79. end
  80.  
  81. function ScanPlayer(PlayerName)
  82. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  83. if string.lower(string.sub(v.Name,1,#PlayerName)) == string.lower(PlayerName) then
  84. return v
  85. end
  86. end
  87. end
  88.  
  89. function BotToPlayer1(Player, TheTime)
  90. Time = TheTime
  91. Moving = true
  92. Bot.Head.BodyPosition.position = Player.Character.Torso.Position
  93. wait(Time)
  94. end
  95.  
  96. function BotToPlayer2()
  97. wait(Time)
  98. Moving = false
  99. end
  100.  
  101. BootUpBot()
  102.  
  103. Workspace.DescendantRemoving:connect(function(Object)
  104. if Object.Name == "LuaModelBot" then
  105. if AntiRemove == true then
  106. Bot = nil
  107. BootUpBot()
  108. end
  109. end
  110. end)
  111.  
  112. Me.Chatted:connect(function(Message)
  113. if AntiRemove == true then
  114. if string.lower(Message) == "+test" then
  115. Chat("I work :D")
  116.  
  117. elseif string.lower(Message) == "+remove" then
  118. Chat("Bye =[")
  119. while wait() do
  120. BootUpBot = nil
  121. for i = 1,100 do
  122. Bot.Name = "Removing..."
  123. end
  124. wait(0.1)
  125. Bot:remove()
  126. AntiRemove = false
  127. Chat = nil
  128. Bot:remove()
  129. script.Disabled = true
  130. end
  131.  
  132. elseif string.lower(Message) == "+reboot" then
  133. Chat("Booting up new bot.")
  134. wait(0.1)
  135. Chat("Booting up new bot..")
  136. wait(0.1)
  137. Chat("Booting up new bot...")
  138. wait(0.1)
  139. Bot:remove()
  140. Chat("New LuaModelBot loaded made by LuaModelMaker")
  141.  
  142. elseif string.sub(string.lower(Message),1,7) == "+chat: " then
  143. Chat(string.sub(Message, 8))
  144.  
  145. elseif string.lower(Message) == "+spin" then
  146. Moving = true
  147. Chat("Weeeeeeee")
  148. for i = 0,360,10 do
  149. wait()
  150. Bot.Head.BodyGyro.cframe = Me.Character.Torso.CFrame:toWorldSpace(CFrame.Angles(0,math.rad(i),0))
  151. end
  152. Moving = false
  153.  
  154. elseif string.lower(Message) == "+flip" then
  155. Moving = true
  156. Chat("Waaawhoooooooo")
  157. for i = 0,360,10 do
  158. wait()
  159. Bot.Head.BodyPosition.position = Me.Character.Torso.CFrame:toWorldSpace(CFrame.new(4,(math.cos(math.rad(i)))*3,(math.sin(math.rad(i))*3)-1)).p
  160. Bot.Head.BodyGyro.cframe = Me.Character.Torso.CFrame:toWorldSpace(CFrame.Angles(math.rad(i),0,0))
  161. end
  162. Moving = false
  163.  
  164. elseif string.sub(string.lower(Message),1,5) == "size;" then
  165. if string.sub(string.lower(Message),7,10) == "x: " then
  166. if type(string.sub(Message,11)) == "number" then
  167. Size[1] == string.sub(Message,11)
  168. Chat("Changed!")
  169. end
  170. elseif string.sub(string.lower(Message),7,10) == "y: " then
  171. if type(string.sub(Message,11)) == "number" then
  172. Size[2] == string.sub(Message,11)
  173. Chat("Changed!")
  174. end
  175.  
  176. elseif string.sub(string.lower(Message),7,10) == "z: " then
  177. if type(string.sub(Message,11)) == "number" then
  178. Size[3] == string.sub(Message,11)
  179. Chat("Changed!")
  180. end
  181. end
  182.  
  183. elseif string.sub(string.lower(Message),1,6) == "+kill@" then
  184. local ChattedPlayer = ScanPlayer(string.sub(string.lower(Message),7))
  185. if ChattedPlayer ~= nil then
  186. Chat("DIE "..string.upper(ChattedPlayer.Name).."!!!")
  187. BotToPlayer1(ChattedPlayer, 0.1)
  188. ChattedPlayer.Character:BreakJoints()
  189. BotToPlayer2()
  190. Chat(ChattedPlayer.Name.." died >:D")
  191. end
  192.  
  193. elseif string.sub(string.lower(Message),1,6) == "+kick@" then
  194. local ChattedPlayer = ScanPlayer(string.sub(string.lower(Message),7))
  195. if ChattedPlayer ~= nil then
  196. BotToPlayer1(ChattedPlayer, 0.2)
  197. ChattedPlayer:Destroy()
  198. BotToPlayer2()
  199. Chat("Neeb")
  200. end
  201. end
  202. end
  203. end)
  204. print("Load LuaModelBot by LuaModeMaker")
  205. Chat("Load LuaModelBot by LuaModeMaker")
  206. -- Made by LuaModelMaker
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement