Advertisement
Dereks_septini

Project SCP script roblox

Aug 4th, 2024
1,104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.64 KB | Gaming | 0 0
  1. -- Create a ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Name = "DeletePartsGui"
  4. screenGui.Parent = game:GetService("CoreGui")
  5.  
  6. -- Create a Frame to hold the buttons
  7. local frame = Instance.new("Frame")
  8. frame.Size = UDim2.new(0, 200, 0, 150)
  9. frame.Position = UDim2.new(0.5, -100, 0.5, -75) -- Center of the screen
  10. frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  11. frame.Active = true
  12. frame.Draggable = true -- Make the frame draggable
  13. frame.Parent = screenGui
  14.  
  15. -- Create a TextButton to activate the deletion mode
  16. local activateDeleteButton = Instance.new("TextButton")
  17. activateDeleteButton.Size = UDim2.new(0.8, 0, 0.25, 0)
  18. activateDeleteButton.Position = UDim2.new(0.1, 0, 0.2, 0) -- Position inside the frame
  19. activateDeleteButton.Text = "Activate Delete Mode"
  20. activateDeleteButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  21. activateDeleteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  22. activateDeleteButton.Parent = frame
  23.  
  24. -- Create a TextButton to activate the ESP mode
  25. local activateESPButton = Instance.new("TextButton")
  26. activateESPButton.Size = UDim2.new(0.8, 0, 0.25, 0)
  27. activateESPButton.Position = UDim2.new(0.1, 0, 0.6, 0) -- Position inside the frame
  28. activateESPButton.Text = "Activate ESP Mode"
  29. activateESPButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
  30. activateESPButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  31. activateESPButton.Parent = frame
  32.  
  33. -- Variable to store connections
  34. local deleteConnection
  35. local espConnection
  36.  
  37. -- Function to activate the deletion script
  38. local function activateDeleteScript()
  39. local Plr = game:GetService("Players").LocalPlayer
  40. local Mouse = Plr:GetMouse()
  41.  
  42. deleteConnection = Mouse.Button1Down:Connect(function()
  43. if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then return end
  44. if not Mouse.Target then return end
  45. Mouse.Target:Destroy()
  46. end)
  47. end
  48.  
  49. -- Connect delete button click to activate the script
  50. activateDeleteButton.MouseButton1Click:Connect(function()
  51. if not deleteConnection then
  52. activateDeleteScript()
  53. activateDeleteButton.Text = "Delete Mode Activated"
  54. activateDeleteButton.TextColor3 = Color3.fromRGB(200, 200, 200)
  55. activateDeleteButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  56. activateDeleteButton.Active = false -- Disable button after activation
  57. end
  58. end)
  59.  
  60. -- Obfuscated ESP settings
  61. local eS, sP = {
  62. txSz = 15,
  63. clr = Color3.fromRGB(238, 75, 43)
  64. }, game:GetService("Players")
  65.  
  66. -- Create the ESP GUI with obfuscation
  67. local function createESP()
  68. local gI = Instance.new("BillboardGui")
  69. local eL = Instance.new("TextLabel")
  70. gI.Name, gI.ResetOnSpawn, gI.AlwaysOnTop = "ESP_"..math.random(1000), false, true
  71. gI.LightInfluence = 0
  72. gI.Size = UDim2.new(1.75, 0, 1.75, 0)
  73.  
  74. eL.Size = UDim2.new(1, 0, 1, 0)
  75. eL.BackgroundTransparency = 1
  76. eL.TextColor3, eL.TextSize = eS.clr, eS.txSz
  77. eL.Font = Enum.Font.GothamSemibold
  78. eL.Parent = gI
  79. return gI
  80. end
  81.  
  82. -- Update ESP with random behavior
  83. local function updateESP(p)
  84. if p ~= sP.LocalPlayer and p.Character then
  85. local h = p.Character:FindFirstChild("Head")
  86. if h and not h:FindFirstChildWhichIsA("BillboardGui") then
  87. local gI = createESP()
  88. gI.TextLabel.Text = "{" .. string.reverse(p.Name) .. "}" -- Reverse text as obfuscation
  89. gI.Parent = h
  90. end
  91. end
  92. end
  93.  
  94. -- Function to activate the ESP script
  95. local function activateESPScript()
  96. espConnection = game:GetService("RunService").RenderStepped:Connect(function()
  97. if math.random() > 0.5 then -- Randomize execution
  98. for _, plr in ipairs(sP:GetPlayers()) do
  99. updateESP(plr)
  100. end
  101. end
  102. end)
  103.  
  104. -- Handle new players with obfuscation
  105. sP.PlayerAdded:Connect(function(p)
  106. p.CharacterAdded:Connect(function()
  107. wait(math.random(1, 3)) -- Random delay to mimic latency
  108. updateESP(p)
  109. end)
  110. end)
  111. end
  112.  
  113. -- Connect ESP button click to activate the script
  114. activateESPButton.MouseButton1Click:Connect(function()
  115. if not espConnection then
  116. activateESPScript()
  117. activateESPButton.Text = "ESP Mode Activated"
  118. activateESPButton.TextColor3 = Color3.fromRGB(200, 200, 200)
  119. activateESPButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  120. activateESPButton.Active = false -- Disable button after activation
  121. end
  122. end)
  123.  
  124. -- Implement dragging functionality
  125. local dragging = false
  126. local dragStart
  127. local startPos
  128.  
  129. local function update(input)
  130. local delta = input.Position - dragStart
  131. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  132. end
  133.  
  134. frame.InputBegan:Connect(function(input)
  135. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  136. dragging = true
  137. dragStart = input.Position
  138. startPos = frame.Position
  139. input.Changed:Connect(function()
  140. if input.UserInputState == Enum.UserInputState.End then
  141. dragging = false
  142. end
  143. end)
  144. end
  145. end)
  146.  
  147. frame.InputChanged:Connect(function(input)
  148. if input.UserInputType == Enum.UserInputType.MouseMovement then
  149. if dragging then
  150. update(input)
  151. end
  152. end
  153. end)
  154.  
  155. -- Clean up when the GUI is removed
  156. screenGui.AncestryChanged:Connect(function()
  157. if not screenGui.Parent then
  158. if deleteConnection then
  159. deleteConnection:Disconnect()
  160. end
  161. if espConnection then
  162. espConnection:Disconnect()
  163. end
  164. end
  165. end)
  166.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement