-- Server-side Koshkain Script local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Debris = game:GetService("Debris") -- RemoteEvent for attacks local rem = Instance.new("RemoteEvent") rem.Name = "KoshkainRemote" rem.Parent = ReplicatedStorage -- Function to give Koshkain local function giveKoshkain(player) if not player then return end local backpack = player:WaitForChild("Backpack") local Tool = Instance.new("Tool") Tool.Name = "Koshkain" Tool.CanBeDropped = false Tool.RequiresHandle = true local Handle = Instance.new("Part") Handle.Name = "Handle" Handle.Size = Vector3.new(1,1,1) Handle.BrickColor = BrickColor.new("Really black") Handle.Parent = Tool -- Add textures local textureId = "http://www.roblox.com/asset/?id=73760813351302" for _, face in pairs(Enum.NormalId:GetEnumItems()) do local decal = Instance.new("Decal") decal.Face = face decal.Texture = textureId decal.Parent = Handle end -- Mode values for _, name in pairs({"damage","heal","igla","shmel"}) do local val = Instance.new("BoolValue") val.Name = name val.Value = (name=="damage") val.Parent = Handle end -- LocalScript for GUI & mode switching local ls = Instance.new("LocalScript") ls.Name = "KoshkainLocal" ls.Source = [[ local tool = script.Parent local player = game.Players.LocalPlayer local modes = tool.Handle local UIS = game:GetService("UserInputService") local gui = Instance.new("ScreenGui") gui.Name = "Equipped" gui.Parent = player:WaitForChild("PlayerGui") local label = Instance.new("TextLabel") label.Size = UDim2.new(0,400,0,100) label.Position = UDim2.new(0.3,0,0.05,0) label.BackgroundTransparency = 1 label.Text = "Press X to switch modes" label.Parent = gui local modeIndex = 0 local modeList = {"damage","heal","igla","shmel"} local modeText = {"Damage Mode","Healing Mode","Needle Mode","Dead Bee Mode"} UIS.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.X then modeIndex = modeIndex + 1 if modeIndex > #modeList then modeIndex = 1 end for _,v in pairs(modes:GetChildren()) do v.Value = false end modes[modeList[modeIndex]].Value = true label.Text = modeText[modeIndex] end end) ]] ls.Parent = Tool Tool.Parent = backpack end -- Handle SUDO command local currentPassword = math.random(100,999) print("Current SUDO password:", currentPassword) spawn(function() while true do wait(30) currentPassword = math.random(100,999) print("New SUDO password:", currentPassword) end end) Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) local args = msg:split(" ") if #args == 5 and args[1]:upper()=="SUDO" and args[2]:upper()=="GIVE" and args[3]:upper()=="KOSHKAIN" then local targetPlayer = Players:FindFirstChild(args[4]) local password = args[5] if tostring(currentPassword) == password then if targetPlayer then giveKoshkain(targetPlayer) print("Koshkain given to "..targetPlayer.Name) end else print("Incorrect password!") end end end) end) -- RemoteEvent attack handling rem.OnServerEvent:Connect(function(player, mode) local char = player.Character if not char then return end local root = char:FindFirstChild("HumanoidRootPart") if not root then return end local hitbox = Instance.new("Part") hitbox.Size = Vector3.new(4,4,4) hitbox.CFrame = root.CFrame + root.CFrame.LookVector * 5 hitbox.Transparency = 0.5 hitbox.CanCollide = false hitbox.BrickColor = BrickColor.new("Bright red") hitbox.Parent = workspace local weld = Instance.new("WeldConstraint") weld.Part0 = root weld.Part1 = hitbox weld.Parent = hitbox hitbox.Touched:Connect(function(hit) local hum = hit.Parent:FindFirstChildWhichIsA("Humanoid") if hum and hit.Parent ~= char then if mode=="damage" then hum:TakeDamage(10) elseif mode=="heal" then hum.Health = math.min(hum.MaxHealth, hum.Health+10) elseif mode=="igla" then hum:TakeDamage(10) elseif mode=="shmel" then hum.WalkSpeed = 32 hum.JumpPower = 100 delay(3,function() if hum then hum.WalkSpeed = 16 hum.JumpPower = 50 end end) end end end) Debris:AddItem(hitbox,1) end)