Advertisement
rrixh

if msg:lower():sub(1,13) ==

Jul 4th, 2023 (edited)
47,201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.06 KB | None | 0 0
  1. local chat = function(MSG) -- kreo thing
  2. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(MSG, "All")
  3. end
  4. local keys = {
  5. ["a"] = 0x41,
  6. ["b"] = 0x42,
  7. ["c"] = 0x43,
  8. ["d"] = 0x44,
  9. ["e"] = 0x45,
  10. ["f"] = 0x46,
  11. ["g"] = 0x47,
  12. ["h"] = 0x48,
  13. ["i"] = 0x49,
  14. ["j"] = 0x4A,
  15. ["k"] = 0x4B,
  16. ["l"] = 0x4C,
  17. ["m"] = 0x4D,
  18. ["n"] = 0x4E,
  19. ["o"] = 0x4F,
  20. ["p"] = 0x50,
  21. ["q"] = 0x51,
  22. ["r"] = 0x52,
  23. ["s"] = 0x53,
  24. ["t"] = 0x54,
  25. ["u"] = 0x55,
  26. ["v"] = 0x56,
  27. ["w"] = 0x57,
  28. ["x"] = 0x58,
  29. ["y"] = 0x59,
  30. ["z"] = 0x5A,
  31. ["0"] = 0x30,
  32. ["1"] = 0x31,
  33. ["2"] = 0x32,
  34. ["3"] = 0x33,
  35. ["4"] = 0x34,
  36. ["5"] = 0x35,
  37. ["6"] = 0x36,
  38. ["7"] = 0x37,
  39. ["8"] = 0x38,
  40. ["9"] = 0x39,
  41. ["+"] = 0xBB,
  42. ["-"] = 0xBD,
  43. [","] = 0xBC,
  44. ["."] = 0xBE,
  45. ["quote"] = 0xDE,
  46. ["esc"] = 0x1B,
  47. ["tab"] = 0x09,
  48. ["caps"] = 0x14,
  49. ["lshift"] = 0xA0,
  50. ["rshift"] = 0xA1,
  51. ["ctrl"] = 0x11,
  52. ["lctrl"] = 0xA2,
  53. ["rctrl"] = 0xA3,
  54. ["lwin"] = 0x5B,
  55. ["rwin"] = 0x5C,
  56. ["alt"] = 0x12,
  57. ["space"] = 0x20,
  58. ["enter"] = 0x0D,
  59. ["backspace"] = 0x08,
  60. ["sshot"] = 0x2C,
  61. ["scrolllock"] = 0x91,
  62. ["pause"] = 0x13,
  63. ["insert"] = 0x2D,
  64. ["home"] = 0x24,
  65. ["pgup"] = 0x21,
  66. ["del"] = 0x2E,
  67. ["end"] = 0x23,
  68. ["pgdn"] = 0x22,
  69. ["up_a"] = 0x26,
  70. ["down_a"] = 0x28,
  71. ["left_a"] = 0x25,
  72. ["right_a"] = 0x27,
  73. ["numlock"] = 0x90,
  74. ["sleep"] = 0x5F,
  75. ["n_0"] = 0x60,
  76. ["n_1"] = 0x61,
  77. ["n_2"] = 0x62,
  78. ["n_3"] = 0x63,
  79. ["n_4"] = 0x64,
  80. ["n_5"] = 0x65,
  81. ["n_6"] = 0x66,
  82. ["n_7"] = 0x67,
  83. ["n_8"] = 0x68,
  84. ["n_9"] = 0x69,
  85. ["v_mute"] = 0xAD,
  86. ["v_up"] = 0xAF,
  87. ["v_down"] = 0xAE,
  88. ["next_t"] = 0xB0,
  89. ["prev_t"] = 0xB1,
  90. ["stop_t"] = 0xB2,
  91. ["pause_t"] = 0xB3,
  92. ["f1"] = 0x70,
  93. ["f2"] = 0x71,
  94. ["f3"] = 0x72,
  95. ["f4"] = 0x73,
  96. ["f5"] = 0x74,
  97. ["f6"] = 0x75,
  98. ["f7"] = 0x76,
  99. ["f8"] = 0x77,
  100. ["f9"] = 0x78,
  101. ["f10"] = 0x79,
  102. ["f11"] = 0x7A,
  103. ["f12"] = 0x7B,
  104. }
  105. function hold(mousebutton)
  106. if mousebutton == "left" then
  107. mouse1down()
  108. elseif mousebutton == "right" then
  109. mouse2down()
  110. end
  111. end
  112. function release(mousebutton)
  113. if mousebutton == "left" then
  114. mouse1up()
  115. elseif mousebutton == "right" then
  116. mouse2up()
  117. end
  118. end
  119. function click(mousebutton)
  120. if mousebutton == "left" then
  121. mouse1click()
  122. elseif mousebutton == "right" then
  123. mouse2click()
  124. end
  125. end
  126. function move(x,y)
  127. mousemoveabs(x,y)
  128. end
  129. function scroll(p)
  130. mousescroll(p)
  131. end
  132. function loopmove(x,y)
  133. if canmove2 ~= false then
  134. canmove1 = false
  135. spawn(function()
  136. local l
  137. l = game:GetService("RunService").Heartbeat:Connect(function()
  138. if canmove1 == true then
  139. l:Disconnect()
  140. end
  141. wait()
  142. move(x,y)
  143. end)
  144. end)
  145. end
  146. end
  147. function breakmove()
  148. canmove1 = false
  149. end
  150. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  151. canmove2 = true
  152. function togglemove()
  153. if canmove1 ~= false then
  154. if canmove2 == false then
  155. canmove2 = true
  156. elseif canmove2 == true then
  157. canmove2 = false
  158. mx = mouse.X
  159. my = mouse.Y
  160. spawn(function()
  161. local l
  162. l = game:GetService("RunService").Heartbeat:Connect(function()
  163. if canmove2 == true then
  164. l:Disconnect()
  165. end
  166. wait()
  167. move(mx,my)
  168. end)
  169. end)
  170. end
  171. end
  172. end
  173. function type(string)
  174. for _,char in pairs(string:split("")) do
  175. wait(0.01)
  176. if char == " " then
  177. keypress(keys["space"])
  178. else
  179. if char:upper() == char and (char ~= "," and char ~= "." and char ~= "-" and char ~= "+" and char ~= "'" and char ~= '"' and char ~= "<" and char ~= ">" and char ~= "_" and char ~= "=") then
  180. keypress(keys["lshift"])
  181. keypress(keys[char:lower()])
  182. keyrelease(keys["lshift"])
  183. else
  184. if char == "'" then
  185. keyrelease(keys["caps"])
  186. keyrelease(keys["lshift"])
  187. keypress(keys["quote"])
  188. elseif char == '"' then
  189. keyrelease(keys["caps"])
  190. keypress(keys["lshift"])
  191. keypress(keys["quote"])
  192. keyrelease(keys["lshift"])
  193. elseif char == "<" then
  194. keyrelease(keys["caps"])
  195. keypress(keys["lshift"])
  196. keypress(keys[","])
  197. keyrelease(keys["lshift"])
  198. elseif char == ">" then
  199. keyrelease(keys["caps"])
  200. keypress(keys["lshift"])
  201. keypress(keys["."])
  202. keyrelease(keys["lshift"])
  203. elseif char == "_" then
  204. keyrelease(keys["caps"])
  205. keypress(keys["lshift"])
  206. keypress(keys["-"])
  207. keyrelease(keys["lshift"])
  208. elseif char == "=" then
  209. keyrelease(keys["caps"])
  210. keypress(keys["lshift"])
  211. keypress(keys["+"])
  212. keyrelease(keys["lshift"])
  213. else
  214. keyrelease(keys["caps"])
  215. keyrelease(keys["lshift"])
  216. keypress(keys[char])
  217. end
  218. end
  219. end
  220. end
  221. end
  222. local chatEvents = game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents")
  223. local messageDoneFiltering = chatEvents:WaitForChild("OnMessageDoneFiltering")
  224. messageDoneFiltering.OnClientEvent:Connect(function(message)
  225. local msg = message.Message or ""
  226.  
  227.  
  228.  
  229. print(msg)
  230. local split = msg:split(" ")
  231. if split[1] == ";ms" then
  232. chat("".. split[2] .."")
  233. end
  234. if msg:lower():sub(1,14) == ";xhelulu" then
  235. chat("Mahal Kitaaaa")
  236. end
  237. if msg:lower():sub(1,14) == ";murder" then
  238. workspace:FindFirstChild(game.Players.LocalPlayer.Name).Humanoid.Health = 0
  239. end
  240. if msg:lower():sub(1,13) == ";moveup" then
  241. keyrelease(keys["s"])
  242. keypress(keys["w"])
  243. end
  244. if msg:lower():sub(1,14) == ";moveback" then
  245. keyrelease(keys["w"])
  246. keypress(keys["s"])
  247. end
  248. if msg:lower():sub(1,14) == ";moveleft" then
  249. keyrelease(keys["d"])
  250. keypress(keys["a"])
  251. end
  252. if msg:lower():sub(1,15) == ";moveright" then
  253. keyrelease(keys["a"])
  254. keypress(keys["d"])
  255. end
  256. if msg:lower():sub(1,13) == ";slon" then
  257. keypress(keys["lshift"])
  258. keyrelease(keys["lshift"])
  259. end
  260. if msg:lower():sub(1,14) == ";sloff" then
  261. keypress(keys["lshift"])
  262. keyrelease(keys["lshift"])
  263. end
  264. if msg:lower():sub(1,12) == ";stop" then
  265. keyrelease(keys["w"])
  266. keyrelease(keys["s"])
  267. keyrelease(keys["a"])
  268. keyrelease(keys["d"])
  269. end
  270. if msg:lower():sub(1,5) == ";wave" then
  271. game.Players:Chat("/e wave")
  272. end
  273. if msg:lower():sub(1,6) == ";point" then
  274. game.Players:Chat("/e point")
  275. end
  276. if msg:lower():sub(1,6) == ";laugh" then
  277. game.Players:Chat("/e laugh")
  278. end
  279. if msg:lower():sub(1,6) == ";dance" then
  280. game.Players:Chat("/e dance")
  281. end
  282. if msg:lower():sub(1,7) == ";dance1" then
  283. game.Players:Chat("/e dance1")
  284. end
  285. if msg:lower():sub(1,7) == ";dance2" then
  286. game.Players:Chat("/e dance2")
  287. end
  288. if msg:lower():sub(1,7) == ";dance3" then
  289. game.Players:Chat("/e dance3")
  290. end
  291. if msg:lower():sub(1,12) == ";rotateleft" then
  292. keyrelease(keys["right_a"])
  293. keypress(keys["left_a"])
  294. end
  295. if msg:lower():sub(1,13) == ";rotateright" then
  296. keyrelease(keys["left_a"])
  297. keypress(keys["right_a"])
  298. end
  299. if msg:lower():sub(1,12) == ";rotatestop" then
  300. keyrelease(keys["right_a"])
  301. keyrelease(keys["left_a"])
  302. end
  303. if msg:lower():sub(1,5) == ";jamp" then
  304. keypress(keys["space"])
  305. wait(0.1)
  306. keyrelease(keys["space"])
  307. end
  308.  
  309. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement