3rlilxr

مكمل* | يغتصبك الاعب*

Apr 20th, 2025 (edited)
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.56 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local TweenService = game:GetService("TweenService")
  3. local LocalPlayer = Players.LocalPlayer
  4. local UserInputService = game:GetService("UserInputService")
  5. local RunService = game:GetService("RunService")
  6.  
  7. -- Create the ScreenGui with feminine design
  8. local ScreenGui = Instance.new("ScreenGui")
  9. ScreenGui.Parent = game.CoreGui
  10. ScreenGui.Name = "GirlyNeonGUI"
  11. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  12.  
  13. -- Main Frame with elegant design
  14. local MainFrame = Instance.new("Frame")
  15. MainFrame.Parent = ScreenGui
  16. MainFrame.Size = UDim2.new(0, 320, 0, 180)
  17. MainFrame.Position = UDim2.new(0.5, -160, 0.5, -90)
  18. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 15, 25)
  19. MainFrame.BorderSizePixel = 0
  20. MainFrame.Draggable = true
  21. MainFrame.Active = true
  22. MainFrame.ClipsDescendants = true
  23.  
  24. -- Add elegant floral pattern to background
  25. local BackgroundPattern = Instance.new("ImageLabel")
  26. BackgroundPattern.Parent = MainFrame
  27. BackgroundPattern.Size = UDim2.new(1, 0, 1, 0)
  28. BackgroundPattern.Image = "rbxassetid://13831851435" -- Floral pattern
  29. BackgroundPattern.ImageColor3 = Color3.fromRGB(80, 10, 50)
  30. BackgroundPattern.ImageTransparency = 0.9
  31. BackgroundPattern.ScaleType = Enum.ScaleType.Tile
  32. BackgroundPattern.TileSize = UDim2.new(0, 100, 0, 100)
  33. BackgroundPattern.ZIndex = 0
  34.  
  35. -- Rounded corners
  36. local UICorner = Instance.new("UICorner")
  37. UICorner.Parent = MainFrame
  38. UICorner.CornerRadius = UDim.new(0, 14)
  39.  
  40. -- Pink neon glow
  41. local glow = Instance.new("ImageLabel")
  42. glow.Parent = MainFrame
  43. glow.Size = UDim2.new(1, 20, 1, 20)
  44. glow.Position = UDim2.new(0, -10, 0, -10)
  45. glow.BackgroundTransparency = 1
  46. glow.Image = "rbxassetid://5028857084"
  47. glow.ImageColor3 = Color3.fromRGB(255, 100, 200)
  48. glow.ScaleType = Enum.ScaleType.Slice
  49. glow.SliceCenter = Rect.new(24, 24, 276, 276)
  50. glow.ZIndex = 0
  51.  
  52. -- Pulsing glow animation
  53. RunService.Heartbeat:Connect(function()
  54. local pulse = math.sin(tick() * 5) * 0.1 + 0.9
  55. glow.ImageTransparency = 1 - (pulse * 0.6)
  56. end)
  57.  
  58. -- Elegant Title Bar
  59. local TitleBar = Instance.new("Frame")
  60. TitleBar.Parent = MainFrame
  61. TitleBar.Size = UDim2.new(1, 0, 0, 32)
  62. TitleBar.BackgroundColor3 = Color3.fromRGB(40, 20, 40)
  63. TitleBar.BorderSizePixel = 0
  64.  
  65. -- Title glow effect
  66. local titleGlow = Instance.new("Frame")
  67. titleGlow.Parent = TitleBar
  68. titleGlow.Size = UDim2.new(1, 0, 1, 0)
  69. titleGlow.BackgroundColor3 = Color3.fromRGB(255, 120, 200)
  70. titleGlow.BorderSizePixel = 0
  71. titleGlow.BackgroundTransparency = 0.85
  72. titleGlow.ZIndex = 0
  73.  
  74. -- Pretty Title Label
  75. local TitleLabel = Instance.new("TextLabel")
  76. TitleLabel.Parent = TitleBar
  77. TitleLabel.Size = UDim2.new(0, 180, 1, 0)
  78. TitleLabel.Position = UDim2.new(0, 10, 0, 0)
  79. TitleLabel.Text = "يتغصبك الاعب | ممارسه جنسيه 👙💋"
  80. TitleLabel.TextColor3 = Color3.fromRGB(255, 200, 230)
  81. TitleLabel.BackgroundTransparency = 1
  82. TitleLabel.Font = Enum.Font.GothamSemibold
  83. TitleLabel.TextSize = 14
  84. TitleLabel.TextXAlignment = Enum.TextXAlignment.Left
  85. TitleLabel.ZIndex = 2
  86.  
  87. -- Heart icon
  88. local HeartIcon = Instance.new("ImageLabel")
  89. HeartIcon.Parent = TitleLabel
  90. HeartIcon.Size = UDim2.new(0, 16, 0, 16)
  91. HeartIcon.Position = UDim2.new(0, -20, 0.5, -8)
  92. HeartIcon.Image = "rbxassetid://11348122410"
  93. HeartIcon.ImageColor3 = Color3.fromRGB(255, 120, 200)
  94. HeartIcon.BackgroundTransparency = 1
  95. HeartIcon.ZIndex = 2
  96.  
  97. -- Elegant Close Button
  98. local CloseButton = Instance.new("TextButton")
  99. CloseButton.Parent = TitleBar
  100. CloseButton.Size = UDim2.new(0, 32, 1, 0)
  101. CloseButton.Position = UDim2.new(1, -32, 0, 0)
  102. CloseButton.Text = "X"
  103. CloseButton.TextColor3 = Color3.fromRGB(255, 180, 220)
  104. CloseButton.BackgroundColor3 = Color3.fromRGB(80, 30, 60)
  105. CloseButton.BorderSizePixel = 0
  106. CloseButton.Font = Enum.Font.GothamBold
  107. CloseButton.TextSize = 18
  108. CloseButton.ZIndex = 2
  109.  
  110. -- Close button glow
  111. local closeGlow = Instance.new("Frame")
  112. closeGlow.Parent = CloseButton
  113. closeGlow.Size = UDim2.new(1, 0, 1, 0)
  114. closeGlow.BackgroundColor3 = Color3.fromRGB(255, 100, 150)
  115. closeGlow.BorderSizePixel = 0
  116. closeGlow.BackgroundTransparency = 0.9
  117. closeGlow.ZIndex = 1
  118.  
  119. -- Close button animations
  120. CloseButton.MouseEnter:Connect(function()
  121. TweenService:Create(closeGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.7}):Play()
  122. TweenService:Create(CloseButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  123. end)
  124.  
  125. CloseButton.MouseLeave:Connect(function()
  126. TweenService:Create(closeGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
  127. TweenService:Create(CloseButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 180, 220)}):Play()
  128. end)
  129.  
  130. CloseButton.MouseButton1Down:Connect(function()
  131. TweenService:Create(closeGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.5}):Play()
  132. TweenService:Create(CloseButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 150, 180)}):Play()
  133. end)
  134.  
  135. CloseButton.MouseButton1Up:Connect(function()
  136. TweenService:Create(closeGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.7}):Play()
  137. TweenService:Create(CloseButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  138. wait(0.1)
  139. ScreenGui:Destroy()
  140. end)
  141.  
  142. -- Minimize Button with flower icon
  143. local MinimizeButton = Instance.new("TextButton")
  144. MinimizeButton.Parent = TitleBar
  145. MinimizeButton.Size = UDim2.new(0, 32, 1, 0)
  146. MinimizeButton.Position = UDim2.new(1, -70, 0, 0)
  147. MinimizeButton.Text = "-"
  148. MinimizeButton.TextColor3 = Color3.fromRGB(255, 180, 220)
  149. MinimizeButton.BackgroundColor3 = Color3.fromRGB(70, 30, 60)
  150. MinimizeButton.BorderSizePixel = 0
  151. MinimizeButton.Font = Enum.Font.GothamBold
  152. MinimizeButton.TextSize = 16
  153. MinimizeButton.ZIndex = 2
  154.  
  155. local minimizeGlow = Instance.new("Frame")
  156. minimizeGlow.Parent = MinimizeButton
  157. minimizeGlow.Size = UDim2.new(1, 0, 1, 0)
  158. minimizeGlow.BackgroundColor3 = Color3.fromRGB(200, 100, 200)
  159. minimizeGlow.BorderSizePixel = 0
  160. minimizeGlow.BackgroundTransparency = 0.9
  161. minimizeGlow.ZIndex = 1
  162.  
  163. -- Minimize button animations
  164. MinimizeButton.MouseEnter:Connect(function()
  165. TweenService:Create(minimizeGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.7}):Play()
  166. TweenService:Create(MinimizeButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  167. end)
  168.  
  169. MinimizeButton.MouseLeave:Connect(function()
  170. TweenService:Create(minimizeGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
  171. TweenService:Create(MinimizeButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 180, 220)}):Play()
  172. end)
  173.  
  174. MinimizeButton.MouseButton1Down:Connect(function()
  175. TweenService:Create(minimizeGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.5}):Play()
  176. TweenService:Create(MinimizeButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 150, 180)}):Play()
  177. end)
  178.  
  179. MinimizeButton.MouseButton1Up:Connect(function()
  180. TweenService:Create(minimizeGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.7}):Play()
  181. TweenService:Create(MinimizeButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  182. end)
  183.  
  184. -- Minimize functionality with animation
  185. local minimized = false
  186. MinimizeButton.MouseButton1Click:Connect(function()
  187. if not minimized then
  188. TweenService:Create(MainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 320, 0, 32)}):Play()
  189. MinimizeButton.Text = "❁"
  190. else
  191. TweenService:Create(MainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Quint), {Size = UDim2.new(0, 320, 0, 180)}):Play()
  192. MinimizeButton.Text = "❀"
  193. end
  194. minimized = not minimized
  195. end)
  196.  
  197. -- Player List Button (NEW FEATURE)
  198. local PlayerListButton = Instance.new("TextButton")
  199. PlayerListButton.Parent = TitleBar
  200. PlayerListButton.Size = UDim2.new(0, 32, 1, 0)
  201. PlayerListButton.Position = UDim2.new(1, -108, 0, 0)
  202. PlayerListButton.Text = "👥"
  203. PlayerListButton.TextColor3 = Color3.fromRGB(255, 180, 220)
  204. PlayerListButton.BackgroundColor3 = Color3.fromRGB(60, 25, 50)
  205. PlayerListButton.BorderSizePixel = 0
  206. PlayerListButton.Font = Enum.Font.GothamBold
  207. PlayerListButton.TextSize = 16
  208. PlayerListButton.ZIndex = 2
  209.  
  210. local playerListGlow = Instance.new("Frame")
  211. playerListGlow.Parent = PlayerListButton
  212. playerListGlow.Size = UDim2.new(1, 0, 1, 0)
  213. playerListGlow.BackgroundColor3 = Color3.fromRGB(180, 100, 220)
  214. playerListGlow.BorderSizePixel = 0
  215. playerListGlow.BackgroundTransparency = 0.9
  216. playerListGlow.ZIndex = 1
  217.  
  218. -- Player List Button animations
  219. PlayerListButton.MouseEnter:Connect(function()
  220. TweenService:Create(playerListGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.7}):Play()
  221. TweenService:Create(PlayerListButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  222. end)
  223.  
  224. PlayerListButton.MouseLeave:Connect(function()
  225. TweenService:Create(playerListGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
  226. TweenService:Create(PlayerListButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 180, 220)}):Play()
  227. end)
  228.  
  229. PlayerListButton.MouseButton1Down:Connect(function()
  230. TweenService:Create(playerListGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.5}):Play()
  231. TweenService:Create(PlayerListButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 150, 180)}):Play()
  232. end)
  233.  
  234. PlayerListButton.MouseButton1Up:Connect(function()
  235. TweenService:Create(playerListGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.7}):Play()
  236. TweenService:Create(PlayerListButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  237. end)
  238.  
  239. -- Player List Frame (NEW FEATURE)
  240. local PlayerListFrame = Instance.new("Frame")
  241. PlayerListFrame.Parent = MainFrame
  242. PlayerListFrame.Size = UDim2.new(0.9, 0, 0, 120)
  243. PlayerListFrame.Position = UDim2.new(0.05, 0, 0.3, 0)
  244. PlayerListFrame.BackgroundColor3 = Color3.fromRGB(35, 20, 35)
  245. PlayerListFrame.BorderSizePixel = 0
  246. PlayerListFrame.Visible = false
  247.  
  248. local PlayerListScroll = Instance.new("ScrollingFrame")
  249. PlayerListScroll.Parent = PlayerListFrame
  250. PlayerListScroll.Size = UDim2.new(1, 0, 1, 0)
  251. PlayerListScroll.BackgroundTransparency = 1
  252. PlayerListScroll.ScrollBarThickness = 4
  253. PlayerListScroll.ScrollBarImageColor3 = Color3.fromRGB(255, 120, 200)
  254.  
  255. local PlayerListLayout = Instance.new("UIListLayout")
  256. PlayerListLayout.Parent = PlayerListScroll
  257. PlayerListLayout.Padding = UDim.new(0, 5)
  258.  
  259. -- Toggle Player List (NEW FEATURE)
  260. PlayerListButton.MouseButton1Click:Connect(function()
  261. PlayerListFrame.Visible = not PlayerListFrame.Visible
  262. TargetTextBox.Visible = not TargetTextBox.Visible
  263. ToggleButton.Visible = not ToggleButton.Visible
  264.  
  265. if PlayerListFrame.Visible then
  266. -- Populate player list
  267. PlayerListScroll:ClearAllChildren()
  268.  
  269. for _, player in pairs(Players:GetPlayers()) do
  270. if player ~= LocalPlayer then
  271. local playerButton = Instance.new("TextButton")
  272. playerButton.Parent = PlayerListScroll
  273. playerButton.Size = UDim2.new(1, -10, 0, 25)
  274. playerButton.Text = player.DisplayName .. " (@" .. player.Name .. ")"
  275. playerButton.TextColor3 = Color3.fromRGB(255, 200, 230)
  276. playerButton.BackgroundColor3 = Color3.fromRGB(50, 25, 45)
  277. playerButton.BorderSizePixel = 0
  278. playerButton.Font = Enum.Font.Gotham
  279. playerButton.TextSize = 12
  280. playerButton.TextXAlignment = Enum.TextXAlignment.Left
  281.  
  282. local playerButtonGlow = Instance.new("Frame")
  283. playerButtonGlow.Parent = playerButton
  284. playerButtonGlow.Size = UDim2.new(1, 0, 1, 0)
  285. playerButtonGlow.BackgroundColor3 = Color3.fromRGB(255, 120, 200)
  286. playerButtonGlow.BorderSizePixel = 0
  287. playerButtonGlow.BackgroundTransparency = 0.9
  288. playerButtonGlow.ZIndex = -1
  289.  
  290. playerButton.MouseEnter:Connect(function()
  291. TweenService:Create(playerButtonGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.8}):Play()
  292. end)
  293.  
  294. playerButton.MouseLeave:Connect(function()
  295. TweenService:Create(playerButtonGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
  296. end)
  297.  
  298. playerButton.MouseButton1Click:Connect(function()
  299. TargetTextBox.Text = player.Name
  300. PlayerListFrame.Visible = false
  301. TargetTextBox.Visible = true
  302. ToggleButton.Visible = true
  303. end)
  304. end
  305. end
  306. end
  307. end)
  308.  
  309. -- Pretty Text Box
  310. local TargetTextBox = Instance.new("TextBox")
  311. TargetTextBox.Parent = MainFrame
  312. TargetTextBox.Size = UDim2.new(0.9, 0, 0, 36)
  313. TargetTextBox.Position = UDim2.new(0.05, 0, 0.25, 0)
  314. TargetTextBox.PlaceholderText = "اسم الاعب الذي تريد ان تمارس معه👙"
  315. TargetTextBox.Text = ""
  316. TargetTextBox.TextColor3 = Color3.fromRGB(255, 220, 240)
  317. TargetTextBox.BackgroundColor3 = Color3.fromRGB(40, 25, 40)
  318. TargetTextBox.BorderSizePixel = 0
  319. TargetTextBox.Font = Enum.Font.Gotham
  320. TargetTextBox.TextSize = 14
  321. TargetTextBox.ZIndex = 2
  322.  
  323. local textBoxGlow = Instance.new("Frame")
  324. textBoxGlow.Parent = TargetTextBox
  325. textBoxGlow.Size = UDim2.new(1, 0, 1, 0)
  326. textBoxGlow.BackgroundColor3 = Color3.fromRGB(255, 120, 200)
  327. textBoxGlow.BorderSizePixel = 0
  328. textBoxGlow.BackgroundTransparency = 0.9
  329. textBoxGlow.ZIndex = 1
  330.  
  331. local textBoxCorner = Instance.new("UICorner")
  332. textBoxCorner.Parent = TargetTextBox
  333. textBoxCorner.CornerRadius = UDim.new(0, 8)
  334.  
  335. -- Text box animations
  336. TargetTextBox.Focused:Connect(function()
  337. TweenService:Create(textBoxGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.7}):Play()
  338. TweenService:Create(TargetTextBox, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 230, 240)}):Play()
  339. end)
  340.  
  341. TargetTextBox.FocusLost:Connect(function()
  342. TweenService:Create(textBoxGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
  343. TweenService:Create(TargetTextBox, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  344. end)
  345.  
  346. -- Beautiful Toggle Button
  347. local ToggleButton = Instance.new("TextButton")
  348. ToggleButton.Parent = MainFrame
  349. ToggleButton.Size = UDim2.new(0.9, 0, 0, 36)
  350. ToggleButton.Position = UDim2.new(0.05, 0, 0.65, 0)
  351. ToggleButton.Text = "اشلح/ي"
  352. ToggleButton.TextColor3 = Color3.fromRGB(255, 220, 240)
  353. ToggleButton.BackgroundColor3 = Color3.fromRGB(60, 30, 55)
  354. ToggleButton.BorderSizePixel = 0
  355. ToggleButton.Font = Enum.Font.GothamSemibold
  356. ToggleButton.TextSize = 14
  357. ToggleButton.ZIndex = 2
  358.  
  359. local toggleGlow = Instance.new("Frame")
  360. toggleGlow.Parent = ToggleButton
  361. toggleGlow.Size = UDim2.new(1, 0, 1, 0)
  362. toggleGlow.BackgroundColor3 = Color3.fromRGB(255, 100, 180)
  363. toggleGlow.BorderSizePixel = 0
  364. toggleGlow.BackgroundTransparency = 0.85
  365. toggleGlow.ZIndex = 1
  366.  
  367. local toggleCorner = Instance.new("UICorner")
  368. toggleCorner.Parent = ToggleButton
  369. toggleCorner.CornerRadius = UDim.new(0, 8)
  370.  
  371. -- Sparkle particles for button (NEW EFFECT)
  372. local sparkles = Instance.new("ParticleEmitter")
  373. sparkles.Parent = ToggleButton
  374. sparkles.LightEmission = 1
  375. sparkles.Size = NumberSequence.new(2)
  376. sparkles.Texture = "rbxassetid://242503421"
  377. sparkles.Color = ColorSequence.new(Color3.fromRGB(255, 150, 220))
  378. sparkles.Transparency = NumberSequence.new(0.5)
  379. sparkles.Speed = NumberRange.new(5)
  380. sparkles.Lifetime = NumberRange.new(0.5)
  381. sparkles.Rate = 0
  382. sparkles.Rotation = NumberRange.new(0, 360)
  383. sparkles.SpreadAngle = Vector2.new(0, 360)
  384. sparkles.ZOffset = 1
  385.  
  386. -- Button animations
  387. ToggleButton.MouseEnter:Connect(function()
  388. TweenService:Create(toggleGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.7}):Play()
  389. TweenService:Create(ToggleButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 230, 240)}):Play()
  390. sparkles.Rate = 20
  391. end)
  392.  
  393. ToggleButton.MouseLeave:Connect(function()
  394. TweenService:Create(toggleGlow, TweenInfo.new(0.2), {BackgroundTransparency = 0.85}):Play()
  395. TweenService:Create(ToggleButton, TweenInfo.new(0.2), {TextColor3 = Color3.fromRGB(255, 220, 240)}):Play()
  396. sparkles.Rate = 0
  397. end)
  398.  
  399. ToggleButton.MouseButton1Down:Connect(function()
  400. TweenService:Create(toggleGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.5}):Play()
  401. TweenService:Create(ToggleButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 180, 200)}):Play()
  402. TweenService:Create(ToggleButton, TweenInfo.new(0.1), {Size = UDim2.new(0.85, 0, 0, 34)}):Play()
  403. end)
  404.  
  405. ToggleButton.MouseButton1Up:Connect(function()
  406. TweenService:Create(toggleGlow, TweenInfo.new(0.1), {BackgroundTransparency = 0.7}):Play()
  407. TweenService:Create(ToggleButton, TweenInfo.new(0.1), {TextColor3 = Color3.fromRGB(255, 230, 240)}):Play()
  408. TweenService:Create(ToggleButton, TweenInfo.new(0.1), {Size = UDim2.new(0.9, 0, 0, 36)}):Play()
  409. end)
  410.  
  411. -- Original functionality with added features
  412. local following = false
  413. local targetPlayer = nil
  414. local animationId = "10714360343"
  415. local activeAnimation
  416.  
  417. -- Pretty sound effects
  418. local clickSound = Instance.new("Sound")
  419. clickSound.Parent = ScreenGui
  420. clickSound.SoundId = "rbxassetid://138080962"
  421. clickSound.Volume = 0.4
  422.  
  423. local toggleSound = Instance.new("Sound")
  424. toggleSound.Parent = ScreenGui
  425. toggleSound.SoundId = "rbxassetid://138080833"
  426. toggleSound.Volume = 0.5
  427.  
  428. ToggleButton.MouseButton1Click:Connect(function()
  429. clickSound:Play()
  430.  
  431. if not following then
  432. local targetName = TargetTextBox.Text:lower()
  433. targetPlayer = nil
  434.  
  435. for _, player in pairs(Players:GetPlayers()) do
  436. if player.Name:lower():find(targetName) or player.DisplayName:lower():find(targetName) then
  437. targetPlayer = player
  438. break
  439. end
  440. end
  441.  
  442. if targetPlayer and targetPlayer.Character then
  443. following = true
  444. ToggleButton.Text = "توقف/ي"
  445. toggleSound:Play()
  446.  
  447. -- Play animation
  448. local humanoid = LocalPlayer.Character:FindFirstChildOfClass("Humanoid")
  449. if humanoid then
  450. local animation = Instance.new("Animation")
  451. animation.AnimationId = "rbxassetid://" .. animationId
  452. activeAnimation = humanoid:LoadAnimation(animation)
  453. activeAnimation:Play()
  454. end
  455.  
  456. -- Follow coroutine
  457. coroutine.wrap(function()
  458. while following do
  459. local targetCharacter = targetPlayer.Character
  460. if targetCharacter and targetCharacter.PrimaryPart then
  461. local forwardCFrame = targetCharacter.PrimaryPart.CFrame * CFrame.new(0, 0, -1.5)
  462. local backwardCFrame = targetCharacter.PrimaryPart.CFrame * CFrame.new(0, 0, -1.1)
  463.  
  464. local tweenForward = TweenService:Create(
  465. LocalPlayer.Character.PrimaryPart,
  466. TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
  467. {CFrame = forwardCFrame}
  468. )
  469. tweenForward:Play()
  470. tweenForward.Completed:Wait()
  471.  
  472. local tweenBackward = TweenService:Create(
  473. LocalPlayer.Character.PrimaryPart,
  474. TweenInfo.new(0.15, Enum.EasingStyle.Linear, Enum.EasingDirection.Out),
  475. {CFrame = backwardCFrame}
  476. )
  477. tweenBackward:Play()
  478. tweenBackward.Completed:Wait()
  479. else
  480. following = false
  481. ToggleButton.Text = "START FOLLOWING"
  482. break
  483. end
  484. end
  485. end)()
  486. else
  487. -- Play error sound
  488. local errorSound = Instance.new("Sound")
  489. errorSound.Parent = ScreenGui
  490. errorSound.SoundId = "rbxassetid://138080947"
  491. errorSound.Volume = 0.3
  492. errorSound:Play()
  493. errorSound:Destroy()
  494. end
  495. else
  496. following = false
  497. ToggleButton.Text = "اشلح/ي"
  498. toggleSound:Play()
  499.  
  500. if activeAnimation then
  501. activeAnimation:Stop()
  502. activeAnimation = nil
  503. end
  504. end
  505. end)
  506.  
  507. -- Auto-adjust player list size (NEW FEATURE)
  508. PlayerListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  509. PlayerListScroll.CanvasSize = UDim2.new(0, 0, 0, PlayerListLayout.AbsoluteContentSize.Y)
  510. end)
Add Comment
Please, Sign In to add comment