Advertisement
justneed

tsb d4c stand script

Jan 24th, 2025
213
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.50 KB | Source Code | 0 0
  1. local work = game:GetService("Workspace")
  2.  
  3. local camera = work.CurrentCamera
  4.  
  5. local run = game:GetService("RunService")
  6.  
  7. local vim = game:GetService("VirtualInputManager")
  8.  
  9. local plr = game:GetService("Players")
  10. local me  = plr.LocalPlayer
  11. local hum = me.Character:WaitForChild("Humanoid")
  12. local hrp = me.Character:WaitForChild("HumanoidRootPart")
  13.  
  14. local textchat = game:GetService("TextChatService")
  15. local rep      = game:GetService("ReplicatedStorage")
  16.  
  17. local function update()
  18.     if me.Character then
  19.         hum = me.Character:WaitForChild("Humanoid")
  20.         hrp = me.Character:WaitForChild("HumanoidRootPart")
  21.     end
  22. end
  23.  
  24. me.CharacterAdded:Connect(update)
  25.  
  26. if me.Character then
  27.     update()
  28. end
  29.  
  30. local thrp =  plr[getgenv().target].Character.HumanoidRootPart
  31.  
  32. local cmds = "!summon = summons stand; !desummon = desummons stand; !dm 1, !dm2, !spawn = tp u to secret place; !re = resets stand; !rejoin = rejoins"
  33.  
  34. local con
  35. local back
  36.  
  37. local function unallcon()
  38.     if con then
  39.         con:Disconnect()
  40.         con = nil
  41.     elseif back then
  42.         back:Disconnect()
  43.         back = nil
  44.     end
  45. end
  46.  
  47. local part        = Instance.new("Part")
  48. part.Parent       = work
  49. part.Name         = "StandHolder"
  50. part.Transparency = 0.5
  51.  
  52. run.RenderStepped:Connect(function()
  53.     part.CFrame = hrp.CFrame * CFrame.new(0,-3.6,0)
  54. end)
  55.  
  56. plr[getgenv().target].Chatted:Connect(function(cht)
  57.     if cht == getgenv().summon or cht == "!d4c" then
  58.         con        = game:GetService("RunService").RenderStepped:Connect(function()
  59.             hrp.CFrame = thrp.CFrame * CFrame.new(2,2,2)
  60.             if back then
  61.                 back:Disconnect()
  62.                 back = nil
  63.             end
  64.         end)
  65.     elseif cht == getgenv().desummon or cht == "!und4c" then
  66.         if con then
  67.             con:Disconnect()
  68.             con = nil
  69.         end
  70.     elseif cht == getgenv().desummon or cht == "!re" then
  71.         hum.Health = 0
  72.     elseif cht == getgenv().desummon or cht == "!rejoin" then
  73.         local p = game:GetService("Players"):GetPlayers()
  74.  
  75.         if #p <= 1 then
  76.             p.LocalPlayer:Kick("Rejoin")
  77.             wait()
  78.             game:GetService("TeleportService"):Teleport(game.PlaceId, p.LocalPlayer)
  79.         else
  80.             game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, p.LocalPlayer)
  81.         end
  82.     elseif cht == getgenv().desummon or cht == "!dm 1" then
  83.         if con then
  84.             con:Disconnect()
  85.             con = nil
  86.         end
  87.         back = game:GetService("RunService").RenderStepped:Connect(function()
  88.             hrp.CFrame = thrp.CFrame * CFrame.new(0,0,2)
  89.         end)
  90.        
  91.         vim:SendKeyEvent(true, Enum.KeyCode.One, false, nil)
  92.         vim:SendKeyEvent(false, Enum.KeyCode.One, false, nil)
  93.        
  94.         task.delay(3, function()
  95.             if back then
  96.                 back:Disconnect()
  97.                 back = nil
  98.             end
  99.  
  100.             hrp.CFrame = CFrame.new(-63.777462, 29.2539902, 20354.3281, -0.983045936, 2.8585065e-08, 0.183359459, 2.55275587e-08, 1, -1.90352996e-08, -0.183359459, -1.40318548e-08, -0.983045935)
  101.         end)
  102.     elseif cht == getgenv().desummon or cht == "!dm 2" then
  103.         if con then
  104.             con:Disconnect()
  105.             con = nil
  106.         end
  107.         back = game:GetService("RunService").RenderStepped:Connect(function()
  108.             hrp.CFrame = thrp.CFrame * CFrame.new(0,0,2)
  109.         end)
  110.        
  111.         vim:SendKeyEvent(true, Enum.KeyCode.One, false, nil)
  112.         vim:SendKeyEvent(false, Enum.KeyCode.One, false, nil)
  113.        
  114.         task.delay(3, function()
  115.             if back then
  116.                 back:Disconnect()
  117.                 back = nil
  118.             end
  119.  
  120.             hrp.CFrame = CFrame.new(1063.86121, 131.87764, 23009.5918, 0.721722603, 2.22606982e-08, -0.692182422, -6.3002612e-09, 1, 2.55910244e-08, 0.692182422, -1.41086902e-08, 0.721722603)
  121.         end)
  122.     elseif cht == getgenv().desummon or cht == "!spawn" then
  123.         if con then
  124.             con:Disconnect()
  125.             con = nil
  126.         end
  127.         back = game:GetService("RunService").RenderStepped:Connect(function()
  128.             hrp.CFrame = thrp.CFrame * CFrame.new(0,0,2)
  129.         end)
  130.        
  131.         vim:SendKeyEvent(true, Enum.KeyCode.One, false, nil)
  132.         vim:SendKeyEvent(false, Enum.KeyCode.One, false, nil)
  133.        
  134.         task.delay(3, function()
  135.             if back then
  136.                 back:Disconnect()
  137.                 back = nil
  138.             end
  139.  
  140.             hrp.CFrame = CFrame.new(420.357178, 628.256104, -512.956848, -0.779876947, -3.33290373e-08, 0.625932872, 2.49408281e-08, 1, 8.43218473e-08, -0.625932872, 8.13719438e-08, -0.779876947)
  141.         end)
  142.     end
  143. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement