Advertisement
Wweroblox12121212

Untitled

Jun 29th, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.73 KB | None | 0 0
  1. local name = "Cheese" -- This Is The Name Of Your Cheese
  2. local master = "Chris10002"-- Put Your Name Here
  3. local admins = {"Chris10002"} -- These Are The People Who Can Use Your Cheese
  4. local master2 = game.Players:findFirstChild(master)
  5. if master2 ~= nil then
  6. script.Name = master.."'s Cheese"
  7. local model = Instance.new("Model", Workspace)
  8. model.Name = name
  9. local hum = Instance.new("Humanoid", model)
  10. hum.MaxHealth = 0
  11. local Part = Instance.new("Part", model)
  12. Part.Name = "Head"
  13. Part.TopSurface = "Smooth"
  14. Part.BottomSurface = "Smooth"
  15. Part.Anchored = false
  16. Part.Locked = true
  17. Part.formFactor = "Custom"
  18. Part.BrickColor = BrickColor.new("Bright yellow")
  19. Part.Size = Vector3.new(3, 3, 3)
  20. local bp = Instance.new("BodyPosition", Part)
  21. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  22. local mesh = Instance.new("SpecialMesh", Part)
  23. mesh.Scale = Vector3.new(2,2,2)
  24. mesh.MeshId = "http://www.roblox.com/asset/?id=1090700"
  25. local fire = Instance.new("Fire", Part)
  26. fire.Size = 5
  27. fire.Heat = 2
  28. local fire = Instance.new("Fire", Part)
  29. fire.Size = 5
  30. fire.Heat = 2
  31. local sparks = Instance.new("Sparkles", Part)
  32. function PartChatG(Message)
  33. game:GetService("Chat"):Chat(Part,Message,Enum.ChatColor.Green)
  34. end
  35. function PartChatB(Message)
  36. game:GetService("Chat"):Chat(Part,Message,Enum.ChatColor.Blue)
  37. end
  38. function PartChatR(Message)
  39. game:GetService("Chat"):Chat(Part,Message,Enum.ChatColor.Red)
  40. end
  41. function attack(person)
  42. while true do
  43. wait()
  44. bp.position = person.Character.Torso.Position
  45. end
  46. end
  47. function follow(person)
  48. while true do
  49. wait()
  50. bp.position = person.Character.Torso.Position + Vector3.new(0,5,2)
  51. end
  52. end
  53.  
  54. PartChatG("Loaded "..master.."'s "..name.." By LuaModelMaker")
  55. function findp(name)
  56. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  57. if string.lower(string.sub(v.Name,1,#name))==string.lower(name) then
  58. return v
  59. end
  60. end
  61. end
  62. function onChatted(msg, speaker)
  63. for i,v in pairs(admins) do
  64. if speaker.Name == v then
  65. if string.sub(string.lower(msg), 1, 4) == "test" then
  66. PartChatG("Test Done. I am working fine.")
  67. elseif string.sub(string.lower(msg), 1, 13) == "make it night" then
  68. PartChatG("Now It's Night")
  69. game.Lighting.TimeOfDay = "00:00:00"
  70. elseif string.sub(string.lower(msg), 1, 11) == "make it day" then
  71. PartChatG("Now It's Day")
  72. game.Lighting.TimeOfDay = "14:00:00"
  73. elseif string.sub(string.lower(msg), 1, 13) == "make it foggy" then
  74. PartChatG("I Can Hardly See "..speaker.Name.."!")
  75. game.Lighting.FogEnd = "40"
  76. elseif string.sub(string.lower(msg), 1, 14) == "make it no fog" then
  77. PartChatG("I Can See!")
  78. game.Lighting.FogEnd = "10000"
  79. elseif string.sub(string.lower(msg), 1, 6) == "cheese" then
  80. PartChatG("Did "..speaker.Name.." Say My Name?")
  81. elseif string.sub(string.lower(msg), 1, 7) == "create/" then
  82. PartChatG("Created Script")
  83. elseif string.sub(string.lower(msg), 1, 5) == "edit/" then
  84. PartChatG("Editing Script")
  85. elseif string.sub(string.lower(msg), 1, 5) == "exit/" then
  86. PartChatR("Exiting Script")
  87. elseif string.sub(string.lower(msg), 1, 4) == "run/" then
  88. PartChatR("Running Script")
  89. elseif string.sub(string.lower(msg), 1, 11) == "what is pi?" then
  90. PartChatB("Pi = "..math.pi)
  91. elseif string.sub(string.lower(msg), 1, 18) == "what is your name?" then
  92. PartChatG("My Name Is: "..name)
  93. elseif string.sub(string.lower(msg), 1, 5) == "name " then
  94. name = string.sub(string.lower(msg), 6)
  95. PartChatG("My Name Is: "..name)
  96. elseif string.sub(string.lower(msg), 1, 3) == "die" then
  97. PartChatR("Shutting Down "..name.."...")
  98. script.Disabled = true
  99. elseif string.sub(string.lower(msg), 1, 3) == "lol" then
  100. PartChatG("Did "..speaker.Name.." Just Lol!")
  101. elseif string.sub(string.lower(msg), 1, 4) == "info" then
  102. PartChatB(name.." Made by LuaModelMaker, Is a Fun Tool Command While Being Silly and Interacive")
  103. wait(5)
  104. PartChatB(name.." Is still A Fun Tool To Play With.")
  105. elseif string.sub(string.lower(msg), 1, 2) == ":d" then
  106. PartChatG(":D")
  107. elseif string.sub(string.lower(msg), 1, 2) == "d:" then
  108. PartChatG("D:")
  109. elseif string.sub(string.lower(msg), 1, 3) == "..." then
  110. PartChatG("...")
  111. elseif string.sub(string.lower(msg), 1, 15) == "what chris does" then
  112. PartChatG("Chris10002 trades scripts")
  113. elseif string.sub(string.lower(msg), 1, 12) == "how are you?" then
  114. PartChatG("I'm Doing Fine "..speaker.Name)
  115. elseif string.sub(string.lower(msg), 1, 14) == "what is my id?" then
  116. PartChatG("Your ID is: "..speaker.userId)
  117. elseif string.sub(string.lower(msg), 1, 9) == "come here" then
  118. PartChatG("Comming "..speaker.Name)
  119. elseif string.sub(string.lower(msg), 1, 49) == "what is the id of the person who made this place?" then
  120. PartChatG(game.CreatorId)
  121. elseif string.sub(string.lower(msg), 1, 29) == "what is the id of this place?" then
  122. PartChatG(game.PlaceId)
  123. elseif string.sub(string.lower(msg), 1, 15) == "make cheese cam" then
  124. PartChatG("Cheese Camed")
  125. if game.Workspace.Camera ~= nil then
  126. game.Workspace.Camera.CameraSubject = Part
  127. elseif game.Workspace.Instance ~= nil then -- Usally Camera. But Sometimes Instace
  128. game.Workspace.Instance.CameraSubject = Part
  129. end
  130. elseif string.sub(string.lower(msg), 1, 13) == "un-cheese cam" then
  131. PartChatR("Awww...")
  132. if game.Workspace.Camera ~= nil then
  133. game.Workspace.Camera.CameraSubject = speaker.Character.Humanoid
  134. elseif game.Workspace.Instance ~= nil then -- Usally Camera. But Sometimes Instace
  135. game.Workspace.Instance.CameraSubject = speaker.Character.Humanoid
  136. end
  137. elseif string.sub(string.lower(msg), 1, 15) == "what is my age?" then
  138. PartChatB(speaker.Name.."'s Age Is: "..speaker.AccountAge.." Days Old")
  139. elseif string.sub(string.lower(msg), 1, 19) == "do you like cheese?" then
  140. PartChatG("Derh. I LOVE Cheese")
  141. elseif string.sub(string.lower(msg), 1, 21) == "who is luamodelmaker?" then
  142. PartChatB("The Best Person EVER! He Made Me!")
  143. elseif string.sub(string.lower(msg), 1, 6) == "check " then
  144. local p = findp(string.sub(string.lower(msg), 7))
  145. if p ~= nil then
  146. PartChatR(p.Name.." Is Here")
  147. end
  148. elseif string.sub(string.lower(msg), 1, 5) == "kill " then
  149. local p = findp(string.sub(string.lower(msg), 6))
  150. if p ~= nil then
  151. p.Character:BreakJoints()
  152. PartChatR("Killed "..p.Name)
  153. end
  154. elseif string.sub(string.lower(msg), 1, 4) == "nbc " then
  155. local p = findp(string.sub(string.lower(msg), 5))
  156. if p ~= nil then
  157. p.MembershipTypeReplicate = 0
  158. PartChatR("Non-Membershiped "..p.Name)
  159. end
  160. elseif string.sub(string.lower(msg), 1, 3) == "bc " then
  161. local p = findp(string.sub(string.lower(msg), 4))
  162. if p ~= nil then
  163. p.MembershipTypeReplicate = 1
  164. PartChatB("Builders Clubed "..p.Name)
  165. end
  166. elseif string.sub(string.lower(msg), 1, 4) == "tbc " then
  167. local p = findp(string.sub(string.lower(msg), 8))
  168. if p ~= nil then
  169. p.MembershipTypeReplicate = 2
  170. PartChatB("Turbo Builders Clubed "..p.Name)
  171. end
  172. elseif string.sub(string.lower(msg), 1, 4) == "tbc " then
  173. local p = findp(string.s
  174. elseif string.sub(string.lower(msg), 1, 4) == "obc " then
  175. local p = findp(string.sub(string.lower(msg), 5))
  176. if p ~= nil then
  177. p.MembershipTypeReplicate = 3
  178. PartChatG("Outrageous Builders Clubed "..p.Name)
  179. end
  180.  
  181. elseif string.sub(string.lower(msg), 1, 3) == "ff " then
  182. local p = findp(string.sub(string.lower(msg), 4))
  183. if p ~= nil then
  184. PartChatG("Force Fielded "..p.Name)
  185. local ff = Instance.new("ForceField", p.Character)
  186. end
  187. elseif string.sub(string.lower(msg), 1, 8) == "awesome " then
  188. local p = findp(string.sub(string.lower(msg), 9))
  189. if p ~= nil then
  190. p.Character.Humanoid.MaxHealth = math.huge
  191. PartChatG("Awesomed "..p.Name)
  192. end
  193. elseif string.sub(string.lower(msg), 1, 10) == "unawesome " then
  194. local p = findp(string.sub(string.lower(msg), 11))
  195. if p ~= nil then
  196. p.Character.Humanoid.MaxHealth = 100
  197. PartChatG("Un-Awesomed "..p.Name)
  198. end
  199. elseif string.sub(string.lower(msg), 1, 5) == "heal " then
  200. local p = findp(string.sub(string.lower(msg), 6))
  201. if p ~= nil then
  202. p.Character.Humanoid.Health = 100
  203. PartChatG("Healed "..p.Name)
  204. end
  205. elseif string.sub(string.lower(msg), 1, 5) == "kick " then
  206. local p = findp(string.sub(string.lower(msg), 6))
  207. if p ~= nil then
  208. p:remove()
  209. PartChatR("Kicked "..p.Name)
  210. end
  211. elseif string.sub(string.lower(msg), 1, 6) == "admin " then
  212. local p = findp(string.sub(string.lower(msg), 7))
  213. if p ~= nil then
  214. table.insert(adminlist, p.Name)
  215. PartChatG("Admined "..p.Name)
  216. end
  217. elseif string.sub(string.lower(msg), 1, 8) == "unadmin " then
  218. local p = findp(string.sub(string.lower(msg), 9))
  219. if p ~= nil then
  220. table.remove(adminlist, p.Name)
  221. PartChatR("Admined "..p.Name)
  222. end
  223. elseif string.sub(string.lower(msg), 1, 4) == "zap " then
  224. local p = findp(string.sub(string.lower(msg), 5))
  225. if p ~= nil then
  226. PartChatR("Burning "..p.Name)
  227. laser = Instance.new ("SelectionPartLasso", Part)
  228. laser.Part = Part
  229. laser.Humanoid = p.Character.Humanoid
  230. laser.Color = BrickColor.new("Bright yellow")
  231. wait(2)
  232. p.Character:BreakJoints()
  233. wait(3)
  234. laser:remove()
  235. PartChatR("Zapped "..p.Name)
  236. end
  237. elseif string.sub(string.lower(msg), 1, 7) == "attack " then
  238. local p = findp(string.sub(string.lower(msg), 8))
  239. if p ~= nil then
  240. PartChatR("Attcking "..p.Name)
  241. attack(p)
  242. wait(2)
  243. p.Character:BreakJoints()
  244. follow(master2)
  245. end
  246. elseif string.sub(string.lower(msg), 1, 7) == "follow " then
  247. local p = findp(string.sub(string.lower(msg), 8))
  248. if p ~= nil then
  249. PartChatB("Stalking "..p.Name)
  250. follow(p)
  251. end
  252. end -- 1
  253. end -- 2
  254. end -- 3
  255. end -- 4
  256. game.Players.PlayerAdded:connect(function(p)
  257. p.Chatted:connect(function(msg) onChatted(msg, p) end)
  258. end)
  259. for i,v in pairs(game.Players:GetPlayers()) do
  260. v.Chatted:connect(function(msg) onChatted(msg, v) end)
  261. end
  262.  
  263. while true do
  264. wait()
  265. bp.position = master2.Character.Torso.Position + Vector3.new(0,5,2)
  266. fire.Color = Color3.new(math.random(), math.random(), math.random()*2)
  267. sparks.SparkleColor = Color3.new(math.random(), math.random(), math.random()*2)
  268. fire.SecondaryColor = sparks.SparkleColor
  269. end
  270. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement