#code-discussion

1 messages Β· Page 56 of 1

worn ingot
#

i think it will get you started

#

yes

plucky plank
worn ingot
#

but only for non hostile npcs

#

because my npcs are way too advanced to justify making them client sided as well

#

good luck

plucky plank
worn ingot
#

its just hard with the current system and not worth the effort

plucky plank
worn ingot
#

otherwise an exploiter could mess with it

plucky plank
#

o fair

worn ingot
#

i might make them like a gray cube on the server and the client renders the humanoid

#

but thats still a lot of work

#

because the way i have it set up enemy npcs and players have the same systems

plucky plank
#

bruh i need to learn more about networking

worn ingot
worn ingot
plucky plank
#

or.. just use two different models*

errant narwhal
#

Oh no I didn't get scammed, just felt a need to say it

#

he hired like 10 scripters to work on the same task. Bro is so intelligent he added everyone into same server

hoary cedar
plucky plank
hoary cedar
#

Probably means he nearly fell for it

plucky plank
#

o

errant narwhal
#

Look, he offers 500 dollars for quite a easy job, he had 10 scripters working on the same task, and wanted to add his UI guy into the project

#

If that doesn't scream scam then idk

hoary cedar
#

It does to me

#

The profile picture is definitely a trap too, lol

errant narwhal
#

Yup, that is NOT a girl 😭

worn ingot
#

because it doesnt replicate

plucky plank
errant narwhal
#

Hello, just to inform everyone. Do NOT take commission from @adi_royyy . It is a scam, he offers 500 dollars for something that can be made in few hours, he also had 10 different scripters working on same task and he will ask you to add his UI guy into studio where you make scripts and they will just steal it without paying you. For anyone wondering I didn't fall for it, I am just warning everyone else.

lost pebble
# plucky plank o

changing something on the client only changes it for the client that the action was done on. changing something on the server changes it for all clients

plucky plank
lost pebble
#

you make a model (or ig a block in this case) on the server which replicates to all clients. then, each client makes a rig associated with that previously made model/block

inner aurora
#

if i need help do i write here??

#

oop mb i saw the channel

trim basin
worthy turret
#

why does scripting get 2 channels this is not fair 😑

worthy turret
#

wheres the 3rd

lost pebble
#

it's a sercret cool hidden one

trim basin
#

scripters just superior i guess (no creativity to build or model)

worthy turret
#

yo I just got featured πŸ€‘

#

I'm using that untapped method

trim basin
#

aura

worthy turret
#

yeah

#

I just get on featured for comms lmao

#

dms been kinda dry

trim basin
#

I feel u man

#

The discord so full getting one comm is a missionb

worthy turret
#

I just keep getting scam commissions 😭

#

but I don't take them

#

you can tell its a scam

trim basin
#

way too many scammers out here

worthy turret
#

one guy told me 50k then in dms he said 500-50k

#

thats crazy work

trim basin
#

LMFAO

#

50k to 500 is nasty man

worthy turret
#

yeah so he was gonna make me build a map for 2 usd cryingdead

trim basin
#

Im just tryna get some shit for my portfolio while also comming

worthy turret
#

hope you get good comms πŸ™

trim basin
#

You too bro

#

on all of hidden devs we making it out

karmic coral
#

paying 1k robux for invenrory + shop

glass sierra
#

optimizing a huge chunk of your code and it actually working is such a huge pay off

gloomy kraken
karmic coral
#

nuhuh

turbid fulcrum
#

What level of stupidness am i on?

karmic coral
#

100x

#

ur stupidness level atm

turbid fulcrum
#

i write python code on Roblox πŸ—Ώ

karmic coral
turbid fulcrum
#

for an half an hour

glass sierra
turbid fulcrum
#

does anybody have an idea for random script?

somber vault
fringe barn
somber vault
#

why

somber vault
ruby oxide
#

i just learned how to script whats the best way to get experience

somber vault
ruby oxide
#

how to find small games

somber vault
#

i have a small racing game you can join

ruby oxide
#

really

somber vault
#

yeh

ruby oxide
#

ok

raven wind
#

hi guys, is it better to create a prompt with just a single billboardgui, or should i create it with the actual "ProximityPrompt" object?

open salmon
#

u can make a custom proximityprompt using billboardgui

open remnant
open remnant
#

Are you looking for a basic prompt or a customized prompt

nocturne mirage
#

Does anyone know how to fix a "cube shadow" where it would be placed, but not showing ? For eg, placing a cube on tile A1 but when i want to place a cube on the A1_Y1, the shadow is still snapping on A1 tile and not on top of that A1_Y1 cube

brisk token
#

i just saw some code where it was checking a players head color and it was something along the lines of player.head.color == brick.new(insertcolorhere) why did they make it brick.new or whatever and not just set the head.color to a color

karmic coral
#

dm me if u wanna make a stay alive / steal time sort of game. ill give u 2k robux + 70% of the game. i can do 100% of the ui and some minor scripting + ads. btw pls be experienced

worn steeple
next escarp
spark swallow
#

is this marvellois playground

#

and send the code

short nacelle
rose notch
#

my character is jittering after they jump because of my animation, simple fix?

civic pier
#

is it fine if i dont use a local script for a killbrick

civic pier
#

thanks

terse badger
#

Wild

compact hearth
#

does anyone know what type of hitbox deepwoken uses?

steep shuttle
#

can someone send me a link to the lua documentation

karmic coral
#

dm me to make a sword fighting / steal time game ill pay for adds. u get 70% of the game +2k robux
and btw u must be experienced in scripting. i do vfx ui and modeling

sudden estuary
#

2k robux is 7 dollars

karmic coral
sudden estuary
#

it could be 70% of 100 robux or 100 million robux

rugged mist
#

facts

#

wtf

potent bolt
#

what advice do yall give to people who try to use localplayer on a server script

pure wolf
autumn obsidian
#

hello everyone, I have a question. making a building system in which you can place a table on a grid floor, once placed, you can destroy it or change its position. is network ownership required for such task? thank for answering, I really appreciate it.

pure wolf
potent bolt
autumn obsidian
potent bolt
#

do you want the player moving the table to be visible to other players?

potent bolt
# autumn obsidian nope

then if other players don't need to see the table that the player is moving, then network ownership is not required as you're not replicating anything (moving and showing to other players)

tight hearth
#

Is there any advanced scripters here looking for like really good modeling and mapping work.

autumn obsidian
karmic coral
#

dm me if ur an advanced/experienced scripter i have a com for u

tiny crescent
#

creating a game with 3 devs who join

terse badger
#

is it worth making a tapper game at this point?

stoic vine
#

who ever can help with my hood game can get robux

#

dm me

#

i need some scripters

woeful river
#

guys im bored, can you give me something to script? (im around low intermediate level)

twilit stump
woeful river
#

idk how to kick people yet

twilit stump
#

then kill he/she that tried

woeful river
#

ok

#

dont think i need a remote event for it

twilit stump
#

make a sistem that only let's your send a message trough RemoteEvent and if the person isn't you he/she dies

woeful river
#

its hard for me to understand what your saying 😭

twilit stump
#

so you have the event

#

if someone do :FireEvent

#

and if that person isn't you

#

she dies

candid kestrel
#

wip

candid kestrel
boreal condor
#

Make the GUI fully functional, including the Drop, Use, and Give buttons, the Amount input slot, Hotkey slots, Ground slots, and Inventory slots. GUI made already payin $10

dusky moon
#

I'm a newbie at scripting, I already have the basics done, but I wanna know how I can improve from here. What would yall suggest I do to improve at scripting?

candid kestrel
dusky moon
# candid kestrel just make shit

That's what I've been doing making random system and shit, but still wanted to ask if there was a better and a proficient way of getting better

candid kestrel
#

like a game based around a system

#

to practice connecting multip[le elements

#

but besides that theres not really much u can do besides practice

dusky moon
#

Goodluck

karmic coral
#

lf a scripter for my game ill pay u must be experienced

normal swan
#

all hard stuff is just a whole bunch of easy stuff

mossy yoke
#

hi

candid kestrel
#

hey

rain hound
#

do tweens automatically clean themselves (by cancelling) when the instance is destroyed? or does that need to be done manually

random gulch
fluid adder
#

How do I create a system for my obby that when the player joins they are at the lobby then they click a UI button that teleports them to there last checkpoint. I need help please! Ping me if you respond. Tysm!

hoary cedar
fluid adder
hoary cedar
fluid adder
stable verge
#

I've been scripting for 8 months. Do I start looking for commisions?

random gulch
#

you need a big portfolio

hoary cedar
#

In O(n) time, if you understand what that means

rugged mist
stable verge
random gulch
#

so the mode

hoary cedar
#

The function's time complexity should be proportional to the input size

#

For you, that means no nested loops

hoary cedar
#

Formally, I'm asking you to produce an algorithm that yields the mode of a dataset

stable verge
#

um

#

ok

hoary cedar
#

If you can do that, it shows an intermediate grasp on algorithm's and data-structures

#

That's enough to start taking basic jobs

stable verge
#

I don't know how πŸ˜”

hoary cedar
random gulch
stable verge
#

where do i even start

hoary cedar
dark juniper
dark juniper
#

ur not your a Roblox dev your head ain’t all there

hoary cedar
#

A Roblox developer could solve this problem KEKW

dark juniper
#

what if he’s like 13

hoary cedar
random gulch
hoary cedar
#

It's all about how much you know, lol

dark juniper
#

give a more general programming assessment

random gulch
hoary cedar
#

It's as general as it gets

dark juniper
#

i hate to break it to you but your completely wrong

random gulch
#

@hoary cedar is this good? it returns 3

hoary cedar
#

It could be made cleaner though

somber vault
#

How would you guy's store stuff like equipment (backpacks, etc) im thinking just using a data table for each player and store which ones they own with the equippedBackpack and just save and load that data is that a fine way to do it?

#

have a ownedBackpacks = {} table
and then equippedBackpack

stable verge
random gulch
hoary cedar
#
local function getFirstMode(numbers: {number}): number
    local result = nil

    local frequencies   = {}
    local bestFrequency = 0

    for _, number in numbers do
        frequencies[number] = (frequencies[number] or 0) + 1

        if bestFrequency < frequencies[number] then
            bestFrequency = frequencies[number]

            result = number
        end
    end

    return result
end
random gulch
magic yacht
random gulch
#

it just makes it more clear it equals nil

random gulch
somber vault
#

is there a way to force default R15 proportion sizes

random gulch
somber vault
random gulch
somber vault
#

Wait actuallyi like the R6 look

#

good call

somber vault
spark carbon
#

yall look at this fucking circle i made with terrain gen

sleek pasture
#

is it possible to limit where mouse movement can go?

#

i'm wanting to have it so the mouse, while the frame is visible, can only move along the edge of the outer circle

sleek pasture
#

because i'm making a weapon wheel, if the mouse moves say too far up, left, down, or right, and continues the circular motion, then it won't be orbiting the center circle, so wouldn't properly be rotating the cursor around its full area

sleek pasture
gaunt ridge
#
local function limitMousePosition(mousePos, centerX, centerY, radius)
    local distance = math.sqrt((mousePos.X - centerX)^2 + (mousePos.Y - centerY)^2)
    if distance > radius then
        local angle = math.atan2(mousePos.Y - centerY, mousePos.X - centerX)
        local newX = centerX + math.cos(angle) * radius
        local newY = centerY + math.sin(angle) * radius
        return UDim2.fromOffset(newX, newY)
    else
        return UDim2.fromOffset(mousePos.X, mousePos.Y)
    end
end```
#

i took this from google btw

#

it looks right to me πŸ€·β€β™‚οΈ

gaunt ridge
#

is there like an actual square frame thats not visible

#

πŸ’€

sleek pasture
#

it's a normal frame with a ui corner with max corner radius

#

then just a uistroke

mental token
#

Am sorry in advance for chucking such a big pile of text here, but everyone in #code-help is doing anything but helping when i sent it there, so im trying here

Im trying to script this box so that it will change color and toggle particals based off a rarity, which can also be reverted to original by doing the prompt. issue is, it is not changing to the correct things. It is almost like the box and output are running off two sepreate instances of the same script? What am i doing wrong here?

gaunt ridge
sleek pasture
#

ya

gaunt ridge
#

ur calling the function each time for the check

#

store it in a variable

#

inside the while task.wait()

do local randomEvent = chooserandomevent()

and then check if randomEvent == and stuff

#

and print(randomEvent) and all that stuff u wanna do

mental token
#

wait so

#

sorry trying to understand this

#

like how it would fix it

gaunt ridge
#

because

mental token
#

i dont have much knowledge to scripting so yeah

#

having to use every braincell for this lol

gaunt ridge
#

ur doing print(chooserandomevent())

chooserandomevent() returns the random event name or whatever.

now the problem is for each if statement ur doing chooserandomevent() again which returns a random event again which might not be the same one as when it was printed

#

so u can create a variable to store it

#

local randomEvent = chooserandomevent()

mental token
gaunt ridge
#

itll be stored here

mental token
#

yeah that makes sense

gaunt ridge
mental token
#

thank you so much

gaunt ridge
#

np

mental token
#

gonna try that there now

gaunt ridge
#

ight

mental token
#

ok yeah that fixed the issue

#

thanks again

#

gonna continue rattling my brain now lol

gaunt ridge
#

no problem lol

tribal sandal
#

GUYS THIS IS QUICK

#

is there a way to pause an animation while playing

#

like its playing and after a second it pauses

#

And after 2 seconds it resumes

gaunt ridge
#

:AdjustSpeed(0)
:AdjustSpeed(1)

sleek pasture
#

:AdjustSpeed() my beloved

#

used it a fair bit of times with some things

tribal sandal
#

And it also resets

sleek pasture
#

wdym

bronze path
tribal sandal
#

bruh just added it to my script and now this

bronze path
#

if you have a piece of code using a lot of memory, it could just be your implementation having logical errors

#

you haven't given much context beyond that

tribal sandal
bronze path
#

i highly doubt that it's because of AdjustSpeed by itself. this just feels like trolling

sleek pasture
#

^

reef birch
#

has anyone else encountered bad_weak_ptr in studio

sleek pasture
#

i don't think so

reef birch
#

i submitted a bug report for it over a month ago and they said theyre working on it but its not been fixed and its literally crashing my game

tribal sandal
#

alright @bronze path you had reason its not because of adjustspeed

bronze path
#

what was causing it?

tribal sandal
#

the "StopPushing" function

#

but anyways

safe sail
#

lf scripter who can do combat system, scripting animations and VFX etc dm for more info (small- medium) tasks.

tribal sandal
#

How do i make so animation doesnt reset?

bronze path
#

wdym exactly by reset? like the animation plays for one cycle, and doesn't loop? or does it abruptly stop at some point?

tribal sandal
#

ty for your help

somber vault
#

am scripting a bumper cart, what do yall suggest is the best 2 things to use for the movement/rotating of the vehicle

jovial falcon
#

@scarlet knoll i figured it out somewhat and now it turns quicker thanks for explaining

lucid crescent
#

the code help section isnt working

#

i need help on a studio problem

#

has anyone here left something 100% working and then come back to it Not working?

surreal compass
lucid crescent
#

here is the main doc that has the problem

glossy valley
#

Is there an Arabic person who can help me explain OOP to me?

upbeat jungle
#

So i dont know how to code and I'm trying to make an NPC spawning script. It spawns one NPC that works perfectly and then just stops spawning them. however in previous iterations the NPC's didnt work but they were able to spawn in multiple

final cargo
#

in my game, all players have an inventory of objects they own. no object ever lasts forever though, as each object has its own duration (could be seconds, minutes or even hours).
now, what i'm trying to do is have a gui that can display a countdown for each object so that players can see how much longer they have before an object disappears.

since different objects are going to have different durations (and therefore different countdowns), what would be the best way to make these countdowns?

i was thinking about running a thread on the server for each countdown, where every 1 second it decreases the duration by 1 and it sends the updated duration to the client. i have however two concerns with this method:

  1. remote events can take a while to fire on the client if his wi-fi connection is bad (so the countdowns would lag)
  2. the server would struggle to run many many countdowns at the same time for all of the players
surreal compass
final cargo
#

another way would be to straight up run the countdowns on the client, but then i fear exploiters might edit the duration to infinite

jolly vessel
jovial falcon
jolly vessel
#

oh dang

mental token
#

Me again, this time with a question on how to approch something.

#

i wanna make it so if the event chosen is the same as last time, it will not run. i already sat up a varable that should log what the last event was. Issue is now i need to make it rerun that for loop if it was the same event to get a new event. How could i do this? I tried to just type continue but as i expected - it did not work

rain hound
#

is the currentcamera's cframe able to be edited via a local script

hasty mesa
#

it can only be edited by a local script

surreal compass
mild frost
#

Hey

#

Heyhey

#

Hey

#

@hasty mesa

frank pollen
#
#include <iostream>
#include <cstdlib>
#include <ctime>

int numberRandomizer()
{
    int randNumber = rand() % 100;
    return randNumber;
}

int compareNumber(int randNum,int guess)
{
    if (randNum == guess) {
        std::cout << "Congratulations!!";
        return 0;
    }
    else if (randNum > guess) {
        std::cout << "Guess is too low, try again";

    }
    else {
        std::cout << " Guess is too hight, try again";
    }
    return 1;
}
int main()
{

    srand(static_cast<unsigned>(time(0)));

    int num = numberRandomizer();
    int numOfGuesses = 0;
    int totalGuesses = 10;
    int guess = 0;

    std::cout << "Welcome to Number Guesser.\n";
    while (guess != num && numOfGuesses < totalGuesses) {

    std::cout << "Please enter a number.\n";
    std::cin >> guess;

    numOfGuesses++;
        if (compareNumber(num, guess) == 0) {
            break;
        }
    std::cout << "Guesses remaining: " << (totalGuesses - numOfGuesses) << ".\n";
    
    }


    if (guess != num) {
        std::cout << "Sorry, you've run out of guesses! The correct number was " << num << ".\n";
    }
#

first c++ code in a while

#

wanna refresh again

safe wren
mental token
safe wren
#

like

#

copy paste

mental token
#

so you can test urself?

safe wren
#

just so I don't have to type the whole thing out

mental token
#

ah ok got u

#

one sec

#

been trying some things lol

safe wren
#

Basically the two options here are to make it construct a new table of possible events every time it selects, or just have it repeat the selection function until it returns a value that is not the recently-selected event

mental token
#

local Events = {
["Fire"] = "FireEvent",
["Hardware"] = "HardwareEvent",
["Power"] = "PowerEvent"
}

local Rarities = {
["Fire"] = 30,
["Hardware"] = 40,
["Power"] = 30
}

local chooserandomevent = function()
local randomNum = math.random(1, 100)
local counter = 0
local lastEvent = nil

for rarity, weight in Rarities do
    counter += weight
    if randomNum <= counter then
        if lastEvent == rarity then
            print("event occured last round")
        else
            lastEvent = rarity
            return Events[rarity]
        end
    end
end

end

bleak glade
frank pollen
#

making custom MC mods sounds fun

bleak glade
#

c++ is better for me

mental token
#

i also cant get the "lastEvent" varable to update

bleak glade
safe wren
mental token
safe wren
#

you have to declare the variable outside

try this

local lastEvent

local chooserandomevent = function()
    local totalWeight = 0
    for rarity, weight in Rarities do
        if rarity ~= lastEvent then
            totalWeight += weight
        end
    end

    local randomNum = math.random(1, totalWeight)
    local counter = 0

    for rarity, weight in Rarities do
        if rarity ~= lastEvent then
            counter += weight
            if randomNum <= counter then
                lastEvent = rarity
                return Events[rarity]
            end
        end
    end
end
#

the change I made was to total up the amount of weights, but not add the lastevent rarity to the total weight

#

and increment the counter based on the weight

#

if that makes sense

mental token
#

uhhhhhh might

#

trying to comprehend it

#

i never done any scripting in ages so XD

safe wren
#

see how you did math.random (1,100) to do like a percentage chance

#

out of 100%

mental token
#

yes

safe wren
#

this basically instead of 100%, it totals up based on the amount of values

#

so like if each rarity weight was 1, meaning
fire = 1
hardware = 1
power = 1

#

the chance to get each one would be the weight / Total weight

#

so 1/3

mental token
#

wait whats the if rarity lastevent then thing

#

like between it

#

is it a ~= or a -=

cobalt compass
#

how much should a scripter get paid to make a good game

mental token
#

computer is compressing it

safe wren
#

this code block?

mental token
#

uhhhh

#

ye

#

that block

safe wren
#

that basically makes it only add the rarity if its not the last event

#

it only adds to the total weight based on the condition that it's not the last event, so it cant do the same event back to back

mental token
#

gonna be honest man

#

still pretty lost

#

my brain cannot comprehend this

safe wren
#

lol

fringe barn
#

lol

safe wren
#

hmm

fringe barn
#

hmm

mental token
#

this is why i plan on doing art and design for a career and not programming smh

#

anyways

safe wren
fringe barn
safe wren
#

i can try to explain it better if that might help

fringe barn
#

i can try to explain it better if that might help

mental token
#

maybe if u would be so kind to like, break it down to dummy terms

dusky moon
#

I'm a ui designer and let me tell you, they are equally hard

mental token
dusky moon
#

it's a matter of which one you end up practicing more

safe wren
#

so the first function loop's goal is to get the total weight

fringe barn
#

so the first function loop's goal is to get the total weight

safe wren
#

weight is the chance for that specific event to occur

fringe barn
#

weight is the chance for that specific event to occur

safe wren
#

and in the loop, it runs through the entire list, and only adds to the total weight except the lastEvent event, since we don't want to have that one occur again

#

are you following that part

fringe barn
#

and in the loop, it runs through the entire list, and only adds to the total weight except the lastEvent event, since we don't want to have that one occur again

#

are you following that part

mental token
#

uhhhhhh so

fringe barn
#

@mental token

mental token
#

ye wrapping head round it

safe wren
#

it goes through all the events and adds to the total weight

#

so like

#

totalWeight = 0 at the beginning

fringe barn
#

it goes through all the events and adds to the total weight

#

so like

safe wren
#

then it adds +30 for fire

fringe barn
#

totalWeight = 0 at the beginning

#

then it adds +30 for fire

safe wren
#

then lets say the last event was hardware, it skips that one.

#

then adds +30 for power

fringe barn
#

then lets say the last event was hardware, it skips that one.

safe wren
#

so totalWeight at the end is 60

fringe barn
#

then adds +30 for power

#

so totalWeight at the end is 60

mental token
#

im sorry but could we go in dms? idk who this random person is who keeps copying your messages but its destracting me too much

safe wren
#

l0l

fringe barn
#

l0l

safe wren
#

he on mobile doing all of this btw

fringe barn
#

he on mobile doing all of this btw

safe wren
#

hahahaha

fringe barn
#

hahahaha

mental token
#

thats wild

safe wren
#

he cant copy as fast as i can type

leaden spruce
#

hey any scripters willing to help wioth soimething

safe wren
#

what u need friend

fringe barn
#

he cant copy as fast as i can type

#

what u need friend

leaden spruce
#

i need someone who can do sync for emotes

safe wren
#

are u runinng into a specific error

sour yacht
fringe barn
#

are u runinng into a specific error

sour yacht
#

like

leaden spruce
#

my friend has tried and we want /sync players user

sour yacht
#

??

leaden spruce
#

its a emote game

sour yacht
#

what

#

"we want /sync players user" πŸ’”

leaden spruce
#

like admin

#

type of cmd

sour yacht
#

you have no clue on what your saying bro

fringe barn
#

@leaden spruce were gonna let you rephrase everything you have said. Restart dawg

sour yacht
#

yea

leaden spruce
#

Okay, so im making a emote game with my friends and we want it so you are able to sync other players with the power of /sync user.

safe wren
#

then when a sync is requested from player2 with player1

#

on player2, play the animation and set the timeposition to the same timeposition of the animationtrack player1's character is

leaden spruce
#

thank youu ill go try

sour yacht
#
local User = Arguments.User -- ( Input user as the second argument of the command )
local Player = Arguments.Player -- ( Player who called the command ) 

local Character = Player.Character
local UserCharacter = User.Character

local function Sync(AnimationTrack : AnimationTrack)

    if not AnimationTrack then
        warn("You must provide a AnimationTrack") return
    end

    local Name = AnimationTrack.Name
    local FoundAnimation = ReplicatedStorage.Animations.Emotes:FindFirstChild(Name)

    if not FoundAnimation then
        warn("Missing animation", Name) return
    end

    local Humanoid : Humanoid = Character:FindFirstChildOfClass("Humanoid")
    local Animator : Animator = Humanoid:FindFirstChildOfClass("Animator")

    local TimePosition = AnimationTrack.TimePosition  

    local SyncedAnimation = Animator:LoadAnimation(FoundAnimation)
    SyncedAnimation:Play()
    SyncedAnimation.TimePosition = TimePosition 
  
end

for _, AnimationTrack : AnimationTrack in UserCharacter.Humanoid.Animator:GetPlayingAnimationTracks()
    
    if AnimationTrack ~= nil then
        Sync(AnimationTrack)
    end

end)```
#

might of gotten ssmth wrong since its

#

on discord code

#

but ya this should work i thinkk @leaden spruce

leaden spruce
#

oh okayy tyy

sour yacht
#

you'll have to do all the other stuff urseld but this should sync up stuff

#
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SyncRemote = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("Sync")

SyncRemote.OnServerEvent:Connect(function(Player, User)

    local Character = Player.Character
    local UserCharacter = User.Character

    local function Sync(AnimationTrack : AnimationTrack)

        if not AnimationTrack then
            warn("You must provide a AnimationTrack") return
        end

        local Name = AnimationTrack.Name
        local FoundAnimation = ReplicatedStorage.Animations.Emotes:FindFirstChild(Name)

        if not FoundAnimation then
            warn("Missing animation", Name) return
        end

        local Humanoid : Humanoid = Character:FindFirstChildOfClass("Humanoid")
        local Animator : Animator = Humanoid:FindFirstChildOfClass("Animator")

        local TimePosition = AnimationTrack.TimePosition  

        local SyncedAnimation = Animator:LoadAnimation(FoundAnimation)
        SyncedAnimation:Play()
        SyncedAnimation.TimePosition = TimePosition 

    end

    for _, AnimationTrack : AnimationTrack in UserCharacter.Humanoid.Animator:GetPlayingAnimationTracks() do

        if AnimationTrack then
            Sync(AnimationTrack)
        end
        
    end

end)```
#

@leaden spruce

leaden spruce
#

new?

sour yacht
#

ya i fixed smth

safe wren
#

player is always the first argument of a server event

sour yacht
#

oh ya

#

good point

#

ok now its fixed fixed

#

well

#

ya

#

discord coding so annoying

safe wren
#

lol

tired rampart
#

-gun system

  • good anims
    -bank robbery system
    -police team jail system
    -custom character
    -job system
    -etc
    can someone do that for a basic hood game for 50 usd +?
sour yacht
#

custom character

#

like no humanoid or starter character

plush oxide
#

Hes mean a starter character

tired rampart
#

can u do that for me for 50 usd?

#

or more than 50?

tired rampart
young olive
#

how do i make this rainbow text

thick sluice
#

is this code messy

uncut ore
#

I USE AI TO CODE HAHAHAHAH

thick sluice
#

vibe coder

uncut ore
#

just kidding

somber vault
#

yooo

#

I gots a question

#

I finished the scripting playlist and I'm kinda stuck on what to do next

plush oxide
somber vault
#

that was too easy

plush oxide
#

Make a modular combat system ; )

somber vault
#

.-.

runic quarry
#

Horror game ion

plush oxide
runic quarry
#

Just make whatever you feel like making

plush oxide
#

An easy game to make

runic quarry
plush oxide
#

But ig

runic quarry
#

What games did you want to make

somber vault
#

currently I want to make a sim first then make the games I've been thinking on making for a while

#

can't really make a big game by myself with little skill and no funding fr

thick sluice
#

.

maiden thicket
#

who can script ai navigation like a guard which detects and patrolls lmk

tired rampart
radiant island
dusk lake
#

should i be using pascal case or camel case; does it matter

plain patrol
#

and what the fundamental that u recommend to learn before doing magic attacks + VFX

#

πŸ”₯

solar raptor
#

dude ragdoll works perfectly fine, except for when I jump and the game tries to ragdoll me

solar raptor
#

i had to add this line of code

humanoid.EvaluateStateMachine =  false
candid kestrel
# plain patrol how much time u spent on this

not long, for the explosion skillset, i did about 1 skill a day (spent 1-2 hours on each skill), and i spent aboud 4-5 hours working on the 2 wind skills (only took so long because i wanted to perfect the dash

plain patrol
#

but what are the fundamentals that u used for creating skills tho

plain patrol
plain patrol
#

a few days ago

#

i want to know what takes , to create a single blow

tight ether
candid kestrel
plain patrol
#

alright

#

i appreciate it

plain patrol
tight ether
plain patrol
#

hahahaha

#

Breaks & Continues - Roblox Beginners Scripting Tutorial #12 (2025)

#

rn im on this video

#

xD

tight ether
#

oh

plain patrol
#

well explained things

tight ether
#

me im on Vibrations - advanced scripting tutouiral

plain patrol
#

and so things to-do

#

ohhh

#

i'm on this plalist

#

still coding and watching

plain patrol
#

?

tight ether
#

while true do
func
end

honest shuttle
#

guys

#

@everyone

#

please

#

guys how to make sure that people can't respawn like block the thing to respawn

onyx inlet
honest shuttle
#

please

tight ether
honest shuttle
#

where i put

#

?

tight ether
#

startercharacterscripts

honest shuttle
#

local script ?

tight ether
#

yes

honest shuttle
#

yep

tight ether
#

wrong script

#

i took the wrong one

honest shuttle
#

thanks bri

tight ether
#

Its this one game:GetService("StarterGui"):SetCore("ResetButtonCallback", function() end)

honest shuttle
#

no work

#

no bro

tight ether
#

whtat

honest shuttle
#

work

tight ether
#

what

#

wyd

honest shuttle
#

It works

tight ether
#

ur welcome

honest shuttle
#

tks

#

just

#

I have another question

tight ether
#

wh at

honest shuttle
#

I want to create a table of people's best score, but how do I do it? I already have the shares but the script

honest shuttle
tight ether
honest shuttle
tight ether
#

oj

tight ether
honest shuttle
#

i want creat

#

How can I make one?

tight ether
#

make what

honest shuttle
#

A label with the best time of the player

tight ether
# honest shuttle

local bestTime = math.huge

-- Function to update the best time
function updateBestTime(currentTime)
if currentTime < bestTime then
bestTime = currentTime
bestTimeLabel.Text = "Best Time: " .. string.format("%.2f", bestTime)
end
end
#what the fuck im i doing

honest shuttle
#

where i put ?

plain patrol
#

why my script stop on print ("A <=1")

#

?

tight ether
#

for A = 1, 10000 do
if A == 200 then
print("The A Breaked on 200")
break
end

if A <= 1 then
    print("A <= 1")
end

end
its so obvious bro

tight ether
honest shuttle
tight ether
#

because i dont know ur hierachy

honest shuttle
#

ok mm

thick sluice
#

and it makes fire

candid kestrel
plain patrol
plain patrol
thick sluice
#

cant

#

its only for coal

plain patrol
#

aw ok

tight ether
tight ether
gloomy kraken
thick sluice
#

fr

gloomy kraken
#

you even got the missing local

thick sluice
#

@gloomy kraken is this ai

tight ether
thick sluice
gloomy kraken
dense ruin
#

what items are stored in replicated storage

gloomy kraken
dense ruin
#

like what

gloomy kraken
gloomy kraken
thick sluice
gloomy kraken
dense ruin
#

"holy nesting" (1 nest)

thick sluice
#

i aint bad

gloomy kraken
gloomy kraken
gloomy kraken
dense ruin
#

why not do local firething = part:findfirstchild("particle") or part:WaitForchild("particle")

gloomy kraken
#

makes it more readable icl

dense ruin
#

It could save the if statements

gloomy kraken
#

do you even know what they do

thick sluice
dense ruin
gloomy kraken
dense ruin
#

unless its a sanity check

gloomy kraken
#

what is bro yapping about

thick sluice
gloomy kraken
#

is there a script that adds the particles?

dense ruin
#

what would he need waitforchild for if it checks both the character and replicated storage

#

the tool can still be in the character even if the assets arent loaded

thick sluice
#

coal + fire = more fire

gloomy kraken
#

just directly enable/disable the uis inside the hierarchy 😭

thick sluice
dense ruin
#

repost so i dont have to keep scrolling

gloomy kraken
# dense ruin

he doesnt even need waitforchild for proximityprompt

#

he should learn when to use waitforchild and findfirstchild

dense ruin
#

yes. i dont know who mentioned that it should wait for the tool but it is not necessary

#

also the coaltool is defined twice for no reason it seems

gloomy kraken
#

and theres too much nesting

thick sluice
#

theres only 1 nest

gloomy kraken
thick sluice
#

no

#

duh

#

thats the point

gloomy kraken
#

holy skid bro

thick sluice
#

it still works Thumbsup

#

not like it gives me 393472687348463287463234224 errors

dense ruin
#

pretending the fire assets were defined properly, the if statements could be necessary if they can be destroyed somehow

#

otherwise there would be an error if the user requests after theyre destroyed

#

a nest isnt bad just because its a nest

gloomy kraken
dense ruin
#

that being said, no offense to the coder (unless it was an ai) but it doesnt seem like that was the intended effect

thick sluice
#

so its not ai πŸ˜”

dense ruin
#

and people working on the script

#

at any rate if this was written it should include comments like any other code

dense ruin
#

The coal tool could be missing children while still existing

thick sluice
dense ruin
#

idk i dont use ai for code

gloomy kraken
thick sluice
# dense ruin idk i dont use ai for code

this is ai's code
-- Create a variable named "false" (this is actually a variable name, not the boolean value)
local false = false

-- Print the initial value
print("Initial value of our variable named 'false':", false)

-- Change the variable named "false" to true
false = true

-- Print the updated value
print("Updated value of our variable named 'false':", false)

-- Additional confirmation
if false == true then
print("Successfully set false to true!")
else
print("Something went wrong!")
end

dense ruin
#

those are the checks. as far as ive seen thats probably the best way to do it. I would personally prefer a loop after the tool is equipped to enable each particle instead of 3 if statements

gloomy kraken
#

NEVER USE AI AGAIN

thick sluice
dense ruin
#

it looks like each part in the tool has an effect or light or something, so a loop would do fine, no need for if statements

#

it will also be scalable. what if later you update the tool and it has 10 particle effects

gloomy kraken
#

skid meeting bruh, im going back to deepwoken

dense ruin
#
  • readable
thick sluice
#

e

thick sluice
dense ruin
#

lol

rain hound
#

can an exploiter use a local script and then use a bindable event to communicate with a server script that's listening for a bindable event?

plain patrol
#

event is a little hard

thick sluice
#

.

cunning ivy
#

anyone know how I can code a circle that will full up everytime I click except the cirlce is an imagelabel?

brazen bramble
#

Does the edit pivot position tool effect the pivot position for scripts utilizing the part

thick sluice
#

big fire

brazen bramble
#

ts pmo icl

short notch
#

how is it possible to make a module/local script detecting a accessory named ''banana'' for example and checks its meshes as values v1 ( Mesh named 1 ) and etc for example banana has 3 meshes v1 v2 v3 it checks the module script which mesh is toggable and pastes from a template changes the textlabel to ''3'' mesh3 v3 and when clicked makes that v3 mesh transparent 1

somber vault
#

I need help making a script for a Hammer tool I want to use raycast or shapecast, I'm trying to get it to attach parts/models that have a "Placeable" tag without it anchoring the parts. I've gotten really close to where it attaches a part to another part, but they aren't touching, and it takes multiple clicks to get it to attach. I'm also trying to get it to snap to the part like if I attach 2 cylinders they attach on the flat side and they are lined up. I have a local script as a child of the hammer and a script in serverscriptservice. Any help is appreciated, thank you.

#

kinda like SSE2

full island
#

does using semi-colons at the end of lines worsen performance or cause any negative side effects?

#

it just feels wrong to not use them after using java for so long

dense ruin
#

with modern computers the effect would be basically zero

full island
#

thanks

copper apex
hasty mesa
#

and thats neglectable

#

and pretty much 0

gloomy kraken
lone rain
#

How much would a blue lock rivals type match loop cost

copper apex
#

Its prob just me I am just used to it

#

Obv nesting it a lot is bad but the pic he showed doesnt really have too much

lone rain
#

Match system with position picking

gloomy kraken
#

huh yeah, im used to minimal nesting so his pic just kinda tires my eyes out

hearty harbor
#

someone give me something to script, take to consideration i am a beginner

craggy mason
#

Heyyy I need a scripter asap!! My main scripter ended up disappearing, and I need someone to finish his tasks(kinda simple), I’m offering 3k robux tax included, DM me!

Srry if this isn’t the right place to post this since I can’t wait 1-2days for a hiring post to get confirmed rn

granite spruce
craggy mason
# granite spruce Hey! What do you need to fix exactly ?

Well it’s not really fixing, I have this rate my avatar game, and I needed my scripter to implement 4 booth skins, he already made the system and half of the skins are already added I just need someone to add the rest for me.

Also few other things like a proximity prompt Gatcha for gears/tools that makes you spent currency(currency already made).
And lastly a thing where if the player stays in the game for like 60mins they get free vip commands with the Hd admin in our game, I think I may need to go slightly more in-depth but that’s basically all of it

old crypt
#

any scripters got a lil free time rq?

#

if you do then hmu in my dms rq

tropic sequoia
#

Yo guys can you help me out please? Can you see what I can improve in this code block please?

#

It works but I am trying to organize it, trying to learn code organization, this is a module btw.

runic quarry
#

secondly the continue statement is redundant

tropic sequoia
#

alr

runic quarry
#

won't affect anything but still

tropic sequoia
#

thank you let me try immplement that

static coral
# tropic sequoia Yo guys can you help me out please? Can you see what I can improve in this code ...

117: constant values should preferably be declared at the top of the script
124: pairs is useless
125: turn if statements around to avoid nesting for example: if key ~= β€œWood” then return end
127: why r u assigning a for loop value????
130: once again turn the if statement around to avoid nesting, if not check then print(…) return end
131 & 132: you dont need to use waitforchild since leaderstats should already be created
144: continue is useless here

runic quarry
#

also you're assigning the variable value with newdata

#

but isnt value the key,value pairs of material

tropic sequoia
#

dang you are right

static coral
old crypt
#

can someone please make a fps game w me rq i wanna upload it to my yt

tropic sequoia
#

dang the function too big I can't fit it on the snipping tool

static coral
tropic sequoia
#

nah still doing it but you say turn the if statement around without a for loop, would it still require a key? should I just get the attribute from the players character

static coral
tropic sequoia
#

yeah

static coral
#

then remove all that shit u can literally just do dictionary[β€œWood”]

tropic sequoia
#

the dictionary adds itself from the attributes given to the players character

static coral
#

or dictionary.Wood

tropic sequoia
#

oh alr

azure gate
#

ayo guyz do yo have any ideas on how to make so tht it detects inappopriate avatar items?

trim basin
#

pretty sure theres a framework for that

#

I forget the name but JJS used it i think?

tropic sequoia
weak radish
#

how do you remove enter from a string

trim basin
#

wym

#

like the word enter?

weak radish
#

Nah like the key

trim basin
#

ahh like the indent

silver verge
#

replace \n with ""

weak radish
trim basin
#

little research str = str:gsub("[\n\r]", " ")

weak radish
#

I know more abt python than lua now tbh

trim basin
#

not sure, I forgot all the codes but

#

thats what I got off the forum

weak radish
#

actually

#

NVM

#

It worked

#

thanks

#

are links banned here?

trim basin
#

Gotta be chat lvl 5

#

I just got it lol

#

do /stats in the cmds chat

weak radish
#

alr

#

Oh nice im level 8

#

I made such a pointless game I love it

hardy pilot
trim basin
#

pretty sure it checks if its hit the limit

tropic sequoia
#

I need to change the value passed through though

hardy pilot
tropic sequoia
#

alr I'll change it

#

I am not good at naming 😭

hardy pilot
#

But since it's a function, is it possible you're calling it later after the change occurred?

#

since it can't listen to changes that already happened

tropic sequoia
#

fair point, I used it to free up space inside the function

#

It will only be connected to the materialCheck() function

remote bear
tropic sequoia
weak radish
remote bear
weak radish
#

😭

#

I always thought it could only screenshot

tropic sequoia
#

yes

weak radish
#

sob

remote bear
weak radish
trim basin
#

me too lol

tropic sequoia
#

Is there anyway to organize this? I have 2 parts

trim basin
#

organize what

tropic sequoia
#

1 function btw 😭

#

works though

trim basin
#

your colors are so different from mine it hurts my brain but

#

I like to put big big comment lines with labels of what each section handles

sudden estuary
trim basin
#

example

tropic sequoia
#

compress?

trim basin
#

the lines will go all the way down

tropic sequoia
#

Oh alr

sudden estuary
trim basin
#

just something I do personally though, everyone has their own knicks

sudden estuary
#
for i,v in {"wood","stone","pickaxe"} do
  local Value = Instance.new("IntValue")
  blah blah
end
#

same for setting the value

tropic sequoia
#

okay

#

let me try it out

tropic sequoia
#

yeah I have just in case

weak radish
tropic sequoia
#

should it be an array?

sudden estuary
sudden estuary
#

ur key and value r the same

weak radish
tropic sequoia
#

fair

sudden estuary
#

u r better off with just value

trim basin
# sudden estuary no

to each their own i guess, i prefer that so I can just add another one whenever I want if I need to

weak radish
#

I mean it doesn't hurt your code it's just pointless

sudden estuary
weak radish
#

{"Wood","Stone etc works just as well

tropic sequoia
#

alr

trim basin
tropic sequoia
#

let me change it real quick

trim basin
#

all depends on preference tbh

sudden estuary
#

change ur value parent or an array containing parent so u accomdate any other stuffs if u need

tropic sequoia
#

okay so dictionaries are better in a sense of holding different values

#

alr

trim basin
#

they're key to value based, each key can't be the same and holds a value

#

so if you need 1 value for each key a basic dictionary is what you use

#

you can nest dictionaries and arrays if you need more

weak radish
#

Normally it's for values that's changing

#

I mean not always

tropic sequoia
#

alr cool, let me change some stuff real quick

tight ether
#

a

tropic sequoia
#

How do I use next(), is it depricated?

loud stratus
#

and when u use pairs u are already using next behind the scenes

tropic sequoia
#

can it go to the next value in the table?

#

oh alr

loud stratus
# tropic sequoia can it go to the next value in the table?
#

its pretty simple

#

this forum summarises it well

tropic sequoia
#

alr thanks

loud stratus
#

next returns a tuple which is the key and the value of the array u passed it, and the index u want to look at

sturdy briar
#

can someone help me with cframes?
how to make my curve be in the correct way

tropic sequoia
#

confusing, is it just a manual for loop that will pass through a dictionary but you'll have to call next again

#

it will give you an index if you call next(dictionary, nil)

#

rather than the value it passes through after

lime gyro
#

anyone knows a way to detatch the player head from torso without it killing him ?

plain patrol
#

how i can learn findfirstchild more easily

trim basin
#

wym

#

it just finds the first child of the name you give

#

of whatever you're using it on

proper adder
#

guys how to fix the fact that TS looks very laggy? I already tried to do it through heartbeat and it also was laggy. I made a separate part in workspace and added there a random script with TS and on this part TS worked normally

brave jay
#

is there a way to increase ur max FPS in studio gang

#

i need to run some tests with my raycasts and it sucks having to publish and go to the main game

tropic sequoia
#

studio setting and rendering

#

I think

tough kettle
full island
#

is there any way to change a player's rank in a group via a script?

meager marsh
#

Is there a way to make my Billboardgui tween Vertically? like from Top shrinking to bottom, I had to rotate my gui for it to be vertically and when I tried to make it shrink with TweenSize it just keep tweening Horizontal? (This is not scripting issue, seems like to be Billboard gui issue)

magic yacht
# proper adder

i like this theme can you send me the entire script editor

karmic coral
#

who wanna join my stay alive kinda game must be a scripta

forest bear
#

how do i make a backpack gui using topbarplus

forest bear
static coral
#

you need to make bot

static coral
#

UI will always move and resize relative to anchorpoints position

thick sluice
#

idk

static coral
#

fyi it is a property

static coral
brave jay
#

thanks guys

meager marsh
#

center it

brave jay
#

nah it was that it was capped at 60

thick sluice
#

coal = campfire = fire

#

this was scripted by me

static coral
#

additionally you can put lighting mode to shadowmap/voxel for performance and also use opengl lighting engine in settings (you will have to restart for changes)

brave jay
#

anyone have any ideas what other settings my gun system might need?
i cant think of anything and im kind of a spaghetti coder, so any ideas now would be much appreciated!!


local Player = game.Players.LocalPlayer

return {
    type = 'assault'; -- shotgun, sniper, or assault
    firemode = 'auto'; -- auto or semi
    
    teamkill = false;
    zoom = false;
    

--SETUP FOR CLASSES
    shotgunAmmo = 0;
    
    sniperChargeDMG = 105;
    
--GENERAL SETUP

    spread = .055;
    range = 100000;
    rate = .085;
    
    reloadTime = 1.5;
    maxAmmo = 40;
    
--DAMAGE SETUP

    damage = {
        head = 12;
        torso = 11;
        arms = 10;
        legs = 10;
    };
    
--ANIMATIONS SETUP

    animations = {
        idle   = 98964021294565 ; 
        fire   = 108079084773190; 
        sprint  = 124930052163789; 
        reload = 108092244094481;
        equip  = 122881089780445;
    };
    
--RAYCAST SETUP
    
    ray = {
        material = Enum.Material.Neon;
        brickColor = Player.TeamColor; -- So that the team colour is the ray colour 
        size = 0.15;
    };    
    
}





static coral
meager marsh
thick sluice
#

how do i make this script not look messy

static coral
tropic sequoia
#

The value isn't updating even though it is a server module

thick sluice
#

cuz it reached the discord message limit

#

so i had to make it a .txt

brave jay
static coral
#

idk how to make recoil πŸ€·β€β™‚οΈ

#

from what i have seen its just a lerp on camera properties

wicked herald
#

hey can i get help with this?

thick sluice
#

how do i make this script not look messy (repost with image)

wicked herald
brave jay
full island
static coral
stone wren
#

How do i learn to script

static coral
thick sluice
#

all the things you listed me

#

on the message

static coral
#

just google

thick sluice
#

bruh

#

give me a real answer

thick sluice
#

you just said "google it"

#

like bro, when was i needing google?

static coral
#

i am not explaining all that shi πŸ™πŸ™πŸ™

#

just look it up

thick sluice
#

can't

stiff citrus
#

Are module scripts crucial when making a game?

static coral
tropic sequoia
#

How would I get the max number of the table without using table.maxn()?

#

Because the key values keeps on returning 0

tropic sequoia
#

sorted it out, forgot hashtags existed

#

is this the best way to organize slots

karmic coral
#

dm me if ur a scripter and u wanna partner w me to make a sword fighting game i alr have a small community

dense ruin
tropic sequoia
dense ruin
#

πŸ‘

tropic sequoia
#

solved with this

karmic coral
#

dm me if ur a scripter and ur interested in making a steal time / flex your time game i do ui + vfx

#

& sword model

brave jay
#

no thats perfect, i like it when my rays DONT RENDER and my cursor DOESNT RLLY WORK

#

the modules r too long to send here bro idk what to do

thick sluice
sterile pollen
#

is roblox down for yall too

#

what is a good vpn

thick sluice
#

1111/100

soft monolith
#

Hello, can anyone who is good at pricing stuff contact me, I have a question regarding a certain task