#code-discussion

1 messages Β· Page 127 of 1

clever shale
#

Cuz like i have a button that summons a textbox where you write the message

hallow crag
#

like i said u will have to change it to suit ur logic

#

this example uses a button

clever shale
#

ah ok mb

hallow crag
#

to send announcement

strange fern
#

wdym

hallow crag
strange fern
#

im trying to make when a player spawns it gets a random clothing among multiple other clothing but nothing works

hallow crag
#

not difficult

strange fern
#

what the helll does that mean i only started coding 5 hours agoo

clever shale
#

Ok i think i found a solution to the announcing when i kill someone. ty for helping btw :)

glossy swan
#

rate my old silly module for networking

#
hallow crag
# strange fern what the helll does that mean i only started coding 5 hours agoo
local clothing = {
    pants = {
        
    },
    shirts = {
        
    }
}

local randomPants = clothing.pants[math.random(1, #clothing.pants)]
local randomShirt = clothing.shirts[math.random(1, #clothing.shirts)]

local localPlayer = game.Players.LocalPlayer
local character = localPlayer.Character or localPlayer.CharacterAdded:Wait()

local shirt = character:FindFirstChildOfClass("Shirt") or Instance.new("Shirt", character)
local pants = character:FindFirstChildOfClass("Pants") or Instance.new("Pants", character)

shirt.ShirtTemplate = `rbxassetid://{randomShirt}`
pants.PantsTemplate = `rbxassetid://{randomPants}`
#

something like this

#

(just a example)

knotty aspen
#

@hallow crag mr killa0731

#

i am very sorry to disturb you my good sir

#

i have a question

hallow crag
hallow crag
knotty aspen
#

specifically LUAU

#

i need help

hallow crag
#

yeah sure whats the problem

knotty aspen
#

is script exploiting not allowed on this server?

knotty aspen
#

@hallow crag you mind going dms then

hallow crag
strange fern
hallow crag
glossy swan
#

if i catch you exploiting in my game YORUE DEAD

#

ive literally banned

#

300 people

#

or smth

clever shale
#

@hallow crag tysm, everything works now :)

full orchid
hallow crag
#

to explain with code

full orchid
slender mulch
#

How do u code the troll button

hallow crag
#

atleast a little bit

slender mulch
#

CAN SOMEONE TELL ME HOW TO CODE A TROLL BUTTON

full orchid
hallow crag
full orchid
#

and close and open ui

hallow crag
#

oh alr

#

well keep learning πŸ‘

glossy swan
#

less go

full orchid
#

have you made a good game killa?

full orchid
glossy swan
#

userstyles.world

#

is the site

lone marsh
glossy swan
hallow crag
glossy swan
glossy swan
full orchid
glossy swan
#

from 21 million visits

#

so far

full orchid
#

bro

#

did i ask you

#

but

hallow crag
full orchid
hallow crag
glossy swan
full orchid
glossy swan
#

erm whats there to exploit in ragdoll game

#

like

strange fern
strange fern
#

nope it just doesnt load

hallow crag
strange fern
#

i deleted everything and tried something new but i think its defo wrong

hallow crag
eternal arch
hallow crag
strange fern
#

uhh no it just didnt change anything

hallow crag
#

to see if the function is even being ran

coarse wraith
clever shale
#

@hallow crag sorry to bug you, i tried to change my "press enter to send" into a button that you press to send as i thought it would be easier to work around but i cant get it to work. You see whats wrong here?

hallow crag
#

also the OnClientEvent should only be done once

#

so put it outside of the function

clever shale
hallow crag
#

and is the PlrDeath function even being called?

clever shale
#

Im not used to making local functions so like i have forgotten how to do them correctly. I always do functions the other way. But probably not, i tried to copy the function for announcing

willow pawn
#

hey guys

is it possible to wheelie a A-chassis tune? i tried adding a wheelie script from the toolbox but it does not work?

hallow crag
clever shale
hallow crag
#

somewhere

rotund citrus
#

chat, why do this do this? I just want to make a wave πŸ’”

function module:CreateWaves(t:number, editable: EditableImage, height: number)
    local frameBuffer = editable:ReadPixelsBuffer(Vector2.zero, editable.Size)
    for i = 1, editable.Size.X do
        local cosine = math.cos(math.rad(t + i)) * 5
        for j = editable.Size.Y - height - cosine, editable.Size.Y do            
            local pixelIndex = ((j-1) * editable.Size.X + i - 1) * 4
            buffer.writeu8(frameBuffer, pixelIndex, 255);
            buffer.writeu8(frameBuffer, pixelIndex+1, 0);
            buffer.writeu8(frameBuffer, pixelIndex+2, 0);
            buffer.writeu8(frameBuffer, pixelIndex+3, 255);
        end
    end

    editable:WritePixelsBuffer(Vector2.zero, editable.Size, frameBuffer);
end
clever shale
#

Yh i just did

#

but it still doesnt work πŸ˜”

strange fern
strange fern
rotund citrus
coarse wraith
strange fern
hallow crag
strange fern
#

didnt know where to put the print statement..

hallow crag
#

just put print("Ran")

strange fern
#

ohh okayy

hallow crag
#

and then check output

#

and see if Ran is shown

strange fern
strange fern
hallow crag
strange fern
#

ohhh it works

#

I DID IT

#

thank youuuuu @hallow crag

hallow crag
dark juniper
#

what the hell did u chat got this

dark juniper
#

U only use buffers for receiving kb/s optimization why r u using them for a wave

full orchid
#

i made a autoclicker but i cant turn it off

#

this ma cide

#

code

#

this is

eternal arch
#

im trying to make a dead by daylight inspired game but i dont code so anyone wanna partner or smt?

rotund citrus
red crane
full orchid
#

i have tried

#

but that just makes it into a normal one

#

liike

#

just press to get +1

boreal wyvern
# full orchid
local leaderstats = game.Players.LocalPlayer:WaitForChild("leaderstats")
local Click = leaderstats:WaitForChild("Clicks")
local Button = script.Parent
local auto_clicker = false

Button.MouseButton1Click:Connect(function()
    auto_clicker = not auto_clicker
    
    while auto_clicker do
        Click.Value += 1
        task.wait(0.5)
    end

    return
end)
#

this should work

eternal apex
#

Why is my block placing in the ground like that

red crane
eternal apex
boreal wyvern
#

whats ur code for setting the block's location

eternal apex
#

one sec

thorn arch
eternal apex
thorn arch
eternal apex
thorn arch
#

Are you using math.floor or math.round

ashen glade
boreal wyvern
#

i love it

eternal apex
thorn arch
#

Gng

eternal apex
#

oh

#

whoops

boreal wyvern
#

try multiplying snappedy by 1.5?
local snappedY = math.floor(position.Y / GRID_SIZE) * GRID_SIZE * 1.5

eternal apex
#

idk why it sent like that but

thorn arch
#

Use math.round instead of math.floor

#

For all of them

#

Should fix it

boreal wyvern
#

how?

eternal apex
#

getting there, but its in the air now

boreal wyvern
#

its the +2

#

try local worldPosition = Vector3.new(hitPosition.X, surfaceTop, hitPosition.Z)

#

instead of local worldPosition = Vector3.new(hitPosition.X, placementY, hitPosition.Z) bc placementY is surfaceTop + 2

boreal wyvern
#

whaaa

red crane
thorn arch
#

Crazy

eternal apex
boreal wyvern
eternal apex
#

i didnt try the 1.5

boreal wyvern
#

oh rip

thorn arch
#

1.5 will just mess everything up

boreal wyvern
#

how?

eternal apex
#

its a 4x4x4 block for reference btw

thorn arch
#

You are multiplying a global y with a scalar

#

That will just multiply the y value by 1.5

boreal wyvern
#

yeah

#

thats the point bc it is halfway in the ground

thorn arch
#

πŸ’€

eternal apex
#

where should I put the 1.5 again @boreal wyvern

thorn arch
#

That's not how it works

eternal apex
#

gonna attempt

boreal wyvern
#

this is what i said local snappedY = math.floor(position.Y / GRID_SIZE) * GRID_SIZE * 1.5

boreal wyvern
thorn arch
#

It will increase it more depending on the y value

#

So the further it is from the xz plane the bigger the offset

#

You don't want the offset to be different for different heights

#

Anyways

#

The solution is just to return snapToGrid(result.Position)

#

And change all the math.floors to math.rounds

eternal apex
#

yeah the 1.5 didnt work

boreal wyvern
#

k

thorn arch
boreal wyvern
thorn arch
#

Because math

eternal apex
#

keep it like this?

#

@thorn arch

chrome axle
#

I need help with something. I'm not sure when to use RemoteEvents/RemoteFunctions and when to just write a script directly in a regular Script. Also, when should I use a LocalScript and when a regular Script?

thorn arch
plush python
#

buying any amount of robux from 20k to 1mil for irl money

eternal apex
thorn arch
#

Did you change to math.round?

thorn arch
eternal apex
#

yeah

thorn arch
#

What result do you get?

eternal apex
#

in the ground but if i remove snaptogrid it goes in the air

thorn arch
#

Fully in the ground?

eternal apex
#

half

thorn arch
#

Or half

#

It seems

#

Your grid is offset from the baseplate by 2 studs

#

The easiest solution

#

Is

#

Move your baseplate down 2 studs lol

eternal apex
thorn arch
#

Just the physical baseplate yh

#

Decrease the y by 2 studs

uneven jolt
#

For UI, if it's off screen and not gonna be loaded is it better to do Visible = false or Parent = nil? I'm assuming the later but just wanted so my opinions

thorn arch
#

Have you checked dev forums?

eternal apex
boreal wyvern
#

like ur never using it or just not using it right then

uneven jolt
#

Not using it right then

thorn arch
#

Currently

plush python
plush python
thorn arch
#

Wild

uneven jolt
thorn arch
boreal wyvern
#

i think it is better to change visibility

thorn arch
#

I think you can afford to use either unless you are doing hundreds of frames

eternal apex
#

@thorn arch you think its hard to align the baseplate squares with the block?

uneven jolt
#

Thank yall

thorn arch
#

In the snapToGrid function

#

Add Vector3.one*GRID_LENGTH/2

#

Before returning

boreal wyvern
#

i wish you would just explain how it worked πŸ₯Ί

gusty garden
#

Anyone know why this doesnt work? im tryingto create a global leaderboard and im new to ordered datastores

thorn arch
#

And then undo the baseplate change

eternal apex
#

returned tho

thorn arch
#

I'm not sure why math
floor and math.round are giving you the same result though

thorn arch
thorn arch
#

The gridsize is the same as the block's size right?

eternal apex
#

should be

#

idk ill figure it out

boreal wyvern
#

ok i understand it now

#

no thanks to you 😦

pulsar acorn
#

is yoda here

somber vault
#

is it more performant to represent booleans as bits

mental shoal
#

yo guys what's more performant for checking to see if someone is in the area for a ui to popup: runservice:heartbeat and checking distance, or touchevent with a part

copper apex
copper apex
copper apex
#

It's an open source module

mental shoal
#

oh

copper apex
mental shoal
#

it's kinda slow, or is that intended

copper apex
#

How is it slow

somber vault
#

another bloated open source module

#

it is open source for a reason

mental shoal
#

it takes like 1.5 seconds to load the message in

somber vault
#

not to help you

copper apex
#

No it didnt

kindred totem
copper apex
#

Its because you have to press f to open the message

mental shoal
#

myb

copper apex
#

See the performance yourself

kindred totem
somber vault
copper apex
#

You can customize it the way you need it to be

mental shoal
#

ok so simplezone also just does spatial query

copper apex
#

I have made my own changes to it as well

mental shoal
#

why not just do that yourself

somber vault
#

skid

kindred totem
wise cargo
copper apex
#

Cuz i liked how it worked

somber vault
#

is the math lib fastcalled

solemn dawn
#

Is this clean? If not, what's wrong with it, and how can I make it cleaner?

keen vine
plain drum
keen vine
plain drum
#

πŸ‘

visual wedge
#

Who wants to work w me on steal a ugc it’ll be like steal a brain rot but w ugc

visual wedge
kindred totem
visual wedge
#

I’m best at building

amber acorn
tropic plume
#

making a Value that divides/multiples, but eventually the number gets reallly long, how do i not show the decimals?

tropic plume
#

yes 😒

surreal bolt
#

math.round() if you wanna round up, or math.floor() to drop the decimalsand keep 61

half cypress
#

hello code discussion chat

tropic plume
#

ty

surreal bolt
#

thx for the info

sour vine
#

i think math.ceel or sum like that rounds up

surreal bolt
#

math.ceiling

mental shoal
#

hey guys, i made a custom inventory system, but im having trouble on how to handle when a player resets their character. It now just clears their UI and inventory because my system tracks their tools (the tools get deleted).

sour vine
steady oxide
#

yo guys what is the best way to learn script

surreal bolt
steady oxide
#

what is that bro πŸ’”

surreal bolt
#

brawldev tutorials

steady oxide
#

ty

surreal bolt
#

if you cant finish them then you dont wanna script and you should give up or start at a later date

mental shoal
#

bcs character resets

mental shoal
#

but im not sure how to save before the reset to load it after

surreal bolt
#

well first of all hold the inventory in starterplayerscripts

mental shoal
#

because i save on change

#

en when player resets -> it saves empty inventory

surreal bolt
#

then characterloaded:connect(function()) just iterate thru the backpack, and add the missing items

sour vine
surreal bolt
#

i believe starterplayerscripts scripts dont get destroyed on death

raven sail
#

Should i use shapecast for my hitboxes or spatial queries (for a combat game)

sour vine
#

cuz roblox doesnt delete the tools when player dies

mental shoal
surreal bolt
mental shoal
#

when a player clicks on reset

surreal bolt
#

send me the code

quiet summit
#

is that datastore update per minute limit 60?

mental shoal
#

it gets rid of all tools in backpack

surreal bolt
raven sail
#

Should i use shapecast for my hitboxes or spatial queries (for a combat game)

surreal bolt
#

can i pls see the code i wanna see the saving logic

sour vine
mental shoal
#

like in settings

sour vine
#

we dont understand

mental shoal
#

what don't u understand

surreal bolt
#

send the code

mental shoal
#

theres 600 lines

surreal bolt
#

send them

#

theyll just message.txt

sour vine
#

is it like a toggle respawn thing

mental shoal
#

bro

#

when u are in a roblox game

surreal bolt
#

BRO JUST SEND THE CODE

mental shoal
#

u click settings

surreal bolt
#

😭

mental shoal
#

u can click on "respawn"

surreal bolt
#

and i dont know how your code looks like, how it functions

mental shoal
sour vine
#

go to the respawn textbutton bro

surreal bolt
#

i am working on pure guessing

mental shoal
#

OMG

sour vine
#

and open its script

mental shoal
#

am i being ragebaited

#

LOL

surreal bolt
#

pls send the 600 lines of code

sour vine
#

ur the ragebaiter dawg WHYYYYY

surreal bolt
#

i mean you could do Humanoid.Died and just save the data

mental shoal
surreal bolt
#

or just check if the backpack suddenly went down to 0

mental shoal
#

this is what i mean

sour vine
#

oh

surreal bolt
#

and if it went to 0 dont save anything

sour vine
#

ye i told u roblox doesnt frikin delete ur tools when u respawn so send the cutom ui code dawg

surreal bolt
#

temporary bandaid

surreal bolt
#

Please SEND THE CODE

#

πŸ™

mental shoal
#
function Local.UpdatePlayerTools(player: Player)
    local playerTools = Local.GetPlayerToolsNames(player.Backpack, player.Character)

    for containerName, container in InventoryData[player] do
        for index, item in container do
            if item == false or not table.find(playerTools, item.Name) then
                print("shifting values down")
                Local.ShiftValuesDown(player, containerName, index)
            end
        end
    end

    for _, toolName in playerTools do
        if not Local.GetExistingTool(player, toolName) then
            local freeHotbarSlot = Local.FindFreeHotBarSlot(player)
            if freeHotbarSlot then
                Local.AddItemToHotbar(player, toolName, freeHotbarSlot)
                Local.SavePlayerInventory(player)
            else
                Local.AddItemToBackpack(player, toolName)
                Local.SavePlayerInventory(player)
            end
        else
            warn("Tool already exists in inventory, recounting")
            Local.CountItemInPlayerTools(player, playerTools, toolName)
        end
    end

    Local.SendInventoryToClient(player)
end ```
#

this is how i track player tools

#
function Local.TrackPlayerInventory(player: Player)
    local function UpdateThisPlayersTools()
        local now = tick()
        DebounceMap[player] = now

        task.delay(0.1, function()
            if DebounceMap[player] == now then
                Local.UpdatePlayerTools(player)
            end
        end)
    end

    local function OnCharacterAdded(character: Model)
        task.wait(1)
        
        UpdateThisPlayersTools()

        player.Backpack.ChildAdded:Connect(UpdateThisPlayersTools)
        player.Backpack.ChildRemoved:Connect(UpdateThisPlayersTools)
        character.ChildAdded:Connect(UpdateThisPlayersTools)
        character.ChildRemoved:Connect(UpdateThisPlayersTools)        
    end

    local character  = player.Character
    
    if not character then
        character = player.CharacterAdded:Wait()
    end

    OnCharacterAdded(character)
    player.CharacterAdded:Connect(OnCharacterAdded)
end```
surreal bolt
#

πŸ˜•

mental shoal
#

and this

#

but the problem isn't this

#

it's that im not sure how to handle player respawns

#

my system just tracks the tools

sour vine
#

send more

#

i need this Local.SavePlayerInventory(player

mental shoal
#

it just sends data to playerdatastore

surreal bolt
#

simplest solution i can give u is this

sour vine
#
local bp = plr.Backpack
for i, tool in plr.Backpack do
return tool
end

plr.CharacterAdded:Connect(function(char)
tool.Parent = plr.Backpack
end)
end)```
#

wait

surreal bolt
mental shoal
#

u gotta admit tho u guys ragebaited me a bit

surreal bolt
#

YOU RAGEBAITED US

surreal bolt
#

but i suppose that could be due to me never messing around with tools

snow oasis
#

player.keepInventory = true

sour vine
#

aight

surreal bolt
#

or you know

#

keepinventory = true

kindred totem
#

How would I make a part smoothly follow the server part

#

Client rendered part*

snow oasis
#

i orgot it tho

kindred totem
#

Bruh

snow oasis
#

then just offset it

kindred totem
#

πŸ’”

kindred totem
kindred totem
#

actually lemme check docs

snow oasis
#

thats it

kindred totem
#

alr

tawdry crane
#

gtfo

kindred totem
wise turtle
#

but you need to check if the predicted latency is >1

#

else u would need to repredict

#

cus there are chances the player lags

kindred totem
#

I was just looking for a simple way to have the client rendered part smoothly lerp towards or aggressively lerp towards the serverpart

echo rapids
vagrant marten
gusty solar
gusty solar
balmy sundial
vagrant marten
vagrant marten
#

Yo do you need a scriptor for your game

#

?

nova garnet
mossy salmon
#

anyone know how fast pathfinding service adds up performance wise?

frail yarrow
#

what skills do you have

vagrant marten
vagrant marten
autumn venture
#

Chat is 10k robux a week a W or L offer for a long term position

hardy yew
strong star
#

Giving the opportunity to code for me for free ;-; lol

autumn venture
graceful jackal
#

can someone help me or teach me how to make a plant system like grow a garden im tryna js make models for fun because i wanna make my own plants

next galleon
# hardy yew I finished, yeah

ok now add a rebirth feature that costs a lot and when bought it resets your upgrades back to the start but gives another coin multiplier on top of any upgrades

#

good work so far fr

steady plover
#

yo guys

#

if u got like 300k robux

next galleon
#

what

strong folio
#

omg me me me

steady plover
#

where would u store it

strong folio
next galleon
#

wdym where would I store it

steady plover
#

yea bu your account mght get hacked

autumn venture
steady plover
#

besides dev exing it

next galleon
#

so don't let it πŸ’€

strong folio
#

don’t be stupid n ur acc will be fine

steady plover
#

yea but still

next galleon
#

if you have 2FA, keep the robux in a group and it can't be taken out without 2FA

strong folio
#

I deadass have had the same acc for 5y and it’s NEVER been hacked and I’m a primary target for hackers

next galleon
#

easy

strong folio
#

just don’t be dumb lol

autumn venture
burnt pulsar
#

what you guys think of a steal a brain rot copy but for the anime jjk? you think it could make me some money?

steady plover
#

jk jk

autumn venture
#

Someone got a little angy

steady plover
#

xd xd!!

strong folio
#

it’s already been done

burnt pulsar
#

hasnt

strong folio
#

Steal a…. Trend is cooked

#

If u aren’t in the game already it’s wraps

burnt pulsar
#

true

strong folio
#

Even if u have speedy devs it will take two weeks

#

but u won’t

#

so it will be 3-4

celest cipher
#

@strong folio @burnt pulsar do yall have white text

#

on ur screen

#

cuz i have that

strong folio
#

good

#

I hacked u

celest cipher
celest cipher
#

✌️

strong folio
#

lowkey just continue it’s fine

burnt pulsar
#

@strong folio do you have any cash grab game ideas

hybrid relic
#

I launched my Steal a.... Game a few days ago, i dont feel thats bad, but its not getting recommended

celest cipher
#

i needa join a dev team

#

for fun

#

so yea

#

lemme help

strong folio
#

😭

#

All my ideas are in the works

#

I have 3 whole separate development teams working

hybrid relic
hybrid relic
#

idk whats wrong tbh

#

Idk if the gameplay is bad or marketing

wide aurora
#

theres like 50 steal a ... games

hybrid relic
hybrid relic
#

Sorry idk if i can send links

crude quarry
#

I know I complained about roblox docs being ass but discord.py is worse

#

they dont show you any examples of how to use any of it

celest cipher
#

@hybrid relic let me help u

#

let me be a dev

#

lowk il help u

gusty heron
thorn arch
#

What the hell

boreal wyvern
thorn arch
#

?

violet folio
#

Skid

glossy swan
#

like honestly can i kill these people

#

like literally a person posted chatgpt code which is not even useful, you could make this in a minute

#
-- Services
local RunService = game:GetService("RunService")

-- Variables
local character = script.Parent
local eyes = character:WaitForChild("Head"):WaitForChild("Eyes")

-- Texture IDs
local normalTexture = "http://www.roblox.com/asset/?id=12520202472"
local blinkTexture = "http://www.roblox.com/asset/?id=12520204479"

-- Control variable
local isBlinking = true

-- Function to handle blinking
local function blinkLoop()
    while isBlinking do
        -- Stay in normal state for a random amount of time
        eyes.Texture = normalTexture
        wait(math.random(3, 7)) -- Random wait between blinks

        -- Blink
        eyes.Texture = blinkTexture
        wait(0.15 + math.random() * 0.2) -- Random blink length (0.15 to 0.35 seconds)

        -- Back to normal
        eyes.Texture = normalTexture
    end
end

-- Run the blink loop in a coroutine so it doesn't block other scripts
coroutine.wrap(blinkLoop)()
#

TEll me this is not chatgpt

#

or any other llm

gusty heron
# thorn arch This is proceduralM

I just made a system where a random premade room spawns connected to a random available door from a random pre-existing room and it goes on and on

#

327 lines

kindred totem
glossy swan
midnight frost
#

any yall know how to like code parry system/combat in general?

glossy swan
#

use trove

charred night
#

pretty straight forwars

midnight frost
#

im not a coder

#

πŸ™

charred night
midnight frost
#

not tryna hire im tryna learn

charred night
#

learn to code first then

glossy swan
midnight frost
midnight frost
charred night
charred night
midnight frost
#

ight ty guys

charred night
#

alvinblox finna teach you

glossy swan
#

NON

midnight frost
#

πŸ’€

glossy swan
#

FUCK ALVIN FUCK ALL YOUTUBE TUTORIALS

craggy violet
#

What the squirrel do bro

glad apex
#

6 7

crude quarry
#

discord.py docs are so bad and outdated they almost crashed my browser FunSobby

coarse wraith
glossy swan
coarse wraith
#

people realised its useless and made it better

glossy swan
#

like bro and after all of that im the dumb

#

its not like someone just posted useless chatgpt code

coarse wraith
last veldt
#

guys is this not the script
local id = 1304238244

script.Parent.MouseButtonClick:Connect (function()
game.MarketPlaceService:PromptGamePassPurchase(game.Players.LocalPlayer,id)
end)
for gamepass

thin knoll
#

oh god... per button scripting

#

make a UIHandler

brave helm
#

i think if bros struggling with that uihandler is out of question

thin knoll
#

who wants a code leak from a soon-to-be front-page game?

#

lil bit of framework I can post

mint cloud
#

Me

#

For research purposes of course

limber plank
#

looking for someone who could help us grow our rng game it going good so far for player, we only have 3 developer. DM me for more information:DD

limber plank
#

ysfm

crude quarry
#

watch your language lil bro

#

get automodded

#

lmaooo

#

x3

crude quarry
mint cloud
#

And WE(everyone but me)will be playing all of them

crude quarry
#

I aint playing nothing

#

I barely play roblox I just like lua

mint cloud
#

πŸ”«

wide aurora
#

brooo why iss so hard to get a j*b

crude quarry
#

I got one at 19

crude quarry
#

just lie on your resume and collect that paycheck until they find out

wide aurora
crude quarry
#

worse they can do is fire you

glossy swan
#

i luv blink

latent peak
#

.

coarse wraith
#

so yes player count

lean ocean
#

I meant what's the ccu

#

mb

#

I know what ccu means I was just interested how much ccu he has

coarse wraith
#

oh ok

civic garnet
graceful jackal
#

how do i make a grow a garden plant system im tryna make plants of my own for fun ( i have no expierience)

glossy swan
#

secure and fast

green basin
#

You cant ask how to solve an integral without knowing how to add numbers

graceful jackal
green basin
#

Depends on your learning style

#

Me personally I learn fron videos then started building random projects that forced me to learn more

graceful jackal
#

is scripting hard?

green basin
#

U learn more through roblox docs

#

Not really

#

Lua is like english

tight spear
#

does anyone know how to upload a picture on a hiring post / what websites work

glossy swan
#

@lost burrow

#

could you delete their post its clearly not made by them

#

just edited free model

graceful jackal
celest cipher
#

SCREENSHARING MY SPIN FOR UGC GAME I MADE IN ONE DAY JOIN UP!!!! VC 10https://discord.com/channels/211228845771063296/1138239246629605537

#

nvm

green basin
hoary charm
#

Can someone rate my Ugc shoulder buddy I made in #media

coarse wraith
viscid lichen
#

does any1 knows how to code transformation modulescript (custom rig) without loadchar or destorychar?

finite needle
#

dm me if u need help

lost basin
#

Does anyone know why my profile store isnt working? here are the screenshots

charred night
#

this is from the yt tutorial

#

aint no one gonna read the code from you

#

you didnt even provide any errors

#

do you have studio api services enabled?

sudden estuary
coarse wraith
sudden estuary
tired fulcrum
coarse wraith
tired fulcrum
coarse wraith
#

i use it from time to time for quick stuff

#

but thats it

tired fulcrum
#

assistant:

coarse wraith
#

i just reinstalled studio and forgot to remove it

tired fulcrum
#

i just use it to fix bugs lol

indigo coral
#

can someone help me please

cedar flicker
#

Error says no PrimaryPart

#

Couldnt be more obv

dark cedar
#

How does grow a garden have more players in a day than fortnite has had in 30 days πŸ’”

dark cedar
willow wedge
next hull
#

set that pls

hallow crag
lost basin
lost basin
hallow crag
lost basin
#

yeah i just literally tried copying it exactly and it STILL didnt work in my game bruh πŸ₯€ looks like im not using profile stores ig

hallow crag
lost basin
charred night
#

there must be a mistake somewhere

lost basin
#

i dont think there is, i have all of the scripts necessary, i have the remote event and i have studio api enabled

lost basin
#

its not giving any errors, just doesnt save

hallow crag
#

and elaborate on doesnt work

lost basin
#

when i checked the profile store it just said nil

hallow crag
lost basin
#

its literally the exact same code in 2 different games

hallow crag
#

are u reseting the players data anywhere

lost basin
#

it works in one but not the other

lost basin
hallow crag
#

or putting instances into the profile

#

?

lost basin
#

i might be

#

lemme check

hallow crag
#

if ur just saving numbers and strings

#

then it should save no problem

#

and tables ofc

manic jackal
#

can I put the variables also at the end of the code (e.g line 12, 13 instead 1 and 2)

lost basin
hallow crag
#

ur either putting a instance, code is bugged or reseting the data somewhere

lost basin
#

aight

manic jackal
lost basin
#

thanks

manic jackal
#

im pretty new so im js playing around rn

lost basin
#

idk tho just try placing them downward and see if it works

manic jackal
lost basin
#

lua might not be reading the code line by line

manic jackal
#

yeah

lost basin
manic jackal
#

thank for your help

lost basin
#

np

#

@manic jackal btw since you are new i recommend you watch TheDevKing's series for scripting

manic jackal
#

ill look into it after

lost basin
#

idk abt that, i havent watched his

#

thedevking explains all the code he shows and talks very clearly

#

ngl might be the best tutorials on yt

#

in terms of roblox studio

manic jackal
lost basin
#

only lua

manic jackal
#

alright ill have a look

#

appreciate it

strange fern
#

can someone help how do i make it destroy layered clothing

lost basin
#

idk

hallow crag
#

or simply set the Shirt or Pants property to nil

polar vine
#

is allowing http requests dangerous? I am only sending a request using a module and server script (in serverscriptervice) the studio warning got me paranoid

lost basin
#

im not sure tho

hallow crag
#

which is highly unlikely

polar vine
#

wdym backdoor

hallow crag
#

a virus

#

malware

polar vine
#

Probably dont

hallow crag
#

they are usually hidden in free models

#

that u get from toolbox

candid fox
#

same w functions and other stuff

manic jackal
#

Thanks

strange fern
hallow crag
round pivot
lost basin
#

does anyone know why this code isn't working:

local serverScriptService = game:GetService("ServerScriptService")
local players = game:GetService("Players")
local playerDataService = require(serverScriptService.Data.PlayerDataServer)

while true do
for _, player in players:GetPlayers() do
playerDataService.UpdateCoins(player, 100)
end
wait(1)
end

It gives an error for line 3:
Requested module experienced an error while loading

lean ocean
#

well show the module

lost basin
lost basin
lean ocean
#

Is there any other errors

#

This usually occurs when there's another error

#

In the module

lost basin
#

Lemme check

lost basin
# lean ocean Is there any other errors

Here's the log after I added pcall to the module:
13:49:48.442 ServerScriptService.Data.PlayerDataServer:27: attempt to call a nil value - Server - PlayerDataServer:27
13:49:48.442 Stack Begin - Studio
13:49:48.443 Script 'ServerScriptService.Data.PlayerDataServer', Line 27 - Studio - PlayerDataServer:27
13:49:48.443 Stack End - Studio
13:49:48.443 Requested module experienced an error while loading - Server - test:3
13:49:48.443 Stack Begin - Studio
13:49:48.443 Script 'ServerScriptService.test', Line 3 - Studio - test:3
13:49:48.443 Stack End - Studio
13:49:48.506 Player joined! - Server - plotScript:8
13:49:48.506 Plot assigned! - Server - plotScript:14
13:49:48.784 Loading Animation Mirrorer... - Server
13:49:48.990 Loading Animation Mirrorer... - Client
13:49:49.057 Finished Loading Animation Mirrorer - Server
13:49:49.136 Finished Loading Animation Mirrorer - Client
13:49:49.176 [ProfileStore]: Roblox API services available - data will be saved - Server - ProfileStore:2098

#

It's giving an error on me defining the playerStore bc its nil

weak radish
lost basin
#

im figuring it out myself rn

#

i realized i didnt look at the whole log

robust compass
#

is this only for roblox Lua discussion? because i saw some people ads for building an AI SaaS Tool

hallow crag
hallow crag
#

GetCoins πŸ’”

lost basin
#

calm down bro let me learn in peace πŸ₯€

weak radish
robust compass
oak solar
#

guys whats payoneer

lost basin
weak radish
lost basin
hallow crag
#

why hardcode each function separately

hallow crag
#

just make a SetData function

lost basin
#

you mean updatecoins?

hallow crag
#

also u dont yield for the data so when u call GetData before the data loads

#

ur logic is gonna error

#

or return

lost basin
#

sorry im still new

#

to profilestore

#

and data saving

hallow crag
#

u need to add yielding

lost basin
#

thats what i mean

#

what does yielding mean

hallow crag
#

u need to wait until the data loads

lost basin
#

ohh

hallow crag
#

then return the data

lost basin
#

alright

#

thanks

hallow crag
#

use subroutines or promises

lost basin
#

now i gotta figure out how to do that

hallow crag
#

personally i recommend promises but subroutines are easier

lost basin
#

alright

#

I'll look into it

#

crazy how i thought i knew quite a bit abt scripting and then all of these things come up which ive never heard before πŸ₯€

hallow crag
#
function DataModule:GetData(player)
    if self._profiles[player] then return self._profiles[player] end

    local profile
    local thread = coroutine.running()

    local connection
    connection = self._profileLoaded:Connect(function(loadedPlayer, loadedProfile)
        if loadedPlayer ~= player then return end
        profile = loadedProfile
        connection:Disconnect()
        coroutine.resume(thread)
    end)

    coroutine.yield()
    return profile
end
#

something like this

lost basin
lost basin
#

like not be a normal message

#

but be real code

hallow crag
#

u mean how is it formatted like that

#

?

lost basin
#

yeah

#

thats what i meant

hallow crag
lost basin
#

alright, thanks so much

hallow crag
#

np man gl

lost basin
#

thats this right '

hallow crag
lost basin
#

ohh ok

hallow crag
#

in the corner of ur keyboard

#

for most people

lost basin
#

yeah above tab

hallow crag
#

yh

lost basin
#

but im not on the US keyboard

#

imma find it dw

#

thanks so much

hallow crag
#

np

weak radish
hallow crag
#

my bad

weak radish
weak radish
merry karma
#

how do i show arms in firstperson

verbal salmon
#

Guys i pay 25 dollars for a scripter dm me

hallow crag
onyx patrol
#

What coding langue do you guys think is best?

hallow crag
#

luau is the most fun tho

onyx patrol
#

thanks

nova garnet
wraith shadow
#

i just made this but i dont know what to add to it

lost turtle
#

who wanna test my new update game ?

wraith shadow
slow kindle
#

Oh em gee

hallow crag
slow kindle
slow kindle
hallow crag
slow kindle
# wraith shadow how do i fix it?

Your hitbox is detecting multiple parts of the same player so its dealing that muxh damage to avoud it create another table and chexk if the player has already been hit

wraith shadow
slow kindle
#

Wym rotation

wraith shadow
#

i added checks and every thing for that

hallow crag
#

use raycasting

wraith shadow
#

its the first rule of codingΓΉ

#

if it works then leave it lmao

slow kindle
#

Nope

#

Dony thats stupid

hallow crag
#

yeah but its a terrible method

#

raycasting is alot more accurate

#

u can even detect specific body parts u hit

nova garnet
wraith shadow
#

im using e:GetPartBoundsInRadius

wraith shadow
slow kindle
wraith shadow
slow kindle
#

It is

wraith shadow
#

lemme check

#

:GetTouchingParts()?

gusty solar
#

hi

hallow crag
somber vault
#

whats faster

num>0

or

num~=0
weak radish
#

are you serious

minor cloak
#

yo guys i got a problem with my code

#

i just learnt remote events, when i click the button to give coins, it gives it to all the players in the server, how do i fix it?

weak radish
minor cloak
weak radish
#

I can't see anything wrong with that

#

Sometimes other scripts etc can collide

minor cloak
#

maybe how i checked it was wrong

#

i did a 2 player server

#

like in the roblox play

weak radish
#

yeah

minor cloak
#

ill test it again

#

maybe i saw it wrong

weak radish
#

That's fine it's just weird

minor cloak
#

yeah

#

i think its a problem with another script i made before.. cause when players join my game they can only see the leaderstats of whoever joined after them

green grail
#

They're coming

minor cloak
#

who

green grail
#

😈

minor cloak
#

oh i think i get it

#

why my code doesn't work

weak radish
minor cloak
#

i know that player 1 just didn't load into it

#

but idk why

#

like he didn't load in

#

this is my leaderstats code

#

idk what i need to do

weak radish
minor cloak
#

i changed it to that

#

just to try

weak radish
minor cloak
#

yeah

#

i wanted it to run 1 time. i know i could just put the code but

#

i tried lol

weak radish
#

just remove the if statement

minor cloak
#

okay

#

are you sure i need to clone the leaderstats?

weak radish
#

Well I would just instance.new it each time but since you create the folder before players join you can just clone it

minor cloak
#

okay

hallow crag
#

ez inf money

minor cloak
weak radish
#

you're making it so every player is sharing the same leader stats with the same data

minor cloak
#

like this?

minor cloak
#

i learnt about cloning yesterday

#

but i think i know how to do it

weak radish
minor cloak
#

it isn't working

weak radish
hallow crag
#

just store prices on the server

weak radish
#

you store it all on server

#

I was just countering your code

minor cloak
#

OHHH

hallow crag
minor cloak
#

I GOT IT

hallow crag
#

why are u cloning

minor cloak
#

he told me to clone

weak radish
#

if you did a reality check like that then they could just do while true do fire(100)

minor cloak
#

but i just put the instance.new folder

weak radish
minor cloak
#

and name inside the function

weak radish
#

I only said Clone because you created a folder before players joined

minor cloak
#

YES

#

IT WORKS

minor cloak
#

i appreciate all the help

hallow crag
#

just use Instance new for every client

#

why clone

weak radish
minor cloak
#

the script works completely now

hallow crag
weak radish
#

chilllll

minor cloak
weak radish
hallow crag
#

still can get inf money

minor cloak
#

i was talking about the clone

weak radish
#

remoteEvent:FireServer(math.huge)

minor cloak
#

not about the exploiter

hallow crag
minor cloak
#

i thought you were joking

#

what is math.huge

hallow crag
#

infinite

weak radish
hallow crag
#

its just a massive number

minor cloak
#

how do i make it secure

hallow crag
#

store prices on the server

weak radish
minor cloak
weak radish
#

and do reality checks on cooldown

minor cloak
#

not a local script

hallow crag
#

so what

#

they can fire the remote

weak radish
#

Okay @hallow crag you take it from here I don't have the energy for the rest