Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 = "rbxassetid://114215709259365",
- 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 = "star",
- CornerRadius = UDim.new(0, 16),
- StrokeThickness = 1,
- Color = ColorSequence.new(
- Color3.fromHex("FF6666"),
- Color3.fromHex("8B0000")
- ),
- OnlyMobile = false,
- Enabled = true,
- Draggable = true,
- })
- -- 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 ZenEvent = Window:Tab({
- Title = "الحدث",
- 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
- Seed:Button({
- Title = "فتح متجر البذور",
- Desc = "",
- Locked = false,
- Callback = function()
- local path = workspace.NPCS.Sam.HumanoidRootPart.ProximityPrompt
- fireproximityprompt(path)
- end
- })
- 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"},
- 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", "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", "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
- })
- local EspEggToggle = false
- local replicatedStorage = game:GetService("ReplicatedStorage")
- local collectionService = game:GetService("CollectionService")
- local players = game:GetService("Players")
- local runService = game:GetService("RunService")
- local localPlayer = players.LocalPlayer
- local currentCamera = workspace.CurrentCamera
- local hatchFunction = getupvalue(getupvalue(getconnections(replicatedStorage.GameEvents.PetEggService.OnClientEvent)[1].Function, 1), 2)
- local eggModels = getupvalue(hatchFunction, 1)
- local eggPets = getupvalue(hatchFunction, 2)
- local espCache = {}
- local activeEggs = {}
- local function getObjectFromId(objectId)
- for _, eggModel in pairs(eggModels) do
- if eggModel:GetAttribute("OBJECT_UUID") ~= objectId then continue end
- return eggModel
- end
- end
- local function UpdateEsp(objectId, petName)
- local object = getObjectFromId(objectId)
- if not object or not espCache[objectId] then return end
- local eggName = object:GetAttribute("EggName")
- espCache[objectId].Text = `{eggName} | {petName}`
- end
- local function AddEsp(object)
- if object:GetAttribute("OWNER") ~= localPlayer.Name then return end
- local eggName = object:GetAttribute("EggName")
- local petName = eggPets[object:GetAttribute("OBJECT_UUID")]
- local objectId = object:GetAttribute("OBJECT_UUID")
- if not objectId then return end
- local label = Drawing.new("Text")
- label.Text = `{eggName} | {petName or "?"}`
- label.Size = 18
- label.Color = Color3.new(1, 1, 1)
- label.Outline = true
- label.OutlineColor = Color3.new(0, 0, 0)
- label.Center = true
- label.Visible = false
- espCache[objectId] = label
- activeEggs[objectId] = object
- end
- local function RemoveEsp(object)
- if object:GetAttribute("OWNER") ~= localPlayer.Name then return end
- local objectId = object:GetAttribute("OBJECT_UUID")
- if espCache[objectId] then
- espCache[objectId]:Remove()
- espCache[objectId] = nil
- end
- activeEggs[objectId] = nil
- end
- local function UpdateAllEsp()
- if not EspEggToggle then return end
- for objectId, object in pairs(activeEggs) do
- if not object or not object:IsDescendantOf(workspace) then
- activeEggs[objectId] = nil
- if espCache[objectId] then
- espCache[objectId].Visible = false
- end
- continue
- end
- local label = espCache[objectId]
- if label then
- local pos, onScreen = currentCamera:WorldToViewportPoint(object:GetPivot().Position)
- if onScreen then
- label.Position = Vector2.new(pos.X, pos.Y)
- label.Visible = true
- else
- label.Visible = false
- end
- end
- end
- end
- -- ربط البيض الحالي
- for _, object in pairs(collectionService:GetTagged("PetEggServer")) do
- task.spawn(AddEsp, object)
- end
- collectionService:GetInstanceAddedSignal("PetEggServer"):Connect(AddEsp)
- collectionService:GetInstanceRemovedSignal("PetEggServer"):Connect(RemoveEsp)
- -- تأمين hookfunction ضد string error
- local conn = getconnections(replicatedStorage.GameEvents.EggReadyToHatch_RE.OnClientEvent)[1]
- if conn and typeof(conn.Function) == "function" then
- local old
- old = hookfunction(conn.Function, newcclosure(function(objectId, petName)
- UpdateEsp(objectId, petName)
- return old(objectId, petName)
- end))
- else
- warn("⚠️ لم يتم العثور على دالة hook صالحة لـ EggReadyToHatch_RE.")
- end
- -- تحديث كل فريم
- runService.PreRender:Connect(UpdateAllEsp)
- -- التوجل اللي بيشغل ويطفي الـ ESP
- local EspPeg = AutoFarms:Toggle({
- Title = "كشف الحيوان الي داخل البيضة",
- Desc = "",
- Icon = "",
- Type = "Toggle",
- Default = false,
- Callback = function(state)
- EspEggToggle = state
- if not state then
- for _, label in pairs(espCache) do
- label.Visible = false
- end
- end
- 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
- })
- -- ZenEvent Tab
- ZenEvent:Button({
- Title = "اعطاء كل الفواكهة الى Zen",
- Desc = "لازم الفاكهة تكون فيها تطويره Tranquil",
- Locked = false,
- Callback = function()
- local args = {"SubmitAllPlants"}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("ZenQuestRemoteEvent"):FireServer(unpack(args))
- end
- })
- ZenEvent:Button({
- Title = "اعطاء الفاكهة الى Zen",
- Desc = "لازم الفاكهة تكون فيها تطويره Tranquil",
- Locked = false,
- Callback = function()
- local args = {"SubmitHeldPlant"}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("ZenQuestRemoteEvent"):FireServer(unpack(args))
- end
- })
- local BuyEvent = ZenEvent:Dropdown({
- Title = "شراء من متجر الحدث",
- Values = {"Zen Seed Pack", "Zen Egg", "Hot Spring", "Zen Sand", "Tranquil Radar", "Zenflare", "Zen Crate", "Soft Sunshine", "Koi", "Zen Gnome Crate", "Spiked Mango", "Pet Shard Tranquil"},
- Default = { "Carrot" },
- Callback = function(zen)
- local args = {zen}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("BuyEventShopStock"):FireServer(unpack(args))
- end
- })
- ZenEvent:Button({
- Title = "اعطاء الفاكهة الى Zen Shop",
- Desc = "لازم الفاكهة تكون فيها تطويره Tranquil",
- Locked = false,
- Callback = function()
- local args = {"SubmitHeldPlant"}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("ZenAuraRemoteEvent"):FireServer(unpack(args))
- end
- })
- ZenEvent:Button({
- Title = "اعطاء كل الفاكهة الى Zen Shop",
- Desc = "لازم الفاكهة تكون فيها تطويره Tranquil",
- Locked = false,
- Callback = function()
- local args = {"SubmitAllPlants"}
- game:GetService("ReplicatedStorage"):WaitForChild("GameEvents"):WaitForChild("ZenAuraRemoteEvent"):FireServer(unpack(args))
- 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)
Advertisement
Add Comment
Please, Sign In to add comment