#code-discussion

1 messages · Page 120 of 1

prisma anchor
#

But once I finished the video, how do I retain the information and put everything to practice?

neat turret
#

for some reason it wants it to be commented

nova yarrow
#

Can u send me the invite links in dms

neat turret
#

for application

brittle token
brittle token
nova yarrow
#

I'm on mobile

median stone
#

you guys think coding will be overtaken by ai

brittle token
prisma anchor
brittle token
median stone
#

so ppl will still hire real people

nova yarrow
prisma anchor
brittle token
brittle token
abstract forge
#

would any of you be willing to accept grow a garden stuff as payment for simple scripts? 😭

brittle token
hallow crag
#
local Players = game:GetService("Players")
local BadgeService = game:GetService("BadgeService")

local BADGE_ID = 100000000
local MESSAGE = "SomeMessage"

local function PlayerAdded(player)
    player.Chatted:Connect(function(message)
        if message == MESSAGE then 
            BadgeService:AwardBadge(player.UserId, BADGE_ID)
        end
    end)
end 

for _, player in Players:GetPlayers() do PlayerAdded(player) end 
Players.PlayerAdded:Connect(PlayerAdded)
#

should work havnt tested

#

also put ur badge id

brittle token
#

nice

median stone
#

didnt they add a new chat system tho?

brittle token
#

im gonna steal this for later if you dont mind

brittle token
hallow crag
median stone
#

oh ok, ty, ill try it in abut

brittle token
#

most decrapitated things still work

#

ok i need one more help with something

hallow crag
brittle token
#

this doesnt really work for me

hallow crag
brittle token
median stone
brittle token
#

did it myself btw

brittle token
hallow crag
# brittle token the waiting part doesnt work
local clickDetector = script.Parent
local myVar = 100
local door = script.Parent.Parent

local function onClicked(player)
    door.Color = Color3.fromRGB(255, 0, 0)
    door.Transparency = 1
    door.CanCollide = false
end

task.wait(3) 
door.Color = Color3.fromRGB(31, 255, 19)
door.Transparency = 0
door.CanCollide = true

clickDetector.MouseClick:Connect(onClicked)
brittle token
median stone
hallow crag
#

what

#

u can do game.Players or game:GetService("Players") i prefer GetService cause its cleaner and i can define services at the top of my code

hallow crag
# brittle token

also vro dont use "wait" use "task.wait" for adding a wait cause "wait" is basically deprecated its also inaccurate at times

brittle token
#

so it works but im just trying to revert it to default

hallow crag
brittle token
#

so like when i click it it goes invisible and red and then after 3 seconds it comes back

#

ok i will try it

brittle token
hallow crag
#

yes

brittle token
#

alr

nova yarrow
#

Or u can use task.delay

hallow crag
brittle token
#

hm that doesnt work either

#

im gonna try and fix it myself

brittle token
hallow crag
#

he probably hasnt learnt running code asynchronously

thorn arch
#

i dont play gag but my friend does

scenic lotus
#

hi

brittle token
#

yo

thorn arch
#

i would like to flex on him

scenic lotus
#

.

abstract forge
brittle token
hallow crag
scenic lotus
#

I think I should learn raycast

thorn arch
nova yarrow
#

Not even thatvhard

thorn arch
#

that is your computers clock

hallow crag
# brittle token i dont even know what the word means muchless what it does
local clickDetector = script.Parent
local myVar = 100
local door = script.Parent.Parent

local function onClicked(player)
    door.Color = Color3.fromRGB(255, 0, 0)
    door.Transparency = 1
    door.CanCollide = false
    task.wait(3) 
    door.Color = Color3.fromRGB(31, 255, 19)
    door.Transparency = 0
    door.CanCollide = true
end

clickDetector.MouseClick:Connect(onClicked)    
#

that will work

brittle token
brittle token
#

thanks

thorn arch
#

this means that sometimes, your computer will be waiting around for the next clock cycle

nova yarrow
thorn arch
#

because it has already finished calculations

brittle token
brittle token
thorn arch
#

uh no

brittle token
#

like a fancy version of task.wait

#

oh

thorn arch
#

your computer clock runs billions of cycles per second

scenic lotus
#

task.wait(1) mean delay for 1 second

basically task.wait(x) mean delay for x second

hallow crag
brittle token
#

alright the code works

#

thanks

thorn arch
#

asynchronous code tells the cpu that different sections dont have to wait around for each other

#

this has the benefit that nobody is sitting around

brittle token
hallow crag
#

the code gets spawned into a seperate thread to the main thread

brittle token
#

yea i have no clue what that means

#

ill research it later

#

im currently working on a pacman game

#

i have coded the ai that chases you and the door to go out

#

now i just need to make pellets

hallow crag
#

it doesnt yield

cyan trellis
#

task.delay

cyan trellis
#

is crazy

hallow crag
# brittle token ok

theres also task.spawn which works the same but just takes in a function theres no delay param

brittle token
#

ok

#

thanks for the help everyone ill be back when im done making pellets

thorn arch
#

this has the benefit that nobody is sitting around

hallow crag
#

other way is easier to understand

nova yarrow
#

Also

#

If ur gonna delay a method the 3rd arg should be the object (self)

hallow crag
#

or use self if the method is in the module itself

vague turret
#

@native mountain i can do the squid game jump rope check dms

still aurora
#

guys i don't understand what function used for can someone explain to me please?

brittle token
#

so think of function like a book

still aurora
#

mhm

brittle token
#

when you want to read it you need to find the name of the book which is the name of the function

#

and the pages of the book is the code inside the function

#

for instance

#

lets say that you wanted to print a math equation

#

but didnt want to type it over and over again

#

you can just do print(varible) instead of printing it over and over again

#

also

#

wait

still aurora
#

ohhh

brittle token
#

basically

#

functions are books that you can read whenever instead of making the book again

still aurora
#

ty [:

brittle token
#

so in scripts you call functions instead of writing the code again when you want to use it

#

np

still aurora
#

: D

brittle token
#

🙂

short delta
#

hey how to make the part 0.5 transparent with a function?

brittle token
#

did you already make the part a varible

short delta
#

hum no

brittle token
#

where is the part

short delta
#

he is in a folder called Stroke, in Workspace

brittle token
#

ok you need to do

coral field
#

[partname].Transparent = 0.5

brittle token
#

yea but he needs to find it correct?

#

like get a varible of it

coral field
#

he can do that himself

#

he has done it before

short delta
coral field
#

yea

short delta
#

oh okay

coral field
#

remove grass2

#

they are the same thing

short delta
#

ooh it work

velvet vapor
#

What's the best way to handle inventories? Just have a script and there will be a table that has a key playerName and as a value his inventory as a table?

short delta
#

thanks

gusty solar
frail condor
#
local Val = {}
Val.__index = Val

export type Val<T> = typeof(setmetatable({} :: {
  _value: T,
  ...
}, Val))
...
function Val.on<T>(self: Val<T>, callback: (T, T, boolean) -> (), callImmediately: boolean?): (() -> ())
...

how do i get the luau typechecker to recognize that <T> in Val:on is referring to the type in self
im not using the new solver btw (which it also doesnt fix the issue)

restive wigeon
gusty solar
velvet vapor
restive wigeon
#

fair enough

gusty solar
restive wigeon
restive wigeon
frail condor
#

ignore the ...

lone marsh
#

triple dots are a lifer saver

frail condor
#

its just to indicate theres more code that im not showing

restive wigeon
#

i can tell that's its a meta table

#

Oh, word?

gusty solar
frail condor
gusty solar
#

like

#

can take an infinite amount of args

#

print takes ... for example

restive wigeon
gusty solar
#

thats why you can do print("hi", "hello", "hey")

restive wigeon
#

are there any good videos on ui scalling, cause the one's i've seen use the auto lite plugin to scale. praysob

frail condor
# restive wigeon you want to refer to the meta table inside of a metatable?

kind of yes
so when you call an object method it refers to the class method and since you use : instead of . it will put the object as the paramter self automatically
that way each object doesnt contain the methods but rather the class itself so its the best thing to do for memory when making classes with objects

still aurora
#

Guys can anyone explain to me what returns are

restive wigeon
#

idk maybe.. define the table outside the table?

restive wigeon
still aurora
#

how does it return them

#

i feel dumb rn 😭

restive wigeon
#

it returns it to the script that required it

#

so basically if i ask you, hey can you do that and tell me what happened

#

you won't go out tellign everyone(aka the server) but only to me

still aurora
#

oh

dusk ridge
#

Can someone help me in egg system it been so long trying to figure it out

frail condor
still aurora
#

alr

restive wigeon
still aurora
#

no i got it i think so it returns the answer to the script?

#

smt like that

restive wigeon
still aurora
#

ohhhh

#

ty [:<

restive wigeon
coral field
#

whats a good module for storing data?

copper iris
#

is anyone else having issues with the "GrantEggToPlayerAsync" function in the hatch module

#

on god it does not work

hallow crag
#

(im not in the hatch im just presuming thats the issue)

copper iris
#

this is the entire code and it does not work man I have no idea why cause it works in studio + I have HTTPS enabled

copper iris
#

yea but the egg is not being given and the ui is not being shown and there is no errors in the console 😭

#

but in roblox studio it works

hallow crag
#

what are the params for the GrantEggToPlayerAsync function?

copper iris
hallow crag
#

can u not view the actual HatchDevModule?

#

if u can then just add debug prints to the GrantEggToPlayerAsync function

rich plover
#

i have a question, if i have no robux or money to hire a scripter do u think it would be an idea to ask someone to script on my game for a percentage of revenue?

copper iris
#

let me try that

hallow crag
hallow crag
#

i would just learn scripting urself

#

tbh

sly plover
#

what did i do wrong

somber vault
copper iris
somber vault
cosmic schooner
#

does anyone have an idea how could i make a player propulsed with a rocket effect behind it in a direction ?

/

copper iris
somber vault
#

hiddendevs mr beast

copper iris
#

there was this error in the module it was a check that always returned false

#

even though the player joined from the hub it still returned false

sly plover
somber vault
#

if map

#

at the top you should do if not map then return end

#

im so cooked, i thought discord would have autocomplete 💀

hallow crag
#

roblox made a error 🤯

velvet vapor
#

Is it better to use ProfileService or DataStores?

somber vault
#

in the function

#

this technically wont fix the issue, it'll just get rid of the error

#

you're gonna need to make sure map exists

sly plover
somber vault
#

wait you haven't defined it

sly plover
somber vault
#

wait you have my bad

sly plover
#

but idk how this helps

somber vault
#

it gets rid of the error in the console

#

i can't tell you why map doesn't exist tho that you have to find out yourself

#

check where the function spawn is ran

stone garden
somber vault
#

you're a lil late to the party bud

fossil pewter
vital parrot
#

Should I use TeleportAsync to teleport players to a reserved server on a different place?

charred night
#

hi chat

wide socket
sly plover
wide socket
south spruce
reef birch
#

every bug bounty from roblox is logged on this site

daring echo
#

Anyone know a really good scripter available taking USD?

hazy frost
#

Anybody know how to animate the players camera? As in i animate it in blender, import it to roblox, then use a camera rig. how would i make the players camera animate at the camera rig?

tawdry crane
#

its so over

vocal tusk
#

Yo guys how should i make like a 3d helmet that stays on your head? But has more colors? Like i tried accessory + weldconsttaint but does not work

vital parrot
#

How do I teleport Players to a different place with a reserved server?

gray junco
vital parrot
#

I've tried TeleportAsync and TeleportToPrivateServer

gray junco
#

what are you doing

burnt pulsar
#

i hope it is :/

sly plover
oblique gulch
#

yo does anyone have a simple game idea

austere blaze
#

hello i wanted to see if anyone here had experience with mesh terrain, and if anyone knew the affect of LoD and chunking systems on performance, and possibly discussing issuing how it holds up when compared to roblox’s voxel terrain, which is arguably unoptimized at large scale

austere blaze
# hazy frost ?

camera type to scriptable, have the camera part in rig just be an invisible part, update the cameras position to be at the part every pre-render

vital token
violet folio
vital token
#

guys

burnt pulsar
vital token
#

how to play an animation on a character like the animation make the character change position

vital token
#

when i do it the character go back to the original place

#

like the anim play and than the character go back to the place where he started the anim

burnt pulsar
burnt pulsar
vital token
tacit moss
burnt pulsar
# vital token alr bet
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")

local originalCFrame = character:GetPrimaryPartCFrame()

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://YOUR_ANIMATION" -- Put The Id in the area i wrote YOUR_ANIMATION
local track = humanoid:LoadAnimation(animation)
track:Play()

track.Stopped:Connect(function()
    character.HumanoidRootPart(originalCFrame)
end)

#

or just gimme the id and i write it :/

vital token
#

so u have to play the animation on the humanoid root part right?

vital token
#

yeha

#

i did this

burnt pulsar
#

BTW put the script in a local script

vital token
#

and the the dude go back to his og place like u said

vital token
#

wait lemme delete all

burnt pulsar
rapid sigil
vital token
#

75941448642226yo

#

bruh

#

this is the anim id

#

@burnt pulsar

burnt pulsar
#

ok

vital token
#

wait

#

but

burnt pulsar
#

?

vital token
#

the anim should be played u need smt like a key

#

when a key is pressed

burnt pulsar
#

and id do it

vital token
#

whats ur user

burnt pulsar
#

mahmoudtalaatking

vital token
#

wait a sec

#

done

burnt pulsar
#

okay 1s

vital token
#

wait u have to be my friend?

burnt pulsar
#

yea

vital token
#

alr

#

accept

brittle token
#

boom

burnt pulsar
#

done

exotic sun
#

guys i need help with something, im new and im trying to make a particle emitter show the particles, i put it under a part with an attachment too and a particle id on the emitter why doesnt it show particles?

vital token
#

alr join rq

burnt pulsar
wide socket
#

a game where you input a number in a text label and it summons parts depending on that number

long hill
#

yo is anyone interesting in rating my game and giving me advice what to improve on?

sly plover
#

can somebody help me turn of mob collisions

real quartz
#
local function fireLine()
        local chosenPost = tryAndFireAtPost() :: BasePart
        
        if not chosenPost then
            return
        end
        
        local newPart = Instance.new("Part")
        newPart.CFrame = toolHandle.Dispenser.CFrame
        
        print(chosenPost:GetFullName(), toolHandle:GetFullName())
        
        local dist = (chosenPost:GetPivot().Position - toolHandle.Dispenser.Position).Magnitude
        
        newPart.CFrame = CFrame.new(toolHandle.Dispenser.Position, chosenPost:GetPivot().Position)
        newPart.Size = Vector3.new(1, 1, dist / 2)
        newPart.Transparency = 0.3
        newPart.Anchored = true
        newPart.CanCollide = false
        newPart.Material = Enum.Material.Neon
        newPart.Color = Color3.new(1, 0.639216, 0.054902)
        newPart.Parent = workspace
        
        task.delay(.1, function()
            newPart:Destroy()
        end)
    end
#

this works

#

its just / 2 off

#

from the target

#

o wait

#

think i figured it out

#

well thatwas simple

vocal tusk
# bold wraith ?

i don't know how to make a single accessory with multiple separate parts

vital token
#

@burnt pulsar bro why

vital token
bold wraith
vital token
#

@burnt pulsar are u autistic

#

what did i do so u block me

ivory sundial
#

@plush scarab i want you to work for my game

velvet vapor
violet folio
#

making your own data wrapper requires a lot of research and testing

#

since there are dozens of edge cases you need to cover

#

that can unexpectedly happen at runtime

velvet vapor
#

you mean like retrying and all of this stuff?

violet folio
velvet vapor
daring echo
#

Bro where do these devs find expert scripters at 😭

#

I been looking here for ages cant find one

violet folio
#

your game doesnt have one?

daring echo
manic nacelle
#

There's groups for it dm me imma set you up

daring echo
rancid ginkgo
#

why is there not coming a effect when im hiting a rig???

plush scarab
river iris
verbal igloo
#
-- LocalScript for first half of the animation frames

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ContentProvider = game:GetService("ContentProvider")
local Players = game:GetService("Players")

-- Require the animation module
local SlowAnimage = require(ReplicatedStorage:WaitForChild("Animage"))

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- Change the path below to your actual ImageLabel location
local imageLabel = playerGui:WaitForChild("MainMenu"):WaitForChild("Contents"):WaitForChild("Bg")

-- Create animation instance targeting the ImageLabel
local animation = SlowAnimage.new(imageLabel)

-- Define the first half of the animation frames (replace with your actual asset IDs)
animation.FramesData = {
    {AssetId = "rbxassetid://127005721628620"},
    {AssetId = "rbxassetid://120291854915913"},
    {AssetId = "rbxassetid://109865645084919"},
    {AssetId = "rbxassetid://78128980990416"},
    {AssetId = "rbxassetid://89113742077769"},
    {AssetId = "rbxassetid://117474755418010"},
    {AssetId = "rbxassetid://89292623274216"},
    {AssetId = "rbxassetid://105361327035380"},
    {AssetId = "rbxassetid://86308627970444"},
    {AssetId = "rbxassetid://129436695083050"},
    {AssetId = "rbxassetid://89982955965932"},
    {AssetId = "rbxassetid://110964064034308"},
    {AssetId = "rbxassetid://73613885346758"},
    {AssetId = "rbxassetid://140427745020295"},
    {AssetId = "rbxassetid://124897263008637"},
    {AssetId = "rbxassetid://123335950548808"},
    {AssetId = "rbxassetid://125897407809963"},
    {AssetId = "rbxassetid://130087418164288"},
    
    -- WHEN I REMOVE EVERYTHING UNDER HERE IT STOPS STUTTERING
    {AssetId = "rbxassetid://76563595649806"},
    {AssetId = "rbxassetid://82352148765801"},
    {AssetId = "rbxassetid://88246665853571"},
    {AssetId = "rbxassetid://76793866750844"},
    {AssetId = "rbxassetid://71367638198686"},
    {AssetId = "rbxassetid://83865616490250"},
}

-- Preload assets to avoid flicker
local assetsToPreload = {}
for _, frame in ipairs(animation.FramesData) do
    table.insert(assetsToPreload, frame.AssetId)
end
ContentProvider:PreloadAsync(assetsToPreload)

animation:Play(24, true, false)

$20 for anyone who can fix

ripe mango
#

I dont think they finna accept my application 😭

zealous lily
#

i need a tip making a naruto game what other system do i need to script, done with combat, movement, and power. what other system is their my brain hurting cant think

grave zenith
zealous lily
verbal igloo
grave zenith
verbal igloo
naive warren
#

hello im new to roblox studio i was wondering how i would make a animated loading screen (not the loading bars ones) im talking about those where it has background effects such as glitching, snowing, raining, etc. this seems more of a gui question but im kind of lost on where i can post my question :p

candid hare
#

what task function gets used the most overall in scripts? (except task.wait)

#

and what gets used the least?

#

is task.defer useful?

drifting agate
#

task.defer just runs at the end of the current frame

#

so its useful in some cases

ripe mango
#

task.delay? i use a decent amount

drifting agate
#

i use all of them pretty equally tbh

#

besides task.wait

ripe mango
#

yeah

somber vault
#

Im trying to make a trading system for my game but have no clue where to start. Anyone have any tips

analog wraith
#

Can someone give me a script that will make a giant fight Players on join?

zealous lily
#

i need a tip making a naruto game what other system do i need to script, done with combat, movement, and power. what other system is their my brain hurting cant think

zealous lily
somber vault
# zealous lily like mounting

Whatever you think would fit your game. I was thinking more like the generic pets that give you buffs but that'd also be sick

mellow loom
#

ts ur game. I've seen it on rec. Is it good? I might play it

#

what's the stats tho? Kinda interested on what makes an obby go on algo

violet folio
somber vault
violet folio
somber vault
#

Alright. Thanks

alpine mauve
#

Can someone help me with this script it’s not working dm me

naive kiln
#

If anyone can point the way to a cracked scripter for stuff like ai, vehicles, guns, been looking forever but been a lot of failures. Pay is well

somber vault
daring echo
daring echo
mellow loom
mellow loom
#

Dang, got any tips on finding any?

daring echo
#

They contacted me

#

But if your referring to an investor to invest in your game idk about any

#

Investors I know typically invest in completed games

mellow loom
daring echo
mellow loom
#

Oh ic

#

Wait did u have an investor to begin with or when the game already was sponsored?

daring echo
#

Well

#

When it got into algo

mellow loom
#

Dang how’d u get the funds

daring echo
mellow loom
#

Dang lucky

daring echo
#

Not lucky bruh

#

Hard ass work

mellow loom
#

I’m broke, I just need to find one to sponsor, but it’s hard

mellow loom
zealous monolith
#

Still working on game though

zealous monolith
daring echo
#

Why does everyone think its about luck

daring echo
mellow loom
zealous monolith
daring echo
#

More

zealous monolith
#

More or less then 60K

daring echo
#

Roblox only puts games players like into the algo

#

Its nothing about luck

daring echo
#

My bad this used to be a lot to me as well

zealous monolith
mellow loom
daring echo
zealous monolith
mellow loom
gusty solar
nova yarrow
gusty solar
nova yarrow
polar forge
#

Does anyone know why the command bar doesn't appear even though I have it selected in Vista?

crude quarry
#

If I have a folder with all my game assets IE buildings, models, unions, regular parts and i use waitforchild() on that folder, will it wait for every asset to exist in that folder or just for the folder itself to exist

#

and would I just loop the folder to check for all the assets to exist

polar forge
#

Does anyone know why the command bar doesn't appear even though I have it selected in view?

verbal igloo
#

actually u guys ArEnt FroNT PaGe DevEloperS 🤓

bitter stirrup
crude quarry
#

ah well

bitter stirrup
crude quarry
#

I found getdecendents which hopefully will do what I need it to

bitter stirrup
crude quarry
#

ah okay

#

thanks

bitter stirrup
#

I would use GetChildren() if you want just the models inside the folder

crude quarry
#

can you create an error if it wasn't able to find everything?

#

Like if has infinite yield it will just error and move on

bitter stirrup
#

yeah

crude quarry
#

im lookin into making a loading screen that works hence why im asking

bitter stirrup
#

do you need an example that you could use?

crude quarry
#

nah I found the document

#

thanks

bitter stirrup
#

Alright

#

Np

peak sphinx
weak flax
#

dm me if you wanna make a roblox game with me i can build and kinda script

weak flax
somber vault
#

when a player dies, they can no longer play a cutscene when a remoteevent is triggered. Anyone know why?

bitter stirrup
verbal lodge
#

lol

peak sphinx
sturdy sage
#

beyonce

lean ocean
#

Sometimes

peak sphinx
#

Name 5 that have talked in the last week

oblique lintel
#

just relearned vector 3

#

lowkey some light work

#

coroutines now

lean ocean
#

Go learn task library

oblique lintel
#

wats that

oblique lintel
grim ridge
#

If I have 20 Ad cred (which means I can only do daily budget) then how many days should I do?

sudden python
#

am i top 10 scripter in HD

#

hmm yeah probably

#

@hasty mesa thoughts?

#

top what

weak radish
sudden python
#

so sad

weak radish
sudden python
#

no

#

you dont know dungus

#

you dont know anyone

weak radish
sudden python
#

do you even know who made grow a garden no, cause all you do is chat in this server

sudden python
#

now its time to touch the grass

weak radish
#

Why's gag seen as touching grass 💀

#

that's crazy lmaoo

sudden python
#

what is gag

weak radish
#

Mr jaythescripter

sudden python
sudden python
sturdy sage
#

yo mama takes a wild guess

weak radish
floral lantern
#

Any pro scriptor here i need help regarding a vehicle code

remote bear
floral lantern
#

?

#

I want to extend my hands while driving yamaha bike ij roblox studio how do I do that?

vocal tusk
#

how to make an accessory work witgh 2 separated parts

runic tusk
#

wat is knit used for and is it worth learning

spark estuary
lean ocean
#

It's not worth learning imo

#

Not even my opinion

#

Lots of people have that opinion

runic tusk
#

what does it even do

lean ocean
#

It's a game framework

runic tusk
lean ocean
#

Just read about t

#

It

runic tusk
#

alr bruddah

velvet vapor
#

Guys, when I have some really big classes like Car, House and other, should I consider putting them into ReplicatedStorage because they are likely to be required both on Client and Server?

velvet vapor
runic tusk
velvet vapor
velvet light
runic tusk
runic tusk
velvet light
velvet light
silent summit
#
    local bestCFrame = nil
    local bestDistance = math.huge

    for i = 0, 1, 1/10 do
        local cf = lerp(startcf, endcf, i)
        local dist = (Position - cf.Position).Magnitude
        if dist < bestDistance then
            bestDistance = dist
            bestCFrame = cf
        end
    end


    local fineStep = 1 / 200
    for i = -3, 3 do
        local t = math.clamp(bestT + i * fineStep, 0, 1)
        local cf = lerp(startcf, endcf, t)
        local dist = (Position - cf.Position).Magnitude
        if dist < bestDistance then
            bestDistance = dist
            bestCFrame = cf
        end
    end

    return bestCFrame

Can someone explain this to me?
Why is it using 2 loops? Why not just use one loop that goes from 0 to 1 with a 0.01 step
What is a "fineStep"?

runic tusk
silent summit
#

I'm not interested in using AI

runic tusk
silent summit
# runic tusk y

Sometimes it would use outdated methods, or just wrong because of lack of context

velvet vapor
#

i mean if don't want to even try it's ur choice

runic tusk
velvet light
#

I always use it before coming here

runic tusk
velvet light
silent summit
#

Do I have to sign up

tame compass
#

I finally made the roles system work

#

yay

runic tusk
sly plover
#

why cant i see that when i press play en then test server?

simple holly
#

Guys how use archandles

sly plover
velvet vapor
past sand
#

how do i apply for scripter role here

velvet vapor
#

and there will be applications

past sand
#

where is the site

velvet vapor
sly plover
past sand
#

uhm

#

why do i need to send a game link

#

??

velvet vapor
past sand
#

what if its not in a game

#

dude if im making a network handler idk what you want me to put in a game

#

there would be no visual differences 😭

undone salmon
#

why is this wrong?

type TilesGeometryMap = { [string]: { Front: {Vector2, {Vector2, Vector2}}, Back: {}, Top: {}, Bottom: {}, Left: {}, Right: {} } }

primal cave
#

Any1 knows how to make game Icons? I need sm1 rnn

oblique lintel
#

iv learned all this stuff but have no idea on what to make

naive niche
#

Hey guys, I'm having trouble thinking of the best way to create several swords that give XP when clicked and that deal damage. Does anyone with experience have any tips?

sick holly
#

guys sorry for the yap but question. Im making a skills suite. And i thought about this structure, explanation: Inside RS: VFXModules(blue): all modules that contains the VFX Scripting, per skill. VFX(Pink): contain the assets for the VFX Scripting (i have doubt here cause idk if is better to have an assets folder or put the assets i need per skill as a child of the skill module script.). VFXSuiteController(orange): just receive the input key and is like a switch, choosing which sklill have been choosing. And it will contain the cooldown management. And then in the StarterPlayerScripts: LocalInputManager(yellow): it will contains just the event listening an inputbegan and connecting the VFXSuiteController. [im not working w the server atm]

velvet vapor
#

if u know oop it sounds relatively easy

naive niche
oblique lintel
#

game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder", plr)
leaderstats.Name = "leaderstats"

local ore = Instance.new("IntValue", leaderstats)
ore.Name = "Ore"
ore.Value = 0

local minebucks = Instance.new("IntValue", leaderstats)
minebucks.Name = "MineBucks"
minebucks.Value = 0

end) -- ← this closes the function!

#

whats wrong with it iv did it like 1000000 times but this just dosent work?

grand magnet
#

I dont see anything wront with it it should create those instances

summer tusk
#

Maybe just do minebucks.Parent = leaderstats

#

Sometimes that way of doing it can be unreliable

grand magnet
#

same thing still should create

#

might be right tho

summer tusk
#

Try that and see if it fixes it

grand magnet
#

it also might be because of studio lol try restarting if necessary

sage flicker
oblique lintel
#

okay

#

even chat gbt said it was right💀

#

nope

#

fixed it ngl forgot to put it in servicescriptservice

#

anyone know how to make a script where it auto gives you a plot tho

static coral
vital parrot
#

Should I code my own projectiles or use a module?

zenith turret
#

guys how much shld i pay a solo dev for a troll tower game? in robux.

warped hedge
#

do someone can script? i need a scripter that can help me create a horror psychological game like let him go, my budget is about 1k robux

small palm
empty void
#

like a very beginner script or easy to understand one?

junior crown
#

3 lines

delicate ibex
small palm
delicate ibex
#

anyone can help

#

?

small palm
#

like this

delicate ibex
#

I completed basic level of scripting 8 months ago but i didnt practice so i forgot all of these
so i completed the whole thing again today

#

so the problem is how should i practice ?

#

so that i dont forget everything again

small palm
#

Actually write it

delicate ibex
#

what can i build with that little knowledge ?

small palm
#

Don't just read it or learn it you will never truly learn it unless you write it

delicate ibex
#

I write too bro

#

i did some experiment myself

small palm
delicate ibex
#

with the codes

delicate ibex
small palm
#

also you should probably code atleast every 3 days

small palm
delicate ibex
#

ai is trash 🙏

merry shoal
#

someone got a goated hitbox system

#

for m1s, skills etc

#

i need the module

small palm
delicate ibex
merry shoal
#

no

delicate ibex
delicate ibex
#

so can i make it with that knowledge ? @small palm

delicate ibex
merry shoal
#

yes lol

#

orion protocol

#

parkour reborn

delicate ibex
#

oh i never played though

crude quarry
#
Workspace.Elevator.Script:7: attempt to call a RBXScriptSignal value```
Im confused this is a simple code
```lua
local upbutton = script.Parent.UPButton
local downbutton = script.Parent.DownButton
local upbutton2 = script.Parent.UPButton2
local downbutton2 = script.Parent.DownButton2


upbutton.ClickDetectorU.MouseClick(function(hit)
    hit:FindFirstChildOfClass("Humanoid")
    
end)```
merry shoal
#

clickdetectoru?

crude quarry
#

had to rename them because its a lot of buttons

delicate ibex
merry shoal
#

permadeath game

delicate ibex
crude quarry
#

yes

merry shoal
crude quarry
delicate ibex
delicate ibex
crude quarry
#

Theres been a lot of changes

merry shoal
#

oh lol shit

small palm
delicate ibex
#

what are you trying to accomplish with that code ?

merry shoal
delicate ibex
crude quarry
small palm
#

before you start writing code think of how your gonna implement it

merry shoal
#

i just changed value of my animationevent instead of name and couldnt find why the script was buggy

#

:GetMarkerReachedSignal wasnt working lmao

delicate ibex
#

do i need to learn Cframe to make a part rotate infinitely ?

merry shoal
delicate ibex
small palm
merry shoal
#

u can either tween the part to rotate or

#

add a bodyangularvelocity inside the part

delicate ibex
#

ik but whats the difference ?

hexed zinc
delicate ibex
#

tween the part to rotate ?

#

imma go learn the advance scripting tutorial too

merry shoal
#

bodygyro is depending on pyhsics i think

delicate ibex
#

btw is Devking is good for learnign ?

#

*learning

merry shoal
#

tween is just something in x adjusting itself to y

delicate ibex
#

ok

merry shoal
#

does anyone know a good hitbox module

south iron
#

Guys my game is pretty cool

#

Maybe...

south iron
merry shoal
#

hi

south iron
#

I may know how to make it

merry shoal
#

sure

#

if u can teach me

south iron
#

Ok let me set everything up

manic sundial
crude quarry
#
local upbutton = script.Parent.UPButton
local downbutton = script.Parent.DownButton
local upbutton2 = script.Parent.UPButton2
local downbutton2 = script.Parent.DownButton2
local floor = 1


upbutton.ClickDetector.MouseClick:Connect(function(hit)
    if floor == 2 then return end
        local root = hit.Character.HumanoidRootPart
        if root ~= root then return end
        root.CFrame += Vector3.new(0,20,0)
        floor = 2
end)
downbutton.ClickDetector.MouseClick:Connect(function(hit)
    if floor == 1 then return end
    local root = hit.Character.HumanoidRootPart
    if root ~= root then return end
    root.CFrame -= Vector3.new(0,20,0)
    floor = 1
end)

downbutton2.ClickDetector.MouseClick:Connect(function(hit)
    if floor == 1 then return end
    local root = hit.Character.HumanoidRootPart
    if root ~= root then return end
    root.CFrame -= Vector3.new(0,20,0)
    floor = 1
end)

upbutton2.ClickDetector.MouseClick:Connect(function(hit)
    if floor == 2 then return end
    local root = hit.Character.HumanoidRootPart
    if root ~= root then return end
    root.CFrame += Vector3.new(0,20,0)
    floor = 2
end)
``` Finally done
crude quarry
#

elevator

delicate ibex
#

ok

crude quarry
#

I had one for tween service but it go so complicated having a click detector was just easier

hardy pilot
delicate ibex
delicate ibex
crude quarry
delicate ibex
#

ok

hardy pilot
#

but my issue is how frequent it is

#

Freezing and crashing

delicate ibex
grand magnet
#

hi

crude quarry
delicate ibex
#

hi

valid knot
#

Guys thoughts on oop for roblox? Should i use it

brave island
#

its really weird on lua

#
local player = {}
--Set up inheritance
player.__index = player

--Constructor
function player.new(health, money, size, speed)
    return setmetatable({
        --Instance variables
        _health = health,
        _money = money,
        _size = size,
        _speed = speed
        
    }, player)
end

--Methods
function player:setMoney(x)
    self._money = x
end

function player:earnMoney(x)
    self._money += x
end

function player:loseMoney(x)
    self._money -= x
end

function player:setSpeed(x)
    self._speed = x
end

function player:setSize(x)
    self._size = x
end


return player
#

this is what ive got so far for a player class concept

#

trying to figure out subclasses

valid knot
#

Or should i work with it

brave island
#

you should try learning it

merry shoal
#

how the fuck this is a class

spark estuary
#

its a workaround

#

theres no such thing as classes in lua

hollow folio
hardy pilot
#

```lua
-- code
```

crude quarry
fair fulcrum
# merry shoal how the fuck this is a class

in the function player.new, the table thats being returned is a metatable of player in which the index of player is set to itself hence when you call a function on the newly created table, it also cheks the player table. it esssentially inherits the function of player

#

if that makes sense

merry shoal
#

wrong class i

#

understood

deft oar
#

Hello everyone, I want to learn to code but I don't have any basic knowledge. Do you have any tutorials to recommend? (I speak French and English)

delicate ibex
#
    if script.Parent.Handle.SpotLight.Enabled == true then
        script.Parent.Handle.SpotLight.Enabled = false
        script.Parent.Handle.Sound:Play()
    else
        script.Parent.Handle.SpotLight.Enabled = true
        script.Parent.Handle.Sound:Play()
    end
end)
script.Parent.Equipped:Connect(function()
    script.Parent.Handle.SpotLight.Enabled = false
    script.Parent.Handle.equip:Play()
end)
script.Parent.Unequipped:Connect(function()
    script.Parent.Handle.equip:Play()
end)```
#

gusy can someone explain me this code

#

i got this code for torch light

deft oar
delicate ibex
deft oar
delicate ibex
hollow folio
hollow folio
delicate ibex
merry shoal
#

😔

deft oar
#

i guess i have to watch this playlist

delicate ibex
hollow folio
hollow folio
#

why is it so long ?

delicate ibex
hollow folio
#

are repeating the same thing

merry shoal
#

make it shorter then

delicate ibex
#

it can be made smaller

hollow folio
#

change it to a single short name

#

and it should be easy

merry shoal
#

everyone codes differently

delicate ibex
#

ok i was jsut askigng if i need to make it that long

merry shoal
hollow folio
delicate ibex
hollow folio
#

just name it like name = .... the thing,

and keep using "name"

merry shoal
#

atleast i dont

delicate ibex
#

btw can u help me find the place in devforum where i can see other doubts and queries so that i can learn myself too

hollow folio
#

ah i got the code

merry shoal
#

what

delicate ibex
hollow folio
#

how can i send it like u did ?

hollow folio
merry shoal
#

a variable

delicate ibex
hollow folio
delicate ibex
merry shoal
#

tbh

delicate ibex
merry shoal
#

if u get a problem just ask or search it

delicate ibex
delicate ibex
hollow folio
#

bruh

merry shoal
#

at start

delicate ibex
#

my bad

merry shoal
#

then at end put another

#

just without lua

hollow folio
#

'''lua
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local light = handle:WaitForChild("SpotLight")
local toggleSound = handle:WaitForChild("Sound")
local equipSound = handle:WaitForChild("equip")

tool.Activated:Connect(function()
light.Enabled = not light.Enabled
toggleSound:Play()
end)

tool.Equipped:Connect(function()
light.Enabled = false
equipSound:Play()
end)

tool.Unequipped:Connect(function()
equipSound:Play()
end)
lua'''

delicate ibex
#
    if script.Parent.Handle.SpotLight.Enabled == true then
        script.Parent.Handle.SpotLight.Enabled = false
        script.Parent.Handle.Sound:Play()
    else
        script.Parent.Handle.SpotLight.Enabled = true
        script.Parent.Handle.Sound:Play()
    end
end)
script.Parent.Equipped:Connect(function()
    script.Parent.Handle.SpotLight.Enabled = false
    script.Parent.Handle.equip:Play()
end)
script.Parent.Unequipped:Connect(function()
    script.Parent.Handle.equip:Play()
end)```
hollow folio
delicate ibex
hollow folio
merry shoal
delicate ibex
#

ok

delicate ibex
merry shoal
#

its just common sense

delicate ibex
#

i was just asking where can i find other's doubts in dev forum ???

#

and how can i post my doubt !!!!!1

hollow folio
#

where can i find this thing at the keyboard ?

delicate ibex
merry shoal
#

this channel is pure brainrot

#

moving back onto modelling

delicate ibex
#

🥀

hollow folio
#

ok ok finally

#
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local light = handle:WaitForChild("SpotLight")
local toggleSound = handle:WaitForChild("Sound")
local equipSound = handle:WaitForChild("equip")

tool.Activated:Connect(function()
    light.Enabled = not light.Enabled
    toggleSound:Play()
end)

tool.Equipped:Connect(function()
    light.Enabled = false
    equipSound:Play()
end)

tool.Unequipped:Connect(function()
    equipSound:Play()
end)```
hollow folio
#

well, check this script i just made

#
  if  crit == true then 
    return power * 2
    else return power
   end 
end

local function calculatedefense(armor)
  return armor * 0.1
end

local function finalhit(damage, defense)
  finalhit = damage - defense
  return finalhit
end


local dmg = calculatedmg(10, true)
local def = calculatedefense(8)
local final = finalhit(dmg, def)

print("the final damage is:" ..final) ```
tame compass
#

I am SO fucking pissed right now

#

My code just doesn't work for NO REASON

#

I am firing all clients with a remote event

#

And it isn't working

upper hearth
#

hey

#

can someone test some of my codes

#

idk how to implement em

latent tapir
tame compass
#

I already did all kinds of debugging

#

It just doesn't work

#

I made the thing I want to do the other way

dark sky
tame compass
#

I DONT SWEAR OFTEN, BUT THIS PISSES ME OFF VERY VERY MICH

#

much

dark sky
#

whats not working?

somber vault
#

if i have a custom rig, with a humanoid(an animal, doesnt have same body parts as regular character), would humanoid:MoveTo() function properly?

tame compass
dark sky
#

ywa

#

Yes, Humanoid:MoveTo(position) can work with a custom rig, even if it’s an animal and doesn’t have standard body parts — as long as the following conditions are met:

tame compass
#

was that written by ai

dark sky
#

yes

somber vault
#

what are the conditions

dark sky
#

im to lazy to write that

#

✅ Requirements for Humanoid:MoveTo() to work properly:
The model must have a Humanoid object inside it.

The model must be rigged correctly with motor joints connecting parts, so it moves as one.

The model must be grouped as a Model, and it must have a primary part set using Model.PrimaryPart.

The model should be on the ground or able to reach the destination (no major collisions blocking it).

The HumanoidRootPart (or equivalent root part) must be centered properly to avoid movement bugs.

⚠️ Important Notes for Custom Rigs:
The movement animation (like walking) won’t automatically play unless you’ve set up an animation controller and custom animations.

If the animal doesn’t have legs (like a snake), it won’t animate correctly by default, but it will still glide to the position using MoveTo().

The Humanoid object still expects a HumanoidRootPart or a central part for moving the rig.

somber vault
tame compass
#

I guess

tame compass
somber vault
#

should all parts of the rig be unanchored for the moveto() to work

dark sky
tame compass
#

it is changing

dark sky
#

hmm ima search it up rlly quick

hollow folio
#
local function damagecalculate(power, crit)
  if crit == true then
    return power * 2
    else return power
  end
end

local function defensecalculate(armor)
  return armor * 0.1
end

local function finalhit(damage, defense)
  return damage - defense
end

local function getremaininghp(currenthp, finalhit)
  return currenthp - finalhit
end

io.write("enter power: ")
local Power = tonumber(io.read())
io.write("enter crit: ")
local Crit = io.read() == "true"
io.write("enter armor: ")
local armor = tonumber(io.read())
io.write("enter current hp: ")
local currenthp = tonumber(io.read()) 



local damage = damagecalculate(Power, Crit)
local defense = defensecalculate(armor)
local final = finalhit(damage, defense)
local remaininghp = getremaininghp(currenthp, final)


print("final hit is : " ..final )
print("The Hp remaining is : " ..remaininghp)

#

is that good or should i change anything ?

dark sky
somber vault
#

still doesnt move, just slides around

#

tho the WalkTo value is set correctly in the humanoid

dark sky
#

hmm

#

can you send a vdid

#

vidio

#

GOD DAM VIDEO

gusty solar
#

a

somber vault
#

wooOoPSIEs, i forgot about the hip height thigny

dark sky
dire sentinel
#

Is there any way to remove ragdoll? When players get knocked back into walls and surfaces in my game they’ll often ragdoll which I don’t want to happen

somber vault
dark sky
#

👍

somber vault
#

just one more problem c:

dark sky
#

?

somber vault
#

when its movin to the position, the backside of the model faces where its going

tame compass
dark sky
#

can you send a vid

dark sky
#

im gonna be afk

steep sequoia
#

Do y’all disable characterautoloads for spawn menu gui? Or just enable the gui and change camera view?

somber vault
#

lemme send

dark sky
#

wait

#

what

sweet lance
#

Is it hard to make an admin system

dark sky
#

ok

dark sky
#

not

sweet lance
steep sequoia
dark sky
#

@somber vault send me a dm with the vid while im afk

#

cya in 15 min

sweet lance
steep sequoia
#

If you haven’t already

sweet lance
#

Just putting them together is hard

steep sequoia
#

Nice should be a fun project then

sweet lance
#

Yeah I have the addons handler made

steep sequoia
#

I got good with for loops making data stores and admin commands

south iron
#

guys my alpha RNG game i think is ready

tame compass
#

OOH

hardy pilot
sweet lance
#

I’m gonna use datastore bans not Roblox API

tame compass
#

Finally, I found why wasn't it working

steep sequoia
tame compass
#

It's just this little thingy

steep sequoia
#

Although I’m at work for another 2 hours so I’ll prob be slow to respond

south iron
sweet lance
south iron
somber vault
tame compass
somber vault
#

it still moves backwards tho :c

frail condor
#

should i be using vector over Vector3 or is there a benefit to sticking with Vector3

tame compass
#

idk what axis

somber vault
#

y

tame compass
#

just so it would look backwards than it was

south iron
somber vault
#

i'll rotate the parts other than the humanoidrootpart and see

#

cuz the humanoidrootpart is facing the wrong direction OR the body parts are facing the wrong direction

tame compass
#

Maybe you didn't change the Model you are cloning?

#

only the one that's in the workspace

somber vault
#

hurray, now i dont have to try and make a custom movement system module

#

@tame compass ty ty

#

@dark sky , its fixed, ty ty

tame compass
#

No problem

dark sky
#

ok yall im back

south iron
#

so i want to make a level bar

dark sky
wide sparrow
#

grow a garden ahh interaction

dark sky
#

lol

#

is it good though?

wide sparrow
#

imo the outline is wayyyy too much

#

but its good

dark sky
#

yippe

#

@somber vault

hollow folio
#

what's the differend btw lua and luau like ?

wide sparrow
#

luaU is roblox's version

#

lua is just lua

#

in studio you use luaU

hollow folio
#

yeah ik about that

#

but what's the actual different ?

#

like are we going to use other things or what

wide sparrow
#

in roblox? a lot of things are different

#

instances, parts, and all the roblox modules dont exist in regular lua

hollow folio
#

ok

rose geyser
#

anyone know how to make those jump rope squid game thing if so mind helping me 🙏

#

cant seem to find a tutorial

#

😬

somber vault
south iron
#

Does someone know how to translate Lua

#

it means

somber vault
#

what does python mean

south iron
#

it was invented in brazil

somber vault
#

we know

sterile gazelle
sterile gazelle
#

if u need help lmk im bored

rose geyser
#

👍

merry geyser
#

What's the best way to learn python?

sterile gazelle
merry geyser
sterile gazelle
#

download pygame and watch a video on yt

glass maple
#

how do I make a gui have a fixed position on the screen because I want it to be mobile accesible?

south iron
#

put anchor point 0.5 0.5

south iron
#

and position 0.5 whatever you want 0.5

merry geyser
glass maple
south iron
#

yeah

glass maple
#

ok thanks

glass maple
somber vault
#

wht did i do wrong?

glass maple
ionic solstice
#

cant do that

somber vault
#

still shows the error

glass maple
ionic solstice
#

make a reference to the part you wanna clone

#

then clone

sterile gazelle
somber vault
#

data handler

ionic solstice
#

anyways