#code-discussion

1 messages · Page 23 of 1

native orchid
#

Sure but sometimes you just have to do it yourself

near vigil
#

can't argue with that

native orchid
#

You learn quicker when it hurts

#

How many times have you touched fire?

summer vortex
#

someone helpppp plis

near vigil
native orchid
#

Bullshit

near vigil
#

plus the heat emanating from fire hurts badly enough

native orchid
#

What was “the whole thing”

#

I’ll make it right now without OOP just to make fun of you

#

So what, you want to index into a table

#

but instead of a table it is a cluster of tables?

summer vortex
#

`local sg = game:GetService("StarterGui")
local gui = sg.ScreenGui

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

local coins = Instance.new("IntValue")
coins.Value = 1
coins.Name = "Coins"
coins.Parent = leaderstats

sg.ScreenGui.TextButton.MouseButton1Click:Connect(function()
    coins.value = coins.Value +1
end)

end)`

some1 help please i want it to give 1 coin every time i click

native orchid
#

What about collisions?

summer vortex
#

nooo

#

startergui

#

`local sg = game:GetService("StarterGui")
local gui = sg.ScreenGui
local player = game.Players.LocalPlayer

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

local coins = Instance.new("IntValue")
coins.Value = 1
coins.Name = "Coins"
coins.Parent = leaderstats

sg.ScreenGui.TextButton.MouseButton1Click:Connect(function()
    player.leaderstats.Coins.Value += 1
end)

end)`

#

it aint working tho

cosmic gorge
#

whats the damn problemmmm noobe.OnServerInvoke = function(player)
local lead = player.leaderstats
local coins = lead.coin
local buyed = false
if coin.Value >= 10 then
coin.Value -= 10
buyed = true
return buyed
end

#

it says you forget to close funcion or something

cosmic gorge
cosmic gorge
summer vortex
#

Ye hahahaha

#

im using dehappys document

#

its so good

#

this is the script in the button

#

`local ScreenGui = script.Parent

local button = script.Parent
local function onClick()-- Change button appearance
button.BackgroundColor3 = Color3.fromRGB(0, 115, 255)
button.Text = "Clicked!"
task.wait(1)-- Reset appearance
button.BackgroundColor3 = Color3.fromRGB(0, 179, 255)
button.Text = "Click Me!"
end

button.MouseButton1Click:Connect(onClick)

game.Players.LocalPlayer.ScreenGui.TextButton.MouseButton1Click:Connect(function ()
game.Players.leaderstats.Coins.Value += 1
end)`

#

but its still not working bro

#

yea

bleak glade
#

how do i add mobiel support i forgor

native orchid
#

What was this connected dictionary thing even for

#

the more I think about this the more I don't like it, seems like a very bad idea

#

A hierarchy of what?

summer vortex
#

`local ScreenGui = script.Parent

local button = script.Parent
local function onClick()-- Change button appearance
button.BackgroundColor3 = Color3.fromRGB(0, 115, 255)
button.Text = "Clicked!"
task.wait(1)-- Reset appearance
button.BackgroundColor3 = Color3.fromRGB(0, 179, 255)
button.Text = "Click Me!"
end

button.MouseButton1Click:Connect(onClick)

game.Players.LocalPlayer.ScreenGui.TextButton.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.leaderstats.Coins.Value += 1
end)`

still aint working tho

native orchid
#

So why did you need to conjoin dictionaries

supple burrow
#

i don't think a client would ever pay more because someone uses an external editor

native orchid
#

someone else who also uses dumb, fiddly, bloated tools

supple burrow
#

what?

native orchid
#

everyone wins, everyone loses

carmine yacht
#

this sucks ass

supple burrow
#

what could rojo possibly clusterfuck? It's a convenience thing

carmine yacht
#

i have uesd rojo a few times, the actual benefit is not rojo

#

its Git

#

i dont like VSC anyways

#

has always felt clunky to me

supple burrow
#

You can use any editor you want

carmine yacht
#

another major issue is autofill

#

luau lsp does not help with that at all

#

using an external ide slows you down

#

i wish there was a way to use git with roblox without rojo

native orchid
#
local commands = {
    ["Teleport"] = {
        ["MinimumRank"] = 1,
        
        ["Code"] = function(...)
            -- do stuff
        end,
    },
    
    ["KillEveryone"] = {
        ["MinimumRank"] = 3,

        ["Code"] = function(...)
            -- do stuff
        end,
    },
    
    ["DeleteTheGame"] = {
        ["MinimumRank"] = 9,

        ["Code"] = function(...)
            -- do stuff
        end
    }
}

local function ExecuteCommand(player, rank, commandName, parameters)
    local command = commands[commandName]
    
    if not command or not player or not rank then
        return
    end
    
    if rank < command["MinimumRank"] then
        return
    end
    
    command["Code"](parameters)
end
#

You're just weird and dumb

#

OOP is brainrot

carmine yacht
#

oop is fine

#

there are superior structures

native orchid
#

OOP is stupid and makes you think about nearly everything in the wrong way

carmine yacht
#

but its fine because its used industry wide

carmine yacht
#

but again

#

industry standard and is forced by some languages

#

🤷‍♂️

native orchid
#

it isn't fine

carmine yacht
#

of course they ran faster

somber vault
#

I use it bc vscode is also good for Godot projects. Transferable ide.

carmine yacht
#

simpler programs

#

less bloatware

native orchid
#

We have fucking supercomputers now

carmine yacht
#

lower level languages

native orchid
#

We all do

carmine yacht
#

yeah but that isnt helped by OS bloatware

native orchid
#

All software is bloatware now

carmine yacht
#

and OOP is indeed slower because of the memory mapping

native orchid
#

OOP brainrot has erased 30 years of hardware advancement

carmine yacht
#

its forced by one of the biggest languages in the world

somber vault
#

I mean there are good resources out there like maid and goodsignal. I recommend those

carmine yacht
#

so im sorry that i can't soothe you but nothings gonna change until somebody with a brain and a high title releases research on the matter

native orchid
#

I don't want to sound mean or anything, but your implementation sounds extremely stupid and bloated for no reason

carmine yacht
#

it will happen eventually with the adapatation of new languages

subtle lodge
#

GUYS WHAT SHOULD a beginner script

native orchid
#

Uh huh, using OOP?

somber vault
#

Lines ~= speed

native orchid
#

You're just making shit up now

supple burrow
#

Length of code isnt really a marker of quality

carmine yacht
#

well

#

quality not really no

#

its more about what you wrote in those lines that matters

somber vault
native orchid
#

Look I made my function WAY BETTER

local function ExecuteCommand(player, rank, commandName, parameters)
    local command = commands[commandName]
    if not command or not player or not rank then return end
    if rank < command["MinimumRank"] then return end
    command["Code"](parameters)
end
carmine yacht
native orchid
#

It is shorter now and thus infinitely better

#

Isn't is faster, easier to read?

carmine yacht
native orchid
carmine yacht
#

what did you mean

somber vault
carmine yacht
#

doesnt use*

#

lmao

#

nesting

#

you dont need to nest that

#

he did it much better with the return conditions

#

so why did you nest that

carmine yacht
#

ok

native orchid
#
local commands = {["Teleport"] = {["MinimumRank"] = 1,["Code"] = function(...) end},["KillEveryone"] = {["MinimumRank"] = 3,["Code"] = function(...)end,},["DeleteTheGame"] = {["MinimumRank"] = 9,["Code"] = function(...)end}}
local function ExecuteCommand(player, rank, commandName, parameters)
    local command = commands[commandName]
    if not command or not player or not rank then return end
    if rank < command["MinimumRank"] then return end
    command["Code"](parameters)
end

It is now perfect, at least 12 times faster

#

thanks guys

carmine yacht
#

lmfao

#

truth

native orchid
#

wait, hold on

supple burrow
#

@native orchid I don't get why your trying to demonize OOP though. Good code is good code, no matter the paradigm.

carmine yacht
#

@cedar moon nesting is not great because it enforces low standards for other developers

#

because they build onto your nested statement

#

which makes messes

#

ok

west dust
#

I already said I didn’t mean the literal amount of lines but the actual stuff you did to get the needed result

carmine yacht
#

im not arguing

#

im stating a fact

#

why are you angry

#

you dont have to assert your dominance i respect everyone the same

native orchid
#
local cmds = {["t"] = {["m"] = 1,["c"] = function(...) end},["k"] = {["m"] = 3,["c"] = function(...)end,},["d"] = {["m"] = 9,["c"] = function(...)end}}
local function xCmd(p, r, cN, p)
    local c = cmds[cN]
    if not c or not p or not r then return end
    if r < c["m"] then return end
    c["c"](p)
end

Okay, now it is perfect

carmine yacht
native orchid
carmine yacht
#

champ out here

olive sky
#

how do you even accidentally make plane rotate instead of blades

#

yes

native orchid
#
local cmds = {["t"] = {["m"] = 1,["c"] = function(...) end},["k"] = {["m"] = 3,["c"] = function(...)end,},["d"] = {["m"] = 9,["c"] = function(...)end}}; local function xCmd(p, r, cN, p); local c = cmds[cN]; if not c or not p or not r then return end; if r < c["m"] then return end; c["c"](p); end;
carmine yacht
carmine yacht
#

in luau it applies only partially

#

but in compiled runtimes its a major issue

#

and should not be enforced

native orchid
#

reject dumb ass stuff, become based?

carmine yacht
#

the memory mapping gets completely fucked

#

and the executable becomes slower and slower

#

these are the kind of issues that were made in games 25-30 years ago

#

so to repeat them now and call it normal is an issue

#

but its kind of an enforced standard so

native orchid
#

No, I pointed out to the noob that he doesn't HAVE TO use them

#

Just because all of the dudes in here and ChatGPT said that's the way to do it, he doesn't have to

#

I hate it when people learn by adopting rituals without understanding anything

supple burrow
native orchid
#

OOP is basically a religion so there's no arguing against it

#

if you like it then you like it and you'll spread the cancer to others, nothing I can do about that

supple burrow
#

You're just acting like a sheep of the other herd

native orchid
#

Who the fuck else is telling people to turn off their autocomplete and syntax highlighting

#

Yeah why do I do that?

#

Why do anything, I should just be comfortable at all times until I die

#

Are you sure about that?

carmine yacht
#

autocomplete 100% takes away from people who don't know what they are doing

#

i started out before roblox had autocomplete

#

way before

#

and i can write code without the IDE

native orchid
#

Go read the docs instead of poking blindly and letting the computer tell you what you can and cannot do

carmine yacht
#

ive had newer developers crying to me about how they cannot use intellisense

#

and its an issue

native orchid
#

Autocomplete was designed for OOP fools to stumble their way to a finished program without thinking about it

supple burrow
# native orchid What herd?

There's people who blindly advocate for OOP in all situations, and those who religiously hate on it. Both are uninformed idiots

native orchid
#

I learned before intellisense, before roblox even had real docs

#

It was painful, and it made me strong as fuck and I never forgot anything

native orchid
#

How's the view from the middle of the bell curve?

#

When did I say that

#

Oh yeah I see, right there I said "i hate modules"

#

I don't hate modules and I do in fact use them, but I use them on purpose

#

Most people I see use modules out of habit without thinking about why

#

"some cool guy on the internet uses modules so that's how I do it"

#

that's as deeply as most of you guys think about your own actions

#

It is harmful in my opinion to get in the habit of fracturing your code into a billion little files

#

Javascript hellscape

#

I'm not saying never use modules, just don't only use modules

#

Yeah I guess you're right, I should just let beginners get tricked into wasting time

#

Bye!

supple burrow
#

I mean, he had the right idea

somber vault
#

i have a long way before i can make my own battlegrounds

placid coral
thick sail
#

Anyone here experienced with programming quests?

#

I'm writing a quest managing module, and I was wondering what approach you'd take to detect when a stat is increased

#

My idea was creating a bindable for each stat that has an active quest, and fire that bindable whenever the stat is updated

#

I'm storing player data in a table, I'm using a modified version of profile service

sacred wagon
near knoll
#

hi

thick sail
sacred wagon
thick sail
#

Isn't that a tad inefficient

#

I have 20+ stats, I don't want to fire a signal every time ANY of them updates

#

There's many facets to consider, like what if I have multiple active quests for the same stat

#

Bindables sound goated here idk

sacred wagon
sacred wagon
#

Its really no biggie to read a value and edit some tables a few times brah

thick sail
#

Not a fan

#

There's nothing wrong with my approach anyway right

sacred wagon
sacred wagon
#

Then u can have 1 connection for all quests and update those who use the same stat name

thick sail
#

I'd just rather not have it fire the function for every single quest

sacred wagon
thick sail
#

I create a quest -> quest creates a bindable for that stat -> updates every time the specific bindable fires

vale atlas
thick sail
#

Man's writing the bible of quest scripting rn

vale atlas
#

turn water into quests

thick sail
#

Died on the roblox logo for our sins

#

I'm so intrigued, this is nail biting action

dapper flower
#

chat who can help me with country checker on leaderboard?

vale atlas
supple burrow
#

Free replication

thick sail
#

With a replication architecture I set up

vale atlas
thick sail
#

All that's covered

#

It's specifically the quests

#

I want the most efficient path to update quests

#

Did this man die at the keyboard 😭

dapper flower
# vale atlas LocalizationService is used to get player's country

why does it not working bruv

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CountryService = require(ReplicatedStorage.CountryService)
local playerGui = game:GetService("StarterGui")
local country: CountryService.Country = CountryService:GetMyCountry()

    --Set the UI
local screenGui: ScreenGui = playerGui:WaitForChild("Country")
local container: Frame = screenGui:WaitForChild("Container")

local countryFlag: ImageLabel = container:WaitForChild("CountryFlag")
local countryInfo: TextLabel = container:WaitForChild("CountryInfo")

countryFlag.Image = country.decal
countryInfo.Text = `Hi! Welcome from {country.name} {country.emoji}`

local Country = {}
Country.__index = Country

--[=[
    The code of the country e.g **US**
    
    @prop Code string

    @within Country
]=]
Country.Code = ""

--[=[
    Contains the name of the country e.g **US = "United States"**
    @prop Name string

    @within Country
]=]
Country.Name = ""
--[=[
    Contains the emoji of the country e.g **US = 🇺🇸**

    @prop Emoji string

    @within Country
]=]
Country.Emoji = ""

--[=[
    Contains the flag of the emoji, it can be used for ImageLabels, Decals and ImageButtons!
    
    @prop Decal string

    @within Country
]=]
Country.Decal = ""

--[=[
    Creates a new instance of a country

    E.g
    local Portugal = Country.new()
    Portugal.name = "Portugal"
    Portugal.emoji = ":flag_pt:"


    @return Country
]=]
function Country.new(): Country
    local self = setmetatable({}, Country)

    self.name = ""
    self.emoji = ""
    self.decal = ""

    return self
end

export type Country = typeof(Country)

return Country
sacred wagon
# thick sail Why would that happen

Like lets say i have 2 quests which require some amount of Pollen, the main .StatChanged event handler can change the value of Pollen inside of the the quest dict, for example, consider these quests:

{
Foo = {
Pollen = {Current = 50, Target = 200}
},
Bar = {
Pollen = {Current = 10, Target = 50}
}
}

The main event handler would look like this:

StatChanged:Connect(function(name, value)
    for questName, questDict in quests do
        if not questDict[name].Target then continue end
        questDict[name].Current = value
        if questDict[name].Current >= questDict[name].Target then
            --Code to handle quest finishing
            table.clear(questDict)
            quests[questName] = nil
        end
end)

This is better than having seperate event handlers for each quest because itll update quest stats in sequence instead of randomly, think of it like a row of cars in 1 nice lane instead of multiple trying to merge into 1 before exiting

placid coral
sacred wagon
#

Idk i dont really exactly understand wym either so if u could clarify more yea

vale atlas
sacred wagon
#

Just a script signal cuz bindable r slow as fock

thick sail
# sacred wagon Like lets say i have 2 quests which require some amount of Pollen, the main .Sta...

Thanks for taking your time with this detailed explanation. However, I still fail to see how my idea is bad in any way. I have two issues with your approach:

  1. StatChanged would fire any time ANY stat updated. I have over 20 stats, this is inefficient regarding signal firing
  2. Updating quests in sequence isn't a concern for me. My interest is in updating quests as quickly as possible and as efficiently as possible.

Having said this, let me state my case:

Let's say we have two active quests linked to the same stat, as you described:

{
    Foo = {
        Pollen = {Current = 50, Target = 200}
    },
    Bar = {
        Pollen = {Current = 10, Target = 50}
    }
}

Now let's consider a table of bindables which are created when an active quest exists for a specific stat (in this case Pollen). This would be the table in question:

QuestBindables = {
    ["Pollen"] = BindableEvent
}

We can now follow this update order:

--1) DATA MANAGER
--Stat is updated in data manager:
if QuestBindables[statName] then
    QuestBindables[statName]:Fire()
end
--2) QUEST MANAGER (self is quest)
QuestBindables["Pollen"].Event:Connect(function(amount: number?)
    local amount = amount else 1
    self.Progress += amount
end)
thick sail
#

So you won't have more than a few bindables at any given time

#

It's not that bad

vale atlas
thick sail
supple burrow
#

I don't think you need to delete the bindable itself, just the connection

supple burrow
thick sail
#

I support quests having multiple objectives

#

That's different

sacred wagon
thick sail
#

It's the quests

sacred wagon
thick sail
thick sail
#

I see why you'd use yours fair enough

#

I mean it definitely simplifies and generalises it

sacred wagon
thick sail
#

I was wondering what the true most efficient way would be

sacred wagon
#

Which all quests can use

supple burrow
#

How would you get an initial value before a stat updates with either of these approaches?

sacred wagon
#

This follows data oriented design

thick sail
#

Wdym exactly

sacred wagon
#

Idk tho ion really specializein the field of quest optimizations, alot of the methods i mentioned work fine for me :V

thick sail
#

Not every stat needs quests ofc

#

I'll consider that gg

cunning pagoda
#

If you're looking for a development team, a specific developer, or a manager, feel free to send me a direct message. I'm happy to assist

thorny parcel
#

chat

#

is using runservice bad to animate things in server?

#

like, things i want everyone to see

shrewd pier
#

if i were to start learning how to script using documentation, where would be the best place to start and where should I move on from there since it has so much

cunning pagoda
#

Need a dev or a singular dev? Let me know, and I’ll connect you with the right people!

vale atlas
cunning pagoda
vale atlas
#

and keep coming back to documentation to understand things better

shrewd pier
vale atlas
shrewd pier
vale atlas
shrewd pier
vale atlas
thorny parcel
#

nstead of a single function i think ill make 3

#

hope it fucking solves my issue 😭

#

or will it..

vale atlas
#

lol

#

why use runservice anyways

thorny parcel
#

idfk what to do anymore

vale atlas
#

cant u pre load the anims and play them on loop

thorny parcel
#

better than tween

#

no?

vale atlas
#

id guess tweens are more optimized for animations

#

run service would be better for physics-based animations or continuous updates

cunning pagoda
#

If you're looking for a development team, a specific developer, or a manager, feel free to send me a dm. I'm happy to assist

thorny parcel
cunning pagoda
vale atlas
thorny parcel
cunning pagoda
vale atlas
copper grotto
#
local Highlight = Steak:WaitForChild("Highlight")
local AlignPosition = Steak:WaitForChild("AlignPosition")
local ClickDetector = Steak:WaitForChild("ClickDetector")
local Attachment = Steak:WaitForChild("Attachment")

AlignPosition.Attachment0 = Attachment
AlignPosition.Responsiveness = 100
AlignPosition.MaxForce = math.huge

Highlight.Enabled = false

ClickDetector.MouseHoverEnter:Connect(function()
    if Highlight.Enabled == false then
        Highlight.Enabled = true
    else
        Highlight.Enabled = false
    end
end)

ClickDetector.MouseHoverLeave:Connect(function()
    if Highlight.Enabled == true then
        Highlight.Enabled = false
    else
        Highlight.Enabled = true
    end
end)

ClickDetector.MouseClick:Connect(function(player)
    local character = player.Character
    local HumanoidRootPart = character:FindFirstChild("HumanoidRootPart")
    local PlayerAttachment= HumanoidRootPart:FindFirstChild("Attachment")
    
    AlignPosition.Attachment1 = PlayerAttachment
end)
#

can someone help me why the align is delayed ?

vale atlas
copper grotto
#

i know the script looks nasty but its a very quick thing im testing

cunning pagoda
vale atlas
vale atlas
thorny parcel
vale atlas
#

rename the script to something. observe it in game when u test

thorny parcel
#

wait i did some digeridoo and i cant undo it

#

how do i get a part's orientation

#

as a cframe

#

and not as a vector3

#

this aint working

vale atlas
#

oh wait

vale atlas
thorny parcel
#

hope it works

vale atlas
#

also u can make a cframe from the vector too CFrame.new([your vector3 here])

thorny parcel
#

in performance

#

server's at 60/s

thorny parcel
regal hedge
#

theyre stupid

#

Dont listen to them

thorny parcel
#

oh wait nvm

regal hedge
#

just play the animation on the client and have the server tell it when to do so

thorny parcel
#

i calculate where to shoot in the server

#

and it depends on the position of the cannon

#

so yeah nvm lol

vale atlas
#

wasnt me

thorny parcel
thorny parcel
ashen birch
#

does anyone know why this spawns me at another players pad when testing in multiplayer

local PlayersInGame = {} -- {Player, Player, ...}

    local function TeleportPlayerIntoCenter()
    local RandomChosenPlayer = PlayersInGame[math.random(1, #PlayersInGame)]
    --------------------------------------------------------------------------
    for Index, Player in PlayersInGame do
        RandomChosenPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.AnswerQuestionTeleport.CFrame
        --------------------------------------------------------------------------------------
        TypeInBoxVisible:FireClient(RandomChosenPlayer)
        while CountDownInGame ~= 0 do
            task.wait(1)
            CountDownInGame = CountDownInGame - 1
            print(CountDownInGame)
        end
        if CountDownInGame == 0 and Answer ~= 4 then
            RandomChosenPlayer.Character.Humanoid.Health = 0
            table.insert(PlayersInLobby, RandomChosenPlayer)
            PlayersInGame[Index] = nil
        else
            for Index, Player in PlayersInGame do
                warn(Index)
                RandomChosenPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.TeleportPoints[Index].CFrame
                warn("Expected Pad:", Index)
            end
        end
    end
end```
proven jolt
#

hey so quick question - I'm making a movement system and need to know what the best solution would be for implementation - obviously it's risky script it on the client side because exploiting exists, but if I try to code it on the server side whilst handling inputs on the client, it becomes frustrating to use due to input delay. Should I lean to one side in particular or is there some kind of middle road I can take?

hasty mesa
#

and you can do speed checks etc

#

on the server

#

roblox does movement on the client but dosn't have any checks

ashen birch
rugged mist
#

anyone in here made a weighted rarity system with luck boost?

hasty mesa
proven jolt
# ashen birch ^

tbh I don't understand the context behind this code, but if you want only one player to move to a specific pad, you could use the reference for the random player without having to loop it. If you need to do a loop for the other players to move them elsewhere I'd make a check - if the player of the current index is equal to the randomly selected player, you continue the loop, but if not, you do whatever it is you need to do.
I'm not sure how effective this would be since I'm a little sleepy and I'm writing it in pseudocode

somber vault
#

idk how to make this non explotiable
never rlly made my own petsystme

#

can somone help me XD

#

cause i feel like a exploiter can just spam the remote

proven jolt
#

the best thing you can do to prevent exploits is giving only the required amount of information to the client in my opinion

somber vault
#

ye but are explotiers able to span the spawnpetremote

#

idk what to use

#

or can they

proven jolt
#

My memory is a little hazy here, but I think I saw something at one point

#

where the remotes would change names to a random string of numbers and letters

#

every time it was fired

somber vault
#

how do i do that

#

XD

#

cause then the server won't know the remote

ashen birch
somber vault
#

@proven jolt if you could help me i would be more than appricatie it

#

if you want we could hop on a call

proven jolt
#

to be honest I can't remember how it was done and I know it runs the risk of breaking some things that load a bit later after the remote is fired

somber vault
#

if you don't mind

#

oh

ashen birch
#

@hasty mesa

#

So I can use index

hasty mesa
ashen birch
#

I'm just teleporting them back to the pad they originally came from

#

But for some reason it's not going to the correct one

hasty mesa
proven jolt
ashen birch
#

Bro whay are tou even sayong

#

You saying

hasty mesa
ashen birch
#

Yes

#

Why ain't it teleporting then to the right one

hasty mesa
#

you teleport them to every player's pad in the game

#

and it stops at the last player's pad

thorny parcel
#

meow

ashen birch
hasty mesa
#

you store their location before they teleport and then tp them back

ashen birch
#

I've tried that to

hasty mesa
#

try again

compact frigate
#

dm me

solemn roost
#

does anyone know where to find a bunch of documentation for the accessory system

#

the creator hub doesnt seem all that good for it and whenever i search it up its all related to positioning accessories in the actual app

#

at first i felt like making my own system but i would prefer to use roblox's if it will work for me

somber vault
solemn roost
#

try to find a way into your own system

somber vault
#

idk it spawns the pet there

#

but dosent come with the row

#

cause im pretty sure you can't require scripts in an executor

#

or i should just make so the remotes changes the name every 0.1 second

solemn roost
#

you can require in local scripts

somber vault
#

server btw

somber vault
#

but when it stores the pets is all server

solemn roost
#

nah i mean executors

somber vault
#

i think

#

haven't used one in months

#

they can't do anything with servers i think

solemn roost
#

yes

#

unless theres a backdoor which can come in different forms

main hill
#

was wondering, is it bad if i use task.wait() without any cooldown to make it run instantly?

solemn roost
somber vault
main hill
solemn roost
#

should be fine

main hill
#

alright good ty

somber vault
#

ig profilestore

#

but i don't think it has backdoor

solemn roost
somber vault
#

i just don't want any data leaks on my pet system cause im plaining on a big project

solemn roost
#

ive never used it myself but i might have to try cause whatever im doing rn really sucks

somber vault
#

so is it explotipale proof

solemn roost
ashen birch
solemn roost
#

wdym by exploit proof?

ashen birch
#

@hasty mesa

thorny parcel
#

chat in a game full of proximity prompts, how would you handle them?

#

with the use of PPS

somber vault
solemn roost
somber vault
#

idk the only method i think its the remotefunction

round pivot
prime loom
#

hey, looking for a scripter to help me with updates on published games and development. if u have made ur own complete games and are looking for a long-term commission based job, dm me

mortal kettle
#

does custom proximity prompts cause players to lag roblox studio anyone know?

tidal owl
hasty cobalt
cunning pagoda
#

If you’re looking for a reliable dev team or need help finding developers for your project, feel free to DM me! I can connect you with the right people to make your vision a reality.

crude kettle
#

anyone know what this means

dusty lagoon
#

lf friends

vale atlas
#

im friend

frosty flax
#

guys help how do i script a text label to display coins in leaderstats. this is my leaderstats code. I can provide anything else you need. Please help :

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

local cash= Instance.new("IntValue")
cash.Name= ("Coins")-- Change "Cash" To Whatever Word Or Phrase You Want!
cash.Parent = leaderstats
cash.Value = 500 -- Change To Any Number

end)

vale atlas
frosty flax
#

ye

vale atlas
#

and is this not working?

#

whats the problem

frosty flax
#

this is leaderstats

#

i want this to be displayed on a textlabel

vale atlas
#

so u want a custom leaderstat?

#

not the default one roblox gives

frosty flax
#

i mean i have a leaderstat that shows me coin and money on it. but i want a separate counter on side of screen that basically disoplays the money on the label. like simulator games

vale atlas
#

so that brings in some type of data store functionality.
u need to get the coin number from somewhere

#

from where u are storing it

frosty flax
#

i have this

#

it stores everytime

#

but it doesnt update on counter

#

counter is the textlabel

vale atlas
#

I use the profile service library.
the way i get player data is

local profile = PlayerData.Profiles[player]
local cash = profile.Data.Cash

and i use this anywhere i want

frosty flax
#

so i use this ont the localscript fo r the text label?

#

this is teh script i use for data storage on roblox leaderboard:

local Players = game:GetService("Players")
local DataStoreService = game:GetService("DataStoreService")
local Saver = DataStoreService:GetDataStore("SaveLeaderstats")

Players.PlayerAdded:Connect(function(player)
local Data = nil
local success, errormessage = pcall(function()
Data = Saver:GetAsync(tostring(player.UserId))
end)

if success then
    if Data then
        for i, v in pairs(Data) do
            player:WaitForChild("leaderstats"):WaitForChild(i).Value = v
        end
    end
else
    error(errormessage)
end

end)

local function Save(player)
local SavedData = {}
for _, v in pairs(player.leaderstats:GetChildren()) do
SavedData[v.Name] = v.Value
end

local success, errormessage = pcall(function()
    Saver:SetAsync(tostring(player.UserId), SavedData)
end)
if not success then
    error(errormessage)
end

end

Players.PlayerRemoving:Connect(Save)

game:BindToClose(function()
for _, v in pairs(Players:GetPlayers()) do
Save(v)
end
end)

vale atlas
frosty flax
#

ok

#

so can u put exmple bro

#

i ahve no coding knowledge

#

this is all yt

vale atlas
#

the example is not that simple. u need a full data store and template to make it work.
look at this tutorial for profile service. https://www.youtube.com/watch?v=qX62XC6SUKg

The Profile Service Library makes saving your Player's data an extremely simple process! Profile Service uses Roblox's Data Stores, but handles all the complex work for us.

Check out the Profile Service Documentation here: https://madstudioroblox.github.io/ProfileService/

Subscribe for more Roblox Scripting Tutorials!

Join my Patreon to suppo...

▶ Play video
frosty flax
#

ok

#

thanks

#

is there no way where the textlabel just copies the numberr it sees on the leaderboard?

vale atlas
frosty flax
#

oh okay

#

thanks

#

whats the red underline? where's the error?

vale atlas
#

bruh

frosty flax
#

??

vale atlas
#
local player = game.Players.LocalPlayer
local leaderstats = player:FindFirstChild("leaderstats")
local data= leaderstats:FindFirstChild("data")
local value= data.Value

here. try to understand what everything does. dont just copy paste

frosty flax
#

ok

fading pulsar
glossy sentinel
#

im having trouble learning CFrames, can someone give me a brief description about this topic

ruby iron
glossy sentinel
#

The entirety ig

peak sphinx
gray shuttle
#

is there any scripter here that works on scripting animations I need some help with a particular problem

lapis path
#

Is there a universal tween script to just change the size of every button so when you hover it gets bigger and click it gets smaller or nah?

spiral jungle
junior horizon
#

Can someone help me, There’s no errors but it won’t work

fringe lake
#

My script isn't working. It should change gravity when the player jumps. -
local function toggleGravity(character)
if character and character:FindFirstChild("Humanoid") then
local humanoid = character.Humanoid
local currentGravity = workspace.Gravity

    if humanoid:GetState() == Enum.HumanoidStateType.Freefall or humanoid:GetState() == Enum.HumanoidStateType.Seated then
        
        workspace.Gravity = -currentGravity
        humanoid.PlatformStand = true 
    else
        
        workspace.Gravity = currentGravity
        humanoid.PlatformStand = false 
    end
end

end

hollow fable
#

so whats happening

#

is it just not doing anything

#

@fringe lake

fair ridge
#

oy if anyone is bored and wants to join me on a LONG TERM project for a battlegrounds game then.. DM ME

hot viper
#

hey smart scripters

#

i am at a loss

#

so ive been trying to make a script for a pogo stick that you cant leave(spawns with you as you load the game) and i cant even get the pogo stick to work

#

i have 0 knowledge like damng

buoyant token
hot viper
peak sphinx
safe nova
#

anyone know what is going wrong with this script?

somber vault
safe nova
#

can you explain a bit more?

somber vault
#

The cameras camerasubject property gives the camera an object to focus on, by default it's your humanoid root part. So you gotta change that

somber vault
#

Didn't see the error lol

safe nova
#

where at in the script do i add the wait for child

somber vault
#

Camfolder:WaitForChild("Cam2").CFrame

#

Also watch some beginner tutorials man use some functions

safe nova
#

i will its just the start of the game and i havent added the part that will fire the script

#

well cutscene

wintry ore
#

Im trying to fix the whitelisted groups thing

#

so it also lets the group id that's listed have the gamepass

coral star
#


local QuantumEngine = game:GetService("QuantumCore")
local PizzaPhysics = require(694201337, "PizzaPhysics2D") 

local button = Instance.new("RoundRectButton")
button.Shape = "HyperCircle"
button.QuantumState = "Superposition"
button:SetAttribute("Spin", 1/2) 



-- Инициализируем гравитацию
Physics2.0Service:SetGravity(UDim2.new(0, 0, -math.pi, 0)) 

local unicornParticles = Instance.new("ParticleDreamer") 
unicornParticles.MagicType = "RainbowDarkMatter"
unicornParticles:LoadParticleTemplate("UnicornTears")

function CheckCollision(obj1, obj2)
    if obj1:IsInFifthDimension() or obj2:IsInFifthDimension() then
        return "Schrodinger"
    end
    return PizzaPhysics.Collide(obj1, obj2, {SauceLevel = "Extra"})
end
    
    if button:IsPossessed() then
        button:ApplyQuantumForce(
            Vector3.new(math.random(-666, 666), 0, 0),
            Enum.SimulationSpace.Underworld
        )
    end
    
    if button:IsMouseOverParallelUniverse() then
        button.Gravity = PizzaPhysics.CalculateCheesePull(
            game.Players.LocalPlayer.PizzaInventory.Mozzarella
        )
    end
end

script.Parent.BigBang:Connect(function() 
    QuantumEngine:TeleportUIToDimension(button, "Backrooms")
    game:GetService("BlackHoleService"):AccretionDiskFade()
end)

local х = 5
local х = 10

DebugService:LogParadox(х + х)

Why dont works plssss help

viscid matrix
red pelican
# viscid matrix um

You haven't seen what the ai comes up with when you write anything non code related as comments

#

That's some gold mine of pure confusion.

gloomy radish
#

Guys i got a question semeone know how to make ASCII image in PNG ?

tacit pagoda
#

Hi!

My team needs a few scripter- we got everything but ppl who script...

If interested, pls dm me.

tender gulch
#

Can someone please give me a beginner’s youtube playlist that will teach me how to script?

heavy sleet
#

Am I missing something? My characters are moved via their primary part using workspace:BulkMoveTo and then they can choose to take over their own movement with the below code however when switching they just freeze in place.

-- forgive the formatting, i pasted directly from the script
            local x,y,z = char.PrimaryPart.CFrame.Position.X, char.PrimaryPart.CFrame.Position.Y, char.PrimaryPart.CFrame.Position.Z
            local s,e = pcall(function()
                character.Humanoid:MoveTo(Vector3.new(x, y, z))
            end)
            print("moving")
            print(s, e)```

Here is the console log:
```yml
-- this is the print from the above code.
 17:54:21.481  true nil  -  Server - Ai:24
  17:54:21.481  moving  -  Server - Ai:23
  17:54:21.481  true nil  -  Server - Ai:24
  17:54:21.481  moving  -  Server - Ai:23
  17:54:21.481  true nil  -  Server - Ai:24
  17:54:21.502  moving  -  Server - Ai:23

#

the char is the target character. just some context

tacit pagoda
paper lichen
#

if you got no funds no one will work for you

rare basin
paper lichen
cerulean shell
#

Just wanting to ask before I try to brute force this like an idiot, functionally in the roblox engine would it be possible to create a script holding a variety of variable functions that can be called in different scripts? I'm working on a fighter and I've boiled down the types of attacks to 5 primary types, so rather than manually coding in the types stats and interactions with block, dodge, etc every time I want to see if I can create the functions so that I only have to code the unique aspects of each attacks rather than everything from scratch.

Just need a yes or no to whether or not it's possible because I don't know much about LUA and I don't wanna bash my head into a wall for nothing.

rare basin
#

What else am i supposed to do?

cerulean shell
#

I'll take that as a yes, if so, monkey with a typewriter time.

paper lichen
royal lake
#

can sm1 please just fix the gamepasses in my game, i did everything right but when i try to buy the gamepass it doesnt work (willing to pay 500+ robux for this short job)

tiny obsidian
#

bro your mom

copper apex
carmine yacht
#

why are the names different

#

LastLoginFormatted and LastPlayerFormatted

#

or is that intentional

copper apex
carmine yacht
#

they are all readable

#

but why would you ever save that

#

better to just save the number no

copper apex
#

Yeah, as i said I was just testing

carmine yacht
#

i see

copper apex
carmine yacht
#

👍

rare basin
somber vault
#

what you guys think for a cartoony vibe

#

not a ui dev

tiny obsidian
#

w

carmine yacht
last glacier
naive yacht
#

do you get any console errors?

naive yacht
#

I believe you need to convert it to CFrame

heavy sleet
#

I think that fixed it

naive yacht
heavy sleet
naive yacht
#

if both are trying to run at same time could cause conflict

heavy sleet
last glacier
heavy sleet
#

Just testing a couple things

last glacier
#

alr

heavy sleet
#

That fixed it

#

Thanks man

#

I was thinking it was to do with anchors but manually changing the anchor state didn’t do anything 🤷‍♂️

#

I never thought to make a script as it didn’t matter to me at least sinxe it usually shouldn’t

heavy sleet
last glacier
#

ah alr great

#

yk whats actually crazy

#

chat gpt fixed your promblem

heavy sleet
#

Yuck

last glacier
#

problem *

heavy sleet
#

I did ask them assistant tbh in studio but it’s so shit

last glacier
#

how much would you pay for a plugin with ai like chat gpts

heavy sleet
#

0

#

Because I write my own code

last glacier
#

smh

#

one of them

heavy sleet
#

I said 0

#

I pay 0 for ai stuff

last glacier
#

ai or not if it generates money

#

its valuable

heavy sleet
#

I laugh at those people selling ai generated stuff

last glacier
#

well theyll be laughing at you soon buddy ai is one of the fastest growing markets

#

selling ai generated stuff is crazy tho

heavy sleet
#

Its fast growing because it’s a craze right now

last glacier
#

maybe ai software

heavy sleet
#

Doesn’t mean it’s going to take peoples jobs

last glacier
#

it wont fully take jobs of the markets but theyll only need enough people to make sure the ai is working correctly

#

so the volume of people needed will decrease

naive yacht
#

AI is actually incredibly useful for coding, code is about efficiency and if you can have AI generate basic code for you and troubleshoot your bugs, it can greatly enhance projects, coding time, etc

naive yacht
#

You should never rely 100% on it tho, double check everything it does

last glacier
#

for a software on roblox studio

heavy sleet
naive yacht
#

i can ask chatgpt if i need specific assistance

heavy sleet
#

I have programmed for the last 5 years and never needed to use ai

last glacier
last glacier
#

so now you have used ai

#

moahahahah

heavy sleet
naive yacht
#

saving time with generic code

heavy sleet
#

No one uses stack overflow apart for children

naive yacht
#

Do you have a coding background?

heavy sleet
#

Mhm

#

I am a plug-in developer for a Minecraft server right now

last glacier
#

lmao times are changing someone with less than 3 months experience can script a full game using ai .

heavy sleet
#

I’ve wrote in many languages

naive yacht
#

Nice, have you had any formal education in code?

#

Or self-taught?

heavy sleet
#

Self taught

naive yacht
#

Ahh

heavy sleet
#

Started when I was around 11, got my first laptop when I was 13

#

I was coding from a phone

#

Until then

naive yacht
#

Figures, when I was completely self-taught I thought it was a shame to use any code assistance

heavy sleet
#

That’s not the point

naive yacht
#

Then I went to college doing coding, and learned that its not bad

heavy sleet
#

So we’re trying to convince

naive yacht
#

Its helpful, saves time, etc

heavy sleet
#

No it’s not

#

And it does not

latent gust
#

you sound like a fuckin bozo lol

naive yacht
#

From my own experience, it very much does

heavy sleet
heavy sleet
last glacier
#

ai saves time

#

its a fact

naive yacht
heavy sleet
heavy sleet
last glacier
#

i saved time

#

do you understand that concept

heavy sleet
latent gust
#

look bro youre talking to minecrafts best plugin developer right now

last glacier
#

yeah looking for your mistake

naive yacht
#

Imagine writing 100 lines of code to generate a shield for a minecraft player, AI could do that it 10 seconds when it would take you 20 minutes

naive yacht
#

(random numbers just for example)

latent gust
#

put some respect on his name

heavy sleet
#

Sure dude let’s generate some code 🤣

last glacier
naive yacht
heavy sleet
latent gust
#

technically its not a bug when it doesnt work in the first place

naive yacht
#

You get an idea of what you need, then refractor and edit to make it fit

last glacier
#

re phrase

last glacier
heavy sleet
last glacier
#

what does that say about your 5 years of experience

heavy sleet
#

Was an engine issue

naive yacht
last glacier
#

?

naive yacht
#

And in real-world jobs, time is money, so you have to try to complete everything with as little time as you can

heavy sleet
naive yacht
heavy sleet
naive yacht
#

But you want to get a working prototype going, test, fix, test again, implement

#

Code is done in iterations

heavy sleet
#

Idk why you guys care so much about me not liking ai I’m not using it even after this convo

thick sail
#

@sacred wagon Hi again! Thought I'd ask you a quick question regarding yesterday's discussion.

Since most of the quests I'll be creating will be based on saved stats (wins, kills, etc.), I was thinking about updating the progress of the quests directly inside my data saving service to skip the need for a RBXScriptSignal. What do you think?

cunning pagoda
#

ws yall

thick sail
#

In other words, quests would default to be updated inside the data service UNLESS a Signal is specified

naive yacht
heavy sleet
#

For you sure because you’re newer

#

Until you get more experience it won’t be

cunning pagoda
naive yacht
#

useful is subjective

#

not objective

heavy sleet
heavy sleet
#

I have more experience than thy so therefore it is not useful to me

naive yacht
#

well you might not have use for a hammer in making code, that doesnt make a hammer objectively not useful

last glacier
heavy sleet
last glacier
heavy sleet
#

Look in my bio lol

#

At the very bottom

#

You’ll see

#

The truth 😮

last glacier
#

oh

naive yacht
last glacier
#

hahahah.

naive yacht
#

curious how many years of experience you have now

naive yacht
#

nice nice, then I have equal to more experience than you

heavy sleet
#

I guess technically 7 but I don’t count my programming from 11-13

heavy sleet
cosmic dome
#

what is best AI for roblox scripts would you guys say

naive yacht
#

You will have to edit it to make the implementation work likely

cosmic dome
#

yea i've noticed that

naive yacht
#

No AI is going to be a 100% solution to do all code, but when used properly can help you skip over a bunch of tedious coding and go straight to refractoring and fixing

cosmic dome
#

I've been using it against claude and claude seems to get to the results faster in terms of needing less prompts to get the desired thing but im wondering if there is any that is probably better in any other way

naive yacht
#

Just make sure you send all relevant code you already use when asking a prompt

#

Like lets say you want it to make a datastore for your game, its going to need access to all code that has relevant data

#

Less is not more when it comes to AI, share all your scripts that it should be connecting to

inner bridge
#

200k one

inland bay
#

claude is good its reasoning just isnt the best

#

o1 still gaps it in that regard

#

even r1

fluid sierra
#

help on how to fix this i tried multiple times

slender wharf
#

what is a method of creating a confetti particle when buying a gamepass?

mortal jackal
#

I need a goated full stack scripter, does anyone know a guy who knows a guy? Or is possibly just that guy?

sacred wagon
#

Worth a shot

somber vault
thorny marsh
hoary cedar
#

Each area of development has its own tech stack

somber vault
#

local and server right?

hoary cedar
#

Front-end typically refers to UI, but in the context of Roblox, it's okay to say that

thorny marsh
somber vault
mortal jackal
rose harness
#

does any1 know how i can make a game like get big simulator or be grass or be a fish which has diffrent charectors

hoary cedar
#

Sure, you can script UI, but can you do it properly?

#

Can you do it efficiently?

somber vault
#

ok

thorny marsh
#

@hoary cedar how did you learn to start scripting?

hoary cedar
thorny marsh
hoary cedar
#

Ask questions here

crisp steppe
#

who here knows OOP looking for comm work

acoustic maple
hoary cedar
nova cloud
#

can someone explain to me why the dragdetector isnt moving the part wherever the camera is looking via y axis?

    dragDetector.DragContinue:Connect(function(player: Player, _, viewFrame: CFrame)
        local att = self:getLookAt(player)
        
        if att then
            local Y = viewFrame.LookVector.Y
            att.CFrame = CFrame.new( Vector3.new(0, (Y * 5), -5) )
        end
        
        -- // do magnitude checking to see if item is far from player and drop
        local distance = (self.item.Position - player.Character.PrimaryPart.Position).Magnitude
        if distance > dragDetector.MaxActivationDistance then
            self.alignPosition.Enabled = false
            self.alignPosition.Attachment1 = nil
            self.item:SetAttribute("CurrentDrag", nil)
        end
    end)
nova cloud
somber vault
#

yo im making a combat system kit and maybe sell, if i use somebody elses animation that they post on toolbox is that bad can they do something?

#

if your selling it you should use your own shit

loud salmon
#

Is there any scripture that work full time but don’t mind being paid based off percentage

uncut cloud
#

yo how do i get into camera scripting

#

like i see some games with cool camera systems like a sword swinging with the camera

#

or really good gun recoil systems

#

how do i do ts

celest cipher
#

freddy fazbear died in the pizzeria for you. He defeated death, he defeated your sins. He did this for you, and he gave us the freddy fazbear pizza, spread the lore.(This is a joke)

Pizza died on the crust for you. He defeated chicken, he defeated your hunger. He did this for you, and He gave us stuffed crust, spread the sauce. (This is a joke)

remote mirage
#

yippie i finally made a bug free dash system, baby steps one at a time fr fr 😎😎 i fixed double input bug, animation bug, and turning bug

#

your cooked if you pay for a course

#

honestly if u willing to part with the money go for it

median tree
#

It’s free to learn scripting

#

I would never recommend buying a course

remote mirage
#

i just steal scripts

bleak glade
#

is it possible to somehow send a frame in a webhook as an image? im not sure if i can externally upload it to imgur from a script as a viewport or smth

hoary cedar
#

"frame in a webhook"?

remote mirage
#

does he know what a webhook does

bleak glade
#

its hard to explain exactly what im trying to do, but people draw, its made into a frame, and theres a report option to send as a webhook but im not sure how to upload that drawing to the webhook

remote mirage
#

ts would be 100% easier in minecraft

remote mirage
bleak glade
#

thats why i wasnt sure if it was possible

remote mirage
#

this is also gonna quickly become more complex because you are doing the drawing thing

#

that's why in every other drawing game they just say report on discord or votekick

bleak glade
#

ill show what im doing

bleak glade
remote mirage
#

this reminds me of that ai that was just a bunch of dudes answering manually

bleak glade
remote mirage
#

love to see a harry potter game

#

all that for one feature isn't really worth it imo

#

because im assuming its NOT just a drawing game

bleak glade
bleak glade
remote mirage
#

i would just do the report method ngl you have more important things to work on

nova cloud
# bleak glade

sending a drawing into a webhook is just not worth the struggle honestly

bleak glade
nova cloud
bleak glade
#

wdym how do i track reason

nova cloud
bleak glade
#

and theres no real way to track it without a staff in the game so

#

having the staff deleting it feels easier

nova cloud
bleak glade
#

how

#

i already made the system lol

#

ill show hold on

#

the button is made visible to that client if theyre staff, staff checking is also done on the server when the remote is sent

remote mirage
#

LOL

#

bro is gonna have some chinese guy watch it 24/7

remote mirage
#

Hello! im Quacks, i know a bit in scripting/coding, i consider myself as a very unique person.

bleak glade
solemn roost
#

does anyone know how accessories work
i just wanna like make some and position them myself on a character for a game but i cant find any docs on this

nova cloud
solemn roost
#

it seems like its better to use them than make my own system

#

if someone wants to dispute that i would welcome it too

olive pelican
#

hi

#

I WANNA LEARN FOR FREE

solemn roost
olive pelican
olive pelican
solemn roost
#

how do you know if theyre bad

olive pelican
solemn roost
#

you didnt learn?

#

what was confusing

olive pelican
#

i watched more than 1 youtuber that teaching scripting

olive pelican
#

@solemn roost i recommend you to just

solemn roost
#

the examples didnt teach you?

olive pelican
#

try to teach me the basics

solemn roost
#

what do you want to know tho

olive pelican
olive pelican
olive pelican
solemn roost
#

ye i figured

olive pelican
#

find an easy way

#

and the most important things

solemn roost
#

do you know variables?

olive pelican
#

try to bring examples from any games in ROBLOX

olive pelican
solemn roost
#

theyre like variables in math

olive pelican
#

variables like a BOX

solemn roost
#

but you can assign more than just numbers

solemn roost
olive pelican
#

local (give it a name) and then write down the locations of data you wanna use

solemn roost
#

yes

#

good that you used local

olive pelican
#

is it the most used one??

solemn roost
#

most of the time you wanna use local

#

it has to do with the scope of the variable

#

but snice you said you know nothing it isnt important right now

olive pelican
#

important of what??

#

what do you mean?

solemn roost
#

never mind

#

do you know if statements

#

and loops

olive pelican
#

if statement i know

#

about the loops is about like

#

for and give it a numbers

#

1, 10 ,1

#

and write DO

#

and then enter

#

and then put a command inside it

solemn roost
#

i think the problem is youre not thinking conceptually

#

youre trying to memorize the exact words

olive pelican
#

but i never made a game before

solemn roost
#

you should do that

#

but try to think about what the codes actually doing

#

this comes with practice

olive pelican
#

the loops means

#

how do i say it

#

do the command over and over again

#

until it stops at the time you choosed

#

3

#

the loop will do it three times in the row

#

can you try to help me to find a good exampled of these three??

solemn roost
#

which series did you watch

olive pelican
#

propretis

solemn roost
olive pelican
solemn roost
#

who made it

olive pelican
#

and fuction with a if statement

olive pelican
solemn roost
#

nah like what channel on youtube

olive pelican
#

but every video i watch, i understand how do it works

inland bay
#

no channel

#

read the docs

#

you wont learn shit from videos

solemn roost
#

i generally agree

olive pelican
inland bay
#

*talking abt syntax and methods

#

computational thinking etc

#

and concepts

#

then sure watch vids

solemn roost
inland bay
#

yh

solemn roost
#

this is how you develop that

#

thats how i learned

inland bay
#

or reversing open source stuff

olive pelican
#

it hard

solemn roost
#

it is hard when youre starting out

inland bay
#

its not meant to be easy 💔

solemn roost
#

you gotta keep trying

olive pelican
#

and i have some ideas to make but i still coudlnt because i still dont know everything

solemn roost
#

start small

olive pelican
solemn roost
#

well dont treat videos like a teacher you're the one who does the learning
they show you the basics

olive pelican
#

@solemn roost so do you wanna teach me or not??

solemn roost
#

and then youre supposed to go from there by reading docs

inland bay
#

i'd honestly start with docs

#

then go to vids

solemn roost
#

docs for the basics and vids for specific things?

#

i think it is useful to have someone explaining their code

inland bay
#

idk I actually havent looked for roblox basics vids

olive pelican
#

@solemn roost it would be usefull if you at least tried to teach me

inland bay
#

idk i cant learn from videos personally

#

hence I am against them

olive pelican
#

try to teach me

#

at least your mind will gain experince from it

solemn roost
olive pelican
inland bay
olive pelican
#

not everything in once..

restive flicker
#

Hello I would really appreciate if someone could help me with an issue I am having in my game.

So I need my object's physics to always be active—even when it's not moving—so that knockback collisions can happen. But the physics engine shuts off the objects physics when it's still (not moving) . I tried adding continuous force when it stops, but it only works sometimes.

if anyone has experience and can provide support I would really appreciate it

inland bay
#

to see why it works sometimes

restive flicker
#

so I did that and the problem is it keeps going to sleep

solemn roost
#

say something you need help on

inland bay
#

sorry

restive flicker
#

and its almost like you have to perfectly time it where its awake and hit it for it to work

inland bay
#

whats the game

olive pelican
inland bay
#

or purpose of the object

#

or this impl etc

restive flicker
#

the purpose is to have continues physics active for example the bumper cars game have u played it?

inland bay
#

i havent but i cant imagine ig

solemn roost
solemn roost
#

if you want to find all the different operators you can look that up on the lua 5.1 docs

#

or the roblox one

olive pelican
#

NOT THAT............

solemn roost
#

?

olive pelican
#

i mean what can i used it for

solemn roost
#

oh

olive pelican
#

dont show me the cooding

solemn roost
#

ok, well what are you trying to do

olive pelican
#

show me the design or the things

solemn roost
#

just name something

restive flicker
olive pelican
#

hmmm

inland bay
olive pelican
#

open the door and close it

inland bay
#

or just server

olive pelican
solemn roost
#

so

restive flicker
olive pelican
restive flicker
#

can I add u to my experince ?

inland bay
solemn roost
#

im not giving code

#

in your script you set up a variable (lets call it toggle) that is either true or false

inland bay
solemn roost
#

that data type is called boolean

inland bay
#

@losingmysavings

solemn roost
#

lets say to trigger the door you use proximity prompts, i wont go into detail on how

#

when the prompt is triggered, you change the variable to the opposite of whatever it is

inland bay
#

@restive flicker have you tried asking sonnet or sm

solemn roost
#

then you want to run different code depending on what exactly toggle is equal to

#

thats where you use if statements

olive pelican
#

hmmm good

restive flicker
#

sorry im new here so i wouldnt know

inland bay
#

its an llm

olive pelican
#

@solemn roost can i try to change the door position to just open and close?

inland bay
#

mb for the phrasing