Op sercet script
Key RequiredUniversal

Op sercet script

Universal ScriptCyberHackerCyberHacker 9.2K views 167 executesUpdated Apr 12, 2025
0.0/ 5(2 votes)
020% Positive
Lua Script•39 lines (1179 chars)
-- SERVER-SIDE OP SCRIPT WITH KEY SYSTEM

local ReplicatedStorage = game:GetService("ReplicatedStorage")

-- Create Remote
local remote = Instance.new("RemoteEvent")
remote.Name = "BossKeyRemote"
remote.Parent = ReplicatedStorage

-- Secret Key
local validKey = "boss"

remote.OnServerEvent:Connect(function(player, enteredKey)
    if enteredKey == validKey then
        print(player.Name .. " entered the correct key.")

        -- Give OP Sword
        local sword = Instance.new("Tool")
        sword.Name = "Infinity Sword"
        sword.RequiresHandle = false
        sword.CanBeDropped = false
        sword.Parent = player.Backpack

        -- Add OP Effects (e.g., flight, health)
        player.Character.Humanoid.WalkSpeed = 100
        player.Character.Humanoid.JumpPower = 200
        player.Character.Humanoid.MaxHealth = math.huge
        player.Character.Humanoid.Health = math.huge

        -- Kick others (Optional OP action)
        for _, plr in pairs(game.Players:GetPlayers()) do
            if plr ~= player then
                plr:Kick("You were kicked by the boss.")
            end
        end
    else
        player:Kick("Incorrect Key.")
    end
end)

Features & Information

-- SERVER-SIDE OP SCRIPT WITH KEY SYSTEM local ReplicatedStorage = game:GetService("ReplicatedStorage") -- Create Remote local remote = Instance.new("RemoteEvent") remote.Name = "BossKeyRemote" remote.Parent = ReplicatedStorage -- Secret Key local validKey = "boss" remote.OnServerEvent:Connect(function(player, enteredKey) if enteredKey == validKey then print(player.Name .. " entered the correct key.") -- Give OP Sword local sword = Instance.new("Tool") sword.Name = "Infinity Sword" sword.RequiresHandle = false sword.CanBeDropped = false sword.Parent = player.Backpack -- Add OP Effects (e.g., flight, health) player.Character.Humanoid.WalkSpeed = 100 player.Character.Humanoid.JumpPower = 200 player.Character.Humanoid.MaxHealth = math.huge player.Character.Humanoid.Health = math.huge -- Kick others (Optional OP action) for _, plr in pairs(game.Players:GetPlayers()) do if plr ~= player then plr:Kick("You were kicked by the boss.") end end else player:Kick("Incorrect Key.") end end)

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts