#code-discussion

1 messages · Page 72 of 1

wise meadow
#

Why u have AI commenting on ur code?

static coral
#

when the server changes the value objects’ properties, it will be replicated to client so you can just use :GetPropertyChangedSignal. only use remotes if u r not using valuebase objects and you need to replicate data to player

wise meadow
#

sounds like u using AI to code

cerulean perch
wise meadow
#

Ill tell u why trust

cerulean perch
#

Why what

wise meadow
#

Cause, I guarantee your using AI to code

#

🤓☝🏻

#

Otherwise you wouldn't need AI comments

#

you'd just comment urself the understanding of the code so that the bozos that look at the applications think ur a coder

cerulean perch
#

Dude...

#

I don't need to prove to anyone anything
I know my self

#

They just so strict about their requirements

static coral
cerulean perch
#

...

wise meadow
#

if you knew how to code, it wouldnt be a problem trust

#

☝🏻🤓

#

(they rejected my application btw, but thats cause i didnt put any comments explaining my code, lmao i just comment in my code as a way of organization)

cerulean perch
#

I will try to rephrase the ai comments and use these ai detectors to make sure

wise meadow
#

lmao

#

🤣

ember nimbus
#

if you understand your code it can't be that hard

wise meadow
#

fr tho

#

-- This prints hello in my console

#

(thats his only understanding of his code)

weak radish
cerulean perch
ember nimbus
wise meadow
cerulean perch
wise meadow
#

or for commissions so the person getting my code has some sort of understanding whats safe to edit and whats not

ember nimbus
cerulean perch
#

Will try again

ember nimbus
#

-- does 1 + 1 is not a good comment for the line 1 + 1

weak radish
weak radish
wise meadow
#
-- Defines the LocalScript, which runs on the client side for each player
local Players = game:GetService("Players") -- Gets the Players service to access player data
local ReplicatedStorage = game:GetService("ReplicatedStorage") -- Gets ReplicatedStorage to handle server-client communication
local StarterGui = game:GetService("StarterGui") -- Gets StarterGui to manage the player's GUI

-- Gets the local player (the player running this script)
local LocalPlayer = Players.LocalPlayer

-- Creates a RemoteEvent in ReplicatedStorage to send announcements to the server
local AnnounceEvent = Instance.new("RemoteEvent") -- Creates a new RemoteEvent instance
AnnounceEvent.Name = "AnnounceEvent" -- Sets the name of the RemoteEvent
AnnounceEvent.Parent = ReplicatedStorage -- Parents the RemoteEvent to ReplicatedStorage

-- Creates a ScreenGui to hold the announcement GUI
local ScreenGui = Instance.new("ScreenGui") -- Creates a new ScreenGui instance
ScreenGui.Name = "AnnouncementGui" -- Sets the name of the ScreenGui
ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") -- Parents the ScreenGui to the player's PlayerGui

-- Creates a Frame to act as the main GUI window
local MainFrame = Instance.new("Frame") -- Creates a new Frame instance
MainFrame.Size = UDim2.new(0, 300, 0, 200) -- Sets the size of the Frame (300x200 pixels)
MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100) -- Centers the Frame on the screen
MainFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) -- Sets the background color to dark gray
MainFrame.BorderSizePixel = 0 -- Removes the border
MainFrame.Parent = ScreenGui -- Parents the Frame to the ScreenGui

-- Creates a TextBox for players to input their announcement
local TextBox = Instance.new("TextBox") -- Creates a new TextBox instance
TextBox.Size = UDim2.new(0, 280, 0, 100) -- Sets the size of the TextBox (280x100 pixels)
TextBox.Position = UDim2.new(0, 10, 0, 10) -- Positions the TextBox 10 pixels from the top-left of the Frame
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255) -- Sets the background color to white
TextBox.TextColor3 = Color3.fromRGB(0, 0, 0) -- Sets the text color to black
TextBox.PlaceholderText = "Enter your announcement..." -- Sets placeholder text for the TextBox
TextBox.Text = "" -- Initializes the TextBox with empty text
TextBox.Parent = MainFrame -- Parents the TextBox to the MainFrame

-- Creates a TextButton to submit the announcement
local SubmitButton = Instance.new("TextButton") -- Creates a new TextButton instance
SubmitButton.Size = UDim2.new(0, 280, 0, 50) -- Sets the size of the button (280x50 pixels)
SubmitButton.Position = UDim2.new(0, 10, 0, 120) -- Positions the button below the TextBox
SubmitButton.BackgroundColor3 = Color3.fromRGB(0, 120, 215) -- Sets the background color to blue
SubmitButton.TextColor3 = Color3.fromRGB(255, 255, 255) -- Sets the text color to white
SubmitButton.Text = "Post Announcement" -- Sets the button's text
SubmitButton.Parent = MainFrame -- Parents the button to the MainFrame

-- Function to handle the button click event
local function onSubmitButtonClicked()
    -- Gets the text from the TextBox
    local announcementText = TextBox.Text
    -- Checks if the text is not empty
    if announcementText ~= "" then
        -- Fires the RemoteEvent to send the announcement to the server
        AnnounceEvent:FireServer(announcementText)
        -- Clears the TextBox after submission
        TextBox.Text = ""
    end
end

-- Connects the button's MouseButton1Click event to the onSubmitButtonClicked function
SubmitButton.MouseButton1Click:Connect(onSubmitButtonClicked)
#

This is how bro codes

#

I told grok to do this btw lmao

#

😭

#

cause im on my phone

#

and i like trolling this guy

#

🤓☝🏻

#

🤣

#

i couldnt imagine commenting every line

#

thatd be wild behavior

#

goood i killed chat

#

☝🏻🤓

somber vault
#

how the fuck do i make this work

local list = {}
    local newList = {}
    
    script.Parent.Visible = true
    
    local temporaryInv = {}
    
    for i, v in plr.Inventory:GetChildren() do
        table.insert(list, v:GetAttribute("Price"))
        table.insert(temporaryInv, v)
    end
    
    table.sort(list)
    
    local x = 1
    
    repeat
        for i, v in temporaryInv do
            if v:GetAttribute("Price") == list[x] then
                local newFrame = replicatedStorage.GuiElements.ItemTemplate:Clone()

                local model = v:Clone()
                model.Parent = newFrame.ViewportFrame.WorldModel
                model:PivotTo(newFrame.ViewportFrame.WorldModel.Test:GetPivot())

                newFrame.NameString.Text = model.Name

                newFrame.Parent = script.Parent.InventoryElements.ScrollingFrame
                
                table.remove(list, list[x])
                table.remove(temporaryInv, table.find(temporaryInv, v))

                x += 1
            end
        end
    until #list == 0
    print("finished sorting")
fresh cloud
#

you should see the errors in the output

#

what is in line 27?

vocal tusk
#

are animations globally activable only via server? and is it laggy?

bleak glade
somber vault
charred orchid
#

Hello Im RoModel and over the last 5 months my devs have been storming ideas on games until we made better homepage but we have gone bankcrupt in funding and have decided to sell the game you can play it below and the price im selling it for can be negotiated Dm me for more info[payment lowest 5k robux]
www.roblox.com/games/86727184540042/Better-HomePage

fresh cloud
somber vault
# fresh cloud send the hole code
script.Parent.Parent.HUD.Inventory.MouseButton1Click:Connect(function()
    local list = {}
    local newList = {}
    
    script.Parent.Visible = true
    
    local temporaryInv = {}
    
    for i, v in plr.Inventory:GetChildren() do
        table.insert(list, v:GetAttribute("Price"))
        table.insert(temporaryInv, v)
    end
    
    table.sort(list)
    
    local x = 1
    
    repeat
        for i, v in temporaryInv do
            if v:GetAttribute("Price") == list[x] then
                local newFrame = replicatedStorage.GuiElements.ItemTemplate:Clone()

                local model = v:Clone()
                model.Parent = newFrame.ViewportFrame.WorldModel
                model:PivotTo(newFrame.ViewportFrame.WorldModel.Test:GetPivot())

                newFrame.NameString.Text = model.Name

                newFrame.Parent = script.Parent.InventoryElements.ScrollingFrame
                
                table.remove(list, list[x])
                table.remove(temporaryInv, table.find(temporaryInv, v))

                x += 1
            end
        end
    until #list == 0
    print("finished sorting")
end)
zenith night
#

it would be cool to have a competition on who can make the most complicated way of printing hello world

somber vault
proud idol
#

no

#

lmao copy and paste

#

the table.remove(list,list[x*)

#

table.remove parameters is the array where u gonna delete a value, and the position of the value to remove

#

so you'd have to do

table.remove(list,x)

@somber vault

#

its why ur script is timing out bc how u have it atm its not actually deleting anything off the list

proud idol
rapid gyro
#

yo

#

anyone wanna see my webswinging in studio

#

i mostly script so dont focus on animation

mortal sail
#

WHY IS THERE NO PASS THE BOMB MODEL ANYWHERE?!?!!?1

wise meadow
ivory temple
#

i don't know if you're blind or not but the problem was that his script was yielding for a loop; he can fix everything else himself as he did not ask for it

#

"holy shit this server" yup, ur right buddy! 🤣

normal sinew
#

can yall give me a plugin idea?

rough oasis
#

Um so, I'm new to scripting. Any ideas on some small projects I could potentially make as a beginner?

summer scarab
serene terrace
normal sinew
rough oasis
lethal smelt
#

is there any significant performance difference between remote functions and remote events anyone know? sob

serene terrace
lethal smelt
#

working on a custom inv system

#

thank you e_awesome

serene terrace
lethal smelt
#

yeah makes a lot more sense taking that into consideration lmao

#

need to use rfs for block placement, client creates a mock and the rf returns true or false based on if the server validated the block

mental pond
#

I understand the basics of coding and what most things. I want to try to make a small game project to understand game making and such, but I dont know really how. I kinda dont know what to make and when I hit a roadblock I dont really know how to fix it. What is something that is small and easy to create in order to understand scripting and game making more

proud idol
#

you may know the basics but if you don't know how to apply the concepts then theres not much use

#

luckily its not that hard to learn

mental pond
#

Do you know any resources that can help teach it

#

I would like to start small since I dont want to jump into complex stuff without understanding game design

proud idol
#

because designing systems like that can be done in multiple ways

#

but i can provide with some examples

mental pond
proud idol
# mental pond Yea id apprecaite it

Lets start with something easy, suppose your game is an obby, and you want have a brick that when the player touches it, they get respawned to the start, how would you do that?

mental pond
#

that last part might be a little iffy

serene terrace
proud idol
proud idol
#

Now what if you want to add kill bricks that you create in game?

frail yarrow
#

it wasnt even yielding

#

the issue was that it wasnt

mental pond
frail yarrow
#

but you wouldnt know the difference

serene terrace
mental pond
proud idol
# frail yarrow but you wouldnt know the difference

the issue with that script was that the condition to close the loop was when the list was empty, but the way the dude wrote the table.remove was wrong and thus the loop would infinitely run without yields, timing it out

serene terrace
#

basically a tweening button module

ivory temple
frail yarrow
ivory temple
#

one google search is all it takes to prove u wrong

frail yarrow
mental pond
#

and also state its position in the workspace

frail yarrow
#

you don't know what yielding is

#

simple as

ivory temple
#

search it up rn

frail yarrow
#

define it

ivory temple
#

i JUST searched it up and the first answer that came up was a devforum post explaining exactly what ive said

frail yarrow
#

i understand what yielding means

#

you clearly dont

ivory temple
#

i will send you a link in dms

frail yarrow
#
while true do end
``` will never yield
proud idol
serene terrace
umbral carbon
#

It’s so popular

#

I kind of want to like dig into it

proud idol
#
repeat
        for i, v in temporaryInv do
            if v:GetAttribute("Price") == list[x] then
                --[...]--
                
                table.remove(list, list[x])-- this doesn't actually clear values inside the array
                table.remove(temporaryInv, table.find(temporaryInv, v))

                x += 1
            end
        end
    until #list == 0 -- Loop ends until array is empty
#

the loop is infinite because the condition is never met

umbral carbon
#

Guys stop calling them arrays it’s driving me insane

proud idol
umbral carbon
frail yarrow
#

its Lua

#

not LUA

umbral carbon
#

Ok

frail yarrow
#

and Luau does call them arrays

umbral carbon
#

I guess it’s time to stop calling it LUA

umbral carbon
frail yarrow
#

in a technical sense

#

arrays are encoded as {T} in the type system

umbral carbon
#

Ah this is stupid

#

I hate LuaU

umbral carbon
#

Alright whatever, call them “structs” next

peak jolt
#

usually that name refers to the exact opposite of reference types

proud idol
#

if something stores multiple values using sequential integers to organize em

#

im just gonna call it an array lol

karmic magnet
#

althought ipairs / pairs is technically deprecated, would it still be better to continue using it? considering its essentially giving you extra information about what type of data structure you are iterating on, i'd imagine its better practice to include

frail yarrow
#

no

#

that info should be represented by the variable's type

clear shale
#

Else if Else if Else if Else if Else if Else if Else if Else if

karmic magnet
empty siren
#

yo is it worth doing graphics for $$$?

#

i have some experience with art in photoshop and was wondering if its good commisions

vital mural
#

I'm getting an error on this part of my custom chat script. It used to work just fine but it might've been an update Roblox did that made it stop working today. I've attached an image of the error, can someone help me out please?

    if type(value) == "string" then
        newMessage.Text = value
        CH:Chat(sender.Character, raw)
    elseif typeof(value) == "table" then
        newMessage.Text = value.Text
        newMessage.Gradient:Destroy()
        newMessage.TextColor3 = value.Color
    end
vital mural
# vital mural I'm getting an error on this part of my custom chat script. It used to work just...

Here's the whole function too:

function NewChatMessage(value, sender, raw)
    local newMessage = _G.UI.Chat:Clone()

    if type(value) == "string" then
        newMessage.Text = value
        CH:Chat(sender.Character, raw)
    elseif typeof(value) == "table" then
        newMessage.Text = value.Text
        newMessage.Gradient:Destroy()
        newMessage.TextColor3 = value.Color
    end

    newMessage.TextTransparency = CurTransp
    newMessage.Name = "Message"
    newMessage.Parent = Chat.Messages
    ChatPos = Vector2.new(0, Chat.Messages.AbsoluteCanvasSize.Y)

    table.insert(Logs, 1, newMessage)
    while #Logs > 30 do
        local key = #Logs
        local msg = Logs[key]
        table.remove(Logs, key)
        msg:Destroy()
        key, msg = nil, nil
        task.wait()
    end
end
vital mural
# vital mural Here's the whole function too: ```lua function NewChatMessage(value, sender, raw...
onyx inlet
#

@river frigate brother I have to make a scam ticket

#

you can’t just waste 3 hours of my time and not pay me

#

I’m already self employed to $5 an hour

frail yarrow
#

secondly GetChatForUserAsync is deprecated

#

and will return an empty string henceforth

#

you need to use TextChatService to process messages

vital mural
vital mural
somber vault
#

theyre all tables, whether their hash portion is 0-length or their array portion is

copper apex
#

I like lua's tables they can be dictionaries arrays, etc etc

#

Only thing i am not used to is that their indices start at 1

#

😭

copper apex
vital mural
# copper apex Why

I'm not sure, but I guess it might be because everything in the tech is reliant on each other.

copper apex
#

But module scripts.

#

I mean i guess it depends on the use case

#

I have tried making a framework using it but it was just worthless atleast for me

#

Just ruins intellisense and debugging was a little harder

vital mural
#

Yeah, I'm not really sure why he did it that way...

#

Now the entire tech is very... breakable.

copper apex
#

Yeah its less secure compared to modules

#

But it depends on how theyre using it

pure shale
#

twitch

vital mural
#

mhm

vital mural
vital mural
ocean geyser
#

Hi

vital mural
#

my game launch is tomorrow if I don't get it fixed I'll have to delay

vital mural
#

roblox rolling out the stupidests updates at the most important times

vital mural
ocean geyser
#

nice

light condor
copper apex
light condor
rose timber
#

This is what an idiot wondering why his code isn't working looks like:

silver verge
#

tonumber(3)

#

💔

heady granite
mint cloud
misty flume
#

alr

frail yarrow
frail yarrow
#

not this thing

#

or roblox will moderate your game

#

you can add a custom UI if you want though

placid matrix
sudden estuary
proud idol
shrewd python
#

How can i get this line to find a Tool that could have any names inside a player backpack?

local GloveTool = Humanoid.Parent:FindFirstChildOfClass("Tool").Hitbox.HitHandler

vital parrot
#

How do I apply the opposite force to make a character stop moving all together

#

I feel like this is easy cant think of it atm

mint cloud
somber vault
#

if anyone want this theme lmk

rose timber
vital parrot
#

at the end you can see the guy floats all the way up

#

that's because I had a running start

#

I have a vector force to reduce the fall

#

but the force of the jump is added which makes them float upwards

mint cloud
#

So you have a downward force other than gravity?

vital parrot
#

I dont want to change the gravity

#

I want them to stick to walls

mint cloud
#

Oh

vital parrot
#

the vector force is fine

#

I just want to stop them from moving because the jump is pushing them all the way up

mint cloud
#

Uh

#

player.AssemblyLinearVelocity = 0 should stop them

vital parrot
#

oh ok ill check it out

mint cloud
#

Mb it’s a vector3

somber vault
#

Bro how do i get rid of this?

#

the highlight that keeps happening

vital parrot
mint cloud
somber vault
#

MY COMMENT

#

HAS

#

AN ERROR!!!!

weak radish
somber vault
weak radish
charred ledge
#

How easy is it to create a system that automatically teleports the 8 people onto 1 of 8 game pillars on a randomly generating map

charred ledge
placid matrix
charred ledge
#

I thought u meant chat gpt

pulsar acorn
#

what is the most safe browser?

sonic juniper
placid matrix
#

unless u dont curr about da privacy

#

then start edgin

pulsar acorn
#

i see, no one has said chrome

#

opinion on opera?

weak radish
placid matrix
vital mural
vital mural
#

@frail yarrow Thank you for your help. It seems I have diagnosed the issue. I'll have to completely get rid of my custom chat system which we worked so hard on. It covered custom admin commands, custom player commands, custom emoji handling, custom notifications, and so much more.

#

Roblox has literally shoved this update down our throats without any alternatives to fix the issue.

#

Post on Dev Forum:

GetNonChatStringForBroadcastAsync literally has “NonChat” in its name this isn’t meant to be used for custom chat systems.

After looking further I did find a “tutorial” about this

but for all things holy, why is it so over complicated? A single function allowing for text filtering between two users would be literally all you need. If I have a global chat system on the server using .chatted for example, I now have to go research like 8 different instances and functions just to have the same functionality.

Literally trying to convert it as I’m typing this and it feels like the 12 labors of Hercules just to understand basic functionality, it’s been like 30 minutes and I’m only now getting the server to pick up on a single message using the new systems. Furthermore it’s such a pain to work with that if I want my current code to work well with the new system I have to scrap large portions of it. It might be easier to just plug into GetNonChatStringForBroadcastAsync regardless.

TL;DR if I’m getting this right, not a bug but just intentionally made harder to use for the gain of “parental control and community standards”, with the only alternatives for custom chat requiring excessive work for re-implementation.

EDIT; After looking at some other posts as well, I think it’s meant to replace basic chat but the functionality required to replace higher end systems such as custom chats isn’t really easily there, especially getting that info on the server, unless I’m forced to I really see no point in attempting to completely convert to TextChatService when it has so many more downsides in terms of converting older systems that just using GetNonChatStringForBroadcastAsync can do 100x easier.
placid matrix
vital mural
placid matrix
vital mural
#

It's literally DESTROYED all custom chat systems. In games like mine the custom chat system is INTEGRAL to the game, without it the game is completely broken

vital mural
#

it didn't mention anything like this

#

They should've mentioned that they are getting rid of GetChatForUserAsync

bright citrus
#

anyone know the code for roblox Scale Tool ? like something SImilar to scaleTo from roblox

mild sequoia
#

yes

flat heron
#

Can i ask for help to make a auto-showcase for player gamepasses when he claim a booth?

versed sierra
#

my head hurts... this is like my 3rd hou of constant watching a tutorial series

tropic sequoia
#

Hey guys can I get your help, how do I go about creating a framework for a levelling/ exp system

versed sierra
#

not just watching

#

like actually using it

#

im making gambling rn

tropic sequoia
#

nah I am saying you need to stick to 1 of the basics first (i.e. functions) and learn that for the whole day. before moving to the next

versed sierra
#

not all at once

tropic sequoia
#

our memory can't cope with too much information

versed sierra
#

i do 1 for 1 hour

#

3 times a day

tropic sequoia
#

alr

versed sierra
#

and i check back on my knowledge before starting again

#

i was told to do that by a staff

tropic sequoia
#

that is a very good way of learning

versed sierra
#

👍

dapper timber
sudden estuary
celest coral
#

BE NICE TO HIM

#

OR ELSE

sudden estuary
#

or else what

wraith gate
#

if anayone here scripter wants to for on a game for 10% dm me ..

zenith holly
#

yooo if i wanted to make my own physics with custom momentum and physics what sources show that

somber vault
slender yew
slender yew
celest coral
tropic sequoia
#

Is it not good to constantly use attributes for storing values?

#

Too my knowledge there is a limit to attributes. Is it better to use object values instead of attributes or?

tropic sequoia
#

datastoring

#

like levels exp

wise turtle
#

should use tables

tropic sequoia
#

wins kills etc.

#

alr

pseudo egret
#

It is possible to change an entire rig when the player spawns (characteradded)

#

?

tiny obsidian
#

your mnom

hardy pilot
karmic cobalt
#

Guys there a plugin to connect roblox studio with github? so I can commit scripts etc

gray maple
#

iirc someone is making a plugin for that. But personally, I would use rojo that connects roblox to visual studio code, and from there you use git

karmic cobalt
gray maple
#

when you save a script in vsc, it pastes to the roblox studio

#

the setup for rojo is tedious

#

you must work from scratch if you want to use rojo

#

so if you have an existing project, you cant

karmic cobalt
#

so why you need rojo for that? its like remote to transfer script from vsc to roblox?

gray maple
#

yeah

karmic cobalt
karmic cobalt
#

there is other way to commit scripts from roblox studio to github in already existed project

wise turtle
pure verge
#

hey all - what are some good roblox projects for a portfolio? I'm typically a website dev but looking into roblox

wraith spear
#

is it possible to be able script a PTZ Camera that can move with ease and zoom with mouse wheel and be viewed from a person at a control seat?

Includes:
• Camera presets with a number pad gui
• to set a preset you would press a number 1-4 and press set.
• to go to that preset you would type in 1-4 and press call

weak radish
real summit
#

Is here anybody worked for a donation game???

exotic sequoia
static coral
exotic sequoia
#

If it is not something you would enjoy making for developers, don't add it to your portfolio

#

Just a little alert ... beginner to moderate coders are almost obsoleted with AI so make sure your skills are sharper than what AI can do

#

How can you tell where you are? Ask AI to make something, then take note of all that you would need to do to implement it into an actual game. The more work you have to do to make it usable, the more useful that skillset is

bleak glade
#

theres rbxlx to rojo exe made in rust that will transfer an existing project

exotic sequoia
#

Then commit the local copy to github

#

It really feels like Roblox is reinventing the wheel here as usual

#

Why they refuse to just build in git integration is beyond me

craggy niche
#
            p.PrefixText = "<font color='#0000ff'>[Developer]</font> "..msg.PrefixText

how do i concantenate "developer" and the color if its already in speech marks im confused

weak radish
#

but you want the most impressive things

karmic cobalt
#

I need help with rojo (using first time), that means if I click accept every my script be overwrited by vsc project?

#

I want move the whole game to visual studio code
but i dont understand how its works
I need copy and paster every script from roblox to vsc manual?

gray maple
static coral
#

by using backtick (`) for strings

static coral
craggy niche
bleak glade
# karmic cobalt

also why are you firing clients a changed value when it can be read on the client

elder pulsar
#

ANyone availbe to help on a quick bug fix with a game opening?

static coral
#

you just need to set msg.PrefixText

#

wait no

#

im a crackhead

#

you js need to set the prefixtext

craggy niche
heady granite
crude magnet
#

Any file on the vsc project will just add to it.

#

No need to copy & paste every script unless you want to edit them in vsc

shell imp
#

how would i make an interval and make a gift box spawn in random areas?

karmic cobalt
real summit
#

i just started scripting is this organized enough?

local Players = game:GetService("Players")
local player = Players.LocalPlayer
local mouse = player:GetMouse()

local selectedPart = nil
local highlight = Instance.new("Highlight")
highlight.FillColor = Color3.fromRGB(255, 255, 255)
highlight.OutlineColor = Color3.new(1, 1, 1)
highlight.OutlineTransparency = 0
highlight.FillTransparency = 1
highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
highlight.Enabled = false
highlight.Parent = workspace

mouse.Button1Down:Connect(function()
local target = mouse.Target
if target and target:IsA("BasePart") then
if target.Name == "Baseplate" then return end
if selectedPart ~= target then
selectedPart = target
highlight.Adornee = selectedPart
highlight.Enabled = true
end
else
selectedPart = nil
highlight.Enabled = false
end
end)

or should i put the highlight in the replicatedstorage or sm??

crude magnet
#

You can perform github command from your terminal in VSC

#

and then push

#

And navigate to your github repo, and merge the pull request there

#

(I suggest u watch tutorial instead of asking me for more information)

tropic sequoia
#

-- bools --
local tweening = true
local exphitmax = true

-- ints --
local tweentime = 1
local levelincrease = 1

-- numbers/floats --
local expgaindecrease = 0.001

local level = {}
level.__index = level

local ID
local LEVEL
local EXP
local MAXEXPTILLNEXTLEVEL

local function checkLevelHit()
    if exphitmax == true and EXP >= MAXEXPTILLNEXTLEVEL then
        return exphitmax
    else 
        return false
    end
end

-- level.new(id = Player.UserId , level = Player's Level , exp = Player's Current Exp , metnlvl = MaxExp till next level)
function level.new(id, level, exp, maxexptnl)
    local data = {}
    setmetatable(data, level)
    
    ID = id
    LEVEL = level
    EXP = exp
    MAXEXPTILLNEXTLEVEL = maxexptnl
    
    data.id = ID
    data.level = LEVEL
    data.exp = EXP
    data.maxexp = MAXEXPTILLNEXTLEVEL
    
    return data
end

function level:increaselevel()
    if checkLevelHit() then
        self.level += levelincrease
        self.maxexp += MAXEXPTILLNEXTLEVEL
        self.exp = 0
    else
        return "Player hasn't reached the required exp!"
    end
end

return level ```

Do y'all think this would work so far? I am not good with OOP as of yet.
#

I don't even know why I am using OOP

abstract owl
#

i need some help with my code

worldly edge
tropic sequoia
#

I mean I am going to test things out with oop for a while to get good at using it. Then I'll go back to functional programming.

ruby kite
tropic sequoia
#

😭

ruby kite
#

big brother rawget is watching

tired ravine
tropic sequoia
#

use this 3 times `

tired ravine
#

thanks

tropic sequoia
#

np

uneven jolt
#

Im trying to make a grab system, currently, it welds the "Target" To the Attacker after changing the collision groups so they dont collide, however, it "freezes" the attacker and they can only jump. How do I go about making it so the attacker can move freely?

#

any ideas?

heady granite
#
local contab={}
table.insert(contab(hundredsofconnections))
--contab is never ref'd

will contab be gc'd

tropic sequoia
karmic cobalt
#

I try figure out how rojo works, but I dont understand why in StarterCharacterScript the script dont shows but when I move to ReplicatedStorage its works

errant elm
#

minecraft has such a specific implementation for its water voxel fluid

karmic cobalt
tropic sequoia
#

it would be fun to see actual water fluidity

#

other than polygons

uneven jolt
tropic sequoia
#

idk test it, I normally parent it at the end so it doesn't have missing properties

uneven jolt
tropic sequoia
#

hold on what is actually wrong with the script

#

is the attacker supposed to move

uneven jolt
#

Actually hold

tropic sequoia
#

alr is the target attached to the character and nothing is anchored within the target

uneven jolt
tropic sequoia
karmic cobalt
#

Why I cant create local script in RepFirst in vsc, I can only create modular script

tropic sequoia
#

is it enabled

tropic sequoia
#

modular can be either server or client sided

karmic cobalt
#

but I need local script not module

#

I need create local script called Init, whos requires all main modules on client

#

On roblox its easy

#

but when I use rojo

#

Im so confused

tropic sequoia
#

I haven't used rojo before so I can't help, why can't you create an init in roblox then use rojo for the modules

tropic sequoia
karmic cobalt
tropic sequoia
#

alr

karmic cobalt
#

I try move whhole game to rojo

#

to use vsc

uneven jolt
tropic sequoia
#

try creating an attachment to weld the character to instead of weld directly to the attacker

#

@uneven jolt try creating a new instance either in the character's body part or via script and parent it to the body part you want to weld them to

misty grove
#

Has anyone found an alternative to the filtering

tropic sequoia
#

alr

unkempt depot
#

Would I use :FireClient for UI and :FireAllClients for Animations (Ex. a Combat System)

#

Or is it backwards

#

i'm a little confused about it

tropic sequoia
#

why do you want to use fireclient, is the ui script serversided or client

tropic sequoia
#

use modules instead

unkempt depot
#

They're better?

tropic sequoia
#

well you are trying to use fireclient which only can be used in a server script

unkempt depot
#

💀

#

Im so slow

#

Tysm

tropic sequoia
#

you should never use that

unkempt depot
#

Alright bet

tropic sequoia
#

learn a bit about modules before you use them

errant elm
#

if i have time i'll change it up to be like an actual voxelized fluid sim adhering to flow and conservation equations for fluids

tropic sequoia
#

that would be nice to see

heady granite
#

Looking for exploit discussion discord server

somber vault
#

I made a promise-like thing, very cool

pulsar acorn
#

or related to roblox

hasty mesa
mint cloud
#

What is its purpose

jaunty kernel
#

is typescript easier than lua?

heady granite
karmic cobalt
#

its using lua too

#

its eveyrthing the same as in roblox studio

pulsar acorn
wild basin
#

It's a tooling that bridges files from your local machine into Roblox Studio

karmic cobalt
#

I use it for github

#

so I can keep control version and commit everything

pulsar acorn
#

because

karmic cobalt
pulsar acorn
#

any time i want to stop the game my laptop freezes for 20 seconds

#

even tho it sounds little it gets annoying

karmic cobalt
#

you still need have opened roblox studio

#

to stay connected

pulsar acorn
#

but like what happens if u execute a piece of code?

#

does it impact studio

karmic cobalt
#

it live coding on roblox

#

when you change script on vsc

pulsar acorn
#

thats sick

karmic cobalt
#

its changes ij roblox

pulsar acorn
#

ty for telling me

karmic cobalt
#

np

pulsar acorn
#

gl with it!

#

why did u wanna use it btw

#

oh wait u said nvm

#

lol

karmic cobalt
#

it also preffered by big projects in roblox, cuz everyone can clone repo and open for thems, like if you have 4 scripters

#

one have main repo, others clone and work on them

#

later they just commit and push changes

#

and its nice way to keep version control

pulsar acorn
#

i see thanks:D
wdym by commit?

karmic cobalt
pulsar acorn
#

never

karmic cobalt
#

commit to save changes, push to upload chhanges to github

pulsar acorn
#

i see

karmic cobalt
#

and you use powershell or git command bar for them

pulsar acorn
#

is git complicated

karmic cobalt
#

I dont think so, but I have git in unviersity

#

but porobably you can learnm from youtube

#

its basic programming tool

pulsar acorn
#

ah i see, thanks for telling me these stuff!

karmic cobalt
#

a lot companies using it

#

and for get programmer job not on roblox, you should keep updating your github

#

shows your works

#

read me docs

#

about project documantaino

#

documentation

pulsar acorn
#

tyty:D

karmic cobalt
round granite
#

would u guys say that entity oop is necessary?

somber vault
somber vault
#

use oop for anything that needs details and is made in a quantity

round granite
#

can u help me with the basics

somber vault
#

sure bro'

round granite
#

wana hop on vc?

somber vault
#

im alr in a vc with my friend

#

just go in directs

charred ledge
#

I seriously need scripting help can anyone help me please

manic rock
#

wheres the roblox documentation page where starters learn coding

north rivet
#

How useful is a library and does anyone have information on how to make one properly

north rivet
#

I didn't do that but I wish I did

placid matrix
elfin timber
#

best way to mark someone as dead for a round system?

wise turtle
placid matrix
wise turtle
#

too vague

placid matrix
#

and he asked a vague question

#

like wat

#

Mf sent the code of conduct for 0 reason

wise turtle
#

theres the invite link

placid matrix
#

very vague... very vague.

wise turtle
#

u can learn abt how to make a library in more detail

placid matrix
wise turtle
#

Bcs u’ll get exposed to a bunch of different libraries & tooling, and a variety of ways to set up/maintain them. Also could ask specific questions w open source

#

Okla stop rage baiting

placid matrix
north rivet
wise turtle
#

More helpful than ur vague answer though!

placid matrix
#

dunno how dats an answer

north rivet
#

You guys know when you make a library using a module that stores info that you just call back in

#

Ii think it's a library

#

Idk if it is

north rivet
#

I tried to search it up and use it in the past but I was using it wrong and couldn't figure it out

placid matrix
north rivet
#

Idk man

#

I don't really know what I'm looking for

#

I got a vague idea was hoping y'all would understand

wise turtle
#

what are you trying to do

north rivet
#

See I'm trying to recreate king dom hearts combat system and I kinda need a way to store all the lil customizable parts of the menu

raven sonnet
#

?

north rivet
#

If y'all have ever played kingdom hearts 2

#

There's a menu for abilities

placid matrix
#

Buddy its called metadata

north rivet
#

Wats dat

wise turtle
#

dyk the basics 😭

north rivet
#

NO

#

Lol

#

How do you even learn the basics info is so scattered I kinda just try to make things and learn along the way

north rivet
#

No

placid matrix
viral herald
#

bro is addicted to using the term brochacho what the dorito nacho

tired widget
#

how can I fly in my own game

molten plinth
#

Make a flying/noclip script

tired widget
twilit stump
#

how to i force the player to seat in a driver seat?

ruby iron
twilit stump
#

yhx

#

thx*

mellow plover
#

are there any actual scripters here willing to work

#

for some reason nobody responds to me

#

MY GAME IS FIRE

#

LOCK IN

#

if smb can work with me hit me up 😭

#

i actually pay

stiff ibex
#

memory mapping

frosty shadow
#

REF DO SOMETHING 🥀

static tendon
#

whats the best way to memorize code?

stiff ibex
static tendon
smoky condor
#

Can anyone here fix a bug for cheap

placid matrix
fathom sundial
#

(also plays into reading it over and over)

scenic kraken
#

put yo phone on charge

devout furnace
#

fr

raven marsh
#

guys what else should i add to india tower defense before everything gets coded

raven marsh
placid matrix
raven marsh
#

tf am i making ts for

placid matrix
#

we need something more extreme.

jolly harbor
nimble star
#

how can i change shiftlock toggle to ctrl instead

placid matrix
errant elm
latent junco
#

GUYS HELP

crystal gulch
#

whats the best way to learn scripting

placid matrix
misty parcel
#

No hiring outside of marketplace

manic nacelle
#

Here's a cool theme for ya paste this in commands local themeSettings = { ["UI Theme"] = Enum.UITheme.Dark, ["Background Color"] = Color3.fromHex("#1A1B26"), ["Text Color"] = Color3.fromHex("#A9B1D6"), ["Selection Background Color"] = Color3.fromHex("#2F3C70"), ["Current Line Highlight Color"] = Color3.fromHex("#1F2335"), ["Keyword Color"] = Color3.fromHex("#BB9AF7"), ["Operator Color"] = Color3.fromHex("#89DDFF"), ["Number Color"] = Color3.fromHex("#FF9E64"), ["String Color"] = Color3.fromHex("#9ECE6A"), ["Comment Color"] = Color3.fromHex("#565F89"), ["Function Name Color"] = Color3.fromHex("#7AA2F7"), ["Method Name Color"] = Color3.fromHex("#7AA2F7"), ["Built-in Function Color"] = Color3.fromHex("#2AC3DE"), ["Local Identifier Color"] = Color3.fromHex("#A9B1D6"), ["Global Identifier Color"] = Color3.fromHex("#C0CAF5"), ["Field Identifier Color"] = Color3.fromHex("#7DCFFF"), ["Bool Color"] = Color3.fromHex("#FF9E64"), ["Nil Color"] = Color3.fromHex("#FF9E64"), ["Whitespace Color"] = Color3.fromHex("#2A2F41"), ["Ruler Color"] = Color3.fromHex("#3B4261"), ["Error Color"] = Color3.fromHex("#F7768E"), ["Warning Color"] = Color3.fromHex("#E0AF68"), ["TODO Color"] = Color3.fromHex("#7DCFFF"), } local studio = settings().Studio for settingName, value in pairs(themeSettings) do if settingName == "UI Theme" then if studio.Theme ~= value then studio.Theme = value print("UI Theme alterado para Dark. Pode ser necessário reiniciar o Studio para efeito completo.") end else studio[settingName] = value end end studio.Font = "Fira Code" studio["Text Editor Font Size"] = 11 studio["Text Editor Font Name"] = "Editor"

quaint depot
remote bear
scenic cove
#

How to script a tool to emit vfx and play an animations?

pulsar wing
#

Yo, I'm making a combat system (like battlegrounds m1s) which I can make, but I was wondering the best way to keep track of stats like stun and ragdoll or if they are already attacking. I was going to use a module but since I want it to be responsive I need to handle it on the client, but modules don't replicate and I need sanity checks on the server. Not completely sure what the best way to handle that would be. Thanks.

static coral
#

is there a way to import/export script editor settings?
and also is there a way to bulk import lua files?

tropic sequoia
#

When should I use global variables?

#

like I use local scope variables a whole lot and never tend to use global variable in my scripts.

lost pebble
stiff ibex
lost pebble
stiff ibex
# jolly harbor what that do

its for the firmware’s reserved space in the memory, then the rest of the memory can be use by the system (like apps, games, background tasks and what not)

#

I just hope it doesn’t take up too much memory and space.

tropic sequoia
#

Alright to my understanding Classes are made up of multiple properties provided to create an object and inhibits methods that control the objects behaviour? And these classes can be inherited by other classes with different methods?

#

Trying to understand OOP

pulsar acorn
#

oh wait somoene asked

stiff ibex
pulsar acorn
#

im new dats y

stiff citrus
#

is it bad to have more than one server and local script

silk sky
stiff citrus
silk sky
#

@sacred wagon

stiff citrus
#

bc the buttons need a local script and the general imputs need a local script

#

idk how to keep everything in one

tropic sequoia
#

use modules

latent fox
latent fox
#

and just let the server handle less mechanics inside and module load everything under the server

uncut isle
#

Does anybody know how to make a progress bar for a tower obby that shows the users profile avatar?

latent fox
#

I forgot but it was a link

uncut isle
bold current
shut sail
#

bro putting a x

#

he doesnt even have the skill role

ember nimbus
shut sail
#

np i found my scripter

copper tundra
#

“`local rebirthButton = script.Parent
local replicatedstorage = game:GetService("ReplicatedStorage")
local remoteEvent = replicatedstorage.WaitForChild("RemoteEvents")
local rebirthevent = remoteEvent:WaitForChild("rebirth")

local Players = game:GetService("Players")
local player = Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
rebirthButton.MouseButton1Up:Connect(function()
local clicks = leaderstats.Clicks.Value
local rebirths = leaderstats.Rebirths.Value

local rebirthsamount = tonumber(rebirthButton.Name)
local cost = 100
local gemsgiven = rebirthsamount*10

if clicks >= cost then
    rebirthevent:FireServer(rebirthsamount, gemsgiven)
end

end)"`

#

when i click rebirth button it doesnt make my click go 0

#

how can i fix this

limpid sedge
#

guess how I did this

silk sky
#

🤯

limpid sedge
silk sky
#

insane

sonic ruin
#

💔

flint edge
#

I NEED YOUR GUYS HELP IM GOING TO CRY

#

WHAT THE HELL COULD EVEN BE THE ISSUE BEHIND THIS?

charred ledge
#

Guys IVE got a script that says local roundLength = 10 (seconds) how do I make it so the round lasts till one person is alive in the map

toxic meteor
#

Is Roblox studio working for anyone?

rugged island
stiff ibex
#

hi

tacit viper
#

i want to bring the rock 1 stud up but when i try to do it, doesnt work at all

tacit viper
#

i want to be able to bring it up a stud

#

but it doesnt work

solemn dagger
#

How do I position a gui over a vector3

static coral
tacit viper
static coral
#

to position it perfectly on top of something its:
y = platform.Size.Y / 2 + obj.Size.Y / 2

static coral
tacit viper
#

ok

static coral
#

x is left and right

#

y is up and down

tacit viper
#

whatever

static coral
#

remember that .Position uses global space

#

not local space

tacit viper
static coral
#

its just your formula that is wrong

tacit viper
#

but it works fine for me

#

i'll see

frozen tendon
#

is anyone good at making guns

tacit viper
frozen tendon
#

they are charging alot but picking one from dms will cost like 80% less

tired basalt
#

anyone who is somewhat knowns how to code or build wanna be my parttner for my brainrot game idea please dm me

bleak ridge
#

can anyone help me fix this everything is working fine like the ball spawning at your feet and the ball following you and when you click kick the ball detaching from you but then after that when i click kick the ball is supposed to kick but it doesnt work if someone could help me solve this issue i would be very thankful

tacit viper
#

most likely the issue

slender yew
#

what exactly is this?

viral lynx
bleak ridge
viral lynx
#

wth is a football golf game

bleak ridge
#

dw

faint spear
#

How can I prevent my characters from falling when they are in an elevator made with TweenService?

#

Nvm, wrong chat

bleak ridge
mellow plover
#

like what

mellow plover
bleak ridge
#

damn

tiny obsidian
#

meow

hexed cedar
#

I am back

lime gyro
#

wht about I sell you a flying model (trust me it's good )

dark cedar
#

Best hitbox method?

twilit sapphire
#

how do i turn a keyframesequence into a animation

#

how do i turn a keyframesequence into a animation

swift blaze
shy cipher
#

I want to have a running animation play when the movedirection magnitude of the humanoid is past a certain threshold, but the problem is that it still plays when the character jumps or is in any other state. what's the best way to go about this? I want the animation to stop when the magnitude is below the threshold

proud idol
#

first is by forking the animation script that generates when ur character spawns, inside of it theres the ids of the animations the avatar has equipped at that time, all you gotta do is swap em to ur custom animation id and place the script in starter character scripts

shy cipher
proud idol
jovial badger
proud idol
shy cipher
jovial badger
#

could you send a snippet of the code?

shy cipher
#

let me see

#

how can I format it into lua code here

proud idol
shy cipher
proud idol
#

but static walkspeed right?

shy cipher
#

yeah it stays constant

#

should I try the walkspeed gradient method you told me, it will switch the r6 walk animation with the running animation if the threshold is met and revert it when not

jovial badger
shy cipher
#

lua
game:GetService("RunService").Heartbeat:Connect(function()

if Humanoid.MoveDirection.Magnitude > 0.5 then
    
    if not loadedAnims.run.IsPlaying then
        stopAllAnims() 
        loadedAnims.run:Play()
    end
else
    
    if loadedAnims.run.IsPlaying then
        loadedAnims.run:Stop()
    end
end

end)

#

uh

shy cipher
proud idol
shy cipher
jovial badger
# shy cipher lua game:GetService("RunService").Heartbeat:Connect(function() if Huma...
local state = nil

game:GetService("RunService").Heartbeat:Connect(function()
    
    state = Humanoid:GetState()

    if Humanoid.MoveDirection.Magnitude > 0.5 then
        
        if not loadedAnims.run.IsPlaying then
            stopAllAnims() 
            loadedAnims.run:Play()
        end
    else
        
        if loadedAnims.run.IsPlaying then
            loadedAnims.run:Stop()
        end
    end
    
    if state == Enum.HumanoidStateType.Jumping then
      if loadAnims.run.IsPlaying then loadedAnims.run:Stop() end
    end

end)
proud idol
jovial badger
#

you could try smth like that

proud idol
#

not sure if controller makes it analog

shy cipher
proud idol
#

but basically MoveDirection.Magnitude will always be either 0 or 1

proud idol
shy cipher
#

I mean it does stop the run animation and start it when needed but it doesn't have run-up or proper stopping on jump, the animation simply restarts after the jumping code stops it

#

I don't really know how movedirection works I thought magnitude is another way to say velocity

proud idol
#

magnitude is basically some vector nerd math concept

#

which jsut represent the vectors total length

shy cipher
#

well what do I do to calculate the player's current speed? walkspeed refers to the max speed : (

proud idol
jovial badger
#

velocity of the hrp?

shy cipher
#

how could I implement gradual acceleration too?

proud idol
#

again, move direction is a digital input that dictates the directin the humanoid is moving

shy cipher
#

roblox's current one is too fast

jovial badger
#

you coud lerp the walkspeed

#

thats what i do for that

shy cipher
#

yeah I never know the different between lerping and tweening

proud idol
#

if you want to implement that, i suggest you by adding the walkspeed change system

#

where you start at a lower speed but the more u keep moving the gradually it increases

#

and that is something you can use to detect the current speed of the player

#

you just gotta script its change first

shy cipher
#

so that means the current speed will be the walkspeed?

#

in this circumstance

proud idol
#

indeed

shy cipher
#

such genius such wow

proud idol
#

you detect when the player is moving when MoveDirection.Magnitude is not 0

shy cipher
#

does movedirection give you any xyz values to detect in WHICH direction the player is moving?

proud idol
#

all you need to check is whether the player is moving or not

shy cipher
#

still curious

proud idol
#

which again, MoveDirection.Magnitude describes that

#

as long as MoveDirection.Magnitude ~= 0, then the player is moving

#

and if that condition is met, you gradually add an increment to walkspeed

shy cipher
#

this might be a bit complicated but do you know how to detect if the player is near the ledges of a part?

#

I wondered how hudzell calculated where the ledge was on a building for the long jump in parkour

proud idol
#

and a bit of vector math

shy cipher
#

but raycasts detect the entire surface na?

jovial badger
#

you send out multiple to map it out

proud idol
#

and also do vector math

shy cipher
#

how does it work

proud idol
#

when the player triggers the grab a ledge command, you check launch several raycasts to map out whats in front of the player

shy cipher
tiny mural
#

Hi, are there any project investors on this server by any chance

proud idol
#

if for example the raycasts sent to detect whats above the player dont hit the same part/dont hit anything at all to what the bottom/middle positioned raycasts do

#

thats a good sign the player is on ledge

tropic sequoia
#

can someone simply explain what forward dependencies are?

shy cipher
proud idol
shy cipher
tiny mural
shy cipher
#

the most advanced one I ever came up with was 16*level + 16 for a walkspeed level system

proud idol
shy cipher
#

liiike?

tropic sequoia
#

what are forward dependencies?

proud idol
#

cmon bro ax^2+bx+c or ax^3+bx^2+cx+d

#

that is like high school math

tiny mural
#

I mean if there is someone who lends robux and then asks for a % of the game's earnings
@proud idol

shy cipher
#

it's just a gradient give me something simpler 💔

proud idol
shy cipher
#

maybe I haven't reached that level in math yet

proud idol
#

cause it follows the ax+b expression

#

if u graph that equation, it would should a slope

shy cipher
proud idol
#

if you graph a cuadratic formula, it shows this

proud idol
#

aka cuadratic formulas or above

#

besides, you dont even need to more than just adding the result of the equation depending on the time they have ran

#

like its not as hard as u making it out to be

shy cipher
#

hear me out

#

what I could do is have a cooldown between the walkspeed increase arithmetic and poke around with the cooldown by subtracting it from it a constant number each time

#

adding is better I'm dumb

proud idol
#

dude, just use quadratic equations

shy cipher
#

all school ever taught me till now is how to simplify them, I haven't been to school in 3 years 😭

#

it's hiddendevving time

#

I'm gonna try quadratics

proud idol
#

dude its not that hard trust me

stiff ibex
#

Ethernet library header AlexSweat

proud idol
#
local x = 0
local Cap = 1

function CuadraticEquation(t : number)
  return 16*t^2 + 16
end

RunService.Heartbeat:Connect(function(delta)
  if PlayerIsMoving() then
    x += delta
    if x >= Cap then x = Cap end
  else
    x = 0
  end
  
  Humanoid.Walkspeed = CuadraticEquation(x)
end)
#

@shy cipher

#

the faster u want it to hit the maxspeed, the mroe increment u wanna give to x

shy cipher
#

I'd understand if you explain what the variables in it mean

shy cipher
#

ok I'll shut up 💔

proud idol
#

the logic behind the code is simple to follow

#

you have x which represents the point ur gonna get a value from the cuadratic equation

#

it is dependant on the amount of time the player has been running

#

but theres a limit set by the cap variable (hence the name cap)

#

after the x value is set, the humanoid walkspeed is set depending on the value returned by the cuadratic equation

#

its that simple

#

and now you have a gradual change instead of a linear one

#

and since the speed has a gradual change, that means that the aceleration is linear (therefore not constant)

shy cipher
#

ok but what is deltatime doing in the equation

proud idol
#

thats how the scripts knows the time the player has been running

#

delta is the time factor it took the client or server to move to next frame

proud idol
#

gotta lock in on math man

#

because programming and math go together like peanut butter and jelly

shy cipher
#

we still tryna figure out how much the butter will be worth in here 🔥

#

I just need people to explain math in borderland terms and not whatever the book's sayin

#

you get me

proud idol
#

math unfortunatly cant be explained like that outside of introductory concepts

#

because math by itself is mostly abstract

shy cipher
#

I'm way over the amount of apples charles has by now

proud idol
shy cipher
#

my mom saying I gotta lock in with the biology book what do I do

proud idol
#

ur screwed

shy cipher
#

pfpfpffft biology is just enzyme go here enzyme go there

proud idol
#

lots of memorizing tho

#

i could never

shy cipher
#

only thing stopping me is my drawing

#

also uhh how do I attach my animation to your quadratic

proud idol
#

you make a second script where either using Heartbeat or Event connection

#

you check for Walkspeed value

#

if the walkspeed value is above a certain level, then ur script runs

shy cipher
#

but why a second script, my anim handler is in this one

#

oh

proud idol
#

you couldw rite the code for both of em on the same script

shy cipher
#

at least i can be happy I wrote the anim handler myself 💔

proud idol
#

but its better if u have em separated

shy cipher
#

won't script to script communication every frame destroy your wifi

proud idol
#

thats is not even used here

shy cipher
#

arrre we using bindables

proud idol
#

a) no b) thats a thing on remotes only

shy cipher
#

a

proud idol
#

estas bien tibio

shy cipher
#

pescado

bronze mantle
#

hey guys

#

got a question

bronze mantle
#

bc I dmed lots of people to show my portfolio but I feel like im being sent to "Spam" so no one sees my messages 😭

proud idol
#

if they ignore u then thats soemthing u jsut gotta accept

shy cipher
#

RunService.Heartbeat:Connect(function(delta)
if Humanoid.WalkSpeed > 6 then
if not loadedAnims.run.IsPlaying then
loadedAnims.run:Play()
end
end
if Humanoid.MoveDirection.Magnitude ~= 0 then
x += delta
if x == 1 then loadedAnims.run:Play() end
if x >= Cap then x = Cap end
else
x = 0
end

Humanoid.WalkSpeed = CuadraticEquation(x)

end) what do you think

#

o wait I forgot something in there

#

let me remove that

proud idol
#

also how i wrote the cuadratic equation, lowest speed value is 16 while max value is 32

shy cipher
#

it's playing and resetting the animation every frame it seems

proud idol
#

the one on the animation

shy cipher
#

what may one do to achieve running

proud idol
#

you overcomplicated the if statement

shy cipher
#

I'm sure the compiler can figure that out ❤️‍🔥

proud idol
#
if Humanoid.WalkSpeed > 20 and PlayerIsMoving() then
    if not loadedAnims.run.IsPlaying then
        loadedAnims.run:Play()
    end
else
  loadedAnims.run:Stop()
end
shy cipher
#

but PlayerIsMoving() isn't defined

proud idol
#

I aint just gonna spoonfeed everything to you

slow plover
#

what is happening?

#

whats the issue?

shy cipher
#

true I did replace it with the magnitude thing the first time ya did it

#

minimumfeeding is the way I reckon

slow plover
shy cipher
proud idol
#

and a quadratic equation can be used for that

shy cipher
#

I don't know about this quadratic guy but he seems cool

slow plover
#

cuadratic?

shy cipher
#

quahdrahtic

proud idol
shy cipher
#

@proud idol thanks G I am now 3 times less scared of math

slow plover
proud idol
#

i just got it confused

slow plover
#

ohhh okay

shy cipher
#

quick question, if you say (parameter : number), what happens if the passed argument isn't a number?

proud idol
#

nothing

shy cipher
#

nil?

proud idol
#

no

#

like nothing happens

shy cipher
#

well what is the parameter equal to in this case

proud idol
#

a number

shy cipher
#

and the circumstance is that the passed argument to the parameter isn't a number

proud idol
#

theres no circumstance

#

because the variable is always set as a number

shy cipher
#

like circumstance as in scenarioooo

shy cipher
proud idol
#

but that doesnt happen here so no check is necessary

shy cipher
#

so there's a linear equation and a quadratic then what's the other one

#

cubic?

proud idol
shy cipher
#

is there any purpooose to a cubic equation

proud idol
#

but at most ull usually just use cubics

proud idol
shy cipher
#

give me a minute to comprehend quadratics

proud idol
#

granted cubic is not as often used as quadratics, but it has is niche uses

#

more often than not ull be using quadratics and trig functions

#

but luckily u dont need trig functions here

#

or youd be brain overloaded

shy cipher
#

ok just give me an example for what the cubic does

proud idol
shy cipher
#

can't ya just use part.Size

proud idol
shy cipher
#

lxlxl

proud idol
#

how do you calculate the volume of a sphere

shy cipher
#

genuinely don't remember that one

proud idol
#

well whatever it is

#

the point is suppose your cube

#

changes volume across time

#

were t = l

#

if you graph that

#

you get the simplest cubic equation

wet zealot
#

yo any1 knows how to fix "AnimationClip loaded is not valid."?

shy cipher
#

how do you graph a cube?? ain't graphs 2d

proud idol
#

youd get this

#

now in game engines

#

you usually dont care about cubics bc the engine already does the calculations for u

shy cipher
#

looks like someone got their maths right

proud idol
#

but that doesnt mean theres aint niche use cases

#

for example, you usually see em when lerping to a value+

shy cipher