#code-discussion

1 messages · Page 101 of 1

shrewd latch
#

nah

#

am fine

#

js checkin

placid peak
#

why are profileservice so complicated to understand, my brain is just, hurting.

ruby cipher
placid peak
#

well im a new roblox scripter, im tryna learn scripting in genreal, i saw that profile service is better tehn data store

so im just lookin at videos confused. and reading the manual

ruby cipher
#

e

#

what do u usually do

#

u said u experienced but in what department

placid peak
wanton cloud
#

Not tryna act like a mega dc mod but there is a channel for this

oak verge
#

just give up while you can ffs, ive earned absolutely nothing from doing this ffs, no money to sponsor my game, no way to earn the money, no way to advertise the game, you and me are background characters so give up ✅

placid peak
oak verge
# placid peak ahem, ur bio says **Phillipeans4:13 -"I can do anything through Christ that giv...

becuase ive been beaten up black and blue by this crap. Im tired of it, i always put the effort, i always get absolutely no returns, nothing ever works out. Until i finally saw and realised, im supposed to be hated and go through hardships becuase thats fair 😃 its so fair that FREAKASS random kids just get lent 10k robux minimum from a random person, instantly make the most basic FREAKASS game possible, sponsor it and return atleast 60k robux back. Some FREAKASS kids just ask people to join their community and instantly aquire 50 people and ccu, some FREAKASS kids just join a donation game and instantly get donated upwards of 2k, whilst for me its the absolute pinacle of the opposite where i try not to gain complete insanity, while all my games are solo deved, debugged through hundreds of times, trialed and tested, ALL BY MYSELF, and your FREAKASS games flop from FREAKASS bullcrap rubish, you wanna do coms and none of them FREAKASS coms FREAKING FREAKASS FREAKASS FRICK work becuase most of them FREAKING FREAKASS ghost you, others are already occupied, and only the 1% of coms that you receive end up forcing more work down your throught that they originally mentioned, making you spend hours to days doing something, just for them to say "times up", and kick you out of the com, freaking fuck ass shit

placid peak
# oak verge becuase ive been beaten up black and blue by this crap. Im tired of it, i always...

If you dont have hte money to promote an game, and if u dont, such a small cahnce of you actually getting it popular, start by doing commisions, try ur hardest to get hired, or get known in the HD community by scripting, or go to the hiring pages and get hired, make some money (Thats what I did with building, even tho iw as bad, i amde like 300 - 400 bucks total) and i still tried no amtter what, i was Dming people everyday, and i even got banned once on discord cause they taught i was a bot, but dw, everything worked out, once again, thru christ and hard work, everything can be done.

#

u dont give up

#

u dont do popular in 1 day

scenic marten
#

crashout

oak verge
#

I swear to you my faith is the only think preventing me from truly being a villain

#

i swear to you rn if i lose God everyone is cooked

placid peak
#

no need to get so angry and swear for no resaon, ur just wasting ur time, you gotta get a reputation, be active in #code-help , help people out, get known, promote ur work (you dont even have the scripter role to post in #scripter-hirable )

and if u only made 500 robux in 2-3 years, ur def doing something wrong, that we cant do anythinga bout it

theres legit other discord servers, use them, not only HD, look on big games in roblox, go to their discord, open a ticket, and try to get hired.

coral field
coral field
#

god was never real and never will be

oak verge
placid peak
oak verge
placid peak
#

and what i used to do (to help you)

#

i used to go on simulator games

#

on roblox

#

games that have like 200+ CCU's

#

most of the times they ahve discord linked to teh game

#

or teh group

#

you legit join the discord

#

open a ticket or Dm the owner

#

and try to get hired, simple

coral field
placid peak
#

mind not fighting her plesae

#

here*

#

take it to dms, dont spam the chat with your fight

coral field
#

ok

placid peak
#

thanks

oak verge
# coral field all the problems were always thought to be because of "god" but it always had sc...

no clue what this has to do with anything or how it illuded to the fallacy of God. 💀, Issac Newton had perceived gravity to just be a force acting downward on an object based on mass. Albert Einstein elaborated and explained that there was a geometrical dialation in spacetime that instantiated gravity. Was Newton wrong? Nope, he was completely right, it was just further elaborated by Einstein. The result of humans stating something doesnt illude to the definition of who God truly is 😂

placid peak
#

guys

#

take it to dm's, not here

coral field
#

lowk cant be asked

#

js telling my opinion on god

placid peak
#

automatically what i see

#

which imo is not professional

#

nor looking good

#

u can use this website

#

1 sec ill send it here

oak verge
placid peak
#

the first thing a person should see when they open ur profile (like click ur profile on discord)

is ur bio saying

**EXPERIENCED | SCRIPTER | forthislong **
-portofolio link here (or twitter)

oak verge
#

ive been pondering changing my bio for a while SadKitten

#

guess ill have to truncate the evangelism

placid peak
oak verge
#

alr ill put your advice to work

placid peak
#

dont be putting quotes and shit, it just ruins it

placid peak
oak verge
#

once i make 10k+ ill let you know pepetux

placid peak
#

and trust me

#

if u want to add me

#

and let me know everyday

#

ill try to help u out

oak verge
placid peak
cloud bronze
#

Yo someone wanna help me make a obby game and he will get 60% of the robux ?

brazen moon
#

I don't accept commissions that offer less than 15K R$ or 50 USD

oak verge
coral field
#

i have one

#

go outside and look for a job

#

you will earn more

#

its the secret method

muted fern
#

Bro

#

Relly

coral field
#

yeah no one wants your indian scam services

brazen moon
muted fern
#

571285

#

571285

brazen moon
#

?

coral field
muted fern
#

Dowing jobs for 500r$ only

#

Dowing jobs for 500r$ only

brazen moon
#

OH MY GODD

#

HES RICH

muted fern
#

Dowing jobs for 500r$ only

worn flax
brazen moon
#

HES RICHER THAN ALL OF US COMBINED

#

WTF

muted fern
#

Dowing jobs for 500r$ only

coral field
#

im js that guy

worn flax
brisk aurora
#

Fr

brazen moon
#

Alright I look unique now

coral field
#

guys how do i earn more money

worn flax
brisk aurora
narrow vault
coral field
#

do i rob the mafia after that

worn flax
#

Real

#

I saw that

#

But good question

brisk aurora
worn flax
#

Do u? @muted fern

coral field
#

who wants to make a new front page game idea called grow a garden

coral field
#

so you

brazen moon
#

I hate grow a garden and all of these new games

coral field
#

grow a garden

#

nah guys im jandel idk what ur on about

worn flax
#

Like

#

Growing offline could be cool

coral field
#

oh that aswell

#

its so cooool

worn flax
brisk aurora
worn flax
coral field
#

game made in like 3 days

#

btw

worn flax
#

Grow a garden is peak

#

🤑

brisk aurora
#

made in a garden 🥀

coral field
#

hold up guys

worn flax
#

Yh but fr what could be a good game

coral field
#

how about

brisk aurora
#

don't worry gng

coral field
#

garden a grow

brisk aurora
#

I'll make a game

worn flax
#

That sounds original and fun

#

Does it garden offline?

coral field
#

yeah instead of plants you grow soil

#

has to grow offline aswell

worn flax
#

“Grows online!”

brisk aurora
narrow vault
#

offering 1 cent to whoever makes me the next roblox physics engine with also inverse kinematics, oop, rojo and articulations

worn flax
somber vault
#

How about, grow a baddiecryingdead cryingdead cryingdead

coral field
#

grow a gyatt

brisk aurora
#

1k ccu

worn flax
#

Guys what about this

Grow a cotton farm

brisk aurora
#

we saw that gng 😭

somber vault
narrow vault
#

this is just pure racism

#

can we report this guy

worn flax
#

M’n

#

Mb

#

Shouldn’t have said that

narrow vault
wind wagon
#

i expected to see a lot of codes and shi here

wind wagon
#

first time i joined this channel I went back to animations

#

😭

wind wagon
#

aint doing allat

somber vault
#

Wrong channel bro

marsh kelp
#

Yeb only gifs

somber vault
#

Wrong server actually

worn flax
#

while true do end

#

thanks for the new gif

#

❤️

somber vault
narrow vault
somber vault
#

Dont tell the mods

worn flax
#

Low-key mods chill asf here

narrow vault
narrow vault
#

not even banned/warned/muted

#

straight up neutralized

worn flax
worn flax
worn flax
#

Cuh

#

GUYS PEPPER IN STOCK

#

joking btw

#

before everyone hates me

#

💔🥀

true birch
worn flax
#

WAIT THATS A FUNNY TROLL

#

Wait that’s legit a funny troll

near sonnet
#

@wide sparrow i told u i hit u up when i need help. My leaderstats are not working. I use waitForChild in almost every possible way i can but there just not loading up. Sometimes only one of two categories shows up, then the other at the next try. Its very rare they show up at the same it. help pls xD

raven dust
#

who wants to change roblox with me

#

make a game so good that roblox becomes all about it

wanton cloud
true birch
# worn flax LMAO

Another troll, to make sommeon leave on grow a garden say am gonna steal your fruits

true birch
#

WARNING TRUST ME THIS SCARY ASF

#

DONT WATCH THIS I PROMISE ITS SCARY ASF

wanton cloud
#

It was certainly unexpected

raven dust
#

ill change the world

wanton cloud
raven dust
#

say ong im not tuff

glossy terrace
#

im looking for new scripters so we can learn togheter and do good stuff togheter

snow geyser
#

do people need scripters or like is their enough and more are piling up

stark crow
#

it's more like chatgpt threads are piling up

craggy plover
#

hey, i wanna start scripting, what should I do and what kind of projects should I do to build a portfolio?

frank tiger
craggy plover
frank tiger
stark crow
glossy terrace
#

looking for starter scripters for friending

stark crow
#

your focus should solely be on acquiring skills and the way of thinking of a programmer

frank tiger
near sonnet
#

chat was is needed from scripting rn is it like rng or more combat or shooter

stark crow
#

what

near sonnet
#

yk what do the people wanna create the most rn

#

is there like a trend or some shi

stark crow
#

the grow a blablab game trend

#

is blowing up

#

may I add: sadly

near sonnet
#

xD

#

i see

#

we need new inventions

stark crow
#

all these games have only one purpose

near sonnet
#

MONEY

stark crow
#

grab as much money as possible before it dies down

#

and it works

#

may I add again: sadly

near sonnet
#

man i jst started scripting a few months ago and im doing it for fun not for money but this is sad fr fr

stark crow
#

so many good devs create acual original games, but they are completely drowned by these low effort games that kids like to pla

near sonnet
#

i got a friend who would advertise my games

#

is it worth tho

#

to even advertise

stark crow
#

first, be completely sure there is no bugs, or at least game breaking ones

#

and yes it is worth it

#

i did some sponsoring campaings a few days ago just to see how it turns out, it isn't too bad.

near sonnet
#

yeah i would first upload it and make like a 100rbx per bug bounty

stark crow
#

but you gotta spend a good bunch of money on it

stark crow
near sonnet
#

nah not rn

#

but i would

stark crow
#

phew

near sonnet
#

to test game complete

stark crow
#

Jk, don't do it

#

Seriously, don't

near sonnet
#

yk i cant think the way other people do who want to brake the game

stark crow
#

Players will report them by themselves if they like the game or see potential, trust me

tepid notch
#

Can someone give me some advice? I really want to make a game. I know Lua, but I can't get any ideas for the game.

near sonnet
#

alr xD

near sonnet
#

nah dont ask him

#

hes ass

#

#forbidchatGPT (only for others i need it)

stark crow
#

it creates very original ideas

near sonnet
#

and check ur idea so u can be sure noone else has a big game with same concept

tepid notch
near sonnet
#

my friend would pay like 50k for ads

stark crow
#

that's a topic I cannot give much advice on

near sonnet
#

is that enough?

stark crow
#

it is

tepid notch
#

And when I don't know something, I just quit doing it. 😔

polar furnace
#

Someone give me a task to do in roblox studio (Scripting)

somber vault
#

is it worth casting these in parallel:

    local rayBack=workspace:Raycast(backTop.WorldPosition, relativeDown, rayParamsExclude) :: RaycastResult
    local rayCenter=workspace:Raycast(centerTop.WorldPosition, relativeDown, rayParamsExclude) :: RaycastResult
    local rayFront=workspace:Raycast(frontTop.WorldPosition, relativeDown, rayParamsExclude) :: RaycastResult
tepid notch
#

I like building, but what will I even earn from that?

somber vault
#

reality check

stark crow
somber vault
#

yh

tepid notch
stark crow
#

I mean it depends on what you wanna do

slender yew
#

How does roblox animation priority work?
I have a running animation that I force onto the player whilst hes sprinting and I'm trying to make the animation stop when he jumps, so that the default roblox jumping animation plays, for now the sprint animation is playing while hes jumping.

stark crow
#

Do you need to check all the sides or do you only need one result

somber vault
#

local function GetGroundRes(customArbSmallDown: number?): RaycastResult?


    local relativeDown: vector=-(root.CFrame.UpVector)-vector.create(0,localCtx.legHeightAndArbSmallDown,0)
    
    local rayBack=workspace:Raycast(backTop.WorldPosition, relativeDown, rayParamsExclude) :: RaycastResult
    local rayCenter=workspace:Raycast(centerTop.WorldPosition, relativeDown, rayParamsExclude) :: RaycastResult
    local rayFront=workspace:Raycast(frontTop.WorldPosition, relativeDown, rayParamsExclude) :: RaycastResult
    
    
    local sumNormals:vector=rayBack.Normal+rayCenter.Normal+rayFront.Normal
    
    return
end

called every frame

near sonnet
# polar furnace Someone give me a task to do in roblox studio (Scripting)

Phased Boss – 3 phases triggered at 75%, 50%, and 25% HP, each with different attack patterns.

Smart Targeting – Boss chooses targets based on proximity, highest DPS, or random aggro shifts.

Telegraphed Attacks – Display AoE warnings (e.g. red circles) before impact; sync via RemoteEvents.

Pathfinding Movement – Use PathfindingService for chase attacks or repositioning.

RemoteEvents & ModuleScripts – Clean client/server logic separation; sync visual + combat effects.

Team Mechanics – Include co-op challenges (e.g. stack zones, cleansing debuffs, shared damage).

Dynamic UI – Show boss HP, current phase, and warnings (e.g. timers for ultimate attacks).

100% no chatGPT

stark crow
slender yew
# stark crow :Stop() it

what about animation priority?? If I set it lower than the roblox jumping animation wouldnt it overrride it??

stark crow
#

It's not gonna kill your performance so

ivory oxide
#

Yo for games like deepwoken how do they make their melee rays? I've tried using rays from attachments but sometimes with my attack system they lag behind and hit from behind cuz of the weapon animations going behind the character, any suggestions?

stark crow
#

You're better off just stopping it

brisk aurora
#

like core has the lowest priority

slender yew
#

oh

stark crow
somber vault
brisk aurora
#

that's why overriding occurs in animation most of the time

ruby cipher
somber vault
brisk aurora
#

you probably didn't set the priority high enough

stark crow
#

It's not too excessive on resources for 3 raycasts

tepid notch
#

Also any tips on coding in lua

ruby cipher
stark crow
#

Alternatively you could add a cooldown, even if just a short one to make it more efficient in performance

tepid notch
#

Might as well just read the whole scripting docs

ivory oxide
# somber vault predict it

I tried that however the predictions just made it worse in my visuals, when the weapon went behind the back it predicted a swing behind

somber vault
#

use rollback netcode

ivory oxide
#

Alr ill try rhat

somber vault
#
  • custom character movement like i am doing
ivory oxide
somber vault
#

uh

stark crow
#

Using attachments should work fine tho no?

#

Save the previous pos, use it as origin for the next raycast. never had it lag behind

somber vault
#
    local avgNormal=sumNormals/3

is it faster to divide or multiply by 1/3

ivory oxide
#

But when the weapon anim goes behind the character

#

The rays go behind but I want attack only from the front to count

stark crow
#

one to start the hitbox registration

#

and one to stop it

ivory oxide
ivory oxide
stark crow
#

Then it shouldn't happen

#

If you properly set the code and the events up

ivory oxide
#

Alright so i just stop raycasting during certain events?

stark crow
#

Just like this

#

The start animation event runs a loop that runs till the end animation event is invoked

ivory oxide
#

Urs is so simple lol compared to mine, i defo messed smth up

#

Should I send my code?

#

U can prolly see whats wrong

stark crow
#

Oh this is the simple hitbox detection. I figured I don't need more raycasts to kill zombies

#

Yes do that

ivory oxide
#

alr 1 second

willow hinge
#

im still learning does anyone have an explanation for what scope is?

steel elm
#
local Hitbox = workspace.ReadInfoHitbox
local OpenedGUI = game.Players.LocalPlayer.PlayerGui.PlayerGUI.ReadInfo
local TweenService = game:GetService("TweenService")

Hitbox.Touch:Connect(function()
    TweenService:Create(OpenedGUI,TweenInfo.new(0.07,Enum.EasingStyle.Quart,Enum.EasingDirection.Out),{
        ["Position"] = UDim2.new(0.431, 0, 0.2, 0)
    }):Play()
end)

Hitbox.TouchEnded:Connect(function()
    TweenService:Create(OpenedGUI,TweenInfo.new(0.07,Enum.EasingStyle.Quart,Enum.EasingDirection.Out),{
        ["Position"] = UDim2.new(0.431, 0, -0.2, 0)
    }):Play()
end)

This code is supposed to make the GUI go down when you touch the part called "ReadInfoHitbox".
It used to work, but now it doesn't and Idk why.

stark crow
stark crow
#

raaaaaah

willow hinge
#

what does it do tho?

stark crow
#

Not that interesting to me tbh

somber vault
ivory oxide
#

i tried to use sphere casts and all lol

stark crow
#

oh my days

ivory oxide
ivory oxide
#

ive been trying a lot of stuff

somber vault
stark crow
#

I don't see the code where it mentions anim events

slender yew
ivory oxide
willow hinge
ivory oxide
#

thats was an old version i tried

somber vault
stark crow
#

If it didn't do anything it wouldn't be there :/

slender yew
#

thats what I'm tryna do bruh I'm lazy asf

stark crow
#

If you stop your overriding anim, theirs should resume as usual

slender yew
#

oh

stark crow
#

not resume, but be visible again as they're no longer overridden

ivory oxide
slender yew
stark crow
#

They're suppressed if you wish

iron vigil
slender yew
#

oh I just though they dont play at all

stark crow
#

A higher animation priority suppresses lower anim priorities. That doesn't mean the anims stop, they still play but don't fully execute or don't at all

stark crow
#

if there's no issue with the raycasts then this code is fine

ivory oxide
stark crow
#

what Ineed to see is the lines where you call these functions

slender yew
ivory oxide
ivory oxide
#

Like thousands of lines

slender yew
#

thank you codingislife

stark crow
slender yew
#

I'm deeply greatful for your existance

stark crow
#

no worries

slender yew
somber vault
#

wild

stark crow
#

they're called

ivory oxide
somber vault
#

roblox ts is not worth learning

ivory oxide
#

And i also have a server script for server combag

near sonnet
#

guys my leaderstats are not loding. I did everything. Used waitforchild everywhere. Create them on player join. nothing in my power is working

ivory oxide
#

Which calls raycasts and all

stark crow
#

a server script calls raycasts??

slender yew
ivory oxide
#

I think

#

Id need to check lmao

slender yew
stark crow
#

do that

slender yew
#

that only fires when it starts

stark crow
#

on the humanoid

ivory oxide
stark crow
#

bind it to a uh changed event and yea

#
Humanoid.Jumping:Connect(function(Jumping)
  print(Jumping)
end)
ivory oxide
#

@stark crow do u mind if we continue this convo in like 20 mins in dms? I gotta go for a bit but would really appreciate the help

stark crow
slender yew
ivory oxide
slender yew
stark crow
slender yew
#

yeah ik

stark crow
#

Why doesn't it work

#

If you play it

slender yew
#

it works when I play it, but I need it to resume AFTER I stop it with the jump, cause the player can keep holding shift yk

hoary cedar
stark crow
slender yew
#

well I'm thinking of connecting it to humanoid:getstate

stark crow
#

i'm a bit confused

slender yew
#

n detect it that way

slender yew
somber vault
#

ipairs is still faster than pairs

stark crow
slender yew
#

I'm making a sprinting system for my game, and I want the animation to stop when the player jumps, and be overriden by the jumping animation, but once the jump is finished, IF the conditions are met, the player keeps playing the sprint animation

stark crow
#

Not much of a problem

#

I assume you got a sprinting variable that changes depending on whether you hold down shift or not

slender yew
#

yeah

molten creek
stark crow
#

Then when detecting jumps you just stop the track as usual, when the jump stops, you just check if the player is still sprinting. If yes, play the anim, if not, then don't

somber vault
#
    local a={
        workspace:Raycast(backTop.WorldPosition, down, rayParamsExclude) or nil,
        workspace:Raycast(centerTop.WorldPosition, down, rayParamsExclude) or nil,
    }

if i loop through it, i will only get the true ones right

slender yew
#

and depending on what it is doing that

#

for example jumping/freefall then it stops the anim

#

if landing then resume the anim

stark crow
#

Oh freefall

slender yew
#

how would I do it then

stark crow
#

Alright yea that's fair

slender yew
#

cause I'm unsure how I'd wait for the player to land to play the animation again

#

using task.wait will get buggy while falling

hasty mesa
thick sail
#

Guys quick question

#

I'm scripting a vehicle collision handler that flings people a vehicle collides with

#

Should I just handle the hit detection inside the character?

slender yew
#

thank u for ur help yet again

stark crow
#

Well you figured that one out on your own to be fair

spring moon
thick sail
#

I'm already using collection service as you describe

#

And raycasthitbox

#

The hard part is finding out which direction the vehicle would be moving in relative to the player

spring moon
thick sail
#

Car intersects one of the player's dmgpoints -> dot product the car velocity and the direction between the root part and the vehicle

#

Think I'll do that then

spring moon
#

ight GL 👍

stark crow
near sonnet
#

guys how do i scale buttons for different devices. Like my buttons are good rn but when i switch to mobile they are awful

stark crow
#

and more importantly, using UIAspectRatioConstraints

#

they keep stuff proportionate

#

for example that a square frame won't squeeze into a rectangle due to a smaller screen

pseudo maple
#

Should i learn to script for these next 2 months of summer holiday?

near sonnet
#

am i dumb or do i just not see it

stark crow
near sonnet
#

so offset 0 right?

stark crow
#

yes

near sonnet
#

and then?

stark crow
#

there's a cool plugin which lets you transform offset into scale and vice versa

#

i always use it

stark crow
near sonnet
#

and i have to guess the size then

#

buzzalr

stark crow
#

I'll fetch it for you

near sonnet
#

but do u get like get accsess to my pc?

stark crow
hardy pilot
#

What

stark crow
#

Here lol

near sonnet
#

i hope so ig

stark crow
#

No one going to hack into your PC

near sonnet
#

insh no beam link

hardy pilot
#

Roblox plugins aren't teamviewer 😭

stark crow
slender yew
#

well not 1:1 but its really similar yk

#
local player = players.LocalPlayer
local character = player.Character
local humanoid : Humanoid = character:FindFirstChild("Humanoid")
local animator : Animator = humanoid:WaitForChild("Animator")

--// Dynamic Assets
local sprintTrack = animator:LoadAnimation(animations.SprintAnimation)
sprintTrack.Priority = Enum.AnimationPriority.Movement

--// Variables
local stamina = 100
local running = false
local runningSpeed = 18


UserInputService.InputBegan:Connect(function(input,typing)
    if not typing then
        if input.KeyCode == Enum.KeyCode.LeftShift and humanoid.MoveDirection.Magnitude > 0 and humanoid:GetState() == Enum.HumanoidStateType.Running then
            running = true
            sprintTrack:Play(0.5)
            humanoid.WalkSpeed = runningSpeed
        end
    end
end)

humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
    if humanoid.MoveDirection.Magnitude == 0 then
        running = false
        humanoid.WalkSpeed = 10
        sprintTrack:Stop()
    end
    
end)

UserInputService.InputEnded:Connect(function(input,typing)
    if not typing then
        if input.KeyCode == Enum.KeyCode.LeftShift then
            running = false
            sprintTrack:Stop(0.5)
            humanoid.WalkSpeed = 10
        end
    end
end)

humanoid.Jumping:Connect(function()
    
end)

humanoid.StateChanged:Connect(function(state)
    if state == Enum.HumanoidStateType.Jumping then
        sprintTrack:Stop()
    elseif state == Enum.HumanoidStateType.Freefall then
        sprintTrack:Stop()
    elseif state == Enum.HumanoidStateType.Landed then
        if running == true then
            sprintTrack:Play()
        end
    end
end)```
#

ignore hum.jumping LMAOO

#

forgot to remove it

#

also didnt add oldstate n new state

near sonnet
#

and how exactly do i use the plugin

stark crow
#

I'd just put the 2 if statement in the last event in the same statement cause they do the same

#

but great code

stark crow
#

i'm quite busy rn so I can't help a lot

near sonnet
#

dw ill find it out ms ty anyways

stark crow
#

no worries

slender yew
stark crow
slender yew
#

that is A LOT

#

do you code fulltime?

#

also what languages do you know

stark crow
#

Not yet

#

Llet's see

#

Java, Python, PHP, C#, C++, (HTML), (CSS), JavaScript ( NodeJS framework)

#

Isn't that much all things considered

slender yew
#

impressive though

stark crow
#

I literally forgot to mention Lua

slender yew
#

why arent you fulltime??

slender yew
stark crow
slender yew
#

ohh where u from

nova cosmos
#

Ive been learning and practicing in studio for a while now, mainly focusing on a single game but I am starting to realize that I need to reorganize alot of my code into module scripts and whatever else. Anyone know any good resources/documentation/tutorials for learning how to start this?

stark crow
#

Somewhere from this planet I would heavily assume (:

slender yew
#

:( well I know that much

#

but region?

#

NA/EU

stark crow
slender yew
#

Ion judge

stark crow
#

I don't like to disclose anything sorry

slender yew
#

its okay I understand

#

you seem like a cool person but I cannot send u a friend request :(

stark crow
#

Don't worry

#

If you need help, you can ping me

slender yew
#

I know, thing is I'm just looking for mutuals w the same intrests so I can improve myself

#

I wanna learn python once I move on from lua

#

whenever that may be

stark crow
#

Python really is a walk in the park

slender yew
#

yeah it seems that way

#

especially since its so similar to lua

#

after python I was thinking Java

stark crow
#

Java will need some time I can tell you that

graceful cairn
#

dos anybody here know a site where u can buy roblox assets (aside from clearlydev)

slender yew
#

but also worth it

#

what would you recommend?

stark crow
#

To learn Java

slender yew
#

no like a language

#

thats worth learning

#

after python lets say

stark crow
#

JS, and it's accompanying front and backend frameworks

#

but that's a bit more

#

complex

#

depending on the framework you end up in

slender yew
stark crow
#

no

slender yew
#

oh

stark crow
#

oh and PHP, while it may be outdated, you can be sure that more than 50% of sites or web apps still have PHP in them

near sonnet
#

alr im offically to dumb for the plugin

#

i give up

#

i might have to retire

slender yew
near sonnet
#

i do not see those thing here

#

tbh

#

i seee this

slender yew
near sonnet
#

so i got this

#

then click unit conversion

#

then scale and scale

#

and then my ui scales on all screens or devices?

uneven jolt
#

Currently learning type annotation with OOP modules, is this a good structure? (like for memory and such)

wide sparrow
# near sonnet <@571110308861444096> i told u i hit u up when i need help. My leaderstats are n...

responded a bit late, if this is out of date and someone answered then oh well

dont use waitforchild on everything, its a bad practice. i know people say "oh you should always use waitforchild to be safe" NO. using waitforchild on everything basically means you get away with lazy practices. you need to design the system around the fact you should NEVER have to use waitforchild on pretty much anything. don't get me wrong, its useful in some cases, but if overused it quickly becomes into a "fix everything" system....and its not

near sonnet
#

i see

#

u sound a little like my teacher tbh

wide sparrow
#

lmao

near sonnet
#

btw i just invented scaling for myself

#

well on pc

#

on mobile it still looks ass

#

but idc

true birch
#

Ok

near sonnet
#

wait a sek

#

do i have to scale textlables too?

true birch
#

Yep

#

If auto scaled is on no

ripe plume
#

just set the size of your object to 1,1 before starting to resize it, and it'll be in scale when you drag it around

near sonnet
#

aw man

#

im still hater of gui

true birch
near sonnet
#

i have to learn so many things like wth

#

i see these things here in chatand dont understand shit

true birch
near sonnet
#

not only gui but scripting in general

#

like whatdahelly

true birch
#

First day of trying gui I made this loading screen

near sonnet
#

thats fire

#

tbh

true birch
#

Idk it was my first try

near sonnet
#

i couldnt do that

true birch
near sonnet
#

might be true

#

but maybe i dont want to xD

#

i just want the skill to script

#

but dont wanna learn it

#

is there a way?

true birch
#

But you'll to understand how they even work

#

Need*

#

It's important for scripting

#

I got a tutorail explaining them if you want

near sonnet
#

its 1am rn for me so not right now but sure i mean id love to learn

#

alr guys imma hop off for today

wind wagon
#

@misty sage

near sonnet
#

cya

wind wagon
#

You can ask people about coding here @misty sage

true birch
# near sonnet its 1am rn for me so not right now but sure i mean id love to learn
near sonnet
#

oh i love this guy

#

he teached me my first basics

#

i did his whole beginner course

true birch
#

Yes same

#

I am gonna watch Gui tutorial since I don't understand them that good

near sonnet
#

alr xD

#

good luck ig

#

and ty for the help

true birch
#

No problem I learn you learn

near sonnet
#

wait would u say his advanced scripting tutorial is worth to go throught

#

like i did with the beginner

#

@true birch

true birch
#

He teaches everything not everything but important ones

near sonnet
#

Alr

#

Ill need some time tho

bleak glade
#

did i do my packing right

true birch
#

I watch it every night

true birch
bleak glade
near sonnet
#

Wait do i need luau also for roblox scripting?

wide sparrow
#

if you're using roblox studio

#

luaU is what you use by default

near sonnet
#

Wait

#

Im confused

wide sparrow
#

you dont need to think about the specifics right now but LuaU is derived from Lua by roblox to use in roblox scripting

#

but you do not have to think about it

near sonnet
#

Alr

wide sparrow
#

just use roblox studio as normal, nothing changes

near sonnet
#

Then i wont

near sonnet
#

XD

remote bear
peak jolt
#

chatgpt can make this

remote bear
graceful cairn
#

bro why does ROBLOX STUDIO NOT ALLOW TO PUT ANY "STEAL A" GAME NAME
OH MY GOD

buoyant gale
#

how to solve code errors heh

remote bear
cinder mulch
candid hare
#

If I want to collect certain stats for the rounds(total tags, longest time without being tagged), whats the best way for me to do that?

somber vault
#

if you want it to be easily accessible from different scripts then i would keep it in a folder and have folders named after each player, then have values for each according thing

#

@candid hare

candid hare
#

if you understand

somber vault
#

then you just take the values and port it into a function to get the according currency per unit

lethal imp
#

how to hide gui while in studio

somber vault
ember nimbus
cedar badge
#

Someone help me get a gf

somber vault
cedar badge
#

Wdym

#

I want a real girl man

somber vault
cedar badge
#

🥀

somber vault
#

this is something to be excited about bludski 😱

remote bear
mossy hound
#

Someone give me a idea not done before

Steal a _____

somber vault
mossy hound
#

😮

#

👍

remote bear
mossy hound
#

Too long

#

Steal a Tricycle

#

Is the winner so far

somber vault
# mossy hound 😮

it’s like those games that are “cool meth to get your best friend out of jail” type games

atomic valve
spice summit
#

guess who applied for a skill role again 😔

dense aspen
#

yo

#

anyone can help with my code?

#

i need to make the IntValues data save!

#

money = game.ReplicatedStorage:WaitForChild("money")
moneyPer = game.ReplicatedStorage:WaitForChild("moneyPer")
moneyMultiplier = game.ReplicatedStorage:WaitForChild("multiplier")
gems = game.ReplicatedStorage:WaitForChild("gems")
plr = game.Players.LocalPlayer
chance = ""
moneyPer.Value = 1
moneyMultiplier.Value = 1

button = script.Parent
button.MouseButton1Click:Connect(function()
    money.Value += moneyPer.Value * moneyMultiplier.Value
    DisplayOnClickUI()
    
    chance = math.random(1, 10)
    if chance == 1 then
        gems.Value += 1
        DisplayGemCount()
    end
end)

function DisplayOnClickUI()
    plr.PlayerGui.currencyScreenGui.currencyFrame.moneyLabel.Text = tostring(money.Value)
end

function DisplayGemCount()
    plr.PlayerGui.currencyScreenGui.currencyFrame.gemLabel.Text = tostring(gems.Value)
end```
#

this is the code

#

the intValues gems and money need to be saved- i just don't understand datasaving!

iron vigil
#

im using profilestore and its really easy to use

#

and it works

#

id recommend learning exactly how it works tho rather than just blatantly using the api tho

#

always good to know how stuff works, apis just save you the time and headache of making it work right

pseudo maple
#

What type of scripting do you recommend i learn over the summer holiday

iron vigil
#

idk in the past and from what ive seen people's biggest issue in scripting is just sticking to it and/or not branching out to do hard stuff

#

if something is hard then that is good

#

u could try to make a key functionality for a game

#

a refined combat system, movement system, inventory system, etc

#

all would probably be good to learn

cinder mulch
iron vigil
#

ig its preference

pure olive
remote bear
remote bear
safe sail
#

anyone want to make a game?

dense aspen
dense aspen
pure olive
#

for beginners atleast

#

very readable

safe sail
remote bear
pure olive
#

good for physics also

remote bear
copper apex
#

Java is goated

slender cairn
#

How useable is ssms, i mean like queries, sub query trigger n usp for developing things

jade marlin
#

Idk what they are but it probably won't be very useful to you as of now because you don't know how it works

slender cairn
#

the fundamentals

#

rn am at the end of my 2nd semester and it's easy af, but idk how useful it's gon be

#

( DDL, DML ) but using ssms

dense aspen
#

does anyone have a reason why my data saving doesn't work?

#
local DataStoreService = game:GetService("DataStoreService")
local Players = game:GetService("Players")
local StatsStore = DataStoreService:GetDataStore("PlayerStatsV1")

Players.PlayerAdded:Connect(function(player)
    print("Player joined:", player.Name)

    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player

    local money = Instance.new("IntValue")
    money.Name = "Money"
    money.Parent = leaderstats

    local gems = Instance.new("IntValue")
    gems.Name = "Gems"
    gems.Parent = leaderstats

    local success, data = pcall(function()
        return StatsStore:GetAsync(tostring(player.UserId))
    end)

    if success and data then
        money.Value = data.Money or 0
        gems.Value = data.Gems or 0
    else
        print("No saved data for", player.Name)
        money.Value = 0
        gems.Value = 0
    end
end)

Players.PlayerRemoving:Connect(function(player)
    print("Player leaving:", player.Name)

    local stats = player:FindFirstChild("leaderstats")
    if not stats then return end

    local money = stats:FindFirstChild("Money")
    local gems = stats:FindFirstChild("Gems")

    if money and gems then
        local success, err = pcall(function()
            StatsStore:SetAsync(tostring(player.UserId), {
                Money = money.Value,
                Gems = gems.Value
            })
        end)

        if not success then
            warn("Data save failed for", player.Name, err)
        end
    end
end)
```This is in server script
#
local player = game.Players.LocalPlayer
local button = script.Parent

local moneyPer = 1
local multiplier = 1

local function updateUI(money, gems)
    local screen = player.PlayerGui:WaitForChild("currencyScreenGui")
    local frame = screen:WaitForChild("currencyFrame")

    frame.moneyLabel.Text = tostring(money)
    frame.gemLabel.Text = tostring(gems)
end

button.MouseButton1Click:Connect(function()
    local stats = player:WaitForChild("leaderstats")
    local money = stats:WaitForChild("Money")
    local gems = stats:WaitForChild("Gems")

    money.Value = money.Value + moneyPer * multiplier

    if math.random(1, 10) == 1 then
        gems.Value = gems.Value + 1
    end

    updateUI(money.Value, gems.Value)
end)
```This is in local script
naive sleet
#

you should have the server handling purchases with a remote event, and the client only receives the new money to display it in the ui

short void
#

guys should learn metatables first before oop? because I see most oop tutorials using them which I was confused

hot dove
#

does anyone know an intellisence vs code extension for luau

civic garnet
#

luau lsp icr

copper apex
hot dove
crude quarry
#

anyone know how to define variables in a string?

Police.MouseButton1Click:Connect(function()
    if PlayerIsInPoliceGroup(player, PoliceID) then
        player.Team = game.Teams.Police
        print(player.Name .. " selected Police team")
    else
        errornotice.Visible = true
        errornotice.Text = "" -- This part is supposed to produce the text label error with variables
    end
end)```
next hull
crude quarry
#

oh yeah im dumb thanks

next hull
#

i forgot if roblox uses the + symbol or .. symbol

#

i think it was the .. symbol

crude quarry
#

I've been using JS too much

#

I forgot the basics lmao

next hull
#

boi u have it right here

crude quarry
#

those are within parathesis wasn't sure if it worked the same

next hull
#

oh

#

ok

crude quarry
next hull
#

make sure to tostring() your variable if it isnt a string

crude quarry
#

will do, thanks

#

Works perfectly

#

Doesn't look perfect but its functional

uneven jolt
#

Why does TopbarPlus use a custom "signal" module? It looks the exact same, so why not just make bindable events in the OOP constructor?

#

VS Topbars API

hoary cedar
#

They also deep-copy tables

uneven jolt
uneven jolt
#

(i might just be really stupid btw, still trying to figure out how OOP really works in roblox)

short void
copper apex
#

Learn .__index

#

A metamethod for metatables

hoary cedar
hoary cedar
#

But it's still more lightweight

#

Gives you full control over the signal's operation

uneven jolt
#

OH

#

NEVERMIND I see the things they added

#

I didn't realize they had the disconnectAll

#

I'll look into it tomorrow once I get back to coding

#

Thank you for the help though

strong panther
#

can sosmone help me with a leaderboard system pls

toxic pasture
#

how do i make this building with lights when in night its on if when day then its off

ruby cipher
#

have a bool value for day or night

#

then code

toxic pasture
hollow thicket
#

uwu

#

it would disconnect the works

hardy pilot
stuck ridge
hardy pilot
stuck ridge
jaunty herald
#

yo which ai do you guys find most helpful for coding

sudden estuary
#

robux

jaunty herald
#

rn im using chatpgt o4 mini high

sudden estuary
dusky tangle
#

Yo would anyone teach me to script for 5 dollars?

#

I could possibly add a quarter

jaunty herald
#

theres a lot of great yt videos that can help you

oblique anvil
#

Guys I nee some help

jaunty herald
#

wsp

jaunty herald
dusky tangle
# jaunty herald have you tried yt

Yuh and everytime I try to make a click to open door I always end up calling 988 (i have been working on a simple click to open door with only 3 parts in it for the past 8??? I can’t math, hours now, since 7pm to 3am I wanna reset character rn)

vapid arrow
#

i wanna make a footstep thing based off wich character someone is playing they get diffrent footstep sounds how do i do thius

#

when the player joins they get a string value with nothing in it untill they select a character then it updates the value to wichever character is chosen

oblique anvil
#
local char = script.Parent
local as = game:GetService("AssetService")
local Players = game:GetService("Players")
local player = Players:GetPlayerFromCharacter(char)
local description = game.Players:CreateHumanoidModelFromDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId),Enum.HumanoidRigType.R15)
description.Parent = game.Workspace
local head = description:FindFirstChild("Head")
local oldhead = char:FindFirstChild("Head")
local neck = oldhead:FindFirstChild("Neck")
neck.Part1 = head
oldhead:Destroy()

Basically let me explain what Im tryna do - I placed a R15 rig in StarterPlayer so when the players spawn in they have a standard character but in addition to this when they spawn in I want to swap the standard R15 head with the players actual head - (I don;t know if you're familiar with the game Basketball Legends they do that) so this is what this code tryna do but the issue is that for some reason my player is nowndying and respawning constantly and Idk why!
@jaunty herald and co.

jaunty herald
#

ok lemme read this

dusky tangle
jaunty herald
#

sorry man

#

keep asking people

oblique anvil
#

ok

oblique anvil
dusky tangle
#

That didn’t fix my door

oblique anvil
#

oh

#

It didnt work for me either as as I said my character keeps dying and respawning

jaunty herald
#

wait so

#

you create the new head, and then you set the neck.part1 to the new head and then finally destroy the old head right?

#

did you parent the new head to the character

#

im not sure if thats the solution but let me know

#

@oblique anvil

oblique anvil
#

That did not work

soft oasis
#

Yoo Guyz

hallow crag
soft oasis
#

Toilet Simulator

true birch
soft oasis
#

it took 10 hours

true birch
soft oasis
#

Ik ik I am surprised no one made this game

true birch
#

Yh cuz They get banned

soft oasis
#

whot

#

well

#

you use toilet

#

there is this game named pooping simulator

#

it has been around for like 6 years

#

they didnt get banned soo @true birch

true birch
#

Well good luck

crude quarry
#
local Police = script.Parent.Police_Team
local Civ = script.Parent.Civilian_Team
local Head = script.Parent.Head_Team
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local PoliceID = script.Parent.Police.Value
local HeadID = script.Parent.Headquarters.Value
local errornotice = script.Parent.ErrorNotice
local GroupService = game:GetService("GroupService")

local function GroupInfo(player, groupInfo)
    return GroupService:GetGroupInfoAsync(PoliceID)
end



function PlayerIsInPoliceGroup(player, PoliceID)
    local success, isMember = pcall(function()
        return player:IsInGroup(PoliceID)
    end)
    return success and isMember
end

function PlayerIsInHeadGroup(player, HeadID)
    local success, isMember = pcall(function()
        return player:IsInGroup(HeadID)
    end)
    return success and isMember
end

Police.MouseButton1Click:Connect(function()
    if PlayerIsInPoliceGroup(player, PoliceID) then
        player.Team = game.Teams.Police
        local Humanoid = Players:FindFirstChild("Humanoid")
        if Humanoid then
            Humanoid.health = 0
        end
        print(player.Name .. " selected Police team")
    else
        errornotice.Visible = true
        errornotice.Text = "You are not part of (".. GroupInfo.Name ..")"
        task.wait(5)
        errornotice.Visible = false
        
    end
end)

Civ.MouseButton1Click:Connect(function()
    if player.Team == game.Teams.Civilian then
        print("Do nothing")
    else
        player.Team = game.Teams.Civilian
        print(player.Name .. " selected Civilian team")
    end
end)

Head.MouseButton1Click:Connect(function()
    if PlayerIsInHeadGroup(player, HeadID) then
        player.Team = game.Teams.Headquarters
        print(player.Name .. " selected Head team")
    end
end)
``` Made my first team selector it was too much work
#

I'm still adding features to it and a couple things that don't affect the function don't work. But any notes for stuff to work on or refine I would appreciate

crude quarry
#

No those are mine for debugging

hallow crag
crude quarry
#

I wanted to make sure each part worked since I haven't coded in months

crude quarry
hallow crag
#

Activated is newer and has more functionality

crude quarry
#

Ah okay I'll look into those thank you

#

Tbf activated would be easier for me to remember

oblique anvil
#
local char = script.Parent
local charclone = char:Clone()
char.Archivable = true
local as = game:GetService("AssetService")
local Players = game:GetService("Players")
local player = Players:GetPlayerFromCharacter(char)
charclone.Parent = game.Workspace
local description = game.Players:CreateHumanoidModelFromDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId),Enum.HumanoidRigType.R15)
description.Parent = game.Workspace
local head = description:FindFirstChild("Head")
local oldhead = charclone:FindFirstChild("Head")
local neck = oldhead:FindFirstChild("Neck")
neck.Part1 = head
head.Parent = charclone
oldhead:Destroy()
player.Character = charclone

When do this a million fo me spawn in and it says attempt to index nil with userid

dense iris
#

is anyone goated at datastorages that could help me out w qdding onto my current one

mortal roost
#

instead of doing all that code

oblique anvil
#

yeah

#

but i wont toreplace the head of that model with the actual head of the player for each player

#
local char = script.Parent
local as = game:GetService("AssetService")
local Players = game:GetService("Players")
local player = Players:GetPlayerFromCharacter(char)
local description = game.Players:CreateHumanoidModelFromDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId),Enum.HumanoidRigType.R15)
description.Parent = game.Workspace
local head = description:FindFirstChild("Head")
local oldhead = char:FindFirstChild("Head")
local neck = oldhead:FindFirstChild("Neck")
neck.Part1 = head
head.Parent = char
oldhead.Transparency = 1

I changed the coe

mortal roost
oblique anvil
#

No it doesnt

#

This going to be hard to explain

mortal roost
#

does it print an error in the output?

oblique anvil
#

but now i spawn at the place where I placeed the moel in starter character bfroe placing it in startercharacter

mortal roost
#

where do you want it to spawn?

oblique anvil
#

and its like its my characte ron top of the r15 rig in startercharacter

#

At the spawn location I set

#

but I get teleported to the location of the R15 rig in startercharacter immediately after

#

At this stage i just give up

mortal roost
#

maybe it will work

oblique anvil
#

ok but in trhe uture

#

because its a basketball game

mortal roost
#

oh

oblique anvil
#

i have 10 spawn points (5v5)

#

so that doesnt work

mortal roost
#

Hm

oblique anvil
#

Why is this so unecessariyl hard

#

I thought this was meant to be easy

mortal roost
#

what do you want to get with this code?

oblique anvil
#

huh

mortal roost
#

like what do you want the script to do

oblique anvil
#

so basically

#

As I said I place an R15 model rig in starterhcaracters for all players to statrt with that

#

and then WHEN they spawn with this R15 rig, I wann areplace that head with their nromal avatars actual head - for each player

mortal roost
#

OHHH

#

that makes it wayy simpler

#

does the char you start with arl have a head?

oblique anvil
#

yes

mortal roost
#

then why instead of cloning the head you just change it with the same properties as the players head

oblique anvil
#

Oh

#

Wait hwat

mortal roost
#

well

#

let me explain in simpler terms

#

you have the head arlight

#

you chance the color to the heads color

somber vault
#

guys is there anyone who can help me with Chrised gun set up

mortal roost
#

the decal of the face to the players face

#

and then place the hair

#

and if you want even the accessories

#

now i have to go but i hope this will help you

#

remember that every face is made of a decal

oblique anvil
#

Ok

mortal roost
#

so you can get the face from it by gettings its id

oblique anvil
#

Ok

mortal roost
#

now ill'be going

oblique anvil
#

Ok

mortal roost
#

gl

primal trench
#

my script wont work because it keeps getting player from game.players instead of the player in the workspace cause i need the humanoid, how do i make it not do this

#

elseif char.Humanoid.Health == 0 then

    RedGrabbed.Value = false
    print("player dead, flag returning")
    
    RedFlag.Position = Vector3.new(-53.55, 4, -33.55)
    RedFlag.Orientation = Vector3.new(90, 90, 0)
    RedFlag.Parent = game.Workspace.RedteamStuff
    RedFlag.Anchored = true        
    
    char.Backpack.RedFlag:Destroy()
    char.RedFlagTool:Destroy()
else
    print("Go get the other teams flag")
end
plucky oak
#

the endless sea of grow a xyz commisions is unreal

peak hare
#

especially testing

primal trench
rapid verge
worn flax
oblique anvil
#

How do I find the Hair accessory of a model

oblique lintel
#

did i cook

plucky oak
#

light mode

worn flax
plucky oak
#

everytime a script is coded in light mode an angel loses its wings

oblique lintel
#

brother im new cut me some slack

worn flax
oblique lintel
#

bet

royal ibex
oblique lintel
#

did i cook

worn flax
#

If u just started yeah

oblique lintel
#

i started like 5 days ago

#

scripting lowkey hard

worn flax
worn flax
#

If u want help u can dm me (I can also help u learn scripting) (not for money)

oblique lintel
#

yoo bet ill take that

cinder mulch
#

That’s so old

strong panther
#

can someone help me with my script so when i step on a platform it gives a player wins and you can keep on jumping on it and you have to touch spawnlocation this is my script

#

local mainPlatform = workspace:WaitForChild("MainPlatform")
local spawnLocations = {}

-- Automatically get all SpawnLocations
for _, obj in ipairs(workspace:GetDescendants()) do
if obj:IsA("SpawnLocation") then
table.insert(spawnLocations, obj)
end
end

-- Track players who are allowed to win
local canWin = {}

-- When touching any SpawnLocation, allow win
for _, spawn in ipairs(spawnLocations) do
spawn.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
canWin[player.UserId] = true
print(player.Name .. " touched spawn and can win again.")
end
end)
end

-- When touching the main platform, give win if allowed
mainPlatform.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if not player then return end

if canWin[player.UserId] then
    local stats = player:FindFirstChild("leaderstats")
    if stats then
        local wins = stats:FindFirstChild("Wins")
        if wins then
            wins.Value += 1
            print(player.Name .. " now has " .. wins.Value .. " wins.")
        end
    end
    canWin[player.UserId] = false -- Require touching spawn again
end

end)

hardy pilot
#

Nope

ionic hazel
#

Guys does anyone know how to problem solve a script? i have never seen my error before and would like some help

true birch
strong panther
#

wdym

golden atlas
#

how u guys do this this looks scary 😭

dapper dagger
#

watch some scripting tutorials

#

it looks scary at first but it's actually not that hard

golden atlas
hardy pilot
dapper dagger
#

real

hardy pilot
golden atlas
dapper dagger
#

depends on what you want to achieve tho

#

builders use a lot more buttons than scripters lol

hardy pilot
#

Lwk just properties

#

And maybe the model anchor button

dapper dagger
#

oh

#

idk I watch robuilder and he does use a lot of buttons

golden atlas
#

this guy has properties

dapper dagger
#

so I was like "oh every builders should be the same"

golden atlas
#

and i dont?

dapper dagger
#

poor guy he doesn't got the explorer opened

golden atlas
#

whats that

#

like bro

#

and its gone

#

i only have this now

dapper dagger
#

the panel that shows you what's in your game

#

go to view

#

you can choose which windows you want to open

golden atlas
#

ok ty u helped

cursive pebble
#

how do i detect if a part has a folder named "PartStats" and inside of it is a StringValue named "PartType" and then determine the value of that string

brittle pond
#

FindFirstChild

cursive pebble
#

only way i could think of is

local statfolder = Part:Findfirstchild("PartStats")
local String = statfolder:FindFirstChild("PartType")
local Type = String.Value

#

but that feels like there should be a simplier faster way to do it or is there not?

brittle pond
#

How much simpler and faster do you want it to be..
Not everything can be reduced to one line

cursive pebble
#

i was just asking chill