#code-discussion

1 messages ยท Page 118 of 1

empty rapids
#

would appreciate it

nova yarrow
#

fuck up

#

Ur still on that

teal quiver
#

sorry

somber vault
# empty rapids would appreciate it

so Touched is an event and by running :Connect() you are making a brand new connection that runs the function in Conenct() every time something touches

empty rapids
#

its okay nothing personal its all chills

nova yarrow
somber vault
#

so you can get rid of the whole while loop

somber vault
teal quiver
#

with 1 connection

nova yarrow
#

Alot of connections

empty rapids
nova yarrow
#

Doesn't that lead to more memory usage

teal quiver
#

they dont i think

somber vault
#

sorry didn't even read the whole thing

teal quiver
#

i thought so

somber vault
#

my bad gng

empty rapids
somber vault
#

i trust the guy

#

I thought this was the case

empty rapids
teal quiver
#

i dont understand the problem

somber vault
#

looks like it works

teal quiver
empty rapids
teal quiver
teal quiver
#

currently you dont i think

#

that could cause problems? idk

empty rapids
#

well am not making a game it was js a project to learn i js learned the debris() and destroy() and getplayerfromchar()

teal quiver
potent maple
#

What's the best way to handle item purchases in a tycoon game?
I was thinking of creating a ModuleScript called ButtonPrices, which would store all the prices, using button names as keys. I'd also create another ModuleScript called ButtonsOrder to define the order in which buttons appear.

Then, when the player touches a button, Iโ€™d check if they have enough money by referencing the ButtonPrices module. If they do, Iโ€™d find the item in ServerStorage with the same name as the button and clone it into the game.

Or I could use attributes on each button or part, containing the button name, item name, and price.

Which approach is better?

vital parrot
#

anybody else having Unstable Connection while scripting? It's been happening every minute or so

proud wyvern
#

Does anybody wants to make a game together? Im really good at scripting, you just need to be good at modelling, be chill, And have good ideas. ONLY ENG. DM me โ™ฅ๏ธ

proud wyvern
#

at what? scripting, modelling, ''good ideas'' ?

stone garden
proud wyvern
#

it depends what do you need scripted

#

im pretty good at what i do

hallow crag
proud wyvern
#

sec

#

this is for lb for ex.

stone garden
proud wyvern
stone garden
#

thats a leaderboard

proud wyvern
stone garden
#

yea ok

#

i mean bigger ones?

proud wyvern
#

wdym

teal quiver
#

@stone garden why are you talking like you are the lead developer of a game with 100k players

#

lol

hallow crag
stone garden
hallow crag
#

looks really hardcoded

#

aint gonna lie

proud wyvern
#

its like a lb

stone garden
proud wyvern
#

xD

hallow crag
#

lol

#

or ai

proud wyvern
#

i think there is no this type of lb in tb

hallow crag
#

he aint even using string interpolation

proud wyvern
#

k broski ๐Ÿ’€

stone garden
#

you don't even have to read the code tho, just look at his background color

hallow crag
proud wyvern
#

lol

teal quiver
#

the only problem i can see is some minor nesting but that is literally ok

#

not every framework has to be modular with 5 thousand module scripts

hallow crag
#

its obv he skidded or took from toolbox

#

lmao

proud wyvern
#

HAHAHAHA

#

and what if i have got white bcg?

proud wyvern
#

i preffer it over black one?

hallow crag
#

its so obvious

teal quiver
#

you either use linux or you dont because of roblox incompatibility stuff

proud wyvern
#

its so obvious what?

teal quiver
#

you seem like that person

hallow crag
proud wyvern
#

ok bro if u say so ๐Ÿ˜‚

teal quiver
proud wyvern
#

fr

#

but leave him talk

#

its funny

#

๐Ÿ˜‚

hallow crag
#

lmao

teal quiver
hallow crag
#

lol

teal quiver
#

why dont you

hallow crag
#

alright

proud wyvern
#

he is so lonely

#

wth

teal quiver
#

chill out

#

this is just fancy sanity checks

#

no?

#

nothing wrong with that though

#

ok we get it

#

you use libraries

vital parrot
#

Are you using ProfileService?

hallow crag
vital parrot
#

ah ok I was thinking about using ProfileStore,Trove,Promises

hallow crag
teal quiver
#

what does promises do

vital parrot
#

Trove + Promises look very useful

hallow crag
#

and then returning the result when its completed

#

all asynchronously

teal quiver
hallow crag
teal quiver
#

for different things

vital parrot
#

yeah I dont know much but the video I saw made it look very good I'm gonna be using it for my game here shortly

hallow crag
#

i use promises to yield until data is loaded

teal quiver
#

doesnt profilestore already handle that stuff

hallow crag
#

cause another module might try to grab data before the data is loaded

teal quiver
#

and not again

hallow crag
#

so when the module called the "GetData" function for example if the data isnt loaded it yields for that data asynchronously

vital parrot
#

oh that's smart

#

Imma actually start using that rn and add it to my game

hallow crag
#

u can also yield with promises synchronously so its rlly useful

bright portal
#
tool.Unequipped:Connect(function()
        script:Clone().Parent = script.Parent
        enqpStatus = false
        script:Destroy()

end)

input.InputBegan:Connect(function(btn)
    print("Script started:", script:GetFullName(), os.clock())
end)

Even after destroying it, it still prints os clock like it wasn't even destroyed(It prints same time as was last ti. How do I fully refresh the script? Even threads?

hallow crag
#

๐Ÿ’€

bright portal
#

I need all threads to be stopped

#

Its only soulution.

hallow crag
#

just use 1 script for every tool

#

instead of placing inside of the tool

bright portal
hallow crag
#

just use CollectionService

zenith turret
#

my question was that i wanted to create a donation based game , and i have total budget of 70k robux and i also have to include ads too , so shld i hire seperate devs or a solo dev

bright portal
#

Its grabs script from storage and dupliocates it in all guns.

hallow crag
bright portal
#

Destroy didnt helped ๐Ÿ’€

hallow crag
#

just create 1 localscript in starterplayerscripts and 1 script in serverscriptsservice to handle the tool(assuming ur codebase isnt modular)

#

u wont need to delete any script

hallow crag
#

before destroying

hallow crag
#

u need to disconnect that InputBegan connection

bright portal
#

Its test script.

hallow crag
#
local inputConn

tool.Unequipped:Connect(function()
        script:Clone().Parent = script.Parent
        enqpStatus = false
        if inputConn then inputConn:Disconnect() end
        script:Destroy()

end)

inputConn = input.InputBegan:Connect(function(btn)
    print("Script started:", script:GetFullName(), os.clock())
end)
glossy sable
#

What's a normal price to pay a scripter to script a cashgrab maze game

lone marsh
#

300K + percentage + i recommend hiring that guy called Ronarudo

vital parrot
#

@hallow crag Do you know where I can get the trove module? I only can find the api some reason

bright portal
#

How you see on screen

#

clock still goes

#

like nothing

hallow crag
#

its all in there

vital parrot
#

That is a ton of modules for trove

hallow crag
#

but its easier just to import all of them

#

just look at what it requires

hot copper
#

Who uses modularized code?

potent maple
#

What's the best way to handle item purchases in a tycoon game?
I was thinking of creating a ModuleScript called ButtonPrices, which would store all the prices, using button names as keys. I'd also create another ModuleScript called ButtonsOrder to define the order in which buttons appear.

Then, when the player touches a button, Iโ€™d check if they have enough money by referencing the ButtonPrices module. If they do, Iโ€™d find the item in ServerStorage with the same name as the button and clone it into the game.

Or I could use attributes on each button or part, containing the button name, item name, and price.

Which approach is better?

verbal lodge
#

;/

#

:D

potent maple
# hallow crag 2nd option

So, I can create a button registry, get its attributes in the script, and after the button is purchased, use button:Destroy() and clone the next button in order from the module script?

steady oxide
honest basin
#

nwhy

placid peak
#
local partTouched = script.Parent
local plr = game:GetService("Players")
local serverStorage = game:GetService("ServerStorage")
local touched = false
local highlit = serverStorage:FindFirstChild("Highlight")

partTouched.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        local char = hit.Parent
        if touched == false then
            highlit.Parent = char
            highlit:Clone()
            touched = true
        elseif touched == true then
            char:FindFirstChild("Highlight")
            if char then
                char.Highlight:Destroy()
                touched = false
            if not char then
                print("couldnt find")
                end
            end
        end
    end
end)```

uh. how do i make the highlight.parent when touched to the character?

cause it works 1 time, then it doesnt
gray parrot
#

bro , u need to make a new clone then change the parent of the clone

#

local partTouched = script.Parent
local plr = game:GetService("Players")
local serverStorage = game:GetService("ServerStorage")
local touched = false
local highlit = serverStorage:FindFirstChild("Highlight")

partTouched.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local char = hit.Parent
if touched == false then
local clone = highlit:Clone()
clone.Parent = char
touched = true
elseif touched == true then
char:FindFirstChild("Highlight")
if char then
char.Highlight:Destroy()
touched = false
if not char then
print("couldnt find")
end
end
end
end
end)

#

kinda like this

true tree
#

Just checking, there's no way to get the SourceAssetId of an instance right?
Seems like only way is to look at the roblox xml files
no way to do it at runtime or whilst in studio

#

(SourceAssetId is a property hidden by roblox)

#

so answer is probably no, but still looking at other methods

twin mesa
#

is roblox tweaking or im stupid?

placid peak
twin mesa
#

tf

#

i put my code in server script service and now it works

#

no idea why tho ๐Ÿฅ€

frail yarrow
#

hit.Parent is nil bludd

twin mesa
#

what should i write here then?

frail yarrow
#

if hit and hit.Parent then

#

But u should do that code on the server anyway

south iron
#

bro does someone like my game

frail yarrow
#

It makes more sense

twin mesa
twin mesa
south iron
weak radish
weak radish
patent gorge
#

anyone know how to keep the client usage memory as low as possible

weak radish
patent gorge
weak radish
patent gorge
weak radish
stone garden
patent gorge
patent gorge
weak radish
alpine storm
stone garden
# patent gorge so how

the method is to disconect or stop functions that are not used, i m gonna list you an example, some animations on the UI, if the frame is close, no need to tween the frame and play the animation. Its called memory leack, and for the info my game is around 3000 lines of code

twin mesa
stone garden
#

thats my local script memory usage and its.....crazy (RbxCharactherScripts is a local script from roblox)

alpine storm
stone garden
stone garden
weak radish
cyan notch
#

yo im tryna like partner with someone and become friends and make stuff along the way and like makes games

weak radish
#

please don't say script.Parent

cyan notch
#

i have 2 years experience on studio been modelling for like 7 months and scripting for 2 months

stone garden
cyan notch
#

i can show you some of my code

#

ive been doing python for like 2 years

stone garden
cyan notch
stone garden
twin mesa
weak radish
# twin mesa is roblox tweaking or im stupid?

Add checks to see if parent is nil, it's probably because the player dies but continues activating .touched as it has no debounce and eventually fires it just before the character despawns

twin mesa
stable verge
#

if i had about 100 objects in my workspace each having an attribute, does that make my game lag?

nova yarrow
#

how do i get rid of index type ref

twin mesa
#

also i disabled can collide so parts wouldnt touch themselves

weak radish
twin mesa
patent gorge
# stone garden dms

doe most games have like high memory because of the player count or does this depend on their devices too

raven marlin
#

.

burnt badge
elfin timber
#

anyone got a quick game that is somewhat easy to script in an hour?

#

without much modeling or sum

gentle crypt
#

Okay

pseudo maple
gentle crypt
#

You can't sell here

copper verge
#

This is a commission server so you can only hire or get hired you cannot sell anything

gentle crypt
keen lynx
#

yo

#

can any dev whos good at scripting / teams dm me please or in here theres an issue i need help with thanks again

somber vault
#

can somebody please give me a 1000 robux giftcard? can pay with a tower defense game.

royal lance
#

hello who here knows OOP looking for comm work / meta tables

true tree
near sonnet
#

guys how do i refer on a model in a model if i wanna refer on all children in the second model

crystal sapphire
#

where do I submit my plugin for the event

true tree
crystal sapphire
#

oh mb

#

It says 4 am for me

true tree
#

yeah same

crystal sapphire
#

are you able to partner for the event

#

I have my plugin done

#

but there's some repetition I needa do

true tree
#

uh wdym

#

this is what AnsG said

true tree
#

trying to make it as user friendly as possible

crystal sapphire
#

I made one for vfx artists

#

I don't usually do plugins

true tree
#

nice

crystal sapphire
#

but I think vfx artists will apprieciate it alot

somber vault
#

can somebody please give me a 1000 robux giftcard? can pay with a tower defense game.

blissful ruin
#

guys, im using planeRight:Dot(Vector3.new(0,1,0) to like determine if the plane is perfectly flat and not rolled any direction, but it breaks when you flip 180 degrees, anyone got an alternative? thank you!

hot copper
#

can someone teach on how to modular script

haughty kiln
#

Does anyone knows how to fix "Player data model not found error 291" DM ME IF U KNOW

stone garden
stone garden
hot copper
#

i can type

stone garden
spare talon
#

Do you guys have any advice for advanced scripting? I feel like I know all the stuff, and Idk where I would learn more, but then all the sudden theres something new like a spawn() function or a module script.

burnt pulsar
#

hey guys if i wanna tp a part to another place but it has a proplem its center alligns with the another place so if i increase the size for some reason its increase both ways

heady coyote
#

i mean what you could do is something like this

local IncreaseSize = vector3.new(5, 0, 0)
local NewPosition = Place.Position + IncreaseSize
part .Position = NewPosition
#

if you want it in the other side just change 5 to negative 5

burnt pulsar
somber vault
empty mulch
burnt pulsar
# somber vault What do I do to make the character spawn in the direction the checkpoint is faci...

local checkpoints = workspace:WaitForChild("Checkpoints")

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

local stage = Instance.new("IntValue")
stage.Name = "Stage"
stage.Value = 1
stage.Parent = leaderstats

player.CharacterAdded:Connect(function(char)
local hum = char:WaitForChild("Humanoid")
wait()
char:MoveTo(checkpoints[stage.Value].CFrame)

hum.Touched:Connect(function(hit)
if hit.Parent == checkpoints then
if tonumber(hit.Name) == stage.Value + 1 then
stage.Value = stage.Value + 1
end
end
end)
end)
end)

#

use this

heady coyote
#

so you could do something like this

local function IsPlaneFlat()
   if plane.x == 0 and plane.x + 1 == 180 then
      return 0
   else
      return plane:Dot(vector3.new(0,     1, 0)
   end
end
near sonnet
#

wait how do i sent my code like u guys did so its not just a message

heady coyote
#

bruh

near sonnet
#

wait so i put what 3 times

teal quiver
#

`

#

this

heady coyote
teal quiver
near sonnet
#

got it

heady coyote
# near sonnet got it

you can switch to any laungage you want just replace the word lua to any programming laungage you want like html or css

near sonnet
#
    if hit.Parent:FindFirstChild("Humanoid") then
        
        
        for _, child in pairs(claim1:GetChildren()) do
            if child:IsA("BasePart") then
                child.Transparency = 0
                child.CanCollide = true
                claim.Transparency = 1
                claim.CanCollide = false
            end
                
                
        end
        
    end
end)
local claimfunction2 = claimbutton2.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then

        for _, child in pairs(claim2:GetChildren()) do
            if child:IsA("BasePart") then
                child.Transparency = 0
                child.CanCollide = true
                claimbutton2.Transparency = 1
                claimbutton2.CanCollide = false
            end


        end

    end
end)``` bro i copied this 2 times and just changed the names and one time it works and the other time it doesnt
#

i see i see

late sandal
#

i need to make multiple leaderboards, can i make a single datastore and get the values from a table or do i have to create multiple ordereddatastores?

eager dagger
#
local caster = workspace.Caster
local wall = workspace.Wall

local PI_DIVIDED = (math.pi/2)

task.wait(2)

while task.wait(2) do
    
    local origin = caster.Position
    local direction = caster.CFrame.LookVector * 30
    
    local params = RaycastParams.new()
    params.FilterType = Enum.RaycastFilterType.Exclude

    local results = workspace:Raycast(origin, direction)

    local part = Instance.new("Part")
    part.Parent = workspace
    part.Size = Vector3.new(1,1,0.02)
    part.Transparency = 1
    part.Position = results.Position
    part.Anchored = true
    part.CanTouch = false
    part.CanCollide = false
    part.CanQuery = false

    local bulletHole = Instance.new("Texture")
    bulletHole.Texture = "rbxassetid://3696144972"
    bulletHole.StudsPerTileU = 1
    bulletHole.StudsPerTileV = 1
    bulletHole.Parent = part

    local norm = results.Normal

    local x = PI_DIVIDED * norm.X
    local y = PI_DIVIDED * norm.Y
    local z = PI_DIVIDED * norm.Z

    part.CFrame = part.CFrame * CFrame.Angles(y, x, z)
    
    
end

I made this code to teach my friend raycasting, he wanted a bullet hole example, was this good calculation or is there a better approach?

teal quiver
eager dagger
#

and params are optional, see the type how it says:

yeah I kind of did forget bc I was in the middle of explaining, but I forgot to add it besides thatis this good calculation?

teal quiver
#

im not really experienced with raycasting, so i cant say

heady coyote
azure jacinth
#

Can i turn a sword that is in hotbar into a sword that is automatically equiped without being in hotbar (like in battleground)

spark estuary
spark estuary
#

or did u do this because the bullethole faces the wrong direction if used normally

spark estuary
azure jacinth
late sandal
azure jacinth
heady coyote
gentle crypt
#

hi ronuardo

azure jacinth
lone marsh
gentle crypt
#

my gosh

azure jacinth
lone marsh
#

ima smack u up

azure jacinth
spark estuary
heady coyote
#

:)

spark estuary
#

if u want it to be animated like in sbg you'll have to do something else that i dont exactly remember

azure jacinth
azure jacinth
#

and can have fun with my frend

#

but i dont really know where to start fr fr

heady coyote
spark estuary
azure jacinth
azure jacinth
#

bcs like hum its a bleach one

spark estuary
azure jacinth
heady coyote
spark estuary
azure jacinth
azure jacinth
#

but a lil complicated overall

spark estuary
azure jacinth
#

so i think im just gonna get a mesh and searching what am gonna do

azure jacinth
spark estuary
#

you'll have to research some stuff urself

azure jacinth
heady coyote
azure jacinth
#

bcs like everything turn into a circle ngl

spark estuary
azure jacinth
azure jacinth
heady coyote
azure jacinth
#

one is gonna be gun but for leta

heady coyote
#

Well uhh

spark estuary
azure jacinth
#

or after the combat system

heady coyote
azure jacinth
azure jacinth
#

personally i put the animation into the basic roblox animation

#

like the character one

#

but like idk how to put animation for like sprinting, attacking and other

azure jacinth
heady coyote
azure jacinth
heady coyote
#

Actually it pretty simple

azure jacinth
#

and i can also animate dw

azure jacinth
#

bcs it aint a basic roblox animation

heady coyote
azure jacinth
heady coyote
#

Well first you need to make a system to detect a button click like shift or Ctrl then you want to increase the players walk speed and on top of that add the animation to it

frosty smelt
#

who can work for freeeeeeeeeeeeeeeeee and help me make my zombie survival game its gonna be really goooooooooooooood and you can get very richhhhhhhhhhhhhhhhhhhhhhhh please just helpppppppppppppppp me i need help so badddddddddddly

heady coyote
azure jacinth
azure jacinth
#

Oh wait i got one last question

frosty smelt
#

well OTHER zombie games yeah but not THIS one

azure jacinth
heady coyote
# azure jacinth ok thx

You're also gonna need to detect when the button is released to make every thing return to normal like speed and end the animation

heady coyote
frosty smelt
#

im actually remaking an old xbox 360 zombie game

#

search up Dead Block

azure jacinth
# heady coyote Go ahead

Should i get my sword model into a blender site or in roblox and when i animate in blender do i put my sword into blender or do i animate without it and my sword will just follow my character if its weld to it ?

heady coyote
heady coyote
frosty smelt
heady coyote
frosty smelt
#

you have to play it to understand

#

you should download a rom of the game and play it its a really good game

heady coyote
frosty smelt
#

no a ROM of the GAME of a WEBSITE

heady coyote
#

Well sadly I'm using ๐˜ผ๐™๐˜พ๐™ƒ ๐™‡๐™„๐™‰๐™๐™“ which sadly doesn't allow specific games to run on my ๐˜ผ๐™๐˜พ๐™ƒ ๐™‡๐™„๐™‰๐™๐™“

#

And I'm using a phone anyways so that won't work

spark estuary
#

use wine or something ๐Ÿ’”

heady coyote
frosty smelt
#

what is linux and why is it arching

#

what are these words you guys are saying

spark estuary
frosty smelt
#

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

heady coyote
frosty smelt
#

if you're a NERD then you should KNOW that it's WE'RE and not WERE

frosty smelt
#

wow

heady coyote
#

Great movie

#

Anyways I'm on break so....

heady coyote
neon nova
#

how do i stop this

stone garden
neon nova
rare bronze
neon nova
#

what does that mean

spark estuary
neon nova
#

bruh but that wont stop them from coming back from my ads though

spark estuary
neon nova
#

how do you kick someone in an actual server

stone garden
stone garden
spark estuary
#

no just plr:Kick()

stone garden
sullen fox
#

Should I request data from the server or change data on the client whenever the server alerts me there is a change?

verbal otter
#

No Context

hasty spindle
bleak topaz
bleak topaz
tiny widget
#

Ayye, now that has some usability

#

tho kind of shallow

#

pretty cool tho

fierce tapir
#

is there anyone willing to teach me a bit of scripting for free

tidal crag
#

is there a way to detect if somebody liked your game

tidal crag
nova yarrow
#

Pay me and sure

nova garnet
polar vine
#

whats the benefit of using profileservice over regular datastore service

sacred widget
little horizon
#

hello, I'm making roblox studio software by watching brawldev, but I'm going to ask something, now I'm going to make a pet system to my game, but I can't do it, can you help?

nova yarrow
little horizon
#

I found a video but it takes a lot of time and there are errors

lost yoke
zealous lily
#

quick question do i have to import my animations then script it or script a movement system then import it?

crude quarry
#

can you tween inside a tween

#

looking to run 2 inside the same function

acoustic idol
#

after years i finished my script

marsh sundial
# neon nova

why did everyone start making fun of this guy ๐Ÿ˜ญ

#

what did he even do

smoky cipher
dense eagle
smoky cipher
#

they always pair it with joining a group since thats something you can actually check

velvet meadow
#

a

opaque steeple
#

guys in the game FLING THINGS AND PEOPLE the picking up and fling mechanic, how do they do it so well?

real solar
#

Hey guys my post got declined is there anyone in here that would like to make an obby system for us for 3K robux compensation theres no deadline

crude quarry
#

they're not hard

real solar
#

i cant script whatsoever tbh

crude quarry
#

learn

real solar
#

I cant figure out leaderstats

crude quarry
#

obby if the first game you make learning the basics

real solar
#

ik its easy for some ppl im js asking i got enough robux to js be able to hire ppl

#

offers still up if anyone wants to do it

crude quarry
#

for everyone since its literally requires no skill

#

if you dont know just google

wicked marlin
#

is anyone open for commissions here

crude quarry
wicked marlin
#

dont pmo

crude quarry
#

dont be dumb

sly depot
#

is there a luau Random data type port to any other language

#

this is a code discussion channel

muted crow
#

aw man๐Ÿ˜•

sly depot
muted crow
#

i don't use adobe

sly depot
#

which is why you need to pirate it

sweet lance
drifting robin
#

can you use a module script to applicate lua scripter role

#

or you just have to use a regular script

#

does anybody know?

lost yoke
#

ud have to use a regular script since the module isnt gonna do anything without being called

drifting robin
#

Aw man

#

alright then

crude quarry
#
F2.MouseClick:Connect(function(hit)
    --[[This is the humanoid weld]]
    local root = hit:FindFirstChild("HumanoidRootPart")
    local weld = Instance.new("Weld")
    weld.Parent = root
    weld.Part0 = root
    weld.Part1 = EV 

    if floor == 2 then return end
    
    --[[This is the Elevator Doors]]
    local doorgoal = {CFrame = eleDoor1.CFrame - Vector3.new(10, 0,0)}
    --local doorgoal = {CFrame = eleDoor2.CFrame - Vector3.new(-10, 0,0)}
    local theinfo1 = TweenInfo.new(
        4,
        Enum.EasingStyle.Linear, 
        Enum.EasingDirection.Out, 
        0, 
        false, 
        0 
    )

    local play = TweenService:Create(eleDoor1, theinfo1, doorgoal)

    


--[[This is the Elevator Floor]]
    local goal = {CFrame = EV.CFrame - Vector3.new(0, -50,0)}


    local tweenInfo = TweenInfo.new(
        10,

        Enum.EasingStyle.Linear, 

        Enum.EasingDirection.Out, 

        0, 

        false, 

        4 
    )

    local tween = TweenService:Create(EV, tweenInfo, goal)
    
    
    --[[Everything finishes here]] 
    
    play:Play()
    tween:Play()
    floor = 2
    task.wait(10)
    weld:Destroy()
end)
``` Alright I got no idea why the doors arent working
lost yoke
#

whats f9 say

noble fiber
#

Im still learning basic-advanced scripting but trying putting a flag before and after the line where the door will open and put it in different places it might help

noble fiber
#

Lol

#

Why btw

lost yoke
#

brain rot

noble fiber
#

Not rlly but I might change it

#

To my own clan zn

crude quarry
lost yoke
crude quarry
#

thats the issue

#

if there was an error I would fix it

lost yoke
#

ok add a print value and make sure its actually going through the function fully

noble fiber
#

I just said this ๐Ÿ˜ฆ

lost yoke
crude quarry
#

it has to be going through all of them since the elevator movement is at the bottom of the script

noble fiber
#

Stealing my idea

lost yoke
#

humor me

#

and just add the print

noble fiber
#

Us*

crude quarry
#

Figured it out, it's the way the doors are welded

noble fiber
#

Ok so check the door closing codes if not working trust me rewrite the code

#

Nice

empty fulcrum
#

Anyone know how games like answer or die make players rise up with the blocks? Iโ€™ve tried just tweeting the blocks up but laggy players glitch inside the blocks. Then Iโ€™ve tried tweening the players but it causes some sorta client side glitch where a player seems to be floating under the map.

noble fiber
#

Can you send a vid

obsidian blade
empty fulcrum
polar vine
#

whats the benefit of using profileservice over regular datastore service

polar vine
#

only feature i know abt it is auto saving

lean ocean
#

Also has session locking

hallow crag
#

not profileservice

stuck iron
#

i have a question , im a new scripter and i wondered how to make that a random player gets kicked out

hallow crag
weak radish
hallow crag
#

plus its only 4 lines

#

not that big

weak radish
#

anyway

#

cheese

hallow crag
#

but alright

weak radish
#

also is it normal for people to sell modules?

weak radish
hallow crag
hallow crag
#

gain some rep

lean ocean
hallow crag
hallow crag
#

theres many OOP guides for luau on yt

hallow crag
#

๐Ÿ’€

#

plus needs to be in serverscript

snow oasis
#

dude u gave a faulty script

#

are u tryna hack me

hallow crag
#

its in a localscript my guy

west hamlet
weak radish
hallow crag
#

idk

west hamlet
weak radish
#

Is it worth it?

west hamlet
#

gets a bunch of robux

#

make the plugin do some insane stuff that the user's grandma can even use it

lean ocean
weak radish
lean ocean
#

when u say module people think of profilestore etc

weak radish
#

I wouldn't be surprised if people thought of profile store when I said module given it's a module..

lean ocean
#

just say your selling a fighting system or whatever

#

instead of saying module

serene tulip
#

How can i learn scripting

fickle moat
serene tulip
west hamlet
weak radish
polar vine
hallow crag
#

of profileservice

#

its more up to date

#

logic wise

polar vine
#

ok thanks

fickle moat
weak radish
#

wym why not

polar vine
#

learn python

weak radish
#

Luau is different from lua so you still have to learn extra to learn luau

fickle moat
lean ocean
#

u learn li

weak radish
lean ocean
#

luau

#

i think this guy thinks lua is luau

fickle moat
lean ocean
#

u

fickle moat
#

Nope

#

I am a scripter so I know

lean ocean
#

why would he need to learn lua then

fickle moat
soft burrow
#

what happens to objects without parents

lean ocean
#

its a fork of lua

#

but u dont need to learn lua first

#

๐Ÿ˜‚

soft burrow
#

doesnt roblox use lua

fickle moat
lean ocean
#

what is this ragebait

fickle moat
fickle moat
#

Anyone else needs help

lean ocean
#

Without knowing luau

#

Lua

#

๐Ÿฅฐ

fickle moat
#

Bro what are u talking about, I just said i learned lua first

#

@lean ocean

soft burrow
#

do i put scripts in humanoid

#

otherwise how can i find the humanoid of the model

fickle moat
soft burrow
#

for npcs?

fickle moat
#

Oh npcs

#

Just in the character model

soft burrow
lean ocean
#

why would u need a script in the humanoid

fickle moat
soft burrow
#

to like control it

lean ocean
#

what are u trying to make

soft burrow
#

npc with behaviour

lean ocean
#

serverscript in serverscriptservice

fickle moat
lean ocean
#

I don't recommend having a script for every npc

soft burrow
#

idk

lean ocean
#

Like inside them

soft burrow
#

how should i do npc logic then

lean ocean
#

1 server script

#

In serverscriptservice

wise onyx
#

can someone explain to me what "return" is in scripting? Like for instance
If bla bla bla then return end

lean ocean
#

Use collectionservice

wispy creek
#

always controll from the server , you give your client way too much to the head otherwise

#

also the players reaction on the server

fickle moat
lean ocean
wispy creek
#

and dont store the scritps inside the npc's you have

lean ocean
#

You can also use it in functions for returning stuff

soft burrow
#

so i need a server script that somehow gets the humanoids of all the npcs?

fickle moat
wispy creek
soft burrow
#

how do i add the tags in the first place

fickle moat
lean ocean
#

Properties tab

#

Scroll down

soft burrow
#

cool thanks

wispy creek
#

hey guys you got any suggestions for be seen as more professional in the scripting commission genre

lean ocean
#

Building system that uses grids

#

Or something cframe related

soft burrow
white dock
#

Is it good ?

lean ocean
soft burrow
#

like use grids to make my map

lean ocean
#

grids to make ur map?

soft burrow
#

ok nevermind

wise onyx
#

thanks man

#

i love you

raven marsh
#

e

near pasture
#
-- Destroy Script
function Enemy:Destroy()
    if self.Spawned then
        self.Character:Destroy()
        self.Spawned = false
        self.Alive = false
        self.Died:Fire()
        objHandler.Cleanup(self.Events)

        Enemy.currentEnemies[self.ID] = nil

        -- Clear all fields from self (except metamethods)
        for _,property in pairs(self) do
            self[property] = nil
        end
        
        print(self.ID)
        
    end
end


-- Clear all enemies static method
function Enemy.Clear_Enemies()
    print("Clearing")
    local enemiesToClear = {}

    -- Collect keys first
    for id, enemy in pairs(Enemy.currentEnemies) do
        table.insert(enemiesToClear, id)
    end

    -- Destroy enemies after collecting keys
    for _, id in ipairs(enemiesToClear) do
        local enemy = Enemy.currentEnemies[id]
        if enemy then
            enemy:Destroy()
        end
    end

    print(Enemy.currentEnemies)
end

does anyone have any idea why Enemy.currentEnemies still shows the aforementioned "Destroyed" enemies after I print it?

remote bear
raven marsh
snow oasis
remote bear
zenith flower
soft burrow
#
local CollectionService = game:GetService("CollectionService")
local allEnemies = CollectionService:GetTagged("opp")
local players = game:GetService("Players")

local player_torsos = {}

-- Gets list of player torsos
function getTorsos()
    for player in players:GetPlayers() do
        table.insert(player_torsos, player:FindFirstChild("Torso"))
    end
end

--Finds nearest torso to the input
function findNearestTorso(input)
    getTorsos()
    local max = 0
    local closest = nil
    for i in player_torsos do
        local current = (input - i.position).magnitude
        if current > max then
            max = current
            closest = i
        end
    end
    return closest
end

--For each opp find the closest torso and make it move towards
for opp_humanoid in allEnemies do
    local target = findNearestTorso(script.Parent.Torso.Position)
    if target ~= nil then
        opp_humanoid:MoveTo(target.Position, target)
end
``` rate script pls
cedar flicker
#

Depending on how often you call this

#

You shouldnt go through through every player all the time

soft burrow
#

so i might call once

#

and get new players as they join

cedar flicker
#

Yeah

#

Dosent actually matter if youre doing it just a few times, but ig you'll be calling this quite often? So a good change ๐Ÿ™‚

soft burrow
#

thanks for the help

alpine storm
#

I dont get this error guys "ServerScriptService.AllScripts.Coins.CoinSpawnDelete:66: attempt to index number with 'Position' "

remote bear
#

not a mesh or part

alpine storm
#

i see, when i was looping through

#

did i loop through it incorrectly?

#

idk why it would be showing as a number

hallow crag
alpine storm
#

ok thank u

#

it works now

solemn dawn
#

Callout to any experienced scripter here who had made a full working game, can you please give tips on organizing code and making it scalable? I have stopped working on games countless times because the code organizing started to look shitty.

solemn dawn
summer python
#

so ive got this script for a spear thrust and my animation just doesnt rotate in game(it does move though) but works completely fine when i look at it through moon animator. anyone have any ideas why?

hallow crag
#

ill send ss of my codebase

#

structure

#

something like this

summer python
lean ocean
#

services

#

๐Ÿคข

hallow crag
#

๐Ÿ’€

lean ocean
#

thats like knit shit

hallow crag
#

๐Ÿ’€

#

its a good naming convention for client/server scripts

#

not just used in roblox game dev

spark estuary
#

wouldnt that get big quickly

hallow crag
#

but in cases where i do get alot of Service i just group them into folders

#

to look cleaner

near pasture
#

@drowsy socket

spark estuary
#

aye

drowsy socket
near pasture
soft burrow
#

how i find where an error comes from

hallow crag
#

just print that

#

or click the error

#

in output

#

most of the time that works

soft burrow
#

clicking error doesnt work

hallow crag
soft burrow
#

free model

hallow crag
#

and type swoosh

#

if it loading the sound in a script

#

then that will work

soft burrow
#

no results found

#

this sucks i might just get a new model

hallow crag
#

its most likely a actual sound instance then

#

just do

#

classname:Sound

#

in explorer search bar

#

and it wil show all the sounds in the game

#

should be there somewhere

somber vault
#

Or dont use free models

soft burrow
#

nice it works

#

thanks, cool trick

soft burrow
hallow crag
#

np

#

also be careful with free models and always check the scripts inside of them

#

they could have a backdoor

#

(malware)

hallow crag
#

๐Ÿ’€

somber vault
#

Wha

#

You know what free models are right

#

Not necessarily 3d models

gleaming badger
#

How to fix Thin parts falling through map (roblox terrain)

proven wave
#

Can someone create a professional lobby menu?

forest elk
#

Hey, what systems or methods to use when you want to make like a matchmaking systems, that's able to cross server, just like the one we see on bedwars and rivals..
Is using GetAsync not possible?

hardy pilot
opaque birch
#

is oop required?

hardy pilot
#

Required for what?

opaque birch
#

i mean for scripting

hardy pilot
#

Not necessarily

#

It's just a way to structure your code base

#

It's nice to know

#

but all that matters is scalability and time taken to make it in the end

#

It might be listed as a requirement on shitty comissions in #scripter-hiring though

#

where someone hiring a scripter attempts to look like an expert listing buzzwords

#

as requirements

opaque birch
#

do u personally use oop?

lean ocean
#

imo oop only good for some things

hardy pilot
#

Yeah but not what you'll find in regard to Roblox

#

Like with metatables and emulating classes

#

but I do like to use the concepts in their own ways

opaque birch
#

alright thank u!

frank sun
#

Hi Iโ€™m new to coding and I was wondering, Is it possible to have a function inside a function?

wise turtle
#

Yes

crude cargo
#

how do i fix shaky camera when ragdolling

#

someone said weld the rootpart

#

to the upper torso?

scenic cove
#

is there any good tutorial about making a battlegrounds game?

vestal coral
#

No selling in chat

elder stirrup
#

Is Roblox-Discord and Discord-Roblox a difficult thing??

true tree
true tree
#

just makes coding so organised imo

sweet lance
#

What would UI creation, data stores, and custom basic admin stuff

#

Also simulator games

#

And some RPG stuff

#

What would that be worth for a commission

#

@hazy brook ^

#

And also am I expected for combat to make the animations

hazy brook
sweet lance
#

Taht is just what I can do

hazy brook
#

Ohhhh

sweet lance
#

I was thinking like pricing around 5k-20k for those

hazy brook
#

I don't know it depends on a lot of stuff

sweet lance
#

The simulator scripting would be like 25-45k cause itโ€™s a lot

#

Once Iโ€™m able to access my PC I will post

#

5-50k

hazy brook
#

Just remember

#

No shotgun posts

#

Only post about one thing

#

Not UI and scripting together

sweet lance
#

Okay

#

I can post about that I can script Ui for someone that already has Ui mad

sweet lance
#

Cause I do some small building and UI for it

sweet lance
glad apex
#

Or best used for classes

tacit otter
#

whenever we're using GetAsync() or SetAsync(), is the format when using a pcall function : success, errorMessage or success, Value

sweet lance
#

Like that

glad apex
#

For setasync i think its a boolean

sweet lance
#

I think so

tacit otter
#

ok thx ๐Ÿ‘

sweet lance
#

Should I do scripting commissions

glad apex
sweet lance
#

How much

#

And for what

zealous lily
undone salmon
sweet lance
#

Nah

sweet lance
undone salmon
sweet lance
#

Nah

#

I dont do bank transfers

twin mesa
undone salmon
sweet lance
#

Iโ€™m fine with the tax

#

Most of the robux would be for a game Iโ€™m making

twin mesa
somber vault
#

Is it possible to use a touched event to copy the players current avatar to a dummy? and what do i use ive been tryna use :clone() but it wont work

undone salmon
#

can u provide your code?

open oracle
#

Clone doesnโ€™t work because a players character has the Archivavle property set to false. You must set it to true before cloning

#

No idea why thatโ€™s a thing, but it is

crude quarry
#

Is there any documents on how to format apis, I know some apis that work for roblox but no idea how to format it in lua

#

By format like
Url params
Authorization codes
Request body's, urls

somber vault
# undone salmon clone should work though
local player = Players.LocalPlayer
local hitbox = workspace:WaitForChild("hitboxuno")
local rig = workspace:WaitForChild("TemporaryRig")
local touchedAlready = false

hitbox.Touched:Connect(function(hitPart)
    Players:Clone()
end)```

something like this probably
#

it should clone the player description

sharp lake
drifting robin
sharp lake
#

unsure wat ur asking exactly tho

drifting robin
#

me?

sharp lake
#

No

drifting robin
#

Ok

crude quarry
#

All the tutorials I'm seeing only have how to turn on https requests

sharp lake
#

yea its on docs, idk about a video

#

but basically, GetAsync(url, nocache(boolean), headers) returns string (http response), PostAsync similar

#

i dont think there's built in support for multipart

#

but u can just Add this functionality urself However it would be annoying

simple sage
#

where can i learn scripting and how hard is it

near pasture
#
-- Destroy Script
function Enemy:Destroy()
    if self.Spawned then
        self.Character:Destroy()
        self.Spawned = false
        self.Alive = false
        self.Died:Fire()
        objHandler.Cleanup(self.Events)

        Enemy.currentEnemies[self.ID] = nil

        -- Clear all fields from self (except metamethods)
        for _,field in pairs(self) do
            self[field] = nil
        end
        
        print(self.ID)
        
    end
end


-- Clear all enemies static method
function Enemy.Clear_Enemies()
    print("Clearing")
    local enemiesToClear = {}

    -- Collect keys first
    for id, enemy in pairs(Enemy.currentEnemies) do
        table.insert(enemiesToClear, id)
    end

    -- Destroy enemies after collecting keys
    for _, id in ipairs(enemiesToClear) do
        local enemy = Enemy.currentEnemies[id]
        if enemy then
            enemy:Destroy()
        end
    end

    print(Enemy.currentEnemies)
end

does anyone have any idea why Enemy.currentEnemies still shows the aforementioned "Destroyed" enemies after I print it?

hallow crag
#

that should be

#
for field in pairs(self) do
            self[field] = nil
end
near pasture
#

I'll try this

#

wait that doesn't make sense @hallow crag

#

actually

#

nvm it does

#

lets see!

hallow crag
near pasture
#

it still no workie some guy in a diff server said to use table.clear instead

near pasture
#

but it works for some reason

exotic comet
#

Hey people

#

Are you Kinder than rsc guys?

cedar flicker
#

but from what ive seen

#

for k,v in pairs(self) do
self[k] = nil
end should work fine

#

like the other guy said

#

Must work, just print the table and check

exotic comet
#

@umbral carbon

#

Hey

umbral carbon
#

Hello

near pasture
#

rsc is one of the more toxic servers imo

somber vault
#

how to copy players humanoid description to a dummy with touch event?

wispy jay
#

๐Ÿ˜ญ is there all in one tutorial where i can master CFrames
and be able to use them without spending aloot of time obsessing over them

lost yoke
#

all my homies hate cframes

wispy jay
#

๐Ÿ˜ณ

soft burrow
#

can a game handle lots of parts with touch events

heady dune
#

I am an advanced programmer, so dont worry about using more advanced concepts or terms, but i have been away for a couple months so im rusty.. i'm trying to make a seamless and responsive combat on both clients, but it seems its fast on the attacking client and delayed on the receiving client, whats a good architecture to prevent this?

heady dune
true fern
heady dune
true fern
heady dune
#

yea yea buddy

true fern
#

Nobody says that unless you're applying for something

heady dune
#

or i was just using it as a statement to let other people know that they can use bigger terminology, because to simply put it i will understand it

true fern
heady dune
#

i stated my issue in the message, i dont understand your obbession over my wording, this is a forum for help/discussion, not for condescension

true kite
#

Screen shots woukd be helpful

heady dune
#

its pretty straight forward tho

sharp totem
#

does anybody have a really good rng systeme so that its easy to addnew rarities?

somber vault
#

d

true fern
#

any way to improve this? it looks really bad

heady dune
keen vine
#

anyone good at UI designing ?

buoyant junco
weak yoke
sour vine
twin mesa
#

??????

stone garden
# twin mesa ??????

dont worry skidie, its only when u got low internet, everything will be fine

stone garden
twin mesa
#

not a SINGLE while loop in sight

stone garden
twin mesa
#

i wish i was joking

#

it stabilized now

#

but idk why that happened

true fern
#

sorry to tell you

rocky cloak
#

anyone wanna team up and make a game not rlly professional tho

#

we can split anything 50/50

floral musk
#

how to learn scripting properly

#

ppl be on my behind abt tutorials

rocky cloak
#

I SAW THAT

stone garden
floral musk
#

๐Ÿ‘

stone garden
rocky cloak
#

mhm?

weak radish
stone garden
weak radish
rigid arrow
#

does anyone know where i can find this attribute x

sweet lance
#

I can only see one line fully

stone garden
stone garden
stone garden
ionic charm
#

does connections use a lot of memory, should i try to disconnect them whenever its not in use