#code-discussion

1 messages ยท Page 103 of 1

crude quarry
plush zenith
#

haha same maybe

plush zenith
crude quarry
plush zenith
#

it should be at least this big

crude quarry
#

What do you need it for?

plush zenith
#

but if any other player stepped on the brick, it would not work

lucid pendant
somber vault
#

i dont care anymore gng ๐Ÿ˜”

plush zenith
crude quarry
plush zenith
#

that is really weird...

#

hold on a sec

crude quarry
#

I tested it with other accessory's and you're right it only removed the crown

plush zenith
#

idk why it removed the crown anyways, but there's some changes we can make

#

give me a few seconds...

crude quarry
#

BEcause im skilled like that I guess

somber vault
#
local sp = script.Parent

sp.Touched:Connect(function(hit)
    local noid = hit.Parent:FindFirstChildOfClass("Humanoid")
      if noid then
          local char = noid.Parent
         for _, child in ipairs(char:GetChildren()) do
            if child:IsA("Accessory") then
            if child.AccessoryType == Enum.AccessoryType.Hat then
            child:Destroy()
            task.wait(0.2) -- this is for looks gng :heart:
        end
        end
    end
    end
end)
somber vault
#

im sorry it was hurting me

plush zenith
#

HAHAHAHHA

somber vault
#

lmao

#

time to wait for the next one

#

๐Ÿ˜”

plush zenith
#

its fun helping beginners when you actually knnow what ur doing

crude quarry
#

oh yeah I forgot about for _, child in ipairs

plush zenith
#

i remmeber being at this point

celest cipher
#

does anyone know why when i buy my dev product that gives me 250 sheckles (im tryna make and sell a gag game) it gives me like 1k instead of 250 why? heres my scripts

somber vault
#

i just demolished a mc n cheese cup

celest cipher
#

HELP

plush zenith
#

and now i get to help others get farther ahead

plush zenith
#

fries*

celest cipher
plush zenith
#

goodness

celest cipher
#

but ts bug pmo

somber vault
#

please

somber vault
short delta
#

hey my friend did a code to equip and unequip a thing when we click on a button and here are the code (the first one is a module call ToolManager and the second one is a localscript in the button and the problem right one is that when we click on the button it equip the thng but when we click a second time it dont unequip. idk if i need to show you more photos

somber vault
plush zenith
#

add em and see what you get

celest cipher
plush zenith
#

bro ๐Ÿ˜น

celest cipher
#

i have 3 dev products

somber vault
#

lmao

celest cipher
#

put the same fireclient script in em

#

and the onserver fired it

#

HOW DO I SEPERATE EM

crude quarry
plush zenith
celest cipher
somber vault
crude quarry
#

What I was doing was looking for the humanoid

plush zenith
copper apex
plush zenith
#

then adding the amount based on that prodoct

#

for example: event:FireServer(productId, 250)

somber vault
#

howd u do that?

lucid pendant
#

easy

copper apex
somber vault
#

๐Ÿ˜ฑ

#

really sherlock lmao

copper apex
#

Well, i just debugged to get it right

somber vault
#

niceeeeee

celest cipher
#

so it can work

#

im REALLY sleep deprived

#

pls๐Ÿ™

plush zenith
#

UGHGHGHGH

#

but then you won't LEARNNNNN

celest cipher
somber vault
celest cipher
#

i have a test and stuff

lucid pendant
#

bruh what am i doing am so bored

plush zenith
celest cipher
#
  • i have a green fit i wanna wear
peak jolt
#

schizophrenia simulator

celest cipher
#

mad drip

plush zenith
#

aight how about this

#

i'll edit it

somber vault
plush zenith
#

and you listen to the explaination

#

deal?

celest cipher
#

deal

copper apex
celest cipher
#

12:25 am

plush zenith
#

bet

somber vault
#

๐Ÿคฌ

celest cipher
plush zenith
#

put the code in chat and i'll edit it on my end

#

then I'll put it here

somber vault
copper apex
#

Oh this is just from my types module where I laid out my structure

somber vault
#

๐Ÿฅ€

celest cipher
# plush zenith then I'll put it here

local rs = game:GetService("ReplicatedStorage")
local giveshecklesevent = rs:WaitForChild("GiveSheckles")

giveshecklesevent.OnServerEvent:Connect(function(plr, sheckleamount)
local leaderstats = plr:WaitForChild("leaderstats")
local sheckles = leaderstats:WaitForChild("Sheckles")
sheckles.Value += sheckleamount
print(sheckleamount)
end)


local button = script.Parent
local mps = game:GetService("MarketplaceService")
local plr = game.Players.LocalPlayer
local devproduct = 3310530135 -- change dev product id
local rs = game:GetService("ReplicatedStorage")
local givesheckleevent = rs:WaitForChild("GiveSheckles")

button.Activated:Connect(function()

    mps:PromptProductPurchase(plr, devproduct)

end)

mps.PromptProductPurchaseFinished:Connect(function()
local leaderstats = plr:WaitForChild("leaderstats")
local sheckles = leaderstats:WaitForChild("Sheckles")

if leaderstats then
    if sheckles then
        givesheckleevent:FireServer(250, devproduct) -- amount of sheckles given when bought
    end
end

end)

#

are my scripting skills good

plush zenith
celest cipher
#

took a 3 month quit then came back

#

lol

plush zenith
#

pretty good for 1 month!

celest cipher
#

u done the script?

celest cipher
#

wanna see what i made?

#

i made a remake of gag

#

ez

#

in 2 days

somber vault
#

were gonna need the other script as well

celest cipher
#

first do the script tho i need help asap

celest cipher
celest cipher
lucid pendant
#

Chat yall think this worthy enough for skill role (my code got all the requirments) ๐Ÿ™

plush zenith
#

@celest cipher

---------SERVER

local rs = game:GetService("ReplicatedStorage")
local giveshecklesevent = rs:WaitForChild("GiveSheckles")

local sheckleDevProductAmounts = {
    [3310530135] = 250
}

giveshecklesevent.OnServerEvent:Connect(function(plr, id)
    local leaderstats = plr:WaitForChild("leaderstats")
    local sheckles = leaderstats:WaitForChild("Sheckles")
    sheckles.Value += sheckleDevProductAmounts[id]
end)

-----------CLIENT

local button = script.Parent
local mps = game:GetService("MarketplaceService")
local plr = game.Players.LocalPlayer
local devproduct = 3310530135 -- change dev product id
local rs = game:GetService("ReplicatedStorage")
local givesheckleevent = rs:WaitForChild("GiveSheckles")

button.Activated:Connect(function()

    mps:PromptProductPurchase(plr, devproduct)
end)

mps.PromptProductPurchaseFinished:Connect(function()
    local leaderstats = plr:WaitForChild("leaderstats")
    local sheckles = leaderstats:WaitForChild("Sheckles")

    if leaderstats then
        if sheckles then
            --[[
            only send the id, not the amount. an exploiter can hack their client and send 1000000 to the server
            ]]
            givesheckleevent:FireServer(devproduct) 
        end
    end
end)
patent night
#

why in code people create folders within the code rather than making the folder itself?

somber vault
#

i forgot how they work yo

lucid pendant
patent night
plush zenith
# celest cipher explain

so im only sending the ID instead of the amount, cause an exploiter can hack the client and send a big amount to the server

marsh kelp
plush zenith
#

and then i added a dictionary on the server to organize products and amounts neatly

somber vault
#

nvm i got the idea

somber vault
#

idea

#

calm luh

obsidian hedge
#

also

#
if not (leaderstats and sheckles) then return end
somber vault
#

thats smart

obsidian hedge
#

thanks

plush zenith
#

man i wanna drop some of my game internals here ngl, its fun talking about this

somber vault
#

r u making a game

#

๐Ÿฅถ

plush zenith
somber vault
#

same

plush zenith
#

smash bros in roblox

somber vault
#

my game im making.... is a wee bit confusing

#

but i thnk i got it

plush zenith
#

wont be done till maybe 2026-2027

#

trailer coming out late 2025 or early 2026

somber vault
#

๐Ÿ˜ญ

plush zenith
#

HAHAHHHA

patent night
#

sorry i'm a bit new, but is getservice essentially finding a part within the game?

plush zenith
#

to be fair im only one person

#

but i plan on getting more devs by posting demos online and letting people test

somber vault
plush zenith
#

that's one of the best ways to get good devs on your team. showing that you can do well on your own

#

that's something people don't get

plush zenith
#

(im looking at the percentage payment users)

#

its gonna have rollback netcode EHHAEHEAHAEH

plush zenith
#

took 5 months to get the rollback right, but i finally got it

somber vault
#

whats rollback

#

yo

plush zenith
#

its a networking solution used mostly in fighting games. both users predict their opponent's inputs

#

when an input change is detected, the local client rolls the remote client's game state back to the frame where the inputs change, then frames are resimulate usinng the new inputs

celest cipher
# patent night sorry i'm a bit new, but is getservice essentially finding a part within the gam...

theres diff types of services, lets say u open a door that lets u do other things, get service is basically getting a service that has different abilities and such.

for local players = game:GetService("Players") it would give u the ability to do players.playeradded:connect(function()

end

playeradded is apart of players service, its rlly good bc when a player is added/joins the game it will run a function

plush zenith
#

and this makes it so both clients are synced up again

plush zenith
#

for me, i plan on doing rollback for more than 2 players

#

up to 6 players

civic garnet
#

getservice tries to find the service, if it doesnt exist it creates it

somber vault
#

can i be a tester ๐Ÿฅบ

civic garnet
#

for finding the service you want to use FindService()

plush zenith
#

๐Ÿ˜น

somber vault
#

๐Ÿฅฒ

plush zenith
#

that's a thing?

somber vault
#

lemme see it as rn

patent night
#

okay i got the service part but what's does putting it as the value of a variable do?

plush zenith
#

luau goes crazy

celest cipher
#

@plush zenith ts line is the error code

plush zenith
rotund valley
#

guys what would you recommend someone who is just starting to code to do?

celest cipher
patent night
somber vault
celest cipher
#

its peak trust

celest cipher
somber vault
#

ai

obsidian hedge
somber vault
#

its better than gpt

civic garnet
somber vault
celest cipher
river beacon
#

does anyone know how to lock a player in place like they cant shiftlock to look turn there body or anything

celest cipher
civic garnet
river beacon
plush zenith
#

everyting you see there is custom

#

custom character controller, custom animation player

#

this is needed so i have full control over the game

somber vault
celest cipher
plush zenith
#

and this roblox can't do authoritative physics

#

since*

patent night
civic garnet
somber vault
civic garnet
#

im going to telepathically extract the code from your screen

celest cipher
#

the server one

lucid pendant
somber vault
crude quarry
#

Is this normal that you dont spawn on the spawner with your team? I unchecked all of the neutral boxes and changed the team colors

plush zenith
plush zenith
celest cipher
#

@plush zenith

#

HELP ME

#

PIKACHU

plush zenith
#

gonna look at it...

celest cipher
#

I NEED uUUU

plush zenith
#

๐Ÿ˜น

somber vault
#

share the love man ๐Ÿ˜”

plush zenith
#

right now i wanna finish the scripting

somber vault
celest cipher
somber vault
celest cipher
#

which makes em unable to move

civic garnet
#

that is deprecated and should not be used iirc

#

use ProcessReceipt

celest cipher
#

sooo uhhh what do i do

plush zenith
#

im coding other stuff so im not too worried abt that, hehe

#

if i was more present here i'd cook with the help

#

butter's right btw

celest cipher
#

@plush zenith please

#

help

somber vault
celest cipher
#

aaaa

river beacon
plush zenith
somber vault
celest cipher
river beacon
#

okay

somber vault
celest cipher
plush zenith
somber vault
#

no

plush zenith
somber vault
#

not necessarily

celest cipher
civic garnet
celest cipher
civic garnet
#

default font

celest cipher
#

this one is fat and thick and its nice

somber vault
lucid pendant
civic garnet
#

that code is dogshit anyways ๐Ÿ˜ญ

plush zenith
civic garnet
#

everything can be handled on the server

plush zenith
#

or maybe the references are messed up

civic garnet
#

you can remove the client to server event

somber vault
celest cipher
#

i beg u

civic garnet
plush zenith
somber vault
civic garnet
#

im @civic garnet

plush zenith
#

programmer fight!

#

the one with more cheetos on their fingers will win

celest cipher
#

@plush zenith lock in i need to go in 10 mins

civic garnet
celest cipher
#

๐Ÿ™

plush zenith
plush zenith
celest cipher
plush zenith
#

put the print statement above line 13

somber vault
plush zenith
somber vault
lucid pendant
#

๐Ÿ”ฅ

somber vault
#

any day zafar

#

๐Ÿ”

lucid pendant
#

damn im lowky good at lua

celest cipher
#

@plush zenith i forgot to remove the numbers in the fireserver parameters for each script, just did now but it still runs every script like look

lucid pendant
#

i just realized

celest cipher
#

@plush zenith wake up help mne i beg u

civic garnet
#

is it possible to prompt a product purcahse on the server?

civic garnet
#

iirc it is right?

celest cipher
#

button that gives prompt, once bought sends to server of the id

#

and so on

#

but ITS SENDING EVERYTHNG

somber vault
celest cipher
#

LOOK

celest cipher
crude quarry
#

Is this normal that you dont spawn on the spawner with your team? I unchecked all of the neutral boxes and changed the team colors

celest cipher
#

HELP ME

#

IM SO MAD RN

plush zenith
celest cipher
#

hfpohviqwehvopewqnbvwevw

plush zenith
#

if its sending 3 times, then 3 scripts are each using 1 buttonm

celest cipher
#

theres 3 buttons

somber vault
#

๐Ÿ˜Ž

plush zenith
celest cipher
#

one for a devproduct that gives 1000, one gives 250, and one gives 5000

celest cipher
#

PLEASE

plush zenith
#

he should change the names still but yeah

crude quarry
celest cipher
#

PLEASE HELP ME

somber vault
plush zenith
#

ima call you

plush zenith
#

ohhh

crude quarry
plush zenith
#

its locked

#

bro i forgot

#

an admin muted me

somber vault
#

lmao

plush zenith
#

cause i was using a voice changer

#

and thye never unmuted me

somber vault
#

๐Ÿฅ€

celest cipher
#

JOIN

plush zenith
#

so i can't join VCs

celest cipher
#

I CALLED U IN DMS

somber vault
#

zafar i can help

#

can someone code a microwave that just makes everything explode past 30 seconds if its metallic

crude quarry
civic garnet
# celest cipher I CALLED U IN DMS
-- server
local MarketPlaceService = game:GetService("MarketPlaceService")
local Players = game:GetService("Players")

local SheckleDevProductAmounts = {
  [id] = 250
}

local function ProcessReceipt(info)
  local userId = info.PlayerId
  local productId = info.ProductId

  local amount = SheckleDevProductAmounts[productId]
  local player = Players:GetPlayerByUserId(userId)
  
  if amount and player then
    local leaderstats = player.Leaderstats
    local sheckles = leaderstats.Sheckles
    
    sheckles.Value += amount

    return Enum.ProductPurchaseDecision.PurchaseGranted
  end

  return Enum.ProductPurchaseDecision.NotProcessedYet
end

MarketPlaceService.ProcessReceipt = ProcessReceipt

-- client
local MarketPlaceService = game:GetService("MarketPlaceService")

local Button = script.Parent
local DevProduct = 3310530135

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

Button.Activated:Connect(function()
  MarketPlaceService:PromptProductPurchase(Player, DevProduct)
end)``` just do this
somber vault
#

or maybe i should make that.... ๐Ÿค”

civic garnet
somber vault
urban coyote
#

Hey guys, I know a lot about scripting, but don't know what to start with to form a portfolio
Can y'all give me suggestions?

urban coyote
civic garnet
#

inventory system, combat system, whatever

urban coyote
civic garnet
#

the fuck??

urban coyote
atomic palm
#

Hi ya'll i've been having issues with my Animations loading for me, but no one who play tests the game can see them (either solo testing or team testing) , what am I doing wrong ๐Ÿ’”

civic garnet
#

or i think there is a way to make animations public idr

atomic palm
#

how do i upload them to a group or make the animations public

#

I already transfered the game from me to my public group

civic garnet
#

you make the animation, when you upload to roblox just set the owner to a group

civic garnet
#

your ragebait does not work on me

#

0/10 ragebait

somber vault
# civic garnet it is luau
local function func(info)
    local userId = info.PlayerId
    local productId = info.ProductId
    print(userId, productId)
end

func("RehizVI", 33345886)
#

thats literally your code

#

it doesnt work

#

๐Ÿคฏ

plush zenith
#

yessirrrr

plush zenith
#

@celest cipher enjoy ur sleep ๐Ÿฅด

civic garnet
#

just plain old wrong

plush zenith
#

he got the code working boys

civic garnet
#

0/10 ragebait again

plush zenith
#

butter cooked

somber vault
plush zenith
#

what are you guys talking abt

#

oh

#

OH

#

ah heck nah

somber vault
#

this genius is rambling about not working code

plush zenith
#

yall two clowns shut the heck up

somber vault
#

๐Ÿ˜ข

crude quarry
celest cipher
atomic palm
plush zenith
celest cipher
celest cipher
plush zenith
#

internal remoteevents and http calls are made

civic garnet
celest cipher
plush zenith
#

id explain it if i wasn't doing other stuff rn

lucid pendant
#

yes sir it worked

somber vault
#

๐Ÿฅถ

plush zenith
atomic palm
#

how do i set owner to group for animations

lucid pendant
#

w walk anim

somber vault
#

you dont

civic garnet
# celest cipher what does that mean

player click funny button, roblox's own service (marketplace service) prompts a purchase (dev product), marketplace service fires an event on the server which you have to handle (ProcessReceipt) ahaha funny you get whatever you bought

somber vault
#

idk

plush zenith
celest cipher
plush zenith
civic garnet
somber vault
#

when its fired it sends out a signal that the server gets ๐Ÿฆ

#

idk

atomic palm
plush zenith
#

this makes a box appear

civic garnet
somber vault
#

short temper butter...

plush zenith
#

when you click purchase, it sends an event to the server. the code for that exists but its stored under the service (we don't see it)

somber vault
#

๐Ÿ˜”

civic garnet
#

you open roblox studio, open the animation, upload to roblox with group as owner

atomic palm
#

im sorry im new to this :(

plush zenith
civic garnet
plush zenith
#

going full stackoverflow on the newbies

#

shame on you!

lucid pendant
#

pluhhh i messed it up

celest cipher
#

what does the info.productid and bracketed productid mean?

somber vault
#

๐Ÿฅ€

civic garnet
plush zenith
craggy adder
somber vault
civic garnet
plush zenith
#

its an instance holding the id of the player who purchased, and the id of the dev product

somber vault
civic garnet
plush zenith
#

@celest cipher sorry if you arne't getting a good explaination haha

somber vault
plush zenith
#

typically you won't get good explainations in hidden devs

somber vault
#

linux...?

civic garnet
plush zenith
#

people here are either too prideful or arrogant to help you

somber vault
#

DIE

lucid pendant
civic garnet
#

im on windows currently though

somber vault
#

LEAVE ๐Ÿคฌ

civic garnet
#

i use neovim too

somber vault
plush zenith
#

anyways, what was i gonna do again?

lucid pendant
#

no i got the zipline good

plush zenith
#

right, my game internals

lucid pendant
#

im tyrna do sum else tho

somber vault
#

show a clip

lucid pendant
#

nah

#

i aint downloading nos ftware

#

๐Ÿ”ฅ

somber vault
#

๐Ÿ‘…

plush zenith
somber vault
#

i dont understand why people use module scripts for certian movements

lucid pendant
somber vault
#

could u explain

celest cipher
#

i need help, for this claim plot handler system my friend made it says this error code on line 66 whats the solution? @plush zenith @civic garnet

#

HELP ME

celest cipher
#

the game broke cuz of this error

celest cipher
lucid pendant
celest cipher
#

MY GAMES BROKEN

#

๐Ÿ˜ญ

plush zenith
atomic palm
#

what if I deleted all the rigs i used to make the poses for the animation how would I reupload it without having to start all over again?

plush zenith
atomic palm
#

I know how to publish animations to roblox and set it under group instead of me but I dont know how to reupload a already made animation by me if that makes sense?

plush zenith
#

when something is nil, lua will include whatever method or property you tried to access in the error message

#

for example

local thisIsNil = nil
nil.Cheese

"attempted to index nil with 'Cheese'"
#

@celest cipher so plantF is nil. figure out why

civic garnet
#

@somber vault jumpscare

somber vault
plush zenith
lucid pendant
#

im lowky bored am doin whatever

#

๐Ÿ˜ญ

plush zenith
#

nah these random pics are funny

celest cipher
#

help me

civic garnet
#

should i use linked list for this signal implementation

atomic palm
#

how do I reupload these into my group pleas help ๐Ÿ™

celest cipher
ember nimbus
# civic garnet

hi i'm struggling to understand this, can i have a red circle?

celest cipher
#

gn yall

civic garnet
plush zenith
#

(idk what those are)

ember nimbus
#

kind of a reflection on your CLEARLY low iq...

civic garnet
#

0/10 ragebait

#

nice try idiot, not getting ragebaited today

plush zenith
plush zenith
#

(part of larger systerm that loads animations as keyframesequences)

#

(good for rollback netcode + any player can see animations, as they are now much motors6ds with CFrames)

ornate stone
#

what's the best way to link buttons to frames?

one approach I've been using is mapping the button to the frame via attribute, so the button would have an attribute like Shop, and then when you click it the script would look for a frame called Shop and open it.

somber vault
#

im confuzzled

coral basin
#

how did you learn how to code like where did you start

craggy adder
atomic palm
somber vault
#

i need a calm luh coding buddy that we just work on stupid projects together until we randomly pop off โค๏ธ

atomic palm
#

the anims are only client sided even w the animations created and owned by group

somber vault
#

bro what

#

theyre unrelated twin

#

the owner doesnt mattter

#

๐Ÿ˜ญ

lucid pendant
#

whyd i reply

#

this fire tho

#

๐Ÿ”ฅ

plush zenith
plush zenith
#

i wanted to do this in the past

lucid pendant
#

You have an extra end

#

each if statement and function requires its own end keyword

atomic palm
#

even had this turned on and still doesnt show for others

lucid pendant
#

pluhh

stuck siren
lucid pendant
stuck siren
#

Is there an error in the output?

lucid pendant
#

im lowky just trollin idk why ruin it

#

i thought bro was new

#

๐Ÿ˜ญ

stuck siren
#

What a weird behavior, huh

#

It should destroy

#

Is it a LocalScript or Script? And where is it located?

lucid pendant
#

oh

stuck siren
#

That's it, then

#

Touched is not a Model event

#

It's a BasePart (Part, Mesh, etc) event

#

Try applying the event on all parts of the model

shell breach
#

Cant u js find the humanoid.health and set it to 0

#

?

bright perch
#

How would you go about linking a jump animation to jump
Or a run animation to run etc etc

stuck siren
#

Like so:

local function destroyTouchedPart (otherPart: BasePart)
    local character = otherPart.Parent
    if not character then return end

    local humanoid = character:FindFirstChild("Humanoid")
    if not humanoid then return end
    -- If you want to destroy, uncomment the line below
    -- character:Destroy()
    -- If you want to kill it, uncomment the line below
    -- humanoid:TakeDamage(humanoid.MaxHealth)
end

for _, part in edp:GetDescendants() do
    if not part:IsA("BasePart") then continue end
    part.Touched:Connect(destroyTouchedPart)
end
#

Can I take a look on script's parent?

#

In the explorer

#

Did you make something like this

#

Or this

#

Where is the script located?

#

It's like how you did here

#

Right click on the script tab and then click on "Show in explorer" or something like it

#

Inside the script

#

On it's content

stark crow
#

Using touched events in general isnโ€™t a good idea

#

Theyโ€˜re terrible

stuck siren
#

Change edp for script.Parent and it should work

stark crow
#

?

#

Just loop through the players and use the Hit:IsDescendantOf(Player.Charatcer)

#

You literally have touched events there

#

Wait

#

My brain

#

Are you using these events for NPCs or players

#

What Iโ€˜d do:

#

Actually this code can also affect players

#

If your NPCs are in a folder itโ€˜d be much easier

#

Good idea

#

You can easily call :IsDescendantOf(workspace.YourFolderName)

#

I also wouldnโ€™t define a character variable if you donโ€™t know if it was an NPC that touched you. Could be anything

#

It might be confusing for you in the long run

#

Someone wrote you this code?

lucid pendant
#

?

#

whats that for

#

keylogger?

#

๐Ÿ˜ญ

stark crow
#

Just check the name instead of the instance type

#

You donโ€™t need to check if hit.parent is. If hit is, then hit.parent is eitherway

hearty olive
#

Use Debris

#

hit:Debris(condition, number)

#

hit

#

the number is basically how much seconds it waiting for it to hit again

#

oh

#

when did you start scripting

#

condition.Touched:Connect(function(condition))

#

I started 5 days ago as of today

#

but your gonna have to declare and variable to it and write a local function under it

lucid pendant
#

yessir

weak radish
#

you use conditions to only do certain things if it's true or false

hallow crag
weak radish
#

And apparently when true is hit it returns itself

lucid pendant
# lucid pendant

this the smoothest pathfinding ive ever made it switches bewtween 2 modes when theres obstacles and when theres not

#

๐Ÿ”ฅ ๐Ÿ™

lucid pendant
#

which is better

hallow crag
lucid pendant
#

๐Ÿ’”

#

no

hallow crag
lucid pendant
#

this way better

hallow crag
#

premaking nodes always more reliable

#

and moving npcs with cframe

lucid pendant
#

bruh what

#

im not making the npc move toa specific place

hallow crag
#

thats the point a node graph u can make different set paths

#

and connections

lucid pendant
#

its following me

#

not going somewhere

hallow crag
#

ohh aight mb

lucid pendant
#

its good lol

#

node perfect tho for that

#

๐Ÿ”ฅ

hearty olive
# weak radish what

nah from what ik you make a function declare that function then to know if you touch it i put that and it work for me

weak radish
#

Why would you touch the function

#

It's Instance.Touched:Connect(function(hit)

hearty olive
lucid pendant
#

๐Ÿ”ฅ

hearty olive
mellow basin
#

Does anyone know how to code 2 payer obby system?

#

Like with a custom model to connect each one another

plush zenith
lucid pendant
#

im going overhaul

proven depot
#
                            local rat = workspace:WaitForChild("Rats"):FindFirstChild(plr.Name)
                            if rat then
                                for _, part in ipairs(rat:GetDescendants()) do
                                    if part:IsA("BasePart") then
                                        part.Transparency = 1
                                        print(part.Name, "Transparency: ", part.Transparency)
                                    end
                                end
                            end

guys this prints that it chaneged the transparency of each part but when i check the rats parts there transparency aint chanegdplease help im so confused

pine torrent
proven depot
#

its server

pine torrent
burnt pulsar
#

hello guys i have a proplem which i cant solve the proplem is

i made a script that assign players to diffrent teams when i server test it the players get random teams and each one sees the other in anther team btw i made the autoassignable false

proven depot
#

ok ill remove that

#

but doesnt fix the problem

pine torrent
#

Ye it won't

proven depot
#

so?

true moon
#

they usually have a set path

placid peak
#

hey

burnt pulsar
# placid peak send the script please

for No, player in pairs(Players) do
ChangeTeam(player)
print(No.. "player")
player.PlayerGui.Timer.Enabled = false

    local humanoid = player.Character and player.Character:FindFirstChild("Humanoid")
    local rootPart = player.Character and player.Character:FindFirstChild("HumanoidRootPart")
    local spawnLocation = MapModel:FindFirstChild(tostring(No))


    if humanoid and rootPart and spawnLocation then
        humanoid.JumpPower = 0
        humanoid.WalkSpeed = 0
        rootPart.CFrame = spawnLocation.CFrame
    end
end

this is part 1

and this is part 2

if Noplayers >= MinPlayers then
print("c")
for count = Countdown, 0, -1 do
Timer:FireAllClients(count)
task.wait(1)
print(count)

        if count == 0 then
            print("Starting game...")

            local ChosenMapName = randomMap()
            if ChosenMapName then

                StartGame(ChosenMapName)
                AssignRoles()


                wait(2)
                blackForAll("Murderer")
                wait(2)
                blackForAll("Doctor")
                wait(2)
                blackForAll("Detective")
                KeepRun = false
            end
        end
    end
else
    Timer:FireAllClients(NotEnough)
end
burnt pulsar
placid peak
burnt pulsar
#

local function ChangeTeam(Player)
local Team = Teams.Players
Player.Team = Team
end

burnt pulsar
placid peak
#

yes once hey all get teamewd use break

#

so it stops teh code from keep giving teams

#

cause its a loop

burnt pulsar
#

didnt work :/

placid peak
remote bear
hallow crag
remote bear
remote bear
# dense hull soft body sim?

yeah it is but i am planning on adding rigid body's and more. if that works out i may make a game similar to Bad Piggies

dense hull
#

is this a good view port size

true birch
remote bear
true birch
#

I can't even read the settings ๐Ÿ˜ญ๐Ÿ™

stuck ridge
#

where are the mods

dense hull
true birch
stuck ridge
#

t9 did me dirty๐Ÿ’€

true birch
#

Tf is t9 a war plane?

stuck ridge
#

autocorrection to be exact

dense hull
true birch
#

Ayo remove that blue shit

#

You know what gonna happen to us because of it

high epoch
#

Hi guy

ember quartz
#

higuy

stuck ridge
stuck ridge
dense hull
#

@marsh kelp yes i have

marsh kelp
marsh kelp
#

saw someone on YouTube taking a long time just to setup his scripts

dense hull
#

but roblox code is much more easy to learn

#

oh unity

marsh kelp
#

:D sorry I confused you

dense hull
#

oh mb

marsh kelp
#

I used Unity for a few months before coming to Roblox .. but didn't use UE. that's why I asked

dense hull
#

UE is much easyer for new coders due to blueprints > Unity uses C# which is harder but lil bit more logical to me

marsh kelp
#

but isn't blueprints a bit limited*** for more complex projects?

#

or visual scripting in general

fiery heron
#

Anybody wants to try out my game with me?

dense hull
#

in UE you can use c++ to code too but it requires alot more setup

#

wrong gif lol

marsh kelp
#

I guess I'll have to try UE blueprints in the future ( only heard good things about it compared to unity visual scripting )

dense hull
#

there petty nice at least in vc

marsh kelp
#

Oh

somber vault
marsh kelp
#

I don't know why, but I have a bad impression about asking for help in discord servers

#

some are good

#

but most don't help or your msg go away with the chat in few seconds

dense hull
marsh kelp
#

more professionals than here? ๐Ÿ˜… .. Ty I'll join one rn and take a look

zenith cloak
#

๐Ÿฅน

modest cradle
#

hello

dense hull
marsh kelp
#

Yeb

dense hull
#

oh dang

zenith cloak
#

see

dense hull
#

thats usefull

zenith cloak
#

yh

dense hull
#

only downside one of my plugins i made is gonna be broken

zenith cloak
#

what you made

marsh kelp
# dense hull thats usefull

do you have any use cases in mind?
the only thing I can think about is to stop using parts as Position holder

dense hull
somber vault
#

should deepwoken have used ecs if not why

marsh kelp
#

Aha

dense hull
#

ima go update my rbx studio which i have not done in over week and a half

somber vault
zenith cloak
hallow crag
#

just put ur entire game under a actor most exploiters are skids so they wont understand whats going on

#

when they see no remotes in their remote spy

#

what like namecall hooks?

hallow crag
#

elaborate on remote tampering, do u mean like arg modification and remote interception?

#

yeah so all u need to do is add namecall hooking detection

#

just make a "Trap" table with a custom __tostring metamethod with basic env checks and then do something to trigger the tostring metamethod

#

like game:FindFirstChild(Trap)

#

or sum

#

aight

proper quest
#

read the docs bro

hallow crag
#

theres legit a example usage of profilestore

#

in the devforum post

proper quest
hallow crag
#

๐Ÿ’€

lime hemlock
# zenith cloak does this look fun?

The wall run game mechanic functions well.
I appreciate how the script detects when the user is near a wall, and when to begin the animation cycle. ๐Ÿ‘

#

With more attention to detail & perseverance, you could make a fully-fledged parkour game out of this.

somber vault
idle wind
#

guys i think i made a rarity system, but i looked up and each of these colors have 33,3% chance of showing, how can i make it so common shows like 50% of the time, rare shows 35% of time and legendary shows 15% of time (just started learning scripting via brawldev vids)

sand flower
sand flower
ornate needle
#

how can i fix the image going up like this when i make the image label rotate

ebon frost
#

wait with editable meshes, can i uses meshes for procedural terrain generation?

ebon frost
#

bet'

#

so now i can optimize open world gameplay

hard cedar
#

Does anyone have a good tutorial on youtube to make a battlegrounds combat system with blocking, dashes and stuff

storm wing
#

ive made a game, can anyone tell me whats wrong and why it isnt getting any retention or engagement?

somber vault
#
local ctx={}

return {
    Context=ctx,
}

how to access the Context table like this:

return {
   Context={},
   DoSomething=function()
      print(Context) --HOW DO I GET THE CONTEXT WITHOUT USING A REF VARIABLE
   end,
}
storm wing
vital parrot
#

why are you returning that table?

little crest
#

well it doesn't even have access to game Datamodel but that's fine dogesmile

quaint furnace
#

guys i want to make a model (Npc) that chases the player but it flies like bees or anything that flies, do i use MoveTo() or AlignPosition?

quaint furnace
# hard cedar anyone know?

i haven't found any tutorials/series on creating the entire system (block + dashes + other things), but if you look for each of them like blocking system, dash system, you should find it easy

hard cedar
quaint furnace
hard cedar
# quaint furnace what do you mean by that?

like someone creates an m1 system which is missing some stuff like m1 reset time, stun and smth else. If I watch another person telling how to add these things.. I dont know where to add the line of code to in the other persons script

#

idk if u understand

#

im just like 2 months into scripting

quaint furnace
quaint furnace
#

well i shouldn't give you an advice though since i still mostly code with gpt lol, but even with gpt you'll still need to know the code since 99% of the time you'll still need to modify it

#

well i suggest you look on how do people add stun effect to their combat system, you might as well learn from it

urban coyote
cloud atlas
#

roblox studio plz work ๐Ÿ™

quaint furnace
#

and one more @hard cedar , you should look into the devforum

quaint furnace
# hard cedar ok

just looked into it and some dude literally open sourced his game with combat system lol

old bloom
#

How long did it take some of you guys to code

quaint furnace
next hull
#
        local Facing = currentCameraCFrame.LookVector
        local actualFacing = Vector3.new(Facing.X, 0, Facing.Z)
        local Vector = (workspace.Target.Position - Character.HumanoidRootPart.Position).unit
        local actualVector = Vector3.new(Vector.X, 0, Vector.Z)
        local Angle = math.acos(actualFacing:Dot(actualVector))
``` is there an easier way to turn the vectors into the same horizontal plane or is this method already optimal
next hull
#

why does my vector still have a y coord

tame compass
#

How do Grow a Garden devs release their game updates without shutdowning the game?

#

Also, recently I've heard that ProfileService Module is better then Roblox's DataStoreService. Why is that?

warm drum
#

what's the best way to learn advanced Lua lika. oop frameworks metatables and stuff . I only know the basic

tame compass
#

Read DevForum posts

#

Read Documentation

vital parrot
warm drum
#

ight

warm drum
copper apex
warm drum
#

I think videos will do better for me

tame compass
copper apex
tame compass
#

You can ask AI any questions, you know

copper apex
#

You just have to write

warm drum
#

oh alright thx

copper apex
#

Learn the basics then just start writing

tame compass
#

OOP isn't as hard as you think it is

warm drum
#

really

tame compass
#

Yes

copper apex
#

No matter how small the task is, as long youre consistent and practice you will get better

#

OOP is a very basic concept

tame compass
#

When I started scripting, for i,v in pairs loops were very hard to me

#

Until I just understood them

warm drum
#

cool I just finished exams. I'll learn all this during this holiday thx again

copper apex
#

There are other concepts surrounding it aswell such as encapsulation

warm drum
#

ooh

tame compass
#

I am kind of sad about that I do things in roblox studio for like 4 years now

copper apex
#

If you find a good beginner java book you can learn it, atleast thats how I learneed OOP

tame compass
#

And I still don't have any finished games

vital parrot
warm drum
tame compass
#

I just have a lack of motivation and patience

tame compass
#

But I am not a native english speaker

#

I can write but it's hard for me to talk

warm drum
warm drum
tame compass
#

Recently, I've made an Obby game and I started being very motivated about it... but the whole motivation went away like a day after

#

I want an Idea for game that will be interesting for me and will stick to me, until I finish it

warm drum
#

I'm making an interactive emotional narrative RPG with physics related to aerospace

tame compass
#

That's... sort of complicated, isn't it?

warm drum
somber vault
#

Is there any good professional, english speaking Scripter in here that can call in vc and talk? DM ME TO BE APART OF OUR TEAM

vital parrot
#

RPGs are definitely not for people that dont know oop

warm drum
tame compass
#

Damn, even after all these years I've worked in Studio - I still don't understand the CFrames and Graphic Functions (bezier curves, for example)

vital parrot
#

I know how to do opp and I dont even want to work on a rpg way too much coding

vital parrot
#

Bezier*

#

Im on phone

tame compass
#

The formulas, I just can't understand them

#

And I can't understand the whole thing because I can't understand the formula

vital parrot
#

You can write them by yourself though right?

warm drum
tame compass
#

No, actually

#

I don't understand them

#

I made a test place, but I just copied script to research it

vital parrot
vital parrot
#

It's a formula

#

It should only be one line

tame compass
#

Oh

warm drum
tame compass
#

I have this one

vital parrot
warm drum
tame compass
#

Here is it on the Wikipedia
It's more understable when it's written more clearly

#

I'll try to understand it

cerulean perch
mint cloud
#

The app readers are suckers for complexity

cerulean perch
#

bro i got rejected NINE TIMES

mint cloud
#

๐Ÿ’€

vital parrot
#

Using a module that ain't yours dont look good on you

dark juniper
cerulean perch
#

and the common comment is "please add comments to explain your code

mint cloud
#

A green username is not worth allat bro ๐Ÿ˜ญ

dark juniper
#

yea i just gave up atp

#

its not worth lmao

wind portal
cerulean perch
wind portal
mint cloud
cerulean perch
next hull
#

man i was calling the wrong variable

tame compass
#

oh

#

happens

next hull
#

no wonder why i couldnt spot the error

#

sigh

tame compass
#

When I didn't know anything about vectors, instead of finding a vector between player and mouse position to launch a projectile - I just used the mouse position for the projectile direction

#

I couldn't understand why wasn't it working properly

shrewd pier
#

if i want to get into scripting, is knowledge of advanced maths needed?

#

like for physics and shit

tame compass
#

Yes, it's needed, but for advanced stuff

restive hill
#

im confused i wrote a code and it only works 1 time. i have a part that i want to go transparent on contact and come back after like 4 second. but if i touch it again after it came back it wont go transparent again
can someone eplain me why that is i cant find a solution

#

local GoneContact = workspace:WaitForChild("DisappearOnContact")

local isTouched = false

local function dissapearOnContact()
if not isTouched then
isTouched = true
for count = 1, 10 do
GoneContact.Transparency = count/10
task.wait(0.1)
GoneContact.Transparency = 1
end
GoneContact.CanCollide = false
task.wait(1)
GoneContact.CanCollide = true
GoneContact.Transparency = 0
end
end

GoneContact.Touched:Connect(dissapearOnContact)

#

did i do something wrong

tame compass
#

you didnt change isTouched back to false

#

``local GoneContact = workspace:WaitForChild("DisappearOnContact")

local isTouched = false

local function dissapearOnContact()
if not isTouched then
isTouched = true
for count = 1, 10 do
GoneContact.Transparency = count/10
task.wait(0.1)
GoneContact.Transparency = 1
end
GoneContact.CanCollide = false
task.wait(1)
GoneContact.CanCollide = true
GoneContact.Transparency = 0
isTouched = false
end
end``

#

try this

#

Did it work?

restive hill
#

sry was gone for a second

tame compass
#

Also, if this is a server script, you don't have to use WaitForChild for workspace objects

restive hill
#

someone said wait for child is safer so i know that the part loaded

tame compass
#

It is used in client scripts more often

#

I mean, you can use it if you want

restive hill
#

ah yes now it works

tame compass
#

Nothing bad

tame compass
restive hill
#

thanks

#

so always i gotta ser isTouched at the end to false in situations like that

tame compass
#

Yes

restive hill
#

oka

tame compass
#

If you don't do it, it aborts on this line

#

Also, you could use TweenService to change transparency

restive hill
#

oh right bc the 1. thing local isTOuched = false is behind the function

tame compass
#

yes

restive hill
#

ah alr

#

didnt see that

#

thanks*

tame compass
#

If you want, I can help you with implementing TweenService into your script

#

It's not hard at all

next hull
#

mannn why is my dot product not working

#

i dont think i understand vectors enough to find the issue

#

hmmmmmmm

tame compass
#

Can you send the script? I'll try to help you

#

But I don't promise I'll solve it

#

I understand vectors but not fully

next hull
#

hold on gimme a sec

tame compass
#

Ok

next hull
#
        local facingUVect = currentCameraCFrame.LookVector
        local actualFacing = Vector3.new(facingUVect.X, 0, facingUVect.Z)
        local objVector = (workspace.Target.Position - Character.HumanoidRootPart.Position).unit
        local actualVector = Vector3.new(objVector.X, 0, objVector.Z)
        local angle = math.acos(actualFacing:Dot(actualVector))
``` ta da
next hull
#

the "actual" variables resolve both vectors into the same horizontal plane

tame compass
#

Maybe, it is because you didn't unit the first Vector?

next hull
#

as u can see the angle (degrees) becomes 120 when it should be 180

#

but still shows 90 for 90

tame compass
#

Hm...

next hull
tame compass
#

Oh, ye

next hull
#

im assuming it is to do with my equation

tame compass
#

Don't you have to do, like

#

Print both vectors magnitude and show me the output, please

next hull
#

wait what

#

one of them is nil

#

... i mistyped the variable

#

bruh

tame compass
#

happens

edgy basin
#

Any scripters willing to fix some bugs and create a few things for % dm me

keen juniper
tame compass
#

Oh, you didn't mean that

#

Okay

next hull
tame compass
#

Their magnitude now, please

keen juniper
#

What are you trying to do with this code

next hull
next hull
tame compass
#

What is the vectors magnitude?

next hull
tame compass
#

Oh

#

That's the issue

next hull
#

the whole thing is to make a fortnite/pubg like damage system

#

where players can have a pointer on their screen showing where the damage came from