duckhive
duckhive
  • Видео 114
  • Просмотров 198 617
How to Make a Inventory System in Roblox Studio
In this tutorial, I'll show you how to create a custom inventory system in Roblox that allows players to equip and unequip tools dynamically. We'll go step-by-step, setting up the inventory UI, adding items, and handling equipping and unequipping through server communication with a RemoteEvent.
🔑 What you'll learn:
-How to build a responsive inventory UI in Roblox
-How to equip and unequip tools with RemoteEvents
-How to manage tools across the client and server
-Best practices for handling item states in Roblox games
This tutorial is perfect for anyone looking to enhance their Roblox game with a functional and interactive inventory system!
If you find this tutorial helpful, don’t forget to like...
Просмотров: 13

Видео

How to Make a Countdown in Roblox Studio
Просмотров 42 часа назад
🔟 How to Create a Countdown Timer in Roblox Studio (10 Seconds Left!) In this tutorial, you'll learn how to make a simple yet effective countdown timer in Roblox Studio, perfect for your games and projects! ⏲️ Whether you're looking to create a tension-building countdown or just want to add a timed challenge, this guide will walk you through the entire process-from creating the timer UI to scri...
How to Make a BETTER Loading Screen in Roblox Studio with a Progress Bar and Fading
Просмотров 152 часа назад
Learn how to make a better loading screen in Roblox Studio with this enhanced tutorial! Whether you're a beginner or an experienced game developer, this video will show you how to create a custom loading screen in Roblox Studio that goes beyond the basics. We’ll walk you through setting up an improved UI, adding animations, and writing an efficient script that will elevate your game and make th...
How to Make a Soccer/Football Game in Unity in 2024: Part 2 - Character Controller
Просмотров 337 часов назад
Part 3 on my Patreon: patreon.com/duckhive_ In this video we are getting our character moving! We will be creating a simple character controller that is driven by a state machine. This will help keep our code nice and clean and give us some modularity to better be able to implement things in the future. Thank you for watching and don't forget to SUBSCRIBE so you don't miss this series!
How to Make a Loading Screen in Roblox Studio
Просмотров 759 часов назад
Learn how to make a loading screen in Roblox Studio with this easy-to-follow tutorial! Whether you’re new to game development or an experienced creator, this video will guide you through creating a custom loading screen in Roblox Studio. From setting up the UI to writing a simple script, you’ll discover how to make a loading screen that enhances your game and improves the player experience. In ...
Scripting a Day Night Cycle in Roblox Studio || EASY Roblox Studio Tutorial 2024
Просмотров 1512 часов назад
We are scripting a Day/Night cycle in Roblox Studio that we can easily tailor to our needs. It's pretty easy to do - we simply must adjust the lighting.ClockTime property. With some math, (that I don't understand either) we'll manipulate the ClockTime property to simulate a full day on an infinite loop. We can then tinker with the day and night length in the settings of the script to our liking...
Procedural Bridge Builder in Unity 3D with Hinge Joints! #unity3d #hingejointunity3d
Просмотров 2012 часов назад
www.patreon.com/duckhive_ This is a simple video about how to build bridges procedurally with hinge joints. We will use a Bridge Builder script that I've already written for you. You can get it for free here: www.patreon.com/posts/procedural-with-111232442?Link& Thanks for watching and please consider subscribing and supporting me on Patreon! (it's just $1)
How to Make a Soccer Football Game in Roblox Studio in 2024: Part 1 - Scene & Camera Setup
Просмотров 11919 часов назад
Part 2: www.patreon.com/duckhive_ www.patreon.com/duckhive_/shop SUBSCRIBE so you don't miss future videos! Today we start a tutorial many of you will hopefully enjoy. We are starting a series on how to make a team-based soccer football game in Roblox Studio. Meaning you can control multiple characters/players on the same team. I have no idea how this is gonna go, but figured I'd give it a shot...
How to Make a Soccer/Football Game in Unity in 2024: Part 1 - Scene Setup
Просмотров 144День назад
Part 2: patreon.com/duckhive_ www.patreon.com/duckhive_/shop Here are the links to the assets I used from Sketchfab: Soccer Field: sketchfab.com/3d-models/football-field-9752185eebef49d78b3ae529ea2235cf Soccer Goal: sketchfab.com/3d-models/soccer-goal-563132a8fdd443b8a4c822f76e1051f6 Soccer Ball: sketchfab.com/3d-models/soccer-ball-46c91864ef384158b0078e20bdbfe3e9 With all that out of the way, ...
Striker Studio Preview - Arcade Soccer/Football Kit for Unity
Просмотров 66День назад
www.patreon.com/duckhive_ www.patreon.com/duckhive_/shop Get it below! www.patreon.com/duckhive_/shop/striker-studio-arcade-soccer-kit-for-317319?Link& *Product is in the ALPHA stage - meaning there is still a lot of functionality yet to be added. The price will increase in the future with added functionality, but you will have access to all future updates if you purchase now. The goal of this ...
Day 21 of making a Soulslike in Unity! || #unity3d #terrytales
Просмотров 3021 день назад
www.patreon.com/duckhive_ www.patreon.com/duckhive_/shop Play it HERE: duckhive.itch.io/terry-tales
Panda Hero + Controller Demo || Unity Asset
Просмотров 1166 месяцев назад
Panda Hero Controller Demo || Unity Asset
Ducky 2D Platformer Controller Demo || Unity Asset
Просмотров 1807 месяцев назад
Ducky 2D Platformer Controller Demo || Unity Asset
Autonomous Agents || AI Steering Behaviors in Unity || Part 2 - Flee
Просмотров 1177 месяцев назад
Autonomous Agents || AI Steering Behaviors in Unity || Part 2 - Flee
Making Blade Ball in Roblox Studio || Part 2
Просмотров 1567 месяцев назад
Making Blade Ball in Roblox Studio || Part 2
Making Blade Ball in Roblox Studio || Part 1
Просмотров 2847 месяцев назад
Making Blade Ball in Roblox Studio || Part 1
Character Rigging in ToonSquid (FAST & EASY) || ToonSquid iPad Animation Tutorial
Просмотров 2,5 тыс.7 месяцев назад
Character Rigging in ToonSquid (FAST & EASY) || ToonSquid iPad Animation Tutorial
The BEST Soccer Video Game of ALL TIME 😤
Просмотров 2767 месяцев назад
The BEST Soccer Video Game of ALL TIME 😤
Autonomous Agents || AI Steering Behaviors in Unity || Part 1 - Seek
Просмотров 2638 месяцев назад
Autonomous Agents || AI Steering Behaviors in Unity || Part 1 - Seek
So I made a Roblox Soccer Football Simulator...
Просмотров 3,4 тыс.8 месяцев назад
So I made a Roblox Soccer Football Simulator...
Ultimate Player Movement in Unity || FREE Download || 2024 Unity GameDev
Просмотров 1548 месяцев назад
Ultimate Player Movement in Unity || FREE Download || 2024 Unity GameDev
Arcade Car Controller in Unity || FREE 2024 Unity Asset Download
Просмотров 3178 месяцев назад
Arcade Car Controller in Unity || FREE 2024 Unity Asset Download
InvisiSphere Racing Kit || Quick Start Guide || Unity Asset Store Asset
Просмотров 1348 месяцев назад
InvisiSphere Racing Kit || Quick Start Guide || Unity Asset Store Asset
InvisiSphere Vehicle Controller || Quick Start Guide || Unity Asset Store Asset
Просмотров 2868 месяцев назад
InvisiSphere Vehicle Controller || Quick Start Guide || Unity Asset Store Asset
InvisiSphere Vehicle Controller || Unity Asset Store Asset || Arcade Vehicle Controller
Просмотров 3848 месяцев назад
InvisiSphere Vehicle Controller || Unity Asset Store Asset || Arcade Vehicle Controller
How to Make a Soccer Game in Roblox Studio || Part 27 - Summary
Просмотров 7 тыс.Год назад
How to Make a Soccer Game in Roblox Studio || Part 27 - Summary
How to Make a Soccer Game in Roblox Studio || Part 26 - Audio
Просмотров 1,6 тыс.Год назад
How to Make a Soccer Game in Roblox Studio || Part 26 - Audio
How to Make a Soccer Game in Roblox Studio || Part 25 - Bug Fixing
Просмотров 1 тыс.Год назад
How to Make a Soccer Game in Roblox Studio || Part 25 - Bug Fixing
How to Make a Soccer Game in Roblox Studio || Part 24 - Shooting Animation
Просмотров 1,2 тыс.Год назад
How to Make a Soccer Game in Roblox Studio || Part 24 - Shooting Animation
How to Make a Soccer Game in Roblox Studio || Part 23 - Sliding/Tackling
Просмотров 1,3 тыс.Год назад
How to Make a Soccer Game in Roblox Studio || Part 23 - Sliding/Tackling

Комментарии

  • @lofitagen
    @lofitagen Час назад

    Can you do it in days and hours?

  • @Bubblx
    @Bubblx 11 часов назад

    Cool!

  • @whispxxr
    @whispxxr 11 часов назад

    This was awesome thank you!!

  • @duckhive-games
    @duckhive-games 12 часов назад

    Project file (FREE): www.patreon.com/posts/how-to-make-in-111571671?Link&

    • @duckhive-games
      @duckhive-games 12 часов назад

      -- Inventory Script (Client-Side) -- Put in "StarterPlayerScripts" local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = game.Players.LocalPlayer local equipToolEvent = ReplicatedStorage:WaitForChild("EquipToolEvent") -- Get the RemoteEvent local inventoryFrame = player.PlayerGui:WaitForChild("InventoryGui"):WaitForChild("Frame") local openButton = player.PlayerGui:WaitForChild("OpenInventoryGui"):WaitForChild("OpenButton") -- Button to open the inventory local closeButton = player.PlayerGui:WaitForChild("InventoryGui"):WaitForChild("CloseButton") -- Button to close the inventory local inventory = {} -- Table to hold player's inventory items local equippedItems = {} -- Table to track currently equipped items local buttonConnections = {} -- To track button click event connections -- Function to toggle inventory visibility local function toggleInventory(isVisible) inventoryFrame.Visible = isVisible closeButton.Visible = isVisible end -- Open inventory when the open button is clicked openButton.MouseButton1Click:Connect(function() toggleInventory(true) -- Show the inventory end) -- Close inventory when the close button is clicked closeButton.MouseButton1Click:Connect(function() toggleInventory(false) -- Hide the inventory end) -- Create the inventory slot template local function createSlot(slotIndex) local slotFrame = Instance.new("Frame") -- Create a frame to hold the slot and equipped label slotFrame.Size = UDim2.new(0.2, 0, 0.2, 0) -- Set size using scale for responsive sizing slotFrame.Name = "Slot_" .. slotIndex slotFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Set the background color to black slotFrame.Parent = inventoryFrame -- Parent frame to inventory frame -- Add UICorner to the slotFrame for rounded corners local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) -- Adjust the corner radius as needed corner.Parent = slotFrame local button = Instance.new("TextButton") -- Create a button for the slot button.Size = UDim2.new(1, 0, 0.8, 0) -- Make the button take up the full width and 80% of the height button.Text = "Empty" -- Default text for the slot button.TextColor3 = Color3.fromRGB(255, 255, 255) -- Set text color to white button.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Set background color to black button.Parent = slotFrame -- Add button to the frame -- Add UICorner to the button for rounded corners local buttonCorner = Instance.new("UICorner") buttonCorner.CornerRadius = UDim.new(0, 10) -- Adjust the corner radius as needed buttonCorner.Parent = button local equippedLabel = Instance.new("TextLabel") -- Create a label to show "Equipped" equippedLabel.Size = UDim2.new(1, 0, 0.2, 0) -- Set label to take up full width and 20% height equippedLabel.Position = UDim2.new(0, 0, 0.8, 0) -- Position label below the button (at 80% height) equippedLabel.Text = "" -- Default to no text equippedLabel.TextColor3 = Color3.fromRGB(255, 255, 255) -- Set text color to white equippedLabel.BackgroundTransparency = 1 -- Make the label background transparent equippedLabel.Parent = slotFrame -- Parent label to the slot frame return button, equippedLabel end -- Equip/Unequip item function local function equipItem(itemName, slotLabel) -- Check if the item is already equipped if equippedItems[itemName] then -- Unequip the tool by notifying the server equipToolEvent:FireServer(itemName, false) -- false = unequip equippedItems[itemName] = nil -- Mark as unequipped locally slotLabel.Text = "" -- Remove the "Equipped" label print(itemName .. " unequipped!") return end -- Equip the new tool by notifying the server equipToolEvent:FireServer(itemName, true) -- true = equip equippedItems[itemName] = true -- Mark as equipped locally slotLabel.Text = "Equipped" -- Show "Equipped" under the item slot print(itemName .. " equipped!") end -- Function to update the inventory GUI local function updateInventoryGui() for i, item in ipairs(inventory) do -- Find or create a slot local slot = inventoryFrame:FindFirstChild("Slot_" .. i) local button, equippedLabel if not slot then button, equippedLabel = createSlot(i) -- Create a new slot if it doesn't exist else button = slot:FindFirstChildOfClass("TextButton") -- Get the button equippedLabel = slot:FindFirstChildOfClass("TextLabel") -- Get the equipped label end -- Ensure we don't connect multiple event listeners to the same button if buttonConnections[i] then buttonConnections[i]:Disconnect() -- Disconnect any previous connection end -- Update the slot text with the item name button.Text = item or "Empty" -- Connect the click event to equip/unequip the item buttonConnections[i] = button.MouseButton1Click:Connect(function() if button.Text ~= "Empty" then equipItem(button.Text, equippedLabel) end end) -- Set the label to "Equipped" if it's currently equipped if equippedItems[item] then equippedLabel.Text = "Equipped" else equippedLabel.Text = "" end end end -- Function to add an item to the inventory local function addItem(itemName) table.insert(inventory, itemName) -- Add the item to the inventory table updateInventoryGui() -- Refresh the inventory UI end -- Initially hide the inventory frame inventoryFrame.Visible = false -- Test: Adding items to the inventory (you can remove this and add items through gameplay later) addItem("Sword") addItem("Slingshot") addItem("Rocket Launcher") addItem("Paintball Gun") addItem("Katana")

    • @duckhive-games
      @duckhive-games 12 часов назад

      -- Inventory Script (Server-side) -- Put in "ServerScriptService" local equipToolEvent = game:GetService("ReplicatedStorage"):WaitForChild("EquipToolEvent") -- Reference to the RemoteEvent -- Event handler for equipping/unequipping tools equipToolEvent.OnServerEvent:Connect(function(player, itemName, isEquipping) -- Check if the item exists in ReplicatedStorage local tool = game.ReplicatedStorage:FindFirstChild(itemName) if tool then if isEquipping then -- Equip the tool by cloning it and placing it in the Backpack local clonedTool = tool:Clone() clonedTool.Parent = player.Backpack -- Add the tool to the player's Backpack print(player.Name .. " has equipped " .. itemName) else -- Unequip the tool by removing it from both the Backpack and the Character local toolInBackpack = player.Backpack:FindFirstChild(itemName) local toolInCharacter = player.Character:FindFirstChild(itemName) if toolInBackpack then toolInBackpack:Destroy() -- Remove the tool from the Backpack end if toolInCharacter then toolInCharacter:Destroy() -- Remove the tool from the Character end print(player.Name .. " has unequipped " .. itemName) end else warn("Item " .. itemName .. " not found in ReplicatedStorage") end end)

  • @CreedChamp
    @CreedChamp 12 часов назад

    do you know how to script game passes for your soccer/football game?

    • @duckhive-games
      @duckhive-games 12 часов назад

      It's been awhile since I've worked with gamepasses, but yea. I'll try and make a video about it in the near future.

  • @CreedChamp
    @CreedChamp 12 часов назад

    first hi

  • @SnowyLeopardFrom1997
    @SnowyLeopardFrom1997 День назад

    Does this work with Unity 2021.3.21f1 LTS? I'll buy it by Monday if so

    • @duckhive-games
      @duckhive-games День назад

      @@SnowyLeopardFrom1997 yes! works with all versions of Unity as well as all render pipelines

    • @SnowyLeopardFrom1997
      @SnowyLeopardFrom1997 23 часа назад

      @@duckhive-games amazing, thank you for the update. When it comes to cars, I don't know if it can work as wheels or maybe even tracks for tanks. Does it work as well? Either way if it works I'll still need it anyway

    • @duckhive-games
      @duckhive-games 23 часа назад

      @@SnowyLeopardFrom1997 you could definitely set a tank up with it as well as any car model. I actually plan on adding an update to where you could even fly a plane. It simply just takes any 3d model you plug into it and makes it follow an invisible sphere. The sphere does all the work. It doesn’t use any wheel colliders or anything so the wheels/tracks won’t rotate (but you can animate the wheels/tracks to rotate whenever the vehicle moves pretty easily). The good about that is that not every vehicle 3d model has the wheels separate but is rather all one piece, so even those models will work with this. Not sure if you mean using it for individual wheels - like using 4 controllers/spheres for each wheel - if so that will not work unfortunately but would be pretty cool and something I can experiment with in future updates

    • @duckhive-games
      @duckhive-games 23 часа назад

      @@SnowyLeopardFrom1997 if you decide to purchase and have any trouble let me know and I’ll be happy to help. Also please considering leaving a review on the unity asset store as nobody has reviewed it yet and that would really help me 🥲. If you purchase it off my itch or Patreon let me know and I’ll send you a voucher to get it on the asset store for no additional charge!

    • @SnowyLeopardFrom1997
      @SnowyLeopardFrom1997 23 часа назад

      @@duckhive-games fair enough, appreciate it my friend. How would that fly a plane, though? I mean planes have to move off the NavMesh, so there's that Apart from that, as soon as I'm home and I need it, I'll absolutely buy it 😄

  • @duckhive-games
    @duckhive-games День назад

    -- Countdown Script (Client-Side) local countdownTime = 10 -- Starting countdown time (in seconds) local textLabel = script.Parent -- Function to start the countdown local function startCountdown() for i = countdownTime, 1, -1 do textLabel.Text = tostring(i) -- Update the text label wait(1) -- Wait for 1 second before the next update end textLabel.Text = "Time's Up!" -- Optional message when countdown ends end -- Start the countdown startCountdown()

  • @duckhive-games
    @duckhive-games День назад

    -- Loading Screen Script (Client-side) local LoadingScreen = script.Parent local Players = game:GetService("Players") local ReplicatedFirst = game:GetService("ReplicatedFirst") local TweenService = game:GetService("TweenService") local fadeDuration = 1 -- Time it takes to fade in/out local progressDuration = 3 -- Time it takes for the loading bar to fill up local loadingScreenDelay = 3 local frame = LoadingScreen:WaitForChild("Frame") local progressBarContainer = frame:WaitForChild("ProgressBarContainer") local progressBar = progressBarContainer:WaitForChild("ProgressBar") local loadingText = frame:WaitForChild("LoadingText") local tweenInfo = TweenInfo.new(fadeDuration, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) -- Function to fade in the loading screen local function fadeIn() local tween = TweenService:Create(frame, tweenInfo, {BackgroundTransparency = 0}) tween:Play() end -- Function to fade out the loading screen (include ALL elements) local function fadeOut() -- Fade out the entire frame, progress bar container, progress bar, and loading text local frameTween = TweenService:Create(frame, tweenInfo, {BackgroundTransparency = 1}) local progressBarContainerTween = TweenService:Create(progressBarContainer, tweenInfo, {BackgroundTransparency = 1}) local progressBarTween = TweenService:Create(progressBar, tweenInfo, {BackgroundTransparency = 1}) local loadingTextTween = TweenService:Create(loadingText, tweenInfo, {TextTransparency = 1}) -- Play all tweens simultaneously frameTween:Play() progressBarContainerTween:Play() progressBarTween:Play() loadingTextTween:Play() -- Wait for all tweens to complete frameTween.Completed:Wait() progressBarContainerTween.Completed:Wait() progressBarTween.Completed:Wait() loadingTextTween.Completed:Wait() end -- Function to animate the loading bar local function animateProgressBar() progressBar.Size = UDim2.new(0, 0, 1, 0) -- Resets to 0 local barTween = TweenService:Create(progressBar, TweenInfo.new(progressDuration), {Size = UDim2.new(1, 0, 1, 0)}) barTween:Play() end -- Function to check if the character is fully loaded local function onCharacterAdded(character) -- Wait for the character to have a humanoid, which indicates it has loaded while not character:FindFirstChild("Humanoid") do wait(0.1) end -- Animate the loading bar animateProgressBar() -- add a small delay (optional) wait(loadingScreenDelay) -- Fade out the loading screen (all elements) after the loading is done fadeOut() -- Hide the loading screen LoadingScreen.Enabled = false end -- Initial fade in of the loading screen LoadingScreen.Enabled = true fadeIn() -- disable the default loading screen ReplicatedFirst:RemoveDefaultLoadingScreen() -- Connect the function to the CharacterAdded event local player = Players.LocalPlayer player.CharacterAdded:Connect(onCharacterAdded) -- If the character is already added, run the function IMMEDIATELY if player.Character then onCharacterAdded(player.Character) end

  • @mrstoon9524
    @mrstoon9524 2 дня назад

    the screen recorder it's so small i'm using a laptop and it's hard to see what you doing, for tutorials it's ok to use 1080p cause most viewers use laptops or monitor with 1080p, anywhy good work.

    • @duckhive-games
      @duckhive-games 2 дня назад

      That’s fair. Sorry man, I’ve already recorded a bunch of these videos this way so it’ll be like this for this series. 🥲 I’ll get a 1080p screen to record on going forward though. Thanks for the comment!

  • @CludzFMFortnite
    @CludzFMFortnite 4 дня назад

    Are you gonna delete this comment?

  • @duckhive-games
    @duckhive-games 4 дня назад

    -- Loading Screen Script (Client-side) local LoadingScreen = script.Parent local Players = game:GetService("Players") local ReplicatedFirst = game:GetService("ReplicatedFirst") local loadingScreenDelay = 3 -- Show the loading screen immediately LoadingScreen.Enabled = true -- Disable the default loading screen ReplicatedFirst:RemoveDefaultLoadingScreen() -- Function to check if the character is fully loaded local function onCharacterAdded(character) -- Wait for the character to have a humanoid, which indicates it has loaded while not character:FindFirstChild("Humanoid") do wait(0.1) end -- add a small delay (optional) wait(loadingScreenDelay) -- Hide the loading screen LoadingScreen.Enabled = false end -- Connect the function to the CharacterAdded event local player = Players.LocalPlayer player.CharacterAdded:Connect(onCharacterAdded) -- If the character is already added, run the function IMMEDIATELY if player.Character then onCharacterAdded(player.Character) end

    • @FlightReviewerREAL
      @FlightReviewerREAL 2 дня назад

      Found you In my recommended!

    • @duckhive-games
      @duckhive-games День назад

      NIce!!

    • @Cheapler
      @Cheapler День назад

      @@duckhive-games how would you add a fade out to the loading screen?

    • @duckhive-games
      @duckhive-games День назад

      @@Cheapler literally making a follow up video right now about this! As well as adding a progress bar. I’ll let you know when I get it uploaded. Should be in about an hour 😁

    • @duckhive-games
      @duckhive-games День назад

      @@Cheapler check this out: ruclips.net/video/lquShn_CuBo/видео.html

  • @duckhive-games
    @duckhive-games 5 дней назад

    -- Day and Night Cycle Script -- Settings local dayLengthInSeconds = 6 -- Length of the day in seconds (10 minutes) local nightLengthInSeconds = 6 -- Length of the night in seconds (10 minutes) local startTime = 6 -- Starting time (6 AM) local endTime = 18 -- Ending time (6 PM) local timeStep = 0.1 -- How much time advances per cycle -- Calculate total cycle duration local totalCycleDuration = dayLengthInSeconds + nightLengthInSeconds -- Get Lighting Service local lighting = game:GetService("Lighting") -- Set initial time lighting.ClockTime = startTime -- Function to advance the time local function advanceTime() while true do -- Calculate the current time as a percentage of the cycle duration local currentTime = lighting.ClockTime local timeProgress = (currentTime - startTime) / (endTime - startTime) -- Check if it's day or night and adjust the time accordingly if currentTime >= startTime and currentTime < endTime then -- Daytime lighting.ClockTime += (timeStep / dayLengthInSeconds) * (endTime - startTime) else -- Nighttime lighting.ClockTime += (timeStep / nightLengthInSeconds) * ((24 - endTime) + startTime) end -- Wrap around the ClockTime if it exceeds 24 hours if lighting.ClockTime >= 24 then lighting.ClockTime -= 24 end -- Wait for a brief period before updating the time again wait(timeStep) end end -- Start the day and night cycle advanceTime()

  • @duckhive-games
    @duckhive-games 5 дней назад

    -- Day and Night Cycle Script -- Settings local dayLengthInSeconds = 6 -- Length of the day in seconds (10 minutes) local nightLengthInSeconds = 6 -- Length of the night in seconds (10 minutes) local startTime = 6 -- Starting time (6 AM) local endTime = 18 -- Ending time (6 PM) local timeStep = 0.1 -- How much time advances per cycle -- Calculate total cycle duration local totalCycleDuration = dayLengthInSeconds + nightLengthInSeconds -- Get Lighting Service local lighting = game:GetService("Lighting") -- Set initial time lighting.ClockTime = startTime -- Function to advance the time local function advanceTime() while true do -- Calculate the current time as a percentage of the cycle duration local currentTime = lighting.ClockTime local timeProgress = (currentTime - startTime) / (endTime - startTime) -- Check if it's day or night and adjust the time accordingly if currentTime >= startTime and currentTime < endTime then -- Daytime lighting.ClockTime += (timeStep / dayLengthInSeconds) * (endTime - startTime) else -- Nighttime lighting.ClockTime += (timeStep / nightLengthInSeconds) * ((24 - endTime) + startTime) end -- Wrap around the ClockTime if it exceeds 24 hours if lighting.ClockTime >= 24 then lighting.ClockTime -= 24 end -- Wait for a brief period before updating the time again wait(timeStep) end end -- Start the day and night cycle advanceTime()

  • @Vivid1233
    @Vivid1233 6 дней назад

    can someone help pls. My issue is: Workspace.ball.GainPossessionHandler:10: attempt to index nil with 'leaderstats' - Server - GainPossessionHandler:10

  • @duckhive-games
    @duckhive-games 7 дней назад

    Get early access to the rest of this series (as well as the project files) on my Patreon for just $1! www.patreon.com/duckhive_

  • @mehmeh8883
    @mehmeh8883 7 дней назад

    Nice! will the package come with AI?

    • @duckhive-games
      @duckhive-games 7 дней назад

      Yea for sure - making good, dynamic AI is really important to me. I've actually already got some basic ai working in it. It's good enough to play a game against and they'll actually score occasionally and play decent defense. You can get it at the link below. I've also lowered the price to $5. www.patreon.com/duckhive_/shop/striker-studio-arcade-soccer-kit-for-317319?source=storefront

    • @mehmeh8883
      @mehmeh8883 7 дней назад

      @@duckhive-games neat, good job

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @duckhive-games
    @duckhive-games 9 дней назад

    Get the project file (and MUCH MORE) HERE: www.patreon.com/duckhive_/shop/roblox-soccer-football-games-package-93613?Link&

  • @oyewumimarvellous
    @oyewumimarvellous 9 дней назад

    Thank you sir

  • @obiagelichinemerem9523
    @obiagelichinemerem9523 10 дней назад

    i have question. if u want to make a ball possession similar to "striker odyssey" on roblox. how do you do it cuz have tried but it ends up bad. Please i need help

  • @Blue_Person101
    @Blue_Person101 11 дней назад

    What app are you using ???

  • @Afastguy123
    @Afastguy123 11 дней назад

    Dude how you tf you get the newBall in shootball.onserverevent without being in the same Function?💀 Edit: nvm i fixed it

  • @TMK899
    @TMK899 12 дней назад

    Attempt to index nil with "shooting"

  • @StudiosCode
    @StudiosCode 13 дней назад

    i remember doing this series and stoping here, well basicly the reason for this dont work is bc this series are outdated.