Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function createArabicVersion()
- wait(1)
- local Players = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local Lighting = game:GetService("Lighting")
- local player = Players.LocalPlayer
- local blur = Instance.new("BlurEffect", Lighting)
- blur.Size = 0
- TweenService:Create(blur, TweenInfo.new(0.5), {Size = 24}):Play()
- local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- screenGui.Name = "StrikeXIntro"
- screenGui.ResetOnSpawn = false
- screenGui.IgnoreGuiInset = true
- local frame = Instance.new("Frame", screenGui)
- frame.Size = UDim2.new(1, 0, 1, 0)
- frame.BackgroundTransparency = 1
- local bg = Instance.new("Frame", frame)
- bg.Size = UDim2.new(1, 0, 1, 0)
- bg.BackgroundColor3 = Color3.fromRGB(20, 0, 0)
- bg.BackgroundTransparency = 1
- bg.ZIndex = 0
- TweenService:Create(bg, TweenInfo.new(0.5), {BackgroundTransparency = 0.3}):Play()
- -- 🔥 اللوجو المتحرك
- local logo = Instance.new("ImageLabel", frame)
- logo.Image = "rbxassetid://132532204774331"
- logo.Size = UDim2.new(0, 150, 0, 150)
- logo.Position = UDim2.new(0.5, 0, 0.3, 0)
- logo.AnchorPoint = Vector2.new(0.5, 0.5)
- logo.BackgroundTransparency = 1
- logo.ImageTransparency = 1
- logo.Rotation = 0
- TweenService:Create(logo, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
- ImageTransparency = 0,
- Size = UDim2.new(0, 200, 0, 200),
- Rotation = 15
- }):Play()
- task.delay(0.5, function()
- TweenService:Create(logo, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {
- Size = UDim2.new(0, 150, 0, 150),
- Rotation = 0
- }):Play()
- end)
- -- الكلمة STRIKE X
- local word = "Strike X"
- local letters = {}
- local function tweenOutAndDestroy()
- for _, label in ipairs(letters) do
- TweenService:Create(label, TweenInfo.new(0.3), {TextTransparency = 1, TextSize = 20}):Play()
- end
- TweenService:Create(bg, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
- TweenService:Create(blur, TweenInfo.new(0.5), {Size = 0}):Play()
- TweenService:Create(logo, TweenInfo.new(0.5), {ImageTransparency = 1}):Play()
- wait(0.6)
- screenGui:Destroy()
- blur:Destroy()
- end
- task.wait(1) -- ندي وقت للوجو قبل ما النص يدخل
- for i = 1, #word do
- local char = word:sub(i, i)
- local label = Instance.new("TextLabel")
- label.Text = char
- label.Font = Enum.Font.GothamBlack
- label.TextColor3 = Color3.new(1, 1, 1)
- label.TextStrokeTransparency = 1
- label.TextTransparency = 1
- label.TextScaled = false
- label.TextSize = 30
- label.Size = UDim2.new(0, 60, 0, 60)
- label.AnchorPoint = Vector2.new(0.5, 0.5)
- label.Position = UDim2.new(0.5, (i - (#word / 2 + 0.5)) * 65, 0.6, 0)
- label.BackgroundTransparency = 1
- label.Parent = frame
- local gradient = Instance.new("UIGradient")
- gradient.Color = ColorSequence.new({
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 100, 100)), -- أحمر فاتح
- ColorSequenceKeypoint.new(1, Color3.fromRGB(180, 0, 0)) -- أحمر غامق
- })
- gradient.Rotation = 90
- gradient.Parent = label
- local tweenIn = TweenService:Create(label, TweenInfo.new(0.3), {TextTransparency = 0, TextSize = 60})
- tweenIn:Play()
- table.insert(letters, label)
- wait(0.25)
- end
- wait(2.5)
- tweenOutAndDestroy()
- wait(1)
- local WindUI = loadstring(game:HttpGet("https://github.com/Footagesus/WindUI/releases/latest/download/main.lua"))()
- -- Create the window with the new theme
- local Window = WindUI:CreateWindow({
- Title = "Strike X",
- Icon = "star",
- Author = "Strike Author",
- Folder = "StrikeScriptsFolder",
- Size = UDim2.fromScale(0.95, 0.85),
- Transparent = false,
- Theme = "Dark", -- Explicitly set the theme
- Resizable = true,
- SideBarWidth = 200,
- Background = "video:https://github.com/f6hub-Dev/Strikevideothemeblack/raw/main/Ken%20Kaneki%20Black%20White%204K%20Live%20Wallpaper%20%5BTubeRipper.cc%5D.webm",
- BackgroundImageTransparency = 0,
- HideSearchBar = false,
- ScrollBarEnabled = true,
- User = {
- Enabled = false,
- Anonymous = false,
- Callback = function()
- print("clicked")
- end,
- },
- })
- local player = game.Players.LocalPlayer
- pcall(function()
- if game.CoreGui:FindFirstChild("StrikeXMenuGUI") then
- game.CoreGui:FindFirstChild("StrikeXMenuGUI"):Destroy()
- end
- end)
- local gui = Instance.new("ScreenGui")
- gui.Name = "StrikeXMenuGUI"
- gui.IgnoreGuiInset = true
- gui.ResetOnSpawn = false
- gui.Parent = game.CoreGui
- local button = Instance.new("ImageButton")
- button.Size = UDim2.new(0, 60, 0, 60)
- button.Position = UDim2.new(0, 70, 0, 70)
- button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- button.Image = "rbxassetid://77596720579122"
- button.Name = "StrikeXToggle"
- button.AutoButtonColor = true
- button.Parent = gui
- local corner = Instance.new("UICorner", button)
- corner.CornerRadius = UDim.new(0, 12)
- local stroke = Instance.new("UIStroke")
- stroke.Thickness = 2
- stroke.Color = Color3.fromRGB(255, 0, 0)
- stroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
- stroke.Parent = button
- local gradient = Instance.new("UIGradient")
- gradient.Color = ColorSequence.new{
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 100, 100)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(150, 0, 0))
- }
- gradient.Rotation = 45
- gradient.Parent = stroke
- local dragging, dragInput, dragStart, startPos
- button.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = button.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- button.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- local delta = input.Position - dragStart
- button.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- local opened = false
- button.MouseButton1Click:Connect(function()
- if opened == false then
- opened = true
- pcall(function() Window:Close() end)
- else
- opened = false
- pcall(function() Window:Open() end)
- end
- end)
- Window:OnDestroy(function()
- gui:Destroy()
- end)
- Window:EditOpenButton({
- Title = "OPEN STRIKE X SCRIPTS",
- Icon = "maximize-2",
- Color = ColorSequence.new({
- ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 0, 0)),
- ColorSequenceKeypoint.new(0.1, Color3.fromRGB(255, 30, 30)),
- ColorSequenceKeypoint.new(0.2, Color3.fromRGB(255, 100, 0)),
- ColorSequenceKeypoint.new(0.3, Color3.fromRGB(255, 180, 0)),
- ColorSequenceKeypoint.new(0.4, Color3.fromRGB(0, 255, 50)),
- ColorSequenceKeypoint.new(0.5, Color3.fromRGB(0, 255, 255)),
- ColorSequenceKeypoint.new(0.6, Color3.fromRGB(0, 160, 255)),
- ColorSequenceKeypoint.new(0.7, Color3.fromRGB(0, 95, 255)),
- ColorSequenceKeypoint.new(0.8, Color3.fromRGB(255, 0, 255)),
- ColorSequenceKeypoint.new(0.9, Color3.fromRGB(255, 50, 255)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 0, 180))
- })
- })
- -- Add tabs
- local AutoFarms = Window:Tab({
- Title = "اشياء اوتوماتيك",
- Icon = "house",
- Locked = false,
- })
- local Seed = Window:Tab({
- Title = "بذور",
- Icon = "apple",
- Locked = false,
- })
- local Gear = Window:Tab({
- Title = "ادوات الزراعة",
- Icon = "hammer",
- Locked = false,
- })
- local CookEvent = Window:Tab({
- Title = "حدث Beanstalk",
- Icon = "brick-wall-fire",
- Locked = false,
- })
- local Egg = Window:Tab({
- Title = "حيوانات الليفة",
- Icon = "dog",
- Locked = false,
- })
- local Teleport = Window:Tab({
- Title = "تنقل",
- Icon = "map-pin-house",
- Locked = false,
- })
- local Player = Window:Tab({
- Title = "الاعب",
- Icon = "person-standing",
- Locked = false,
- })
- local Misc = Window:Tab({
- Title = "اخرى",
- Icon = "box",
- Locked = false,
- })
- -- AutoFarms Tab
- AutoFarms:Button({
- Title = "بيع كل الحقيبة",
- Desc = "",
- Locked = false,
- Callback = function()
- local event = game:GetService("ReplicatedStorage").GameEvents.Sell_Inventory
- local player = game.Players.LocalPlayer.Character
- player:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(87, 3, 0)
- wait(0.3)
- event:FireServer()
- end
- })
- local AutoSell = false
- local AutoSellFruit = AutoFarms:Toggle({
- Title = "بيع كل الحقيبة تلقائي",
- Desc = "يبيع لك كل الحقيبة كل شوية",
- Icon = "",
- Type = "Toggle",
- Default = false,
- Callback = function(state)
- AutoSell = state
- if AutoSell then
- while AutoSell do
- wait(3)
- local event = game:GetService("ReplicatedStorage").GameEvents.Sell_Inventory
- local player = game.Players.LocalPlayer.Character
- player:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(87, 3, 0)
- wait(0.3)
- event:FireServer()
- end
- end
- end
- })
- local HarvestAuraToggle = false
- local HarvestAura = AutoFarms:Toggle({
- Title = "جمع كل المحاصيل القريبة منك",
- Desc = "",
- Icon = "",
- Type = "Toggle",
- Default = false,
- Callback = function(state)
- HarvestAuraToggle = state
- if HarvestAuraToggle then
- if not game:IsLoaded() then
- game.Loaded:Wait()
- end
- -- الخدمات
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Workspace = game:GetService("Workspace")
- local localPlayer = Players.LocalPlayer
- local Backpack = localPlayer:WaitForChild("Backpack")
- local Character = localPlayer.Character or localPlayer.CharacterAdded:Wait()
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- local plant_physical = nil
- -- البحث عن المزرعة
- local farms = Workspace:FindFirstChild("Farm")
- for _, v in farms:GetDescendants() do
- if v.Name == "Owner" and v.Value == localPlayer.Name then
- local plot = v.Parent.Parent
- plant_physical = plot:FindFirstChild("Plants_Physical")
- break
- end
- end
- if not plant_physical then
- return localPlayer:Kick("❌ لم يتم العثور على مجلد النباتات (Plants_Physical)!")
- end
- local harvest_delay = 0.1
- local min_weight = 0.1
- local function is_full()
- return #Backpack:GetChildren() > 200
- end
- -- الدالة الرئيسية
- task.spawn(function()
- while HarvestAuraToggle do
- if not is_full() then
- for _, v in plant_physical:GetDescendants() do
- if v:IsA("ProximityPrompt") and v.Parent and v.Parent.Parent:FindFirstChild("Weight") and v.Parent.Parent:FindFirstChild("Variant") then
- local plant = v.Parent.Parent
- local weight = plant.Weight.Value
- local distance = (plant:GetPivot().Position - Character:GetPivot().Position).Magnitude
- if weight >= tonumber(min_weight) and distance < v.MaxActivationDistance * 2 then
- fireproximityprompt(v)
- task.wait(harvest_delay)
- end
- end
- end
- end
- task.wait()
- end
- end)
- end
- end
- })
- local AutoPlantToggle = false
- local autoPlantConnection
- local AutoPlant = AutoFarms:Toggle({
- Title = "زراعة تلقائى",
- Desc = "يزرع لك في المكان الي انت واقف فيه",
- Icon = "",
- Type = "Toggle",
- Default = false,
- Callback = function(state)
- AutoPlantToggle = state
- if AutoPlantToggle then
- if not game:IsLoaded() then
- game.Loaded:Wait()
- end
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local localPlayer = Players.LocalPlayer
- local backpack = localPlayer:WaitForChild("Backpack")
- local item_types = {
- Seed = "n"
- }
- local inventory_enums = {
- ITEM_TYPE = "b"
- }
- local plant_seed_method = "Player Position"
- local selected_position_plant = nil
- local plant_delay = 0.25
- function get_tool()
- return localPlayer.Character and localPlayer.Character:FindFirstChildOfClass("Tool")
- end
- autoPlantConnection = task.spawn(function()
- while AutoPlantToggle do
- for _, tool in ipairs(backpack:GetChildren()) do
- if tool:IsA("Tool") and tool:GetAttribute(inventory_enums.ITEM_TYPE) == item_types.Seed then
- localPlayer.Character.Humanoid:EquipTool(tool)
- task.wait(0.1)
- local equipped = get_tool()
- if equipped and equipped:GetAttribute("Seed") and equipped:GetAttribute("Quantity") then
- for i = 1, equipped:GetAttribute("Quantity") do
- local position
- if plant_seed_method == "Player Position" then
- position = localPlayer.Character:GetPivot().Position
- elseif plant_seed_method == "Selected Position" and selected_position_plant then
- position = selected_position_plant
- else
- warn("No position selected for planting.")
- break
- end
- ReplicatedStorage:WaitForChild("GameEvents"):WaitForChild("Plant_RE"):FireServer(position, equipped:GetAttribute("Seed"))
- task.wait(plant_delay)
- end
- end
- end
- end
- task.wait()
- end
- end)
- else
- -- إيقاف الزرع التلقائي
- AutoPlantToggle = false
- end
- end
- })
- -- Seed Tab
- local seed = false
- Seed:Button({
- Title = "فتح/قفل متجر البذور",
- Desc = "",
- Locked = false,
- Callback = function()
- if seed == false then
- seed = true
- game:GetService("Players").LocalPlayer.PlayerGui.Seed_Shop.Enabled = true
- else
- seed = false
- game:GetService("Players").LocalPlayer.PlayerGui.Seed_Shop.Enabled = false
- end
- end
- })
- local detectStock = false
- local BuySeedDropDown = Seed:Dropdown({
- Title = "شراء بذور",
- Values = { "Carrot", "Strawberry", "Blueberry", "Orange Tulip", "Tomato", "Corn", "Daffodil", "Watermelon", "Pumpkin", "Apple", "Bamboo", "Coconut", "Cactus", "Dragon Fruit", "Mango", "Grape", "Mushroom", "Pepper", "Cacao", "Beanstalk", "Ember Lily", "Sugar Apple", "Burning Bud", "Giant Pinecone", "Elder Strawberry","Romanesco"},
- Default = { "Carrot" },
- Callback = function(option)
- local args = {option}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BuySeedStock"):FireServer(unpack(args))
- end
- })
- -- Gear Tab
- local BuyGear = Gear:Dropdown({
- Title = "شراء اداه",
- Values = { "Watering Can", "Trading Ticket", "Trowel", "Recall Wrench", "Basic Sprinkler", "Advanced Sprinkler", "Medium Toy", "Medium Treat", "Godly Sprinkler", "Magnifying Glass", "Tanning Mirror", "Master Sprinkler", "Cleaning Spray", "Favorite Tool", "Harvest Tool", "Friendship Pot", "Grandmaster Sprinkler", "Levelup Lollipop"},
- Default = { "Carrot" },
- Callback = function(tooo)
- local args = {tooo}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BuyGearStock"):FireServer(unpack(args))
- end
- })
- -- Egg Tab
- local BuyEgg = Egg:Dropdown({
- Title = "شراء بيض",
- Values = { "Common Egg", "Common Summer Egg", "Rare Summer Egg", "Mythical Egg", "Paradise Egg", "Bug Egg"},
- Default = { "Carrot" },
- Callback = function(egg)
- local args = {egg}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BuyPetEgg"):FireServer(unpack(args))
- end
- })
- -- Teleport Tab
- Teleport:Button({
- Title = "تنقل لمكان بيع الفواكهة",
- Desc = "",
- Locked = false,
- Callback = function()
- local player = game.Players.LocalPlayer.Character
- player:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(87, 3, 0)
- end
- })
- Teleport:Button({
- Title = "تنقل الى محل البذور",
- Desc = "",
- Locked = false,
- Callback = function()
- local player = game.Players.LocalPlayer.Character
- player:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(87, 3, -27)
- end
- })
- Teleport:Button({
- Title = "تنقل الى محل الادوات",
- Desc = "",
- Locked = false,
- Callback = function()
- local player = game.Players.LocalPlayer.Character
- player:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(-285, 3, -14)
- end
- })
- Teleport:Button({
- Title = "تنقل الى محل البيض",
- Desc = "",
- Locked = false,
- Callback = function()
- local player = game.Players.LocalPlayer.Character
- player:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(-288, 3, -1)
- end
- })
- Teleport:Button({
- Title = "تنقل الى الحدث",
- Desc = "",
- Locked = false,
- Callback = function()
- local player = game.Players.LocalPlayer.Character
- player:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(-94, 4, -10)
- end
- })
- -- Player Tab
- local PlayerSpeed = Player:Slider({
- Title = "السرعة",
- Step = 1,
- Value = {
- Min = 16,
- Max = 200,
- Default = 16,
- },
- Callback = function(value)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = value
- end
- })
- local PlayerJump = Player:Slider({
- Title = "النط",
- Step = 1,
- Value = {
- Min = 50,
- Max = 200,
- Default = 50,
- },
- Callback = function(value)
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = value
- end
- })
- getgenv().autoFeedHeld = false
- getgenv().autoFeedAll = false
- local function FeedHeldPlant()
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BeanstalkRESubmitHeldPlant"):FireServer()
- end
- local function FeedAllPlants()
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BeanstalkRESubmitAllPlant"):FireServer()
- end
- local function autoFeedHeldPlant()
- repeat
- wait(1)
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BeanstalkRESubmitHeldPlant"):FireServer()
- until getgenv().autoFeedHeld == false
- end
- local function autoFeedAllPlants()
- repeat
- wait(1)
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BeanstalkRESubmitAllPlant"):FireServer()
- until getgenv().autoFeedAll == false
- end
- CookEvent:Button({
- Title = "اطعام Beanstalk",
- Desc = "",
- Locked = false,
- Callback = function()
- FeedHeldPlant()
- end
- })
- CookEvent:Button({
- Title = "اطعام Beanstalk جميع الفواكهة",
- Desc = "",
- Locked = false,
- Callback = function()
- FeedAllPlants()
- end
- })
- local autoFeedBeanStalkHeld = CookEvent:Toggle({
- Title = "اطعام Beanstalk تلقائي",
- Desc = "",
- Icon = "",
- Type = "Toggle",
- Default = false,
- Callback = function(state)
- getgenv().autoFeedHeld = state
- if state then
- task.spawn(autoFeedHeldPlant)
- end
- end
- })
- local autoFeedAllSeeds = CookEvent:Toggle({
- Title = "اطعام Beanstalk جميع الفواكه تلقائي",
- Desc = "",
- Icon = "",
- Type = "Toggle",
- Default = false,
- Callback = function(state)
- getgenv().autoFeedAll = state
- if state then
- task.spawn(autoFeedAllPlants)
- end
- end
- })
- local open = false
- Gear:Button({
- Title = "فتح/قفل متجر الادوات",
- Desc = "",
- Locked = false,
- Callback = function()
- if open == false then
- open = true
- game:GetService("Players").LocalPlayer.PlayerGui.Gear_Shop.Enabled = true
- else
- open = false
- game:GetService("Players").LocalPlayer.PlayerGui.Gear_Shop.Enabled = false
- end
- end
- })
- local open = false
- Egg:Button({
- Title = "فتح/قفل متجر البيض",
- Desc = "",
- Locked = false,
- Callback = function()
- if open == false then
- open = true
- game:GetService("Players").LocalPlayer.PlayerGui.PetShop_UI.Enabled = true
- else
- open = false
- game:GetService("Players").LocalPlayer.PlayerGui.PetShop_UI.Enabled = false
- end
- end
- })
- local likedPlayers = {}
- -- تحديث أسماء اللاعبين تلقائيًا كل 5 ثواني
- local Players = game:GetService("Players")
- local function getPlayerNames()
- local names = {}
- for _, plr in ipairs(Players:GetPlayers()) do
- if plr.Name ~= Players.LocalPlayer.Name then
- table.insert(names, plr.Name)
- end
- end
- return names
- end
- local playerNames = getPlayerNames()
- -- إنشاء الـDropdown
- local LikePlayer = Misc:Dropdown({
- Title = "اختار لاعب لتضع لايك لحديقته",
- Values = playerNames,
- Default = {playerNames[1] or ""},
- Callback = function(selectedName)
- if likedPlayers[selectedName] then
- WindUI:Notify({
- Title = "تم من قبل!",
- Content = "✅ لقد أعطيت لايك لـ " .. selectedName .. " من قبل.",
- Icon = "alert-octagon",
- Duration = 4
- })
- return
- end
- local playerToLike = Players:FindFirstChild(selectedName)
- if playerToLike then
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("LikeGarden"):InvokeServer(playerToLike)
- likedPlayers[selectedName] = true
- WindUI:Notify({
- Title = "تم!",
- Content = "👍 أعطيت لايك لحديقة " .. selectedName,
- Icon = "heart",
- Duration = 4
- })
- else
- WindUI:Notify({
- Title = "خطأ!",
- Content = "⚠️ اللاعب غير موجود.",
- Icon = "alert-triangle",
- Duration = 4
- })
- end
- end
- })
- task.spawn(function()
- while true do
- task.wait(5)
- local newNames = getPlayerNames()
- LikePlayer:Refresh(newNames)
- end
- end)
- end
- local function createEnglishVersion()
- loadstring(game:HttpGet("https://pastebin.com/pARtr1K1"))()
- end
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local pg = player:WaitForChild("PlayerGui")
- local sg = Instance.new("ScreenGui", pg)
- sg.Name = "StrikeX_LangSelector"
- pcall(
- function()
- sg.ResetOnSpawn = false
- end
- )
- local container = Instance.new("Frame", sg)
- container.AnchorPoint = Vector2.new(0.5, 0.5)
- container.Position = UDim2.new(0.5, 0, 0.5, 0)
- container.Size = UDim2.new(0, 260, 0, 200)
- container.BackgroundTransparency = 0
- container.BorderSizePixel = 0
- local gradient = Instance.new("UIGradient", container)
- gradient.Color =
- ColorSequence.new {
- ColorSequenceKeypoint.new(0, Color3.fromRGB(10, 10, 10)),
- ColorSequenceKeypoint.new(1, Color3.fromRGB(30, 30, 30))
- }
- gradient.Rotation = 90
- Instance.new("UICorner", container).CornerRadius = UDim.new(0, 14)
- local header = Instance.new("TextLabel", container)
- header.Text = "Select Language / اختار لغة"
- header.Font = Enum.Font.GothamBold
- header.TextSize = 18
- header.TextColor3 = Color3.fromRGB(235, 235, 235)
- header.BackgroundTransparency = 1
- header.Size = UDim2.new(1, 0, 0, 40)
- local btnArabic = Instance.new("TextButton", container)
- btnArabic.Text = "عربي"
- btnArabic.Font = Enum.Font.GothamSemibold
- btnArabic.TextSize = 16
- btnArabic.TextColor3 = Color3.fromRGB(240, 240, 240)
- btnArabic.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- btnArabic.Size = UDim2.new(1, -40, 0, 44)
- btnArabic.Position = UDim2.new(0, 20, 0, 60)
- Instance.new("UICorner", btnArabic).CornerRadius = UDim.new(0, 10)
- local btnEnglish = btnArabic:Clone()
- btnEnglish.Text = "English"
- btnEnglish.Position = UDim2.new(0, 20, 0, 120)
- btnEnglish.Parent = container
- local closeBtn = Instance.new("TextButton", container)
- closeBtn.Text = "X"
- closeBtn.Font = Enum.Font.GothamBold
- closeBtn.TextSize = 14
- closeBtn.TextColor3 = Color3.fromRGB(200, 200, 200)
- closeBtn.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- closeBtn.Size = UDim2.new(0, 28, 0, 28)
- closeBtn.Position = UDim2.new(1, -36, 0, 8)
- Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 8)
- local function smoothClick(button, callback)
- button.MouseButton1Click:Connect(
- function()
- TweenService:Create(button, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(40, 40, 40)}):Play()
- task.wait(0.15)
- TweenService:Create(button, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(20, 20, 20)}):Play()
- if callback then
- callback()
- end
- end
- )
- end
- smoothClick(
- btnArabic,
- function()
- createArabicVersion()
- wait()
- sg:Destroy()
- end
- )
- smoothClick(
- btnEnglish,
- function()
- createEnglishVersion()
- wait()
- sg:Destroy()
- end
- )
- smoothClick(
- closeBtn,
- function()
- TweenService:Create(container, TweenInfo.new(0.25, Enum.EasingStyle.Quad), {Size = UDim2.new(0, 260, 0, 0)}):Play(
- )
- task.wait(0.25)
- sg:Destroy()
- end
- )
- container.Size = UDim2.new(0, 260, 0, 0)
- TweenService:Create(container, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {Size = UDim2.new(0, 260, 0, 200)}):Play()
- local dragging, dragStart, startPos
- local function update(input)
- local delta = input.Position - dragStart
- container.Position =
- UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- container.InputBegan:Connect(
- function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = container.Position
- input.Changed:Connect(
- function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end
- )
- end
- end
- )
- container.InputChanged:Connect(
- function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- if dragging then
- update(input)
- end
- end
- end
- )
Advertisement
Add Comment
Please, Sign In to add comment