#code-discussion

1 messages · Page 136 of 1

idle spear
#

its the only way

civic garnet
#

get a j*b

fervent karma
idle spear
fervent karma
idle spear
#

but i cant remember SHIT

fervent karma
fervent karma
idle spear
fervent karma
idle spear
#

i believe i do, i forget stuff every 10 seconds

fervent karma
#

after a few months you should start remembering though

idle spear
#

i started scripting a while ago

celest cipher
#

that part doesnt work, it runs the else statement

rugged mist
#

gimme a sec

#

ur not tell us which part dosnt work

#

you're just saying it all doesnt work

fervent karma
civic garnet
idle spear
#

im gonna just try to start scripting my game by myself and try to improve it later

civic garnet
#

and please find a way to get rid of those 20 if statements

fervent karma
civic garnet
rugged mist
# fervent karma

local Players = game:GetService("Players")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local CollectionService = game:GetService("CollectionService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")

local PlayerData = require(ServerScriptService.Services.Core.ServerPlayerData)
local DictSort = require(ReplicatedStorage.Modules.DictionaryQuickSort)

local Pet = require(ServerScriptService.Core.PetCore)
local Enemy = require(ServerScriptService.Core.EnemyCore)
local Battle = require(ServerScriptService.Core.BattleCore)

local clients = {}

export type PlayerCore = {
    Player : Player,
    BattleFolder : Folder,
    FocusPoint : Attachment,
    Character : Player.Character,
    EquippedPets : {},
    Location : string,
    EnemiesInRadius : number,
    MaxAllowedSpawnEnemies : number,
}

local PlayerCore = {}
PlayerCore.__index = PlayerCore

function PlayerCore.new(Player : Player) : PlayerCore
    local self = {}

    self.Player = Player
    self.BattleFolder = Instance.new("Folder")
    self.FocusPoint = Instance.new("Attachment")
    self.Character = Player.Character or Player.CharacterAdded:Wait()
    self.EquippedPets = {}

    self.Location = nil
    self.EnemiesInRadius = 0
    self.MaxAllowedSpawnEnemies = 20

    self.BattleFolder.Name = Player.Name
    self.BattleFolder.Parent = workspace.Battles

    self.FocusPoint.Name = "FocusPoint"
    self.FocusPoint.Parent = self.Character:WaitForChild("HumanoidRootPart")

    self.Connections = {}

    table.insert(self.Connections, Player.CharacterAdded:Connect(function(character)
        self.Character = character
        character:SetAttribute("InBattle", false)
        CollectionService:AddTag(character, "Players")
    end))

    self.Character:SetAttribute("InBattle", false)
    CollectionService:AddTag(self.Character, "Players")

    return setmetatable(self, PlayerCore)
end
-- This equipPet function needs to be refactored

function PlayerCore.GetClients()
    return clients
end

function PlayerCore.GetClient(Player : Player)
    if clients[Player] then
        return clients[Player]
    else
        return nil
    end
end

function handlePlayerJoin(Player : Player)
    if not clients[Player] then
        clients[Player] = PlayerCore.new(Player)
    end
end

function handlePlayerLeave(Player : Player)
    for _, connection in clients[Player].Connections do
        connection:Disconnect()
    end
    clients[Player] = nil
end

Players.PlayerAdded:Connect(function(Player : Player)
    handlePlayerJoin(Player)
end)

Players.PlayerRemoving:Connect(function(Player : Player)
    handlePlayerLeave(Player)
end)

return PlayerCore

civic garnet
#

start off with small things

rugged mist
#

tthis for example is my player class

fervent karma
idle spear
rugged mist
#

this deals with a player on the server

#

which excludes data

#

thats in a seperate module that handles all players data

idle spear
rugged mist
#

it exports the type to be used in other scripts

fervent karma
#

i remember looking at a video about it but forgot what it does

celest cipher
idle spear
#

but i forgot investors like games that are already like 40% finished

fervent karma
rugged mist
idle spear
#

imma try and work on my game

#

TRY

fervent karma
civic garnet
fervent karma
#

ts so boring 💔

fervent karma
civic garnet
#

just use catppuccin

fervent karma
idle spear
#

i forgot how do you check how many children are inside a parent

#

its simple asf right i just forgor

rugged mist
civic garnet
brazen hornet
#

can someone script something and I pay them rn 🙏

idle spear
#

robloxs ai is so shitty, i tested it out the other day and it said :GetDescendants() was deprecated

civic garnet
civic garnet
idle spear
civic garnet
idle spear
#

not just that

#

uhh

brazen hornet
idle spear
#

where you put if

civic garnet
brazen hornet
#

ok bet

idle spear
#

so if i do if #players:GetChildren() == idk then

end

#

where do i put the amount need

#

ed

brazen hornet
#

if ur serious lmk

civic garnet
idle spear
#

LIKE IT DOES NOT KNOW THE AMOUNT IT NEEDS

civic garnet
idle spear
#

IM JUST CHECKING IF THERES 2 PLAYERS

#

WHERE DO I CHECK IF THERES 2 PLAYERS

civic garnet
idle spear
#

WHERE DO I PUT THE NUMBER

#

WHERE

civic garnet
#

#players:GetPlayers() returns a number

brazen hornet
#

ughhh I have to hire the people from the other channels 😔

#

those people take forever to reply

soft burrow
#

how do i attatch my entity class to players and npcs

celest cipher
brazen hornet
idle spear
#

WHERE DO I PUT THE DAMN 2

rugged mist
#

thats the problem with anticheats

rugged mist
#

its a constant battle between cheaters and developers that never ends

soft burrow
idle spear
civic garnet
rugged mist
#

and if its impossible to do so in your game, or within a certain time frame

#

then you teleport them back to the ground

#

or you can also do a velocity check on the server to see the direction their velocity is headed in within a given time frame

idle spear
rugged mist
#

say, a normal jump will have a positive y direction velocity for 0.5 seconds, then, if a player has a positive y direction velocity for more than 0.5 seconds, then you teleport them

rugged mist
#

why are you even trying to make an anticheat atm

#

if ur day 1

celest cipher
#

ts doesnt work

celest cipher
#

please help me so i can sleep

rugged mist
#

well ill be honest the fact that you're using attributes for data that should be saved in a table under the player is not the right direction to go

#

@celest cipher what game is it

fervent karma
rugged mist
#

raycast or velocity check

livid acorn
#

may someone give me some project ideas please, I'mbuilding up my portfolio

celest cipher
#

its like a peak game on steam

#

mixed with steal a brainrot

#

lol

rugged mist
#

bro im telling u learn the basics first dont try to jump head into advanced things u dont understand

#

trust me i got exp

thorn arch
idle spear
#

this is inefficient i can tell
local roundTimer = game.StarterGui.LobbyGUI:WaitForChild("RoundTimer")
local players = game.Players
while #players:GetPlayers() == 1 do
wait(0.1)
if #players:GetPlayers() >= 2 or #players:GetChildren() == 2 then
print("Nice.")
end
end

thorn arch
#

Similar to components in unity

thorn arch
idle spear
fervent karma
thorn arch
#

Keeping track of playercount

rugged mist
idle spear
rugged mist
#

also Players is an service

thorn arch
rugged mist
#

so u doing #Players:GetPlayers is a bit redundant

thorn arch
#

Playercount += 1

idle spear
thorn arch
#

And do the opposite when player removed

#

But you should do an initial #players:GetPlayers()

#

Incase any players join

#

Before the script runs

#

(usually shouldn't happen)

fervent karma
idle spear
next rock
thorn arch
fervent karma
somber vault
thorn arch
#

But no harm in being safe

opal spear
idle spear
fervent karma
thorn arch
#

Perhaps the server is created on the same cycle that the first player joins

#

And the player added event is fired before this script runs

idle spear
fervent karma
opal spear
celest cipher
fervent karma
celest cipher
#

for the getstate if statement

opal spear
rapid verge
thorn arch
opal spear
idle spear
#

@rustic inlet can you change my display to vektra i dont like it being my main username

idle spear
opal spear
# idle spear alr

local Players = game:GetService("Players")

local playerCount = #Players:GetPlayers() -- Give you how many players are already in the game, you can use this or not ig

Players.PlayerAdded:Connect(function(player)

playerCount += 1

if playerCount == 2 then
Print("Nice.")
end
end)

Players.PlayerRemoving:Connect(function(player)

playerCount -= 1 --for when players leave

end)

opal spear
#

Yes, i forgot to add player as a param in the PlayerAdded and PlayerRemoving just added, it @idle spear

idle spear
#

THEY CHANGED IT TO CONNECTIONS IN STUDIO

opal spear
#

what even is connections...

idle spear
opal spear
#

disgusting

fervent karma
#

WHYYY

idle spear
#

this is so sad that i need to get water now

thorn arch
#
local Players = game.Players
local playercount = #Players:GetPlayers()
Players.PlayerAdded:Connect(function() playercount+=1 end)
Players.PlayerRemoved:Connect(function() playercount-=1 end)
fervent karma
thorn arch
#

Code block

opal spear
#

never used one on discord

thorn arch
#

```lua
Code
```

#

Like that

opal spear
#

let me see

#

nice

wind portal
#

Can I script?

idle spear
#

spongebob studio

mint cloud
plucky garden
#

imageasset and decalassest is something else?

south fable
#

how to make public

#

animation

gusty heron
#

I have a billboard gui to show people's rarest finds in an rng game I'm trying to make but whenever I spawn the billboard sometimes doesn't even go to the player and is picked up by other players

idle spear
#

im a minor

wind portal
#

Why?

#

What have I done?

mint cloud
#

Scripting is illegal

wind portal
#

I do not want to be a builder.

mint cloud
#

You have to be a ui designer

wind portal
#

Then, how is this platform is made?

mint cloud
idle spear
#

im lying nvm

#

its dreams hes right

wind portal
#

What have I done?

#

To get this.

idle spear
wind portal
#

Am retiring, I want to become a chemist.

wind portal
idle spear
mint cloud
idle spear
#

we must cook

idle spear
wind portal
#

My life.

#

IS worthless.

#

Am kms.

mint cloud
#

Ok let’s not go that far

wind portal
#

Keeping myself safe.

mint cloud
#

Oh carry on then

gusty heron
#

I hate billboard gui

slender salmon
#

How do I fix clipping like this?

gusty heron
slender salmon
#

🙏

gusty heron
# slender salmon Bless bro

Do you know why a billboard gui isn’t adorning to a player correctly even if the adornment setting is properly set up?

slender salmon
#

I would love to help you but I have like 0 knowledge of these confusing ass things myself

gusty heron
#

Oh, nvm

last kernel
#

@minor cloak hows it going bro i got to vid 9 today wbu?

somber vault
#

Are you good

lost burrow
#

no advertising work in chat

somber vault
#

Experience isnt even that important, you should just focus on practicing

bleak magnet
bleak magnet
hollow ingot
#

can someone make me a grow a garden modded with admin i can pay

hollow ingot
weak radish
#

MY EYES

wicked herald
#

i fixed it

weak radish
wicked herald
#

a human

obsidian vale
sonic marlin
#

I'm curious

vocal tusk
#

How should i make an arial combo system? Like a skill that takes you to air and keeps you there?

last kernel
# sonic marlin What playlist

brawldev on youtube he has like 3 playlists but ima beginner so im starting with the easiest then gonna work my way to the next 2

#

imo its really been helpful so far just got to the part about operators

lean ocean
#

Read the roblox docs too

#

You can search up

Roblox studio operators docs

#

Or some shit like that

#

And it's also easy to understand

sonic marlin
#

I think imma do his advanced then do brawldev tutororials

last kernel
#

yea fs fs

sonic marlin
#

His advanced one have physics and vectors in them 😬😬

last kernel
#

he also has a gui one

sonic marlin
#

That's gonna be mad fun

last kernel
#

i love maths alot

sonic marlin
last kernel
#

same 😈

lean ocean
#

Goodluck with cframe math

digital depot
#

brawldev for live

sonic marlin
sonic marlin
digital depot
digital depot
#

and multiplication

peak jolt
#

except its none of those because the game does everything for you and you just type cframe1 * cframe2

digital depot
#

basically yea

#

its mostly just trial and error

sonic marlin
digital depot
#

if your trying to get like

sonic marlin
#

Like if u wanna make a pet follow script

digital depot
#

stud-perfect angles

sonic marlin
#

Just add opposite of direction vector multiply hy a scalar and move it to the right

sonic marlin
#

@digital depot can u explain why we use :Connect()

peak jolt
#

if u understand what "move it to the right" means with cframes u basically already know 90% of what u need to know

flat monolith
#

Where can i find Script help?

peak jolt
#

like quant said the rest is trial and error

peak jolt
digital depot
#

i tink

sonic marlin
digital depot
#

im not rlly sure why but i just know you ddo

sonic marlin
digital depot
#

idk the exact reason why

#

i just know you do tht

vestal lantern
#

Because you’re connecting the event that gets triggered to a function you want to make

sonic marlin
idle galleon
#

In the new party feature is there a way to invite a player to join your party through a script,
Ex. You walk up to a player and hold proximity prompt to invite the player to your party

vast bay
#

And work ur way up

#

Scripting should be the last thing u learn

sonic marlin
sonic marlin
vast bay
#

Not in that way

#

Like he should learn guis etc first then get to scripting

sonic marlin
#

The thing for inventory and whatnot

vast bay
#

Ui, frontend in general

sonic marlin
vast bay
#

Brawl dev ig

#

Just look him up

fallen fiber
#

want to learn scripting, i know the basics and i know that to improve i have to just script, can you give ideas i don't have any

peak jolt
peak jolt
#

there are a lot of guides on the wiki for example that assume you have zero knowledge, they are also pretty much linked when you open up studio for the first time on the home page

sonic marlin
#

Instead of just bruteforcing learning I do it the smart way

#

So I spent less time and energy on leaning the same thing

vestal lantern
#

It helps you get started easier

peak jolt
#

but the guide on the wiki has the same kind of format as a youtube video, just that its text and not a video

#

its not like you are reading raw documentation at all

sonic marlin
vestal lantern
peak jolt
#

nowadays i consider video tutorials to be asinine because for anything i want to learn i much more value the ability to "pause" on a web page or scroll up for stuff i missed or scroll down to quickly skim, all things you cannot do well in a video. but since you are a beginner i was just wondering where your intuition for this comes from

last kernel
peak jolt
vestal lantern
last kernel
vast bay
last kernel
#

the brawldev guy (youtuber) said to do the beginner playlist first (on youtube) then either pick the advanced or gui playlist (also on youtube) next

peak jolt
#

some guy talking on youtube for 20 videos in a row would just be the best source and most of the time its only the best source because its the only source

peak jolt
fallen fiber
peak jolt
#

they are two different kinds of scripting, one requires more planning and foresight and the other is more about creativity and problem solving

#

its hard to make systems work with each other if you're not already confident that things you make can be built upon by other things

fallen fiber
#

which one would be the most logic to learn first

peak jolt
#

thats hard to say and i have no idea

#

if you are confident then you can try just making a grow a garden game, the barebones of that can be done in 1-2 days and there are a lot of different kinds of things you can add later to learn more

fallen fiber
peak jolt
#

you are either thinking too big or you think its a lot more than it actually is

fallen fiber
vestal lantern
#

How do you go about making a grow a garden game

peak jolt
#

start by just having a button that plants a plant in the world (via remote events obviously), anywhere in the world, not where the user wants it

#

and then make it so the growth of that plant updates over time and when its done growing it stops and shows that it is done (for example just have a berry that is invisible at the start and then becomes visible when its ready to harvest)

vestal lantern
#

The plant logic is kind of confusing to think about

fallen fiber
peak jolt
#

then make it so when you click the berry its added to your inventory, and the growth starts over. then you just need a 2nd button that sells your whole inventory for money, and you basically already made half the game

vestal lantern
peak jolt
# fallen fiber i thought it was replacing a plant model by another

the thing is there is a hundred ways to do it, some are simpler some are more complicated, in the end its your game and you just have to weigh your options, and sometimes your most viable option is "i'll pick whatever takes the least lines to implement, because i still have to make the rest of the game, and i just need the visuals working for now"

vestal lantern
#

That’s a good way of seeing it

peak jolt
#

have your crop be a model, have it have 1 part for the plant and 1 part for the fruit. have the plant always just be fully grown and visible as soon as it's planted, and all the growth process does is make the fruit visible or invisible. then you could for example make it so instead of visibility the fruit changes color and size over time as it grows. but that's stuff you should add after you finished making the core gameplay

vestal lantern
#

That’s pretty simple I guess but you can’t just build a plant growing system off a few lines of code that you already have

#

Without difficulty

fallen fiber
#

where do i add the scripts, in the part or somewhere else?

peak jolt
#

yes you can and doing exactly that is a good way to learn 1. how to refactor things and 2. how to write code so it is easy to refactor in the future

#

the pains you get from having to refactor it to make procedural plants will teach you how to avoid these pains in the future

vestal lantern
peak jolt
#

no not at all they are not related

vestal lantern
#

Well it’s easier for future planning

elfin timber
#

can someone explain object value to me ion understand the doc

peak jolt
# vestal lantern Well it’s easier for future planning

oop plays well with the principles of good software design that facilitate reusability and maintainability, that is true (check out SOLID), but it's just as easy to write bricked OOP code that is hard to refactor or read in the future. and you don't need to write object-oriented code to make use of these principles

vestal lantern
#

I see

peak jolt
#

something as simple as separating out all of the growth logic into a separate module script does not require any oop but will make it easier to work with in the future

vestal lantern
#

True

#

Anyway I’ll see you later I gotta go

peak jolt
# fallen fiber where do i add the scripts, in the part or somewhere else?

the scripts for the buttons would have to be client scripts (usually LocalScript in a place like StarterGui or StarterPlayerScripts). everything else I said can be done in a single server script, those usually go in ServerScriptService. none of the things I said so far should really require any scripts inside the actual plant model

peak jolt
elfin timber
peak jolt
#

i would say the value objects are mostly outdated yeah they come from times before module scripts and such

peak jolt
fallen fiber
#

@peak jolt why does the script only work when it's parent is the button part, when i put it in starterplayerscripts it doesn't work

peak jolt
#

by button (for planting the seed) i meant gui button

#

that aside i can't tell you why it doesn't work, you would have to post your code and ideally a picture of how it looks like in the explorer

severe cobalt
# peak jolt the thing is there is a hundred ways to do it, some are simpler some are more co...

to add on to this comment, a pitfall a lot of devs fall into is *optimizing too early." It's common enough that there even is a term for it, premature optimization. Your goal should always be to get it working, then optimize it if it needs to be optimized. If you try to do the most efficient way to do everything, you'll never finish a game.

even with my ocean simulation, it was running 50-60 fps when it first was implemented.. after tackling heavy tasks, it went up to 160 fps.. but at least it was working.

fallen fiber
#

i forgot what to use to stop running a code, something similar to return

fallen fiber
vital nymph
#

np

fallen fiber
#

no actualy the one in an if statement

#

break is for loops

#

no i got it actualy

severe cobalt
pallid garnet
#

This a virus?

slate valley
# pallid garnet

idiot the game is using sounds the owner doesnt have permission to

pallid garnet
lethal shell
#

Me and my dev group are making a game called how far can you jump and yes it is a brain rot cash grab game we just need a Scripter/gui/ui person dm me if you want to join making the game

crimson plank
#

U finna be hacked

pallid garnet
crimson plank
#

VaiRUS 😭😭😭

vague notch
#

lmao

#

i have a remote event from server to client right, when i touch a part it it runs remote:FireAllClients(plrname)
(communicates the playername to the client) and when the localscript in starterplayerscripts hears the event being called its supposed to send a message, im not getting any errors but its not sending a message

#

anyone know whats wrong

finite fiber
# vague notch

I think you need to get the gui from the player and not startergui

tranquil tide
#

wsp

#

can i learn without watching youtube just by doing small project?

#

i have some basics of scripoting

still egret
#

can someone help with my game. I'm making a simple simulator for my first game and i have a bug that kinda breaks the game, if you would be able to read the code and help out just DM me. Thank You.

tranquil tide
#

and i use docs

lilac zinc
#

but yes if you work on something you like you might be more interested in learning

solemn latch
lethal shell
#

DEV FOR HIRE I CAN DO ANY SKILL ON ROBLOX STUDIO EXCEPT SOUND AND VFX I HAVE BEEN DOING STUDIO FOR 6 YEARS

visual edge
#

why is claude so goated at roblox scripting

#

I have Gemini Pro but it makes basic mistakes very often

#

i get a feeling that claude is the only AI that gets what's going on on roblox accurately enough to be helpful

vale path
#

**Can someone help me fix the chat TextChatService? My donation game chat is not working in my game. How to fix it 😦 **

rain nymph
#

How much can exploiters see in terms of scripts? I want to store this module script in ReplicatedStorage but I'm scheptical of the safety of that. The module script isn't that important though, as all it does is return a list with strings related to crafting

hallow crag
vague notch
#

no chat messages sending from scripts

#

not sure howto fix it

#

no errors no nothing

hallow crag
#

so they can see scripts inside of replicatedstorage

rain nymph
#

I dont really care if they can see the script object in the storage but what about the lines of code inside

visual edge
hallow crag
rain nymph
#

I see

hallow crag
#

and see the code

rain nymph
#

thanks

hallow crag
#

if its being required by the server tho it wont effect anything

#

like they cant do anything gamebreaking

hallow crag
#

by firing the remote

#

so keep ur OnServerEvents secure

high yoke
#

how to create a teleporter?

patent gorge
#

should you put billboardGuis on client or server

lethal shell
#

DEV FOR HIRE (U CAN HIRE ME) I CAN DO ANY SKILL ON ROBLOX STUDIO EXCEPT SOUND AND VFX I HAVE BEEN DOING STUDIO FOR 6 YEARS

patent gorge
lethal shell
#

Not possible

rain nymph
#

so I think it should be ok

lethal shell
#

DEV FOR HIRE (U CAN HIRE ME) I CAN DO ANY SKILL ON ROBLOX STUDIO EXCEPT SOUND AND VFX I HAVE BEEN DOING STUDIO FOR 6 YEARS

vale path
lilac zinc
#

i will hire you for 0 robux because you are annoying!

vague notch
lilac zinc
#

maybe 1 robux if you stop spamming @lethal shell

vague notch
#

pmo

lethal flicker
#

Dev for hire I have been on studios for 20 years 😉

vast bay
#

Bruh i finally got my portfolio done

vale path
#

CAN SONEONE HELP ME FIX DONATION CHAT 👻

vast bay
vague notch
vast bay
lethal flicker
#

10,000 Robux amazing that will be me 😉

#

How much u willing to pay if I fix the donation thing

lethal flicker
#

Huh

vale path
#

done

visual edge
#

Everyone can see the console right

#

like the prints and stuff

spark willow
#

Only client

visual edge
#

Oh okay good

#

How much of a bad practice is it if there's a bunch of debugging prints in the console? Do people even check that?

hallow crag
#

all they do is fire remote events

spark willow
#

Ppl who reverse engineer check console for hints and s to know where the scripts r

visual edge
#

thank you

#

It's not like I have to worry much because my game sucks either ways. I highly doubt anyone will take time to tage advantage of my poor coding skills

#

I seriously got to a point where I don't care about code quality, I just want it to work 😭

hallow crag
#

unless ur printing from a anticheat then sure

visual edge
#

Do y'all put all your scripts in one script?

#

I'm using one server script and one local script

#

but it doesn't seem right

hallow crag
stuck kelp
#

my camera is broken

stuck kelp
#

can someone help me

visual edge
stuck kelp
#

camera bug

visual edge
#

What camera scripts do you have in your game

stuck kelp
#

like local scripts or default

#

?

visual edge
#

Any script that is changing the camera

#

or interacting with it

stuck kelp
#

still stuck idk

spark willow
#

And don’t change the starter player change it in cam settings

stuck kelp
#

i think i should put this in the starter player scripts

ivory hornet
#

🥀 vro

stuck kelp
#

cuz my camera got corrupted in the process lol

stuck kelp
#

still stuck idk

spark willow
#

Hold on ima give u the full script

stuck kelp
#

i put it in as a local script

spark willow
#

local Players = game:GetService("Players")
local player = Players.LocalPlayer

player.CameraMaxZoomDistance = 12
player.CameraMinZoomDistance = 0.5

stuck kelp
#

put this starter player scripts as a local script?

spark willow
#

Ye

stuck kelp
#

it dosent even save

vale path
#

@vague notch unblock me 😦

spark willow
stuck kelp
#

so basically when i click play it just

#

dosent work

#

it stays black or something like that

spark willow
#

U wanna change the players max and min cam zoom right?

stuck kelp
#

well its stuck

spark willow
#

That’s not that script doin that

narrow rapids
#

is it fine if a client can 'request' to the server to play fx on other clients?

stuck kelp
#

so whats the problem with it

narrow rapids
#

using unreliables

spark willow
stuck kelp
#

yup

spark willow
#

R there any other scripts that control the players cam

stuck kelp
#

well theres a script that uses t to change cams

spark willow
#

That’s prob that script then ig

lilac zinc
stuck kelp
#

well without that script the game wont work

#

feeling like its the cam

#

cause i deleted the cam and it moved

spark willow
#

Ohh hold on

#

U tryna change the cams CFrame?

#

I have no idea what u tryna doo

stuck kelp
#

so this is the problem okay

#

so when i click play

#

it supposed to load me into the arena

#

not show me a black fog

spark willow
#

The cam?

stuck kelp
#

yes

#

oh wait

#

nvm

spark willow
#

lol

stuck kelp
#

bro

#

what if i got into a diffrent template

#

and get the cam

#

delete the cam paste a new cam

#

idk

spark willow
#

Why

stuck kelp
#

so properties?

spark willow
#

Oh wait uh

#

Ye sry if u tryna move the cam just use cframe

stuck kelp
#

can i just send you a download and show you what i mean

spark willow
#

Ye

stuck kelp
#

here

#

lemme show you what i mean

#

um

#

you gonna help

spark willow
#

ye

#

u got tons of scripts im tryna read through all of them

#

which script r u stuck on

stuck kelp
#

the camera

spark willow
#

camera local in starter player scripts?

stuck kelp
#

yea

somber vault
#

i need help on my game who wants to join the team

stuck kelp
#

gng

#

script it yourself

#

unless youpaying people lol

spark willow
#

did u script that script?

stuck kelp
#

yes

safe nebula
#

anyone here knows how i can import MANY FBX files into studio FAST?

spark willow
#

-- Saved by UniversalSynSaveInstance (Join to Copy Games) https://-
-- Decompiler will be improved VERY SOON!
-- Decompiled with Konstant V2.1, a fast Luau decompiler made in Luau by plusgiant5 (https:-)
-- Decompiled on 2025-07-17 09:10:35
-- Luau version 6, Types version 3
-- Time taken: 0.004676 seconds
whats this then?

stuck kelp
#

okay maybe i stealed some scripts

spark willow
#

...

stuck kelp
#

but everybody does that bro

spark willow
#

that decompiler sucks

stuck kelp
#

i didnt steal all the scripts

#

i scripted half the game

#

then used the decomplier

#

to get scripts

spark willow
#

idrc its just that its rly hard to read

safe nebula
#

ayy? anyone knows how to import FBX files into studio fast ( i talk about a few thousand )

somber vault
somber vault
stuck kelp
#

bro everybody does

somber vault
#

i dont

stuck kelp
#

cap

#

lemme see your game rn

somber vault
#

ok?

spark willow
#

uh did u also decompile the cam script like that?

somber vault
#

its 5% done

stuck kelp
spark willow
#

well

stuck kelp
#

bro how can you just get a new cam

spark willow
#

gettin a new cam is creating a new cam and attaching it to the character

stuck kelp
#

and i did that

#

and it dosent work for some reason

spark willow
#

u didnt

stuck kelp
#

well can you do it on your end

hallow crag
#

konstant is ass

stuck kelp
#

well it gived me good scripts i needed btro

spark willow
#

ur character doesnt even spawn

stuck kelp
#

what

spark willow
#

the character doesnt even spawn

stuck kelp
#

.

spark willow
#

like even if u made a new cam what would u attach it to

#

anyways dont decompile scripts

stuck kelp
#

my characte

#

r

spark willow
#

ye

#

this decompiler is so badd

stuck kelp
#

what decomplier should i use instead

hallow crag
#

host ur server on ur localhost

#

easy decompiling

vital nymph
#

what even are decompilers

hallow crag
stuck kelp
hallow crag
#

they turn script bytecode into readable luau

stuck kelp
#

how im supposed to use ts

vital nymph
#

oh

hallow crag
#

stop being skid

celest cipher
stuck kelp
#

nvm

hallow crag
#

run it on ur localhost

#

and then make a luau script to communicate with the server

spark willow
#

what do u need decompilers for

#

just learn how to script

#

its not that hard

stuck kelp
#

i know how to script

#

it just gives me ideas

unique shadow
#

ai cant even fix the problem here ahhh

local part = game.Workspace:WaitForChild("Part")

part.Touched:Connect(function()
part.BrickColor = BrickColor.new("Really red")
end)

vital nymph
#

dawg

#

there is no function name

unique shadow
edgy venture
#

How do I implement a deterministic, multi-threaded ECS framework in Luau with hot-reload support across the client-server boundary?

unique shadow
#

idk some ytber did that and its not working for me

cosmic obsidian
#
local Workspace = game:GetService("Workspace")```
vital nymph
cosmic obsidian
#

like this

vital nymph
#
local part = game.Workspace:WaitForChild("Part")

part.Touched:Connect(function(hit) 
    if hit == true then
        part.BrickColor = BrickColor.new("Really red")
    end
end)

try this @unique shadow

cosmic obsidian
#

with this Accent

vital nymph
#

wait no fuck i forgot something

cosmic obsidian
#

can an instance even be true?

vital nymph
#

yes

spark willow
unique shadow
summer matrix
#

life:destory()

unique shadow
#

im just a begginer guys don't mind me 😄

vital nymph
spark willow
near pasture
#

Anyone have an idea how I would go about making a combat system using true OOP or another sophisticated method? Right now I just use Folders and InstanceValues to see if the player was hit, if it was on cooldown, distributing damage, etc

cosmic obsidian
#

just tested it

naive harness
#

can you not get a animation tracklength on server?

cosmic obsidian
#

else everything is right. if u wanna do it localy i could help u

unique shadow
cosmic obsidian
#

welp

unique shadow
#

LOL THX

spark willow
#

np gl lol

unique shadow
# spark willow np gl lol

thx dudee, i was told to watch brawl dev advanced scripting series and like test out of bunch of things to memorize code and also challenge myself to script stuff, this is the way to go right?

vital nymph
unique shadow
vital nymph
#

good

naive harness
#

can you not get a animation tracklength on server? I tried to retrieve it but would always return 0, no matter what.

vital nymph
#

im still not done with it lol im on playerstats

unique shadow
vital nymph
#

atleast i havent have had any major prolems yet

spark willow
#

i dont think ive ever watched a roblox tutorial vid in my life

vital nymph
#

what

vital nymph
unique shadow
#

did you just read the documentation and stuff

#

or were you born with scripting capabilities lmao

unique shadow
vital nymph
#

dont have a pc that i can transport so idk what to do

unique shadow
#

thankfully i have a laptop with me, never used a PC before 🤟

vital nymph
#

i dont have a laptop 😔

spark willow
spark willow
unique shadow
vital nymph
#

forums are really usefull i learned ahk js using them in 1 hour (basic things tho)

spark willow
#

thats how i learned over the past three years

#

bru my internet sucks

primal python
unique shadow
unique shadow
#

they told me to really just make random little scripts to familiarize with scripting

unique shadow
#

where do i find the forums though BL_Think

vital nymph
#

dev forum on roblox

unique shadow
vital nymph
#

yes

unique shadow
#

there is a lot of buttons here

#

my bad if im bothering

vital nymph
#

i mean look up random things on google abt scripting and there are posibilities that u find what ur searching (high chances)

vital nymph
#

imma try finding a way of how i can get a laptop or something that could work before i go on vacation

unique shadow
fickle shoal
#

yo if theres any scripters looking to just work on a project for fun dm me i have 1 other dev, will send game details in dms

vital nymph
jaunty wolf
#

i knew 0 math, 0 programming, just making games and googling and getting really stuck a lot lol

crisp crest
#

wow

proven lodge
rain nymph
#

When I destroy an object at the start of my game, the game lags a bit in studio (maybe a 0.2 second pause). its not a big deal but its a little annoying every time I have to test

#

is there anyway to fix that or is it even gonna be an issue outside of studio

tidal glacier
edgy venture
#

your game might not be published

#

like the version your playing might be an older one where this script didnt work

#

or the purchase logic might be on the client and not the server which can cause these bugs

#

if you send your code i might be able to help more

tidal glacier
#

'' a

#

' aa

#

aaa

#
-- This LocalScript should be placed inside your TextButton in StarterGui.
-- Replace the content of your existing LocalScript with this code.

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TextButton = script.Parent

local purchaseEvent = ReplicatedStorage:WaitForChild("PurchaseItemEvent")

-- Configure which item this button buys
local itemName = "Viper Titanium" 
-- If this button is for a different item, change the name above.
-- You could also use an Attribute on the TextButton to set this.

TextButton.MouseButton1Click:Connect(function()
    local player = Players.LocalPlayer
    if not player then
        warn("PurchaseButtonClient: LocalPlayer not found.")
        return
    end

    -- You can add a client-side check for immediate feedback, but the server MUST validate.
    -- For example, disable the button if cash is known to be too low, then re-enable if cash increases.
    -- However, the core purchase logic relies on firing the event.

    print("Client: Attempting to purchase " .. itemName)
    purchaseEvent:FireServer(itemName)
end)
#

@edgy venture

edgy venture
#

alr

#

so make sure that the items/models/tools are in replicated storage and not serverstorage, if they are and it still doesnt work. make sure that the PurchaseItemEvent remoteevent exists inside replicatedstorage, if not or if its misspelled, correct it. and make the game private, then publish it, and make it public again, or if you want it to stay private just publish, if it still doesnt work, add debugs like "print("This is whats happening")

karmic stone
#

i dont know if this is a question I would ask here but i wanted to add text to the bottom of my screen when you click on things, how would i go about doing that?

#

like if you click on a piece of paper how I would i make it to where words on the screen would pop up like "i can't read this right now"

feral lodge
#

my friend is planning and developing a “front page” but he doesn’t even know how to print

jaunty wolf
queen kelp
#

pretty cool

rain nymph
#

I'm getting the following error in the output. I have a check that checks whether or not the part exists and even though the part gets destroyed, I feel like I shouldn't be encountering this error. Does anyone know why I keep getting this error? It doesn't actually affect the core gameplay
"Can only call Network Ownership API on a part that is descendent of Workspace "

tranquil tide
rain nymph
#

Is there a better way to code this?

#

ignoring the red squiggle

queen kelp
#

code it better

coarse wraith
#

yo quick question, working on a weapon system with guns and melees, rn im doing the raycasting and the visuals on the server.
Do i do the raycasting on the server and the visuals on the client or both on the client and validate the ray that hits on the server? game will have hundreds of enemies so i want it to be as optimized as possible

glossy wave
#

putting the ray on client would be so much better

coarse wraith
#

alr thanks

proven lodge
coarse wraith
#

type to rewrite the shit that took me 4 days to figure out

#

yippee!!

proven lodge
#

client for responsiveness server for validation

glossy wave
#

reminds me i should probably do that

gusty heron
#

I'm trying to make a chunk loading system but I want to know if exploiters can edit localscripts or just read them because I'm doing a random generated room and you discover rooms but I don't want exploiters to be able to just move rooms into the game and just discover them.

coarse wraith
#

also are there any replication frameworks i can use?

#

if so which is the best one

coarse wraith
#

like something to make the visuals show for all clients

rain nymph
crisp crag
#

yo i just made my first game fully scripted by me and it was a simple cooking game, what should be my next game

placid matrix
crisp crag
#

wdym

crisp crag
#

its called undercooked, i cant send links

coarse wraith
tidal pelican
#

Guys what does impressive code look like

#

Or like what should it consist of

placid matrix
tidal pelican
#

If u don't mind can I see it

#

I wanna get better

livid oar
#

yo i want to make my animations that i made function into a duo emote, any of yall able to help? im not a scripter im just an animator and i wanted to know how to go about making it functional so i can showcase it

sharp ingot
#

anyone have a simple car spawn system? i need one like now for quick testing

placid matrix
# tidal pelican If u don't mind can I see it
--!strict

type PersonImplementation = {
    __index: PersonImplementation,
    
    new: (Name: string) -> (PersonType),
    SayHello: (self: PersonType) -> ()
}

type PersonProperties = { Name: string }

local Person = {} :: PersonImplementation
Person.__index = Person

type PersonType = typeof(setmetatable({} :: PersonProperties, Person))

function Person:SayHello(): ()
    print(`{self.Name} said hello!`)
end

function Person.new(Name: string): (PersonType)
    return setmetatable({
        Name = Name
    }, Person)
end

return Person
final ivy
warm pagoda
#

sure if your a beginner then that’s nice

tidal pelican
#

To me its impressive fs

next galleon
tidal pelican
warm pagoda
#

not really anything impressive

next galleon
#

it mainly just looks complicated cuz of the types but it really is very simple code

tidal pelican
#

Guys can u teach me about it please

warm pagoda
#

types isn’t and shouldn’t be complicated

placid matrix
tidal pelican
#

I wanna be like u guys

next galleon
#

ok usdev I'm trying to speak from more of a general standpoint

#

like to a beginner or even amateur they're gonna look at that and think it's complicated af

tidal pelican
#

Yeah that's me rn

warm pagoda
#

at hindsight sure

#

it’s just constructing a class

#

scripting 101

placid matrix
#

u dont construct classes

#

💀

warm pagoda
#

xd

#

ur ragebaiting

placid matrix
#

show what class is being constructed

#

u dont construct classes buddy you construct objects based on classes

tidal pelican
#

Nevermind

proper root
tidal pelican
#

They're too busy arguing whether it's good or not but I don't even know what that means

proper root
#

ion know what that code means aswell icl

tidal pelican
#

I'm saying

warm pagoda
#

Person is a class

#

your construction an object using .new from your Person class

#

person = class

#

that’s all your code is

placid matrix
#

w goalpost mover

tidal pelican
#

Hey

#

Where did u learn

#

I'd really like to know

placid matrix
proper root
proper root
delicate ferry
#

Where can I find a scripting teacher

proper root
delicate ferry
#

watch em already

proper root
delicate ferry
#

but there is more stuff I don't know

proper root
#

or people in this discord

delicate ferry
#

I js need a teacher to teach me 3 things

static coral
#

use brawldev instead

proper root
static coral
#

region3, raycasts, tick, he got a lot of outdated things

#

theres probably more

#

and not only that, he is terrible at explaining things

tidal pelican
west flare
glossy wave
west flare
foggy burrow
#

Taught me how to code no bap

static coral
livid oar
#

yo i want to make my animations that i made function into a duo emote, any of yall able to help? im not a scripter im just an animator and i wanted to know how to go about making it functional so i can showcase it

paper imp
#

wait not this channel mb

primal cave
#

yo lowk I need sm1 to try (not test) my game and js say what they think abt it, just wanna know what I need to change (dms)

primal cave
# fading saddle whats the game about

Basically, you have random swords everytime you equip, they ALL have the same attacks but they all have a unique ultimate, im the only scripter in the project rn

#

im the only dev

celest cipher
#

how do i stop my tp anticheat from activating when the player lags or the game isnt fully loaded so the player lags and gets flagged?

any form of help is appreciated

fading saddle
celest cipher
fading saddle
#

change it

celest cipher
fading saddle
#

idk im new to scripting

fading saddle
#

local sigma = game.baseplate.part

sigma.transparancy == 0.5

#

🙂

cerulean mortar
#

that's cold

primal cave
fading saddle
fickle oasis
primal cave
fickle oasis
#

i know how to do stuff but i get lazy ah

fading saddle
fickle oasis
#

ez

slender ore
fickle oasis
#

just do workspace less typing

static coral
#

yeah

fickle oasis
#

they should make that for other services

#

Idk why it only exists for workspace

static coral
#

dont do game:GetService(“Workspace”) thats waste of variable 🤡

fickle oasis
#

just make ur game not lag to death and make it able to be understood if its not just you then ur alr doing ok

#

dont need to save .000000001ms for no reason

#

but yea workspace less typing so its better

celest cipher
raven marsh
#

a

still egret
#

can someone help with my game. I'm making a simple simulator for my first game and i have a bug that kinda breaks the game, if you would be able to read the code and help out just DM me. Thank You.

drowsy crest
#

I can try help u but what’s ur code?

fading saddle
#

??????????????????????????

#

???????????????????????????????????????????????????????????????????

green reef
# celest cipher
  1. Stop using AI to code everything for you.
  2. Stop relying on Attributes for that stuff.
  3. Stop trying to make a TP anti-cheat with zero experience or knowledge on what you're actually doing.
celest cipher
#

💔

#

ai is dogshit

#

ive been living off code help

#

stop being annoying and let people learn

green reef
#

you're not even learning you're just using ai for everything and trying to be spoonfed everything

somber vault
#

I gaurantee you hes not gonna put his life towards scripting like you probably did

green reef
fading saddle
#

:):PDOA

green reef
#

i barely know lua compared to 95% of the people that talk in these chats all day

green reef
#

the most experience ive had was when i was making ui libraries for exploiters lol

#

Nice

fading saddle
#

whats that

green reef
#

code from when i used to do ui stuff

fading saddle
#

😮

#

can u help me build a game 😄

green reef
#

No

fading saddle
#

awwwww

#

😠

last kernel
drowsy crest
fading saddle
#

really?

drowsy crest
#

Yeah depending on the if the error

fading saddle
drowsy crest
#

Dm me

last kernel
#

yo someone motivate me to not be lazy and actually get to learning

foggy gazelle
fading saddle
last kernel
fading saddle
last kernel
#

yea true if

#

i got learn now

#

ig it worked

fading saddle
celest cipher
#

ive never used ai for this script

potent glen
#

Hey, if i have a weapon hotbar system should I make the weapon scripts parented to the weapon model or keep them seperate?

civic garnet
potent glen
tranquil tide
#

can i learn by only doing project with documentation help? without ytb

#

i have some basics

glossy wave
#

"don't try to learn scripting because you don't know how to" vibe

green reef
#

he doesnt even know how to use cframes or vector3

#

and he claims that he made an functional gag remake despite not knowing either of those which are literally one of the first things you learn

#

hes been given advice repeatedly regarding the "anticheat" hes making yet it doesnt seem that he takes it and instead puts it through chat gpt (like he has done before) and then complains more when it doesnt work

#

its like someone with absolutely zero knowledge on absolutely anything lua related tries to instantly hop onto the advanced stuff instead of learning the basics which is what hes doing

drifting marsh
#

who can help me make a steal a game

opaque jackal
# celest cipher

How are you going to differentiate a player who's experiencing a massive lag spike and an actual exploiter or even a person who's being flung at high velocities

glossy wave
celest cipher
#

i need help w that

green reef
glossy wave
# celest cipher

For these, aren't you just better off using :GetPropertyChangedSignal("CFrame") instead of a heartbeat?

green reef
#

all movements made by the player don't trigger that

glossy wave
#

I see

green reef
#

you can use movedirection though on the humanoid

glossy wave
#

does teleporting change movedirection on the humanoid?

green reef
#

im not sure, i can test it out rn though

#

i dont think so but thats a good question

celest cipher
#

@green reef why are u saying i used ai

#

i didnt

celest cipher
#

and i barely used those

#

it was for the tool system

#

for the seed planting

#

the plantedparts position would go to the mouses position if the mouse clicked within the planting hitbox part

green reef
#

and i doubt anyone like you could actually learn and comprehend anything you see in these channels

#

ur a 14 year old little boy who likes making jokes about shooting up schools

#

and then gets mad at other people when they get mad at you for it

celest cipher
#

i dont know how to do math with cframe and shit, nor velocities

green reef
#

Also @glossy wave no it doesnt trigger it when teleporting

celest cipher
glossy wave
#

so only walk

green reef
celest cipher
#

your way older than me yet your less mature than me

#

💔

glossy wave
#

chill

celest cipher
#

over a piece of code i needed help on

green reef
#

does that change what you said lol

celest cipher
#

💔

celest cipher
#

or wait

green reef
#

what about the screenshot i just sent

celest cipher
#

ur an unc

green reef
#

2 days ago

celest cipher
green reef
#

it just proves that you're not matured after turning 14 lol.

celest cipher
#

you kept mentioning it and shit

celest cipher
#

wrap it up

#

unc

#

❤️‍🩹