#(unsolved)Round System need to add modifiers each round and objective dont know how

1 messages · Page 1 of 1 (latest)

stray talon
#

Im trying to add a round modifier each round a random one, but i dont know where to add it in my script Its
very difficult to do and i want it to make the modifier happen on the map and affect the game please help

#

Please DM if you know how or have some help I will send my script

tulip musk
#

use a table

#

and if statements

stray talon
#

Okay thank you

wheat skiffBOT
#

studio** You are now Level 2! **studio

stray talon
#

well

#

Can i send you my script @tulip musk

#

cus Its kind of confusing

plush fjord
#

send it here, so that more than one person can help out

stray talon
#
local ReplicatedStorage = game:GetService("ReplicatedStorage")


local INTERMISSION_TIME = 6
local ROUND_TIME = 6
local MIN_PLAYERS = 1

local function TeleportPlayers(cframe)
    local players = Players:GetPlayers()
    for i, player in players do
        if not player.Character then continue end

        player.Character:PivotTo(cframe)
    end
end
--Dont touch basic stuff
local function Countdown(duration)
    for i=duration, 1, -1 do
        workspace:SetAttribute("Clock", i)
        task.wait(1)
    end
end

local function Intermission()
    print("INTERMISSION")
    workspace:SetAttribute("Status", "It's normal for") --the values for GUI 
    TeleportPlayers(workspace.SpawnLocation.CFrame * CFrame.new (0, 2, 0))
    Countdown(INTERMISSION_TIME)

end

local function RunGame(map)
    print("GAME BEGINS")
    workspace:SetAttribute("Status", "It's random for") -- GUI VALUES
    TeleportPlayers(map.Spawn.CFrame)
    Countdown(ROUND_TIME)
    map:Destroy()

end
--The infinite Loop for rounds
while true do
    if #Players:GetPlayers() >= MIN_PLAYERS then
        Intermission()

        workspace:SetAttribute("Status", "Loading map")
        local maps = ReplicatedStorage.Maps:GetChildren()
        local randomMap = maps [math.random(#maps)]
        local newMap = randomMap:Clone()
        newMap.Parent = workspace
        task.wait(1)

        RunGame(newMap)
    else--If theres no Players
        print("WAITING FOR PLAYERS...")
        workspace:SetAttribute("Status", "Waiting for players...")
        task.wait(1)
    end

end```
plush fjord
#

i’m not on my computer yet, but in about 30 minutes i can check out your code

stray talon
#

Okay bet thank you so much

#

I really need help im kinda new but me and myf riend have been working a lot

#

we scrapped our last game

#

that we worked on for like 2 weeks

plush fjord
#

damn that sucks

#

any specific reason?

stray talon
#

It wasnt a good idea, kinda quick and Was just like Oh yeah lets make that type game

#

now we have a good idea

#

and know what to do now

stray talon
stray talon
#

(unsolved)Round System need to add modifiers each round and objective dont know how

tulip musk
# stray talon cus Its kind of confusing

did you write this code yourself? (ai does not count, copying from tutorials does not count, and having a friend write it for you does not count. YES I HAVE TO SPECIFY)

stray talon
stray talon
tulip musk
stray talon
#

Okay, so i want to make it so each round has an objective , Right, When the round starts it chooses a random modifier to occur, I’m not sure how to make the modifier, such as, Low gravity , or Meteor shower, Or Falling anvil ETC just random, When the round ends i want the modifier to stop, each round should also choose a random objective and then the Map from the objective Folder, so each objective has its own map., also there’s a new script my friend made to Input his Shop system in so I’ll edit that with the round modifier

#

I can send the new script soon bc he had to incorporate his shop

tulip musk
# stray talon Okay, so i want to make it so each round has an objective , Right, When the roun...

so yea use a table which defines each modifier and how to start and stop them like modifiers["lowgrav"] = {start=function() end, stop=function() end} then yea the rest is very trivial. you'll need to know coding fundamentals to do it, or google some learning help on how to use tables https://create.roblox.com/docs/tutorials/fundamentals/coding-5/intro-to-dictionaries

Learn how to use a dictionary table to tag values within data sets.

#

we wont write it for you tho this is scripting-help not free-scripts.