#code-discussion

1 messages · Page 36 of 1

radiant frost
#

local monster = game.Workspace.MOSNMTA:Clone()

hasty mesa
#

they are the same thing

#

if you look at the document workspace gets Raycast from world root

#

it inherits that method

lunar minnow
#

i don't know what do you want to make

radiant frost
#

chatgpt is always trolling dont use it

#

just read

#

docs

lunar minnow
#

if you want to make chance 50/50 spawning a monster

#

do smth like this

hasty mesa
#

they are both the same method

#

???

#

workspace inherits that from worldroot

#

worldmodel also exists and is also a child of worldroot

#

you can't even create a worldroot

radiant frost
#

theres one

hasty mesa
#

used mainly for viewport frames

#

so it can run animations

#

then don't worry about those

lunar minnow
#

while true do
  local random = math.random(1,2)
   local monster = game.replicatedstorege.MOSNMTA2
  if random == 1 then
  local Cloning = monster:Clone(game.Workspace)
else
   print("No Monster")
  end
end
#

and put monster in replicatedstorage

#

i think this should work

#

oh, so i don't know how to do this then

#

i was just trying to help

#

i did this wrong, true?

#

so i said i ,, so i don't know how to do this then''

#

not making in studio

#

most of the time i use tab to fix

#

???

#

i just use built up features

#

that can help me

#

using tab i think is not embarassing

#
  • after writing this script i corrected myself
real pebble
#

RunService:IsStudio() is this the correct way to check if the client is running on studio ?

slender salmon
#

whats the best way to go about handling beam/drag moves with the mouse on mobile

hybrid sapphire
#

why you hating for no reason

jade scaffold
#

I cant be asked to fight 500 MOSNMTA2s

jaunty path
#

is it possible to switch my script from script to module? im importing lua files from python and i need them to be module, copy and pasting the script breaks the game

desert sleet
#

Alright so what naming convention should I acc be using cuz some people say camel, pascal, and school says snake case

balmy sorrel
desert sleet
balmy sorrel
desert sleet
balmy sorrel
desert sleet
#

That's depressing

balmy sorrel
#

very 😩

stray oak
#

anyone have character resize module that works for r15 and r6?

thick sigil
#

i lowkey forgot abt this server

bitter sage
#

cuz u asss

stray beacon
#

yo I need help on how to do a skip script that works in a guess the type game

static coral
noble rapids
#

need a Scripter for easy system will pay 200 rbx if it works

true tree
#

did the guy named pi ever rejoin btw, he had a monsters inc pfp

lusty barn
#

why are you using remoteevents??

coral prawn
lusty barn
#

update the head orientation on the client

devout dawn
#

im looking to start scripting, anyone wanna help me out?

radiant frost
devout dawn
jovial raft
devout dawn
jovial raft
jovial raft
jovial raft
devout dawn
#

wb brawldev?

#

people recommend him too

frigid perch
#

Is there already a plugin/library for making irregular ui button hitboxes? I want to make one but not if there’s already one which exists

nimble plover
#

@timber hawk im the one brought in to clean this up apparently

timber hawk
candid helm
#

does someone does websites or idk uses js or sum?

frigid perch
#

I know a little js

#

what do you need to know?

candid helm
#

well its not related to js but if im creating a project can i add the libraries later and modify the code or do you add it first? Ik it might sound lil dumb but i just started

frigid perch
#

wdym

#

I don't think it matters what time you add a library. But if you think you're probably going to use it might as well add it and remove it later if needed

candid helm
#

ohh okk that answers my question thx so much

nimble plover
nimble plover
timber hawk
mint cloud
#

If I’m just coming back to studio after a year, is it better to relearn from the studio wiki or easy commissions

lime iron
little comet
#

check dms

humble schooner
#

can someone add me on dc and call me tommorow and help me do textures in blender and import them to roblox with the color and texture still there i can add you rn but call tommorow if so thank you so so much!

native orchid
#

Use an unreliable remote event and keep the debounce

astral pike
compact summit
#

Hey! Im a dev new to coding and need help with something: So I'm creating a lobby with queues so people can play the main game with other people. My problem is that I starting building the main game with terrain in the lobby instead of a place within the game. Do I need to make the telepprtamtion queue go to the place within the game to work or can I make another game and just make that the lobby. Im not sure if that made sense but yeaa.

golden crown
# astral pike

how do you have 2 accounts running at the same time in studio

golden crown
#

that's not a studio test account, it's a whole other real player account?

golden crown
# astral pike

also try givving the other player admin permission in the group (old group not new communites thing)

silver verge
#

yeah, team test when using team create

astral pike
#

on mac i added another acc to studio and switching accs on mac opens a new window

coral prawn
#
local lastFiredTime = {}
local debounceTime = 0.125
local spamThreshold = 50

updateMousePosRemote.OnServerEvent:Connect(function(player, mousePosition: Vector3)
    if not Validator:validateVector3(mousePosition) then
        return
    end
    
    local currentTime = os.clock()
    if not lastFiredTime[player] then
        lastFiredTime[player] = currentTime
    end
    
    -- If the client fires any faster then they're just lagging themselves out, not the server
    if ((currentTime - lastFiredTime[player]) >= debounceTime) then
        lastFiredTime[player] = currentTime
        fireAllClientsExcept(replicateMousePosRemote, player, mousePosition)
    end
end)
```This is nice, only the client lags if they try to spam (I've tested it).
This is not that important so it uses `UnreliableRemoteEvent`s
dark abyss
#

fuck you scripters

#

im joking im totally not saying this to force one of you unlucky people into my scheme of percentage

red pilot
#

coding pmo so much omg

#

i have to use waitforchild for everything

#

I just spent an hour debugging a simple concept since I forgot to use waitforchild a few times

#

why cant the client just replicate faster

#

fuck ts

remote bear
dense flame
#

that’s so cool

#

hi!! i got a question on how to commission scripters
im genuinely unsure how this process works and been wanting to commission someone to script a full visual novel type game demo — they’d be mostly working with ui’s
how much the average price for that would be both in robux or usd? or like should i be mentioning the budget or ask the scripter on how much thatd cost?

bleak glade
somber vault
bleak glade
graceful aspen
#

can someone help me learn lua

thick holly
#

Anybody tryna make a project together

dark abyss
hard mulch
#

chat how do i lock the mouse to shiftlock?

exotic stream
#

made a breathing system for my game what do yall think and what should i add to it if you have ideas? also turn sound on

exotic stream
#

well not sadly but

charred stream
charred stream
bleak glade
charred stream
#

use ez camera shake cuh

bleak glade
charred stream
bleak glade
#

i have my own preset

#

it works fine

exotic stream
#

reminds me of the sanity mod for minecraft lol

bleak glade
#

thx

exotic stream
# bleak glade thoughts?

oo u could like make the screen shaking start small and then gradually get faster and more extreme

bleak glade
#

ill try that

warm pumice
tight pewter
atomic nymph
#

How to set everyone to blocky characters

#

Anyone got the ids

ornate bough
#

Guys

#

I need help

#

How do I find this gun system does any of this look familiar

#

You can prone look left and right and eject the weapon and break glass

#

And u can hold like 6 weapons at a time plus they drop

ruby cipher
#

make your own system it is good for learning

ornate bough
ornate bough
sacred hinge
#

Are local functions are better than anonymous functions

shell creek
coral prawn
#

These are good enough right? When the player looks up or down, it gets replicated.
It updates every 0.1 seconds so there is a very subtle choppiness.

brittle pond
#

how did u guys learn to make combat systems

hasty pendant
terse wolf
#

anyone a bot dev

hasty pendant
#

a what?

coral prawn
crimson plank
#

Which channel?

#

Definitely not vuuk studios

azure granite
#

how do I tween a model without doing primary part method

quick snow
#

how do i use the humanoid

coarse notch
#

how can i learn scripting? do i watch a tutorial playlist and start scripting or are there better ways

brittle pond
#

any scripter would be interested to work with me in a mmorpg project inspired by that time i got reincarnated as a slime ?
i have worked on approximately every ideas of the game including lvling system so no bandit beating, a immersive storyline and gpod grinding making people play in the long-term
it took me like 2 months but atleast i can say i have cooked with those
i can animate and build

for the moment in SCRIPT term there's only basic systems such as custom basic animation,and dashes
and as a scripter you’ll have to make ui systems,pvp system,race system,datastore,ai mobs, and some tween service

im with a builder and vfx man for the moment and i have contacts that im sure that can join but i just wanna finish the sword combat system atleast to know i have a trusted scripter with me before hiring other devs

the tutorial map is done (only the main map left) all the basic,punch,dash, katana,greatsword and dagger animations are made

so if you're interested dm me ill show you the game progress

thorny osprey
#

my brain going to die

hardy pilot
glossy scarab
#

am i tweaking or was self highlighted before in variables

night maple
#

cause ur defining a new variable

#

not self

gilded dagger
#

i hear a lot of developers prefer body velocity over linear velocity for their combat systems but is body velocity still better even though it is deprecated?

raw talon
#

YO

#

SOMEONE EXPLAIN TO ME BECAUSE SOMEONE JUST SAID THERE A SCRIPTER AND I FEEL LIKE THERE STUPID

#

IT MIGHT JUST BE ME

#

BUT CAN SOMEBODY HELP ME RQ?

raw talon
#

Oh if you wanna hire me for animations i gotchu

edgy ore
#

probably the syntax thingy is thinking u are naming it as a variable :)

lofty plinth
#

Theyve changed it recently which has really annoyed me looking at ma code

alpine jungle
#

can a scripter help me with my script with tween service and change hover size etc

jolly harbor
wicked terrace
#

Anyone wanna learn roblox scripting w me I'm tryna lear it with someone so it isn't boring doing it alone

maiden cedar
#

yo im looking for a scripter to partner and make a horror game

brittle jacinth
hollow turtle
#

would yall play a single player horror game based off donnie darko?

half merlin
#

Imma crash out why does it say path not found

#

I meant the status is no path

vestal mason
#

quite quit

#

u do scripting too?

fringe barn
#

s_mog39 is RoBuilder

vestal mason
#

did u remake

vestal mason
#

did they send hte assets

#

and what module did u use to do the ui tweening

vestal mason
rose notch
vagrant hull
#

can someone test this game rq?

void flint
#

Is typechecking usefull or is it just "good practice"

daring echo
#

Send me a message if you need an investor for Ads for your completed / near completed game ($2000 budget)

flat jacinth
#

yo i leant basic lua ik java + javaScript + a bit of sql and stuff like that so i have knowledge and all of the tutorials i found for advanced scripting talk to me like im a 5 year old and explain things that i could learn in 2 minutes and i couldnt find a proper docs for it

anyoen knows by chance a tutorial thats actually helpful or any good docs?
if you have any tips for my learning that would be helpful too

valid axle
#

is there a rich text property for the send notification ui core from roblox? So you can send text with colors?

wooden hamlet
#

that is if you are using --!native

wooden hamlet
#

devforum is okayish

valid axle
# wooden hamlet I don't think so

is it possible to change the send notification core ui to a custom one? cause you can change the proximity prompts to a custom one too by changing the style

wooden hamlet
valid axle
#

but youre prolly right

wooden hamlet
#

or search it up because I'm pretty certain someone has already remade a version of that supports that you could just take

rose yarrow
#

does anyone else get http 502(bad gateway)

wooden hamlet
valid axle
rose yarrow
rose yarrow
#

only the main game

valid axle
#

oh

rose yarrow
#

its just something simple for getting the location of a server

valid axle
#

is it a api?

rose yarrow
#

yea

void flint
valid axle
#

what type of api

rose yarrow
#

lemme get it rq

wooden hamlet
rose yarrow
rose yarrow
#

local HTTPService = game:GetService("HttpService")

local api = "http://ip-api.com/json/"

local info = HTTPService:JSONDecode(HTTPService:GetAsync(api))

#

in studio it works scrumptiously

#

but in game bro

wooden hamlet
rose yarrow
#

it prints in the server when it tries to get the server info Http 502(Bad Gateway)

#

and it seriously messes up the mission system because its how messaging service gets the server info so people can invade other peoples missions

#

i tried coroutine wrapping it and putting it in a task.spawn function but nothing seems to wkrk

valid axle
#

did you eevn try to open the api???? it literally says a error

#

you need to get your own

sacred isle
#

Hey HD who wants to do work and get paid

valid axle
sacred isle
#

script a tycoon

valid axle
#

go dm

sacred isle
#

ight

valid axle
#

like bro 😭 yall never used a api before??

wooden hamlet
#

I was just attaching what you meant

valid axle
rose yarrow
#

gulp

#

yesterday it wasnf showing one nd i was still getting an error

wooden hamlet
#

oh wait

#

yea I know

#

if it works from your ip, it'll work when you run roblox studio locally

valid axle
#

i got my own region system too and you need your own api to do that

wooden hamlet
#

but since roblox studio servers can have any ip, it won't work

valid axle
wooden hamlet
#

if it has to be your specific ip

valid axle
#

when you run your game in studio you run it from your own pc

#

your own ip

rose yarrow
#

shit now i gotta search up how to do thay

valid axle
#

and when you play a game on roblox its on their servers

valid axle
rose yarrow
#

lemme look for another one ig

valid axle
wooden hamlet
#

I'd screenshot the result if it didn't dox me

#

yea if you use that it probably will work

rose yarrow
#

❤️

#

thanks yall

outer bridge
#

bro, i was just thinking of something nice to do and i got an ai text thing and it was what i wanted so i accepted it and this is what it said 😭

#

fart? really?

carmine tapir
#

How would a flight script work, how can i allow the character to mive around in the air without gravity pulling them down

wet herald
#

im starting to getting back into scripting what should i learn.i have one project completed and i want to start a new one what should i make?

lost glen
carmine tapir
lost glen
#

All I know is that for my old fly script I did so that a part spawn under my feet with 1 transparency (local sided so other player cannot walk on the part as the other guy flying) then when I press F again it stop

#

@carmine tapir

vagrant sand
#

Any scripters looking for cut out of our prof game?

surreal sky
#

do i always need to use a for loop to acces things inside a table i made from saying get children??

#

access'

surreal sky
surreal sky
# rapid eagle example

But if i use getchildren i get confused by how am going to acess each individual button

outer bridge
elder mauve
#

How do these doodle obby games make a script that lets you draw to spawn in doodles for the obby

surreal sky
rapid eagle
rapid eagle
rapid eagle
#

I am not the best when it comes to some types of frameworks

surreal sky
#

hmm okay

rapid eagle
#

I mostly make combat frameworks

surreal sky
#

theres frameworks??

#

i thought i had this shit down but uhmm guess not

arctic badge
#

why doesnt it work chatgpt aint helpin its so ass fr

grave flower
#

guys im making a space fiction game and im using a sphere with a gravity point in the center but on mobile the screen is constantly flicking around has anyone had this problem or does anyone know how to fix it]

grave flower
rapid eagle
arctic badge
#

and when i troubleshoot using print and it doesnt work

#

i dont use gpt unless im rlly lazy but yeah i shouldnt

rapid eagle
#

I remember using it

#

been a long time since I used it

#

it's so not accurate

viral plover
#

What are some good ways to start learning code as a complete beginner

arctic badge
#

okay cool now can you help me with the code

viral plover
grave flower
arctic badge
# rapid eagle ig

js for a sec i think i can make an incremental game if i learn how to script it since i can do all the visual/sound stuff too

fringe barn
rapid eagle
neat copper
#

if an animation is ran on the client side can the server see it?

soft trout
#

executor and decompiler

#

it aint that hard

#

istg ive seen you before

#

😭

rose yarrow
#

esp things thatd be repetitive

#

like tweening

frigid perch
#

Why is there 5 levels of nesting WHYYYYY

#

Cant this all just go in one if statement too?

cedar flicker
#

That would be even worse

#

for readability

#

Just returning would "solve" this.

frigid perch
somber vault
#

Who here can script pet

#

I will pay

frigid perch
somber vault
#

I know but am looking if their Scripter in this sever

cedar flicker
frigid perch
night maple
#

What are some ways I can check if the player is moving or not?

I need to play a crouch animation on a crouched player but I use a remote event to run the animation so if I put code in there it wont be able to update until it's fired again, I don't think using runservice is a good idea because of how much preformance it might take up

night maple
junior crown
# surreal sky But if i use getchildren i get confused by how am going to acess each individual...
local Children = Instance:GetChildren() -- This gets every instance that you see once you expand a folder/in your case the Frame.

for i, v in pairs(Children) do -- it will look through everything that you have inside an istance that has multiple shit inside of it, whether its a table or a folder, v is the instance that this loop is currently on, i is the number of that instance, if the instance would've been 2nd in that folder and you'd print out "Print(I, V)", it'd be something like "2 Instance". If u wanna check if the "V" value is something, u just gotta use regular "if" statement.
if v.Name == "7" then
   ChooseValue:(7)
end
end
cedar flicker
#

Check the magnitude and then you know if hes moving or not

night maple
#
    if humanoid.MoveDirection.Magnitude == 0 then
        print("Still")
    else
        print("Moving")
    end
    
end)```

doesnt fire unless I change my state
#

idk why running isnt accounted for but it js isnt

#

if I'm in place and I jump it prints still

#

if I jump whilst running it prints moving

junior crown
night maple
junior crown
night maple
#

so If theres no input I'd js constantly play the anim

#

that makes sense

#

I'll try that

junior crown
#

input.Ended

#

do the opposite

night maple
#

yeah nah

#

cause its either enabled or disabled

#

no input ended here sadly

#

when I fire it I'm crouched, if I fire it again I'm uncrouched

junior crown
#

??

night maple
#

so I'd need something that checks for my magnitude when I'm crouched

junior crown
#

typa function is this

night maple
#

only thing I'm struggling with is playing the idle anim 😭

#

I'd use adjust speed but idk how to make it work

#

so I'm thinking of other ways

somber vault
#

in my code "local basePlate = game.Workspace.Baseplate

game.Workspace.Baseplate.Transparency = 0.03
game.Workspace.Baseplate.Material = "Brick"

if basePlate.Transparency == 0.03 then
print("yes gang it is")
else
print("nope it isnt lol")
end"

for some reason its printing nope it isnt, but even though i printed 0.03 as the transparency??

junior crown
#

it'll stop the animation

night maple
#

but the code only runs when I fire the event

#

w conquest pfp btw

junior crown
night maple
#
    
     if active then
    animTrack = player.Character.Humanoid.Animator:LoadAnimation(anim)
    
        animTrack:Play()
    else
        animTrack:Stop()
    end
end)
somber vault
junior crown
night maple
#

ok so I've figured out that when I fire the remote event I can enable a function, I did it with runservice but Ion wanna use it

exotic otter
#

been working on an OOP system, but ran into a problem when trying to pass a function that is related to the created object to BindActionAtPriority. The function gets ran but self just returns the binded actions name. Anyone got an idea how to correctly pass the function so i can reference self without a problem in the function?

function Tool:BindKey()
    print("Binding "..self.ToolInfo.Name)
    
    local Priority = self.ComboKey and 2001 or 2000
    
    CAS:BindActionAtPriority(self.ToolInfo.Name, self.HandleTool, false, Priority, self.PrimaryKey)
end

function Tool:HandleTool(actionName, inputState, inputObject, test)
    print(self)
    if not Humanoid:GetAttribute("Ragdoll") and not self:GetActive() then
        if inputState == Enum.UserInputState.Begin then
            local isComboDown = true
            if self.ComboKey then
                isComboDown = self.ComboKey.EnumType == Enum.KeyCode and UIS:IsKeyDown(self.ComboKey) or self.ComboKey.EnumType == Enum.UserInputType and UIS:IsMouseButtonPressed(self.ComboKey)
            end
            if not isComboDown then
                return Enum.ContextActionResult.Pass
            end
        end
                
        Util:SetActive(true)
        
        self:Activate(inputState)
                
        return Enum.ContextActionResult.Sink
    end
    return Enum.ContextActionResult.Pass
end
ocean valley
#

Looking for scripter/animator/ui maker/dev/modeler! DM ME or REPLY!

glass pumice
#

so it loses context about the original object

#

sorry for the late response

limpid geode
ocean valley
limpid geode
ocean valley
exotic otter
granite dirge
#

YO can i get help here pls

ocean valley
#

Looking for scripter/animator/ui maker/dev/modeler! DM ME or REPLY!

astral flare
#

Does anyone know how to connect a morph to a rank in a group

#

If so can someone show me how?

static coral
#

might not even need it

#

look into methods related to player objects too

whole solar
#

can anyone help me with teleportation service

cunning trail
#

Either way youre going to want to have a table with ranks and have a seperate script that calls for that table when prompted by the player

cunning trail
whole solar
# cunning trail What specifically

im using teleport async and i have teleport options set up with it too however when the player teleports the data is nil and i cant figure out why

cunning trail
#

To confirm, when you call the teleport command, take each instance and print it back and check console

whole solar
#

wym

cunning trail
#

print placeId, player, and teleportData (? i tihnk its teleportData)

#

So you see in your script where you go Teleport(place, Player, data?)

#

print all 3 and see which ones returning nil

#

or wrap the function in a pcall

whole solar
#

placeid and players should be fine since the player is gettign teleported

#

but the data is nil when your retrieve it

cunning trail
#

The teleportData is nil?

whole solar
#

no

#

when i send teleportdata its fine

#

once i retrieve it its nil

cunning trail
#

I see

#

and youre using GetLocalPlayerTeleportData() to confirm that I presume?

whole solar
#

both the things that get teleport data return nil

cunning trail
#

wtf

whole solar
cunning trail
#

that looks fine

#

Info is returning nil though

whole solar
#

partydata is nil

whole solar
cunning trail
#

i was just gonna say try printing teleportData

#

make sure its a table

whole solar
#

it shows me printing both teleportdata and teleportoptions...

cunning trail
#

Are either showing you a table or are both nil?

#

TeleportOptions should return the instace, TeleportData should return a table

#

but Data is nil TeleportOptions will fail

#

could be a race condition, maybe try coroutine and task.wait(2)?

#

so do like

#
local function Teleport(Player, Info)
    if Info.LobbyType == "Casual" then
        if CasualQueue[Info.Name] and tonumber(CasualQueue[Info.Name].PartyLeader) == Player.UserId then
            local PlayersToTeleport = {}
            local function prepareTeleportData()
                task.wait(2)
                for i, v in pairs(CasualQueue[Info.Name].Players) do
                    local player = Players:GetPlayerByUserId(tonumber(i))
                    if player then
                        table.insert(PlayersToTeleport, player)
                    end
                 -- add something to check that everyone has instrument
                end
                if #PlayersToTeleport == #CasualQueue[Info.Name].Players then
                    local success, errorMessage = pcall(function()
                        local TeleportOptions = Instance.new("TeleportOptions")
                        local teleportData = CasualQueue[Info.Name]

                        print(teleportData)

                        TeleportOptions:SetTeleportData(teleportData)
                        print(TeleportOptions)

                        TS:TeleportPartyAsync(Concert, PlayersToTeleport, TeleportOptions)
                    end)

                    if not success then
                        warn("Teleport failed: " .. errorMessage)
                    end
                else
                    warn("Not all players are ready for teleport!!")
                end
            end

            coroutine.wrap(prepareTeleportData)()

            CasualQueue[Info.Name] = nil
        end
    elseif Info.LobbyType == "Ranked" then
        if RankedQueue[Info.Name] then
        --do same here as you did above basically
        end
    end
end
cunning trail
whole solar
whole solar
cunning trail
#

okay so now you know CasualQueue is the problem

whole solar
#

really?

cunning trail
#

yeah its gotta be returning nil, tahts why prepareTeleportData failed presumably

#

print it to confirm

#

if not queueData then
warn("Casual queue data is nil for: " .. Info.Name)
return -- Exit the function early if data is missing
end

#

like that

#

so when its missing youll get the warn in console and itll exit the function instead of throwing a stack error

whole solar
#

where do i put that?

cunning trail
#

does queueData.Players also return nil?

#

in the function

local function prepareTeleportData()
    task.wait(2)
    local queueData = CasualQueue[Info.Name]
    if not queueData then
        warn("Casual queue data is nil" .. Info.Name)
        return
    end

    if not queueData.Players then
        warn("Players data is missing" .. Info.Name)
        return
    end

    ---rest of ur shit here
#

now you should see in console

#

Casual queue data is nil nil

whole solar
#

so replace the old function of prepareteleportdata with this?

cunning trail
#

or Players data is missing nil

#

nah just put that under it

whole solar
#

ok

cunning trail
#

so function
task.wait
local queueData = CasualQueue[Info.Name]
if not queueData then
warn("Casual queue data is nil" .. Info.Name)
return
end

if not queueData.Players then
    warn("Players data is missing" .. Info.Name)
    return
end
#

put it right under the task.wait(2)

#

now after 2 seconds you should see in console either queue data nil or player data nil

whole solar
#

if i put it under the old prepareteleportdata function it just errors and doesnt run your new code

#

or mabye im slow

#

how do you do that code block

cunning trail
#
local function prepareTeleportData()
    task.wait(2) 
    
    local queueData = CasualQueue[Info.Name]
    if not queueData then
        warn("Casual queue data is nil" .. Info.Name)
        return 
    end

    if not queueData.Players then
        warn("Players data is missing" .. Info.Name)
        return
    end

    local PlayersToTeleport = {}
    for i, v in pairs(queueData.Players) do
        local player = Players:GetPlayerByUserId(tonumber(i))
        if player then
            table.insert(PlayersToTeleport, player)
        end
    end

    if #PlayersToTeleport == #queueData.Players then
        local success, errorMessage = pcall(function()
            local TeleportOptions = Instance.new("TeleportOptions")
            TeleportOptions:SetTeleportData(queueData)
            TS:TeleportPartyAsync(Concert, PlayersToTeleport, TeleportOptions)
        end)

        if not success then
            warn("Teleport fail" .. errorMessage)
        end
    else
        warn("Not all players are ready")
    end
end
cunning trail
#

lmk what the warn is

whole solar
#

so something is wrong with casual queue?

#

would the problem be like it cant be serialized properly?

#

@cunning trail

#

im actually confused on this

#

how can it warn that the data is nil when theres an if statement before it saying the data must be true or not nil to run

valid bough
whole solar
#

@cunning trail dont give up on me please😭 🙏

cunning trail
#

CasualQueue is nil

#

so youre passing nothing into it

#

youre passing "asd" into it

whole solar
#

how did it get past the if statement???

cunning trail
#

it should be a table

#

becaes if not means its not and if it isnt itll warn

#

thats why you got the warn instead of Stack Error

#

find CasualQueue and pass a table into it instead of "asd"

#

youre literally passing the string "asd" into it

#

So just track that down and you win

whole solar
#

idk why the string is being put in it instead of the table

#

@cunning trail

#

the data in casual isnt nil but after the task.wait(2) it is

#

then when i remove that it says not all players are ready

remote mirage
#

size is already 1,0,1,0

glad haven
#

how much would a global matchmaking system cost?

remote mirage
#

ignoreguiinset is also on

cunning trail
lost glen
cunning trail
whole solar
#

i dont think this works cus players isnt indexed numerically

cunning trail
#

iterate over it instead

whole solar
#

do i even need the if

tiny notch
#

Looking for a scripter

whole solar
#

they should be equal because of this anyway

lost glen
cunning trail
#

so something like this

bleak glade
#

good afternoon chat

visual orbit
#

can anyone like help twach me to script for free?

lost glen
tiny notch
lost glen
#

k

bleak glade
visual orbit
#

cap

bleak glade
tawdry trout
#

Guys how are all these tiktokers making insane flight systems for their invincible games. They just buying it?

cunning trail
#
for key, playerData in pairs(queueData.Players) do
        local player = Players:GetPlayerByUserId(tonumber(key))
        if player then
           table.insert(PlayersToTeleport, player)
        else
            warn("Player not found " .. key)
        end
    end

    if table.length(PlayersToTeleport) == table.length(queueData.Players) then
        local success, errorMessage = pcall(function()
            local TeleportOptions = Instance.new("TeleportOptions")
            TeleportOptions:SetTeleportData(queueData)
            TS:TeleportPartyAsync(Concert, PlayersToTeleport, TeleportOptions)
        end)

        if not success then
            warn("Teleport failed" .. errorMessage)
        end
    else
        warn("Not all players are ready")
    end
end
cunning trail
cunning trail
whole solar
#

ok

cunning trail
#

your table is a dictionary im an idiot for trying to index it nummerically

#

table.length will basically get a count of your table.Players

whole solar
#

ng;

#

ngl

#

nothings happening

#
if CasualQueue[Info.Name] and tonumber(CasualQueue[Info.Name].PartyLeader) == Player.UserId then
            local PlayersToTeleport = {}
            local function prepareTeleportData()
                --task.wait(2) 
                print(CasualQueue)
                local queueData = CasualQueue[Info.Name]
                if not queueData then
                    warn("Casual queue data is nil" .. Info.Name)
                    return 
                end
                print(queueData)
                if not queueData.Players then
                    warn("Players data is missing" .. Info.Name)
                    return
                end

                local PlayersToTeleport = {}
                for key, playerData in pairs(queueData.Players) do
                    local player = Players:GetPlayerByUserId(tonumber(key))
                    if player then
                        table.insert(PlayersToTeleport, player)
                    else
                        warn("Player not found " .. key)
                    end
                end

                if table.length(PlayersToTeleport) == table.length(queueData.Players) then
                    local success, errorMessage = pcall(function()
                        local TeleportOptions = Instance.new("TeleportOptions")
                        TeleportOptions:SetTeleportData(queueData)
                        TS:TeleportPartyAsync(Concert, PlayersToTeleport, TeleportOptions)
                    end)

                    if not success then
                        warn("Teleport failed" .. errorMessage)
                    end
                else
                    warn("Not all players are ready")
                end
            
            end

            coroutine.wrap(prepareTeleportData)

            CasualQueue[Info.Name] = nil
        end
#

@cunning trail

dawn crow
#

You guys know those white streaks you see through the air in games sometimes to simulate the effect of wind? they kind of like like curvy waves? anyone know what those are called or how to do those or at least where to start with that sort of thing? I'm trying to figure out how to do it but I'm trying to avoid doing some bootleg solution if there's an easy way to do it

tropic plume
#

local animation = Instance.new("Animation")
animation.AnimationId = animationId
print(animationId)
local track = animator:LoadAnimation(animation)
print(animation.AnimationId)
track:Play()

animaionID and animator are already defined. for some reason its not playing

cunning trail
#

Nothing?

#

Because at this point thats a good thing

#

do a print statement after the ifTablelength part and if it prints youre good

#

Now try teleporting some players

nimble zenith
#

Is scripting harder than modeling I’m a modeler

tiny obsidian
remote mirage
tiny obsidian
#

safeareas

whole solar
#

@cunning trail ?

tiny obsidian
daring echo
#

Anyone here a dev and wanna make an obby game? (I have $1000 budget with 50K - 100k allocated towards ads)

tropic plume
#

guys...

#

i need some more help

proud junco
#

guys

#

i need help

tropic plume
#

ok

proud junco
#

why isnt my while loop working

tropic plume
#

hmm

#

oh wait i figured it out

#

basicly you need to remove the two little -- things

#

bc

#

thats a note not a script

cunning trail
cunning trail
whole solar
#

when i put print under the table length thing

cunning trail
whole solar
#
if table.length(PlayersToTeleport) == table.length(queueData.Players) then
                    print("hi")
                    local success, errorMessage = pcall(function()
                        local TeleportOptions = Instance.new("TeleportOptions")
                        TeleportOptions:SetTeleportData(queueData)
                        TS:TeleportPartyAsync(Concert, PlayersToTeleport, TeleportOptions)
                    end)

                    if not success then
                        warn("Teleport failed" .. errorMessage)
                    end
                else
                    warn("Not all players are ready")
                end
#

hi will not print

ruby cipher
#

The invincinle games ive played are hella buggy

#

Its like a bunch of toolbox items scrapped together

cinder basalt
tribal meadow
#

LMFAO

bleak glade
tribal meadow
#
while true do
  wait(1)
  print(activehelmcams)
end

bleak glade
#

i just realized his script was almost 8k lines

#

what could possibly be in that script

tribal meadow
#

Here's a refurbished version of his code

tribal meadow
#

they say you can destroy the world with your code

onyx inlet
tribal meadow
#

but with what he's showing, he's destroying his reputation instead 💀 😂

cinder basalt
tribal meadow
bleak glade
#

workspace:Destroy()

tribal meadow
#

Guys I'm working on my website, how is the design?

cinder basalt
#

print('l')

#

print('o')

tribal meadow
whole solar
cinder basalt
#

what do you mean print works with strings and not just chars??!?!

whole solar
cinder basalt
bleak glade
cinder basalt
#

3 NESTS

#

AND THEN

#

3 MORE NESTS

tribal meadow
# whole solar

you should reset your character with that level of nesting

cinder basalt
#

6 NESTS IN 200 LINES

#

REMOVE HIS ABILITY TO CODE

tribal meadow
#

he should be abolished from the tech industry

#

he's a disgrace!!

tribal meadow
cinder basalt
cinder basalt
#

wont elaborate

tribal meadow
cinder basalt
#

🗣️

tribal meadow
bleak glade
#

great minds do mind:Clone()

cinder basalt
#

so deep

remote bear
tribal meadow
keen bloom
#

i just watched and learned this method

#

thanks

tribal meadow
whole solar
tribal meadow
#

@keen bloom do hidden staffs get paid?

keen bloom
#

ask a staff member

cinder basalt
tribal meadow
keen bloom
tribal meadow
#

which one is it, @keen bloom ?

#

Tell me

drifting pecan
#

these right?

remote bear
keen bloom
tribal meadow
cunning trail
#

how you gonna debug without putting warns and wrapping in coroutine

#

either you spam pcall or nest

cunning trail
#

queuedata returns a table still right?

cunning trail
keen bloom
whole solar
#

but do i even need to if statement to check if playerstoteleport == queuedataplayers since im looping through queuedata players to get playerstoteleport

remote mirage
cunning trail
#

Try removing it and see

whole solar
#

but on the other side retrieving the data it still prints nil

rapid verge
#

does collection service work with guis

coarse whale
#

does anyone know if its possible to have a TV screen that shows the perspective of a part in workspace

whole solar
#

@cunning trail you think something is wrong with retreiving the data maybe?

light lichen
#

YO i belivwe ii know the basics of coding but i am still confused as shit i know what diffrent things do but my brain doesnt connect them

#

can someone help

light lichen
#

i cant even make one of those 2 player obby tings

#

things

rapid verge
light lichen
#

thanks

cunning trail
light lichen
#

so basicly i should do things in a planned order?

cunning trail
#

Yes

cunning trail
#

So I know I need a local script to fire a remote event to check when a player hits a key, then I need to create a hit box that’s a system, then I need to function checkForPlayerInHitbox that’s a system

#

So think about it in systems instead of just individual scripts, plan ahead of what you’re doing and it’ll all come together

light lichen
#

yea so for like a two player red or blue obby

assign one player a color and the other a color
make the player fall through the other teammates part
and make a way for them to become their color?

#

or should i do the last step as the second

#

because if its instant does it matter

cunning trail
whole solar
#

yeah

#

but im pretty sure it was printing fine before too

cunning trail
light lichen
#

is code help even code help

whole solar
#

code hasnt changed that much

cunning trail
#

Gotcha

whole solar
#

would you want to see my screen share

cunning trail
#

Try doing

game:GetService("Players").PlayerAdded:Connect(function(player)
local teleportData = player:GetAttribute("TeleportData")
if teleportData then
print("Received teleport data:", teleportData)
else
warn("No teleport data received " .. player.Name)
end
end)

cunning trail
#

I’d you still get nil then it’s your teleport data that’s fucked up

whole solar
#

welp that print nil too

#

this is what teleportdata prints as before it's set

#

@cunning trail

lethal imp
#

how to give a random player a wepon? tried to make it myself or find it online but did not work. i know this is simple but id appreciate if somone could provide me with a script for it.

bleak glade
fickle wedge
thick sigil
lethal imp
keen bloom
fickle wedge
remote bear
#

a 1D 3D converter that can take three values and shorten it to one then it can be converted back to three values (credit goes to haotian2006 not sure why the @ is justs numbers it may be the user id but idk for sure)

hasty mesa
#

since thats what the size is fyi

remote bear
hasty mesa
#

alr

#

just fyi the formula is

x + z* xzSize + y* (xzSize*ySize)

#

although the order can be swapped

remote bear
hasty mesa
#

yeah

#

but you usually don't want negatives

#

since the coords will be local space

#

and negatives will be determined by the chunk

remote bear
# hasty mesa but you usually don't want negatives

well since the system is isometric the block cords are not negative because its also the layout order. though the chunk index can be negative its normally a vector 2 not vector 3 but i can still use vector 2s in the system as long as a add a place holder value

hasty mesa
#

should still use vector3 for 2d values fyi

#

would be more optimized

#

as you could index them in an dict

#

and are faster to access as they are native to luau

#

while vector2 is native to roblox

#

yeah I would convert the x/z to local space with % which also gets rid of negatives

remote bear
hasty mesa
#

np

uneven summit
#

here

surreal sky
#

hey do i need to learn coroutines

lean ocean
#

learn task.spawn first

full lily
#

yo guys i have question
will you guys use data store management system with its own data store language similar to sql
if its faster and lets you store more data and does all the safety shit for you stores your data in buffers and has very simple api to access and update data (not alter the structure)

wind forge
lean ocean
#

percentage........

marble breach
#

actaully nah

wind forge
marble breach
#

🙂

tardy pasture
#

who here is a kfc crusader ?

brittle dew
#

?

tardy pasture
#

hey what is a good inventory system ? i currently got a invntory in wich u have to drag ur item to be equiped or un equiped but my tester syas it could be confusing

cinder basalt
#

I can show u a BAD inventory system

tardy pasture
cinder basalt
#

Like double click or whutever

#

Or right click showing options such as drop equip

cinder basalt
uneven summit
#

anyone know how to make a gun system

#

like wild west

cinder basalt
#

Its more about adding qol

tardy pasture
#

bro idk he told me and i want the best system for my game

cinder basalt
#

Qol newborn tier

tardy pasture
uneven summit
#

without the right click yk

#

and also the fov extends when you aim

#

with the gun

tardy pasture
# uneven summit and also the fov extends when you aim

Welcome to the exciting journey of creating a ROBLOX game from scratch! In this Part 1 episode, follow along as I take on the solo developer challenge, striving to craft a unique gaming experience within the ROBLOX platform. I'll be sharing my progress, challenges, and insights as I work towards my goal of building a full-fledged world.

In this...

▶ Play video
#

and no ur not getting the code

uneven summit
#

lmao okay

cinder basalt
#

Why did u think i wanted the code ...

#

Show, as show the system

lean ocean
#

He wanted a reason to show his gun system

#

not even a viewmodel ....

tardy pasture
#

why the hell would i make its fps ?

uneven summit
cinder basalt
#

U know u could just say what it is and what the pay is HERE

uneven summit
#

i want the aiming system

cinder basalt
tardy pasture
lean ocean
#

I can make that in under 30 minutes

tardy pasture
opaque vessel
#

one script I wrote this many lines of code just to discontinue it

#

zz

#

shit another one

tardy pasture
lean ocean
#

ammo - 1

tardy pasture
#

oh and ye responsivnes

lean ocean
#

yea its not hard

tardy pasture
#

go ahead and dm me in 30 mins

#

lets see how well u did

cinder basalt
lean ocean
tardy pasture
#

so am i ?

lean ocean
#

3rd person gun systems are easy

uneven summit
#

how do you make it so when you the gun equiped you can move like a first person view bro

tardy pasture
#

its a whole inventory/tool system ?

#

the muskets are only a small part off it

lean ocean
#

Where's the inventory system

opaque vessel
#

I just have to press ctrl f to find the name of the ability

lean ocean
#

all I see is u equipping a musket

lean ocean
tardy pasture
opaque vessel
lean ocean
#

not for me

opaque vessel
#

I forgot waht it was but it was a beta feature that fucked it up

lean ocean
#

maybe the new typechecker

opaque vessel
#

Ye it was that

somber vault
tardy pasture
#

damn never knew i was gonna find another tnf player in here

tardy pasture
#

facts

somber vault
# tardy pasture facts

do you have tips for raycasting I was tryna make a gun but it doesn't detect all parts only baseplate unless I'm super close

#

Idk if you need that but yeah

tardy pasture
somber vault
#

lemmy load it up

#
local mouse = player:GetMouse()
    
    local origin = handle.Position
    local position = mouse.Target.Position
    local direction = position
    
    local raycast = RaycastParams.new()
    raycast.FilterDescendantsInstances = {character}
    raycast.IgnoreWater = false
    

    local result = workspace:Raycast(origin, direction, raycast)
    
    local ray = Instance.new("Part")
    ray.Size = Vector3.new(5,1,5)
    ray.CanCollide = false
    ray.Anchored = true
    ray.Color = Color3.fromRGB(255,0,0)
    ray.Transparency = 0
    ray.Position = origin
    
    
    
    if result then
        print(result.Instance)
    else
        print("No Part")
    end
#

Ik getmouse is outdated but idk a better way

tardy pasture
#

get mouse is decent i used it aswell

somber vault
#

ah okay

tardy pasture
#

dont forget to secure on server tough id say

somber vault
tardy pasture
#

what does it print when u shoot ?

somber vault
somber vault
#

oh

balmy wedge
#

at the benefit of it being like really responsive

somber vault
balmy wedge
#

it actually depends on ur use case

tardy pasture
#

seems like ur clickin on the baseplate so what wrong ?

somber vault
balmy wedge
somber vault
balmy wedge
#

i like what the roblox fps template does for detecting hits

somber vault
tardy pasture
#

ur trying to shoot a character or just a part ?

somber vault
tardy pasture
#

from where do u get this character ? : raycast.FilterDescendantsInstances = {character}

somber vault
#

well I didnt add it yet I think that was to like make sure it doesnt detect the localplayer's character

tardy pasture
#

i mean if its not defined it wont ignore it

somber vault
#

e

tardy pasture
somber vault
#

I think I recognize your user idk prob some clan leader fr

tardy pasture
#

from wehn to when did u play or mayby island event or certain factions u were apart of

#

i had many names

#

11lolmantibo11,SirHolvoet,CrimsonVH

somber vault
#

I mean I was in some hbc's and NFC but yeah nothing crazy

tardy pasture
#

oh u didnt play the origina l ?

somber vault
#

I did I said

#

I was in invictus for a while until someone was being toxic like the one from fire

#

he made that in a remake doe I think

#

Thats prob only more known one lol

somber vault
tardy pasture
#

miss the original game

somber vault
#

fr

#

its so cringe the northwind owner brought the rights to tnf to just make it a cash grab

#

bros so cringe

tardy pasture
#

thats why i decided to create my own version

somber vault
#

Ah nice

somber vault
tardy pasture
#

well its not an exact remake tough

#

u can quick switch etc

#

but the mouse is locked in the center for example

somber vault
#

I mean it would be better if it wasnt the same lol every remake is like "we're gonna make the game better"

tardy pasture
#

and oh yea ships and canons that goes boom

somber vault
#

💀

#

Yeah that would be coolish idk ships are kinda mid but boarding ships coulkd be cool

tardy pasture
#

oh yea its mad fun when u sink ur friend ship

somber vault
#

lol

cinder basalt
#

Peopel of the code discussion

#

I hereby announce

#

Dead chat

lean ocean
#

No

cinder basalt
#

Omg frosty the cat

#

He really be like

worn vapor
balmy wedge
#

why did you scroll up so far

cinder basalt
#

Detects only people of color

spare reef
#

Anyone want to work with me on a when

#

Game

cinder basalt
spare reef
#

Hard to explain

cinder basalt
#

But are you really the pro dev

#

Ill work on it as long as its name will be blots fruix

tardy pasture
north rivet
#

i neeed a new coding slave

#

my old one is broken

#

he dont wannna dev no more

tardy pasture
north rivet
#

its a shame too he made a pretty good game but just didnt wanna finish

tardy pasture
#

then why dont u finish it

#

free money

#

he quit = no pay

north rivet
#

im no good as a coder i even asked him to teach me but hes a hopeless teacher

ocean valley
#

Looking for scripter/animator/ui maker/dev/modeler! DM ME or REPLY!

north rivet
gilded dagger
#

is there anything wrong with attributes

worn vapor
north rivet
#

i saw that once at this job i was applying for

cinder basalt
north rivet
#

a man with a dream

#

you guys know that like through getting payment through investors your practically just giviing free money to peoople with more money than you

plush sorrel
#

how do you earn the programmer roles?

north rivet
#

yoooo

crimson plank
north rivet
#

good sorry about that game i guess harry got more busy with reaper 2

#

he abadoned the assignment

crimson plank
crimson plank
#

But good for him

north rivet
#

nah bro we could have made bank

#

hes broken no longer has the passion

#

its a shame

ivory gate
#

Looking for Investors for A Japanese Hangout Game

Hey guys! I am making a Japanese Hangout Game!
You can invest and make possible returns on the release of the game!

You will get a percentage of the game's revenue according to your investment, starting from 500 robux (without tax).

All investments without tax, for eg. If you want to invest 1k , I need 1k without the tax!

The robux will be used for sponsors and more!

DM me to let me know If you want to invest!

Max Limit: 7K Robux

hardy pilot
#

Bahaha

stray oak
#

I use chatgpt to make me a google extension and use the extension as an autocomplete for google docs to write my essay

ivory gate
#

uh its

#

around 720 robux

cinder basalt
ivory gate
#

why

cinder basalt
#

% shares

#

...

ivory gate
#

we can discuss in Dms

cinder basalt
#

Na bruh say here

#

How much is 500

ivory gate
#

1%

cinder basalt
#

So for 50k i can buy our ur entire game and have ur dev team as slaves?

ivory gate
#

yes

cinder basalt
#

😼

#

Ayo

ivory gate
#

u dont got 50k bro

#

and max limit is 7k

cinder basalt
#

Ferb i know what we will be doing today

ivory gate
#

forgot to mention

cinder basalt
#

Sad

cinder basalt
#

Look at my pfp

ivory gate
#

gimme 10k as proof xD

cinder basalt
#

U funni

ivory gate
cinder basalt
#

Thats 20 buck

#

Aint giving no one 20 bucks thats 2 dinners

ivory gate
#

OKIE

#

wanna invest bro?

cinder basalt
#

So one entire day of dinners

tardy pasture
#

grape the guy ?

north rivet
#

anybody wants to make for honur in roblox

cinder basalt
north rivet
#

honor

#

mah bad cant spell

cinder basalt
ivory gate
#

ok

#

its my first game so i dont expect to be getting 10m+ max

north rivet
#

why argue with someone who says its gonnna flop if you know what you want

tardy pasture
ivory gate
#

a japanese themed hangout

tardy pasture
#

:/

#

sounds boring

ivory gate
#

its good

#

trust me

#

i can show u on vx

#

vc

tardy pasture
#

ight show me wont be able to speak tough since im in class

#

go general-20

ocean valley
#

Looking for scripter/animator/ui maker/dev/modeler! DM ME or REPLY!

steady cove
#

does using vs code for studio effective?

lavish peak
steady cove
ocean valley
#

Looking for scripter/animator/ui maker/dev/modeler! DM ME or REPLY!

frozen swift
craggy hill
#

any body else has problems with the teleport service? it takes forever to teleport and works only if i close and re open the game

outer bridge
outer bridge
steady cove
#

ty

ruby cipher
#

invest in me

sour seal
#

No wait ill invest 2 million

craggy hill
static coral
sour seal
static coral
#

no you pleassss

#

me vbuck

#

100000000 vbuck

#

fortnite battlepass

thorny osprey
#

Lol

thorny osprey
thorny osprey
full gulch
#

hi is there someone available to help with a script

north rivet
#

are there any coders that like wanna be my friend and make games with me im so bored