#code-discussion

1 messages Β· Page 172 of 1

blazing oasis
#

ok

#

firs t i neeed a texture

#

pack

#

thingy

#

OMG I FIXED IT

fair copper
#

lol

#

i think this module will make tons of possible things inside a rpg

#

maybe i can adjust the cframe it holds each type of object

blazing oasis
#

yes

glossy wave
#

is rojo worth to use and why

blazing oasis
#

but i dont reallly see the enefits tbh

fair copper
#

i just code stuff on studio

blazing oasis
#

same

fair copper
#

i like that playtesting stuff

blazing oasis
#

im so happy my plugins work i havent used them in like a year

#

Scaling ui manually..........................................

fair copper
#

but my codes are also on vs code cuz studio needs to work with wifi

fair copper
blazing oasis
#

ui is easy if u ask me

fair copper
#

i think it'll polish my game by a notch

#

if i make them myself

blazing oasis
#

Ui is just taking a bunch of images

#

adnd combining them

#

and coloring

fair copper
#

it takes time tho

blazing oasis
#

not really

fair copper
#

if u wwanna do like custon

#

custom

blazing oasis
#

not as long as scripting

#

it only takes like 1-2 hours per frame if ur sweating on it for it to be perfect

fair copper
#

yea true that

blazing oasis
#

i spend like 20-30 minitieus on ui

#

this didint take long

#

and its decent to me

#

ui wise

#

doesn thav emuch content tho

fair copper
#

o yea its like blade ball

#

ice

blazing oasis
#

lol

fair copper
#

nice

abstract shadow
#

guys chatgpt is useless its breaking my game :( someone shouldve told me this was a bad idea

blazing oasis
#

it only took like 20-30 min

abstract shadow
#

yes

blazing oasis
#

i neeed to learn vfx

#

im elarnig it rn

#

after i get th eplugins

abstract shadow
#

i actually had a tiny bit of trust in chatgpt cause it worked the first time but the moment i gave it an actual thing to script it cant do it

blazing oasis
#

lowk this server is really useful for learning stuff like ui and vfx

#

b they give ut he assets in pinned messages

fair copper
#

lol

fair copper
abstract shadow
#

you should script two working planes and then build a city with a big park in the middle and two really big towers

abstract shadow
fair copper
#

the most i wwould use ai for would be for putting debugs in my script when im lazy

abstract shadow
#

now i wasted like an hour

#

im kidding it was fun

fair copper
#

πŸ˜‚

abstract shadow
#

it was able to clear the inventory without a gui

#

and dont hate i havent been on roblox in like 3 years atp my scripting knowledge is like 0 nowadays

olive summit
#

im getting error from the highlighted line

coarse nimbus
#

What is queue

olive summit
#

queue is queue

#

data structure

#

well

#

its a song playing system

#

im making the queue feature

coarse nimbus
#

Me when I provide a fraction of the code then wonder why it doesn’t work and why nobody helps me

copper apex
#

For my nasa personal project for fun, this is the admin panel, able to control game settings, and objects this is what im working on currently, tweens on client, position is updated to server when tween ends

steep knoll
#

Is there any gzipping library for roblox buffers?

fair copper
#

ts pmo

severe cobalt
# olive summit queue is queue

the error tells you

queue is an instance

aka something you can see in your object browser

itll only work for tables, so queue has to be
local queue = {}

or any variation of it.. cant use Instance.new or FindFirstChild or anything.

#

if its a script connection for like a bindable or smthn, make sure your parameters are lined up

cosmic spade
coarse nimbus
#

i do not care

graceful lodge
#

Any pro scripter here can i ask for a favor

static coral
graceful lodge
barren marlin
#

pluh

jovial crown
#

is it ok to prompt purchares out of server?

vestal pumice
inner aurora
#

is there any way to turn off this auto-copletion (in the 1st img)
but keep the type of auto-completion that is in the 2nd image?

jovial crown
paper imp
#

why would it be bad

inner aurora
copper apex
inner aurora
fair copper
#

i think its only lacking an assembly now

muted birch
#

local PhysicsService = game:GetService("PhysicsService")
local Players = game:GetService( Players")

local playerCollisionGroupName - "Players

Physicsservice:CreateCollisionGroup(playerCollisionGroupName)
PhysicsService:CollisionGroupSetCollidable(playerCollisionGroupName, playerCollisionGroupName, fi
local previousCollisionGroups -

local function setCollisionGroup(object)
if object:IsA("BasePart") then
previousCollisionGroups[object] = object.CollisionGroupId
PhysicsService:SetPartCollisionGroup(object, playerCollisionGroupName)
end
end

local function setCollisionGroupRecursive(object)
setCollisionGroup(object)
β€’ for _, child in ipairs(object:GetChildren()) do
setCollisionGroupRecursive(child)
end
end

β€£ local function resetCollisionGroup(object)
local previousCollisionGroupId - previousCollisionGroups[object]
if not previousCollisionGroupId then return end
if not previousCollisionGroupName then return end
local previouscollisionGroupName - PhysicsService:GetCollisionGroupName(previousCollisionGrou
PhysicsService:SetPartCollisionGroup(object, previousCollisionGroupName)
previousCollisionGroups[object] - nil
end

local function onCharacterAdded(character)
setCollisionGroupRecursive(character)
character.DescendantAdded:Connect(setCollisionGroup)
character.DescendantRemoving:Connect(resetCollisionGroup)
end
local function onPlayerAdded(player)
player.CharacterAdded:Connect(onCharacterAdded)
end
Players PlayerAdded:Connect(onPlayerAdded)

rocky lynx
#

So u don’t have to compress them when networking them

#

Internally Roblox networking already does it

honest breach
#

why does this enable when i press play even tho i disabled it

steep knoll
rocky lynx
somber cedar
somber vault
#

theres Physicsservice instead of PhysicsService

#

did u type it in discord or do you not use autocomplete

steep knoll
somber cedar
steep knoll
eternal arch
#

helo

shut sorrel
#

you can disable movement without changing walk speed by accessing the PlayerModule directly
https://devforum.roblox.com/t/disable-characters-movement-without-walkspeed-or-anchoring/2489111/6

somber cedar
#

alr fixed it ty yall

lapis parrot
#

if anyone needs help with coding let me know!

somber vault
nimble violet
#

uh so like, Im having an issue where my events are stacking upon respawn because the connection doesnt clear... Why is that? Anyone know of a way to clear connections upon character death?

nimble violet
nimble violet
#

heh?

nimble violet
fair copper
#

player state management

main sorrel
nimble violet
#

i dont see how that'll help tho

nimble violet
main sorrel
#

deleting script won't disconnect

main sorrel
nimble violet
#

i dont have it disconnecting anymore cause i removed itcause it wasnt doing anything

#

one sec

#

The Signals.Streak thing is on the server,
The events.message:connect thing is on client.

Im using Warp for my events

#

Its only firing one event from the server

#

each reset of the character adds a connection

main sorrel
#

is it supposed to print only when player joins

nimble violet
#

Ok, so basically, I have a hitting ability, and once i hit them 5 times, a system message appears saying "Player reach streak x" or whatever,
The problem is, every time i respawn, the connection doesnt disconnect (which it should), therefor stacking, and causing the message to appear however many times you've died / respawned

main sorrel
#

why would it fire the message event when player respawns

nimble violet
#

It fires when the event is fired?

#

The firing part works, its just the event stacks because prior connections dont get cleared

nimble violet
#

even tho the script no longer exists, the connections still connect

safe anvil
#

Probably everyone knows how but how can i make a global leaderboard for my game its almost done but thats missing

coarse sapphire
#

400-1700 robux for anyone who can make me a good pfp! (suprise)

somber vault
#

how 2 code

#

it says print hello world

#

what does that mean

upper oak
fair copper
#

i establish setter & getters and then clean it up in one function

#

function ClientState.getIsBlocking() return isBlocking end
function ClientState.getLastSelfAttackId() return lastSelfAttackId end

#

-- setters
function ClientState.setIsBlocking(value) if isBlocking ~= value then isBlocking = value; fire("isBlocking", value) end end
function ClientState.setLastSelfAttackId(value) if lastSelfAttackId ~= value then lastSelfAttackId = value; fire("lastSelfAttackId", value) end end

#

function ClientState.resetAll()
isChargingAttack = false
lastSelfAttackId = nil
end

#

its something like this

#

resetall cleans up all lingering states of any kind

nimble violet
#

Ive fixed it now

fair copper
#

what was the problem

#

in ur code

lapis parrot
#

If anyone needs help with scripting Let me know I can do reasonable prices with high quality work!

hidden nexus
hidden nexus
#

Cause if help, I would delete that message

#

Greedy ah dev

#

Don't hire him

#

He just st steals your money even if he does the work

crisp ivy
#

how hard would scripting be to learn?

tight pewter
hidden nexus
tight pewter
#

lua has like 20 keywords or sum

#

easily learned ina day, the hard part is learning data structures and algorithms needed for your idea.

#

(but still easy and quickly found on google)

#

if you dont know what to look up, you can ask people here (or things like AI) to open doors for you. @crisp ivy

slender cairn
#

guys..

#

how long it'll take for me to learn oracle

#

like UML etc

tight pewter
#

thats broad

#

ask a better question

slender cairn
#

mb gang

tight pewter
#

if youre looking for a job though in that sector its like 6 months - 2 years depending on the role you want

tight pewter
#

but it doesn't mean you'll learn all that full within 2 years

#

you'll just be good enough to scam the employer

slender cairn
#

well am just in college, taking courses. rn am learning OOPL, database and etc ts been kinda difficult lol

tight pewter
#

yeah thats good though

#

just make sure youre doing a lot on your own time too

#

schooling isn't enough to keep that job, though it'll get you in the door

slender cairn
#

ye am trying but idk if i should try focusing on system analysis / database first

tight pewter
#

database management/fundamentals first imo

crisp ivy
lean ocean
slender cairn
lean ocean
#

theres a code help channel

#

πŸ˜‚

tight pewter
#

but programming is more broad than just the language you use, you need to learn algorithms/data structures that you need for your case.

#

but dont try to learn/read everything like its a book, just learn as you go based on what you need for your current idea.

#

if youre developing on roblox, then you need to use roblox's references pages (again not a book, just references that you glance at occasionally)

crisp ivy
#

as in the documentations in general, not decals

tight pewter
#

yep

#

need the "Players" service for your idea? but dont know how it works? glance at the docs, done.

#

so you need to learn the language (in this case lua), some understanding of data structures/algorithms AND understand the API/Documentation of the platform youre working in, so you can peep references (in this case, roblox)

crisp ivy
#

so i should try learning in tangent with the game idea instead of trying to understand the language fully first?

tight pewter
#

yep

#

learn as you go, its the best flow

#

if you wanna get more technical and have a deeper understanding then you can take deeper dives into the language/engine later.

crisp ivy
#

thank you

tight pewter
#

np gl

tight pewter
#

you can use this as reference for lua btw

#

roblox uses 5.1 for luau iirc

crisp ivy
#

wait there arnt any major differences between lua and luau right?

tight pewter
#

i wouldn't say major differences no

bleak oak
#

anyone wnna script my blue lock game

tight pewter
#

there is some differences, its roblox's own flavor of lua

#

anything in normal lua will work in luau, but not vice versa

#

(although roblox did remove certain aspects from the sandbox, due to security concerns)

#

but you wont be using those anyway

crisp ivy
#

ah

tight pewter
# crisp ivy ah

yeah, you wont be able to read/write files on your players computer for example

#

for obvious reasons... but outside of roblox you could use lua to do that

crisp ivy
tight pewter
#

yea

#

essentially

gilded stag
#

hi is it possible to spawn a part locally

#

like only one person can see this model n stuff

shut sorrel
#

If you clone a model in localscript the same thing happens

#

parts created or cloned in server scripts can be seen and interacted by everone

gilded stag
shut sorrel
#

Then that part will only move for you but be in the same spot for another player

gilded stag
#

i tried doing it though and it wasnt working out

#

like it didnt move at all

shut sorrel
#

You can switch between client and server view when testing your game to see what's happening

gilded stag
#

okk thanks so much

shut sorrel
#

to communicate to the server from a localscript you use RemoteEvents, without that everything you do in a localscript will only happen for your client, useful for camera, inputs, GUI, so on

#

just some facts about localscript

shut sorrel
gilded stag
frigid thorn
gilded stag
arctic flax
#

Anyone know why the function is do its thing twice in this script: v.Button.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
if values.OwnerValue.Value == player then
if v.Button.CanCollide == true then
if player:FindFirstChild("leaderstats").Cash.Value >= v.Price.Value then
player.leaderstats.Cash.Value -= v.Price.Value
objects[v.Object.Value].Parent = tycoon.Purchases
playSound(v, audio.buttonSound.SoundId)
v:Destroy()
else
playSound(v, audio.error.SoundId)
end
end
end
end
end)
end
end)
end
end

sick saffron
#

does anyone know how i can get the week of the year? based on todays date

#

local function getWeeklyKey()
local date = os.date("!*t")
local isoYear = date.year
local isoWeek = math.floor(date.yday/7)
return string.format("WeeklyMaxHeight_%04d-W%02d", isoYear, isoWeek)
end
this is what i have done

desert jungle
#

One message removed from a suspended account.

daring ocean
#

I used the part to water plugin but you cannot swim in the water

#

Can someone help me make it so I can swim in the water?

hot prism
#

Lol, idk if someone knows how to web design, but could someone help me, basically I am making portfolio and I think this square is ain't no good

#

anyone knows how to make it look better?

shut sorrel
#

maybe add a stylized border, make it wider so it's not so congested

hot prism
#

Let me try

tight pewter
#

also a more mature font

#

but thats my opinion

sage glacier
#

Finished dev kings basic scripting tutorials. Do I continue to watch his advanced tutorials or should I switch to brawldevs or should I just start reading the docs?

tight pewter
#

theyre reference pages

#

just go work on something

real hemlock
#

Just start creating ^

tight pewter
#

yep

real hemlock
#

Get a intention in mind and do it

#

Doing is learning

crisp ivy
hot prism
#

I am not pro at web development

tight pewter
#

Times new roman is a popular choice, verdana can be good. @hot prism

#

just dont use something too cartoony

hot prism
#

I was just thinking that my portfolio sucks

crisp ivy
#

hold on rq

hot prism
#

Roman is quite good

#

I like it

#

I feel like there should be like a video back ground or smth

tight pewter
#

yeah looks better

#

you could add texture to your backgrounds / nav bar background too

#

like a noise image or something animated.

hot prism
#

idk how to

#

can you give me like a tut?

tight pewter
#

you can throw something like this into your CSS

#

for a noise image

#

but this is just an example, use whatever you want

frigid thorn
#

But I use it too

#

Laziness reasons

tight pewter
#

lots of tools at your disposal just have fun with it

hot prism
frigid thorn
#

Yours is 10 times better than mine πŸ™

hot prism
frigid thorn
#

I'm just too lazy to edit

hot prism
frigid thorn
hot prism
#

tyty

frigid thorn
#

I suck at designing things

hot prism
#

I just place images

#

btw are you a scripter?

frigid thorn
#

Yeah im a scripter

#

So I have to put videos there πŸ™

hot prism
frigid thorn
#

Makes it look 5x worse

hot prism
#

I just learnt a bit of css and html at school

tight pewter
#

carrd.co is okay if you just wanna show off your media/art, but as a scripter it probably wont help you show off anything properly.

#

thats where things like CVs and github can help

tight pewter
#

talking to eco

frigid thorn
#

You said "as a scripter"

#

Eco is a modeler

#

And we're the only ones talking 🀷

hot prism
#

let me check what

#

circular gradien

#

is

frigid thorn
#

Btw @tight pewter what should I use GitHub for exactly?

tranquil zenith
#

guys give me an idea to make (like a td system or something)

hot prism
tight pewter
#

and also prove that you can maintain things that people will use (if you have anything like that)

tranquil zenith
ripe plume
hot prism
tranquil zenith
tight pewter
#

i guess you could link your github on there if you want

hot prism
tranquil zenith
hot prism
#

are you like a pro level

ripe plume
frigid thorn
tranquil zenith
frigid thorn
#

Mostly used

tranquil zenith
#

i can do building asw

tight pewter
#

but also as a programmer/scripter you should probably know web design and how github works

tranquil zenith
#

tryna do jack of all trades right now

tight pewter
#

just to come off as well rounded

tight pewter
#

but it has tons of features tbh

frigid thorn
#

Appreciate it

tight pewter
#

yep yep

tight pewter
hot prism
#

thanks

tight pewter
#

you can create a circular gradient using the radial-gradient() function is css

#

ye np

tight pewter
# hot prism thanks

that tutorial doesn't really show off the real power of it, but you can do something like

background: radial-gradient(circle, #000000 0%, #0a0a0a 30%, #1a1a1a 60%, #000000 100%);

or

background-image: radial-gradient(circle, #000000 0%, #0a0a0a 30%, #1a1a1a 60%, #000000 100%);
#

center will be transparent and edges will fade to black (like a spotlight)

#

something cool to play with on certain menus/backgrounds

potent shell
#

local function RunGame(map)
workspace:SetAttribute("Status", "Game")
local spawnpoints = workspace:WaitForChild("PlayRoom"):FindFirstChild("Pillows"):GetChildren()
local randomspawn = spawnpoints[math.random(1, #spawnpoints)]
TeleportPlayers(randomspawn.CFrame)
CountDown(ROUND_TIME)
end

what do i change to this to make it so the players get teleoprted to differnet pillows?

ripe plume
potent shell
ripe plume
#
local pillows = workspace.Pillows:GetChildren()

for _, plr in pairs(game.Players:GetPlayers()) do
    if not plr.Character then return end
    if not plr.Character:FindFirstChild("HumanoidRootPart") then return end
    
    local randomIndex = math.random(1, #pillows)
    plr.Character.HumanoidRootPart.CFrame = pillows[randomIndex]
    
    table.remove(pillows, randomIndex)
end
``` u want something like this right? i didnt test it i might've written somethn wrong
crisp ivy
# hot prism thanks

yo, heres a quick thing i put together as reference try doing something such as this, and having the donkey placeholders be images be photos of your work
(hopefully this isn't too complicated especially since its leagues over what you asked but yk tried keeping it somewhat simple (some gradients, drop shadows and a stroke on one of the texts) but presentation and first impressions are key

stiff citrus
#

What are people mosty looking for when they hire a scripter

stiff citrus
#

Funny guy

ripe plume
stiff citrus
#

But what do they commission you for

ripe plume
#

well that depends on the task right?

static coral
stiff citrus
#

Cause i want to build a portfolio but idk what the most popular things are

stiff citrus
ripe plume
static coral
ripe plume
#

also this might just be me but i love seeing a super full portfolio so ik you've got experience

ripe plume
#

like dozens of projects

stiff citrus
#

Thanks

potent shell
# ripe plume ```lua local pillows = workspace.Pillows:GetChildren() for _, plr in pairs(game...

can i do this? local function RunGame(map)
workspace:SetAttribute("Status", "Game")
local Pillows = workspace:WaitForChild("PlayRoom"):FindFirstChild("Pillows"):GetChildren()

for _, plr in pairs(game.Players:GetPlayers()) do
    if not plr.Character then return end
    if not plr.Character:FindFirstChild("HumanoidRootPart") then return end 

    local RandomIndex = math.random(1, #Pillows)
    plr.Character.HumanoidRootPart.CFrame = Pillows[RandomIndex]
    
    table.remove(Pillows, RandomIndex)
TeleportPlayers(RandomIndex)
    CountDown(ROUND_TIME)
end

end

ripe plume
#

also ur doing the countdown thing inside weach plr

#

each*

hot prism
#

So how do I add an image as background?

potent shell
ripe plume
ripe plume
ripe plume
stiff citrus
#

Also do you need extremely advanced frameworks for making commission or is it okay if i just have a good understanding of using modules and splitting client and server

ripe plume
#

what I do is choose an area on each plot that is 0,0

potent shell
ripe plume
#

then the position of each obj is a certain distance from that

ripe plume
stiff citrus
#

Okay good

#

Because there arent many tutorials on frameworks and workflow so i think you just need to learn it with time

potent shell
potent shell
static coral
stiff citrus
#

Okay thats good to hear

potent shell
ripe plume
#

yeah u gotta do Pillows:GetChildren()[i]

potent shell
# ripe plume yeah u gotta do Pillows:GetChildren()[i]

like this? local function RunGame(map)
workspace:SetAttribute("Status", "Game")
local Pillows = workspace:WaitForChild("PlayRoom"):FindFirstChild("Pillows"):GetChildren()

for _, plr in pairs(game.Players:GetPlayers()) do
    if not plr.Character then return end
    if not plr.Character:FindFirstChild("HumanoidRootPart") then return end 

    local RandomIndex = math.random(1, #Pillows)
    plr.Character.HumanoidRootPart.CFrame = Pillows:GetChildren()[1][RandomIndex.CFrame]
    
    table.remove(Pillows, RandomIndex)
TeleportPlayers()
    CountDown(ROUND_TIME)
end

end

fair copper
#

parallel luau is interesting

hot prism
#

@crisp ivy @tight pewter how do I put a background image for my thingy?

#

I want it to be blured as well

tight pewter
hot prism
#

I want to put this bloored out

#

if I don't like it I will change it

tight pewter
#

in CSS background-image: url("SomeImage.jpeg");

#

or in HTML use <img> tags if you need to do certain things with it

hot prism
#

I tried it

#

but the image

#

goes down the text

#

idk how to put it as background

tight pewter
#

there is also background settings for css

background-repeat
background-size
background-position
background-color
etc

you'll probably want no-repeat to prevent tiling and cover as the size.

tight pewter
#

when you add the image with <img>?

hot prism
#

I mean

#

the image just goes

#

underneath the text stuff

tight pewter
#

isn't that what you want?

#

nvm lemme see a screenshot or somethin

hot prism
#

like

#

I meant not underneath

#

I meant like to the bottom

tight pewter
#

what are you changing the background of?

#

<body> or the box containing the text

#

dont add a <img> it'll just be a separate child element rather than a background (which is why it would get appended to the bottom)

hot prism
#

so

#

I change background of body

tight pewter
#

you'll just want to edit the CSS of the box containing the text (or your body) which ever you wanna change the background of.

#
.SomeElement {
    background-image: url("SomeImage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}```
#

something like this

#

or if you want the body (the entire background of the website)

    background-image: url("SomeImage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}```
thorn flax
#

animations js decided to not work for me as a whole, for example here the droid is an npc and the track works on it but not on my player

local droid = workspace.Droid

local track = droid.Humanoid.Animator:LoadAnimation(script.Animation)
track.Looped = true
track:Play()

game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local humanoid = char:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")

    -- wait a short moment for Humanoid to initialize internal R6 tracks
    task.wait(0.1)

    local track = animator:LoadAnimation(script.Animation)
    track.Priority = Enum.AnimationPriority.Action
    track.Looped = true
    track:Play()
end)

end)

tight pewter
hot prism
tight pewter
#

yep?

hot prism
#

is there a way to make it a bit blured?

#

like where the text is

#

or just everywhere

tight pewter
#

you can probably do

filter: blur(8px);

i dont remember if this will blur the text too though

#

sec

#

yeah go ahead and try it, if it does blur the text we can attempt to make a pseudo element with ::before

hot prism
#

so what it does it blurs the whole thing

#

but the background

#

this is the code btw

tight pewter
#

try putting the filter in a separate rule set like body::before {} @hot prism

tight pewter
#

might have to put the image there as well

vague nova
#

hi

tight pewter
#

if the image still isn't blurred you may have to use a <div>/<img> tag.. then resize/reposition it accordingly to make a custom background image

#

then you can blur that instead

hot prism
#

doesn't work

tight pewter
#

or edit the image with whatever software and blur the image directly before using it

tight pewter
#

yeah i think filter only works on the contents of an element (not the background-image of an element)

#

so you'll need to make an element that will act like the background image

#

frontend is fun πŸ˜ƒ

blissful thorn
tight pewter
languid meadow
#

no u cant

blissful thorn
tight pewter
#

i dont do commissions tbh

blissful thorn
tight pewter
#

np

languid meadow
#

how did you get champ role

tight pewter
#

you get xp per message

#

i've been in this discord for awhile on and off

languid meadow
#

so just leveling up

spark dagger
#

GUYS WHAT IS THIS FOR?

tight pewter
tight pewter
ancient quail
spark dagger
#

tysm yall

gilded stag
#

i wish it curved out more

tight pewter
#

whats being tweened exactly

#

the jump/flap?

gilded stag
#

its kinda rough but

#

cause sometimes it goes backwards cause of this code

#

i think at least

tight pewter
#

probably just lerp for more customization (instead of tweening) and you wont have the overhead of creating/cancelling tweens

tight pewter
#

linear interpolation

#

lerp(a,b,t)=a+(bβˆ’a)Γ—t

#

are you using GUIObjects? or are these just decals on a part

gilded stag
#

nevr done that before

#

well ive been taught it in maths but like

tight pewter
#

nvm i read the code more lol

gilded stag
#

zindexs and thats it

#

kinda rough haha

tight pewter
#

im pretty sure guiobjects have a TweenPosition function

gilded stag
#

is guiobjects just all the children to the screengui

tight pewter
#

probably dont need tween service

tight pewter
gilded stag
#

okay yeah

#

how come tweening isnt needed

#

infinite loop?

tight pewter
#

so label:TweenPosition()

gilded stag
#

oh wait

tight pewter
#

lerping just gives more customization and you can move smoothly with less overhead

gilded stag
#

tweenposition ok

gilded stag
#

do u have a video on the differences maybe

marsh kelp
rancid comet
#

Lerping is hell use tweens if possible

gilded stag
#

ill add in the stuff to tweenposition brackets but ur saying htis right

tight pewter
#

yep

gilded stag
tight pewter
#

and lerp is just a method that lets you 'slide' between values smoothly

rancid comet
#

I’ve a module for tweens for ui I made ages ago it’s kinda ahh but it works

gilded stag
#

thi s games for me to learn so i dont mind learning it

#

lerps

tight pewter
#

for example changing a value from 0 to 1 smoothly

gilded stag
#

local color1 = Color3.fromRGB(255,0,0) --Red
local color2 = Color3.fromRGB(0,0,255) --Blue
local newCOlor = color1:lerp(color2,0.5) --Purple

#

like that

#

i stole from dev forum

rancid comet
#

LMAO

tight pewter
#

you can write your own lerp function

somber vault
#

What is the advantage of using react lua rather than just dealing with vanilla UIs?

tight pewter
#

but yeah that :lerp() function is the same thing

rancid comet
gilded stag
gilded stag
gilded stag
#

this

tight pewter
#

much simpler/intuitive to just use the UI system roblox provides already

gilded stag
#

i dont get what a b or t is i cannot lie

somber vault
#

I'd rather be an actual webdev thx lol

rancid comet
tight pewter
gilded stag
#
local c1 = CFrame.new(-50, 10, 0) * CFrame.Angles(math.rad(90))
local c2 = CFrame.new(100, 50, -50)
workspace.CurrentCamera.CFrame = c1:Lerp(c2, 0.75)
#

0.75 IS THE DURation right

#

from dev forum

rancid comet
#

Yeah

gilded stag
#

ok wait thats not the custom lerp

#

let me try this lerp first tho

rancid comet
#

There are no good commissions I wanna do in this server for scripting I mean I saw one for 10K for a carry a friend and throw them, release with a dev product which is good i responded but

gilded stag
#

okok wait let me read thank you

#

but what does alpha do

rancid comet
#

Time I think idk

gilded stag
#

big steps mean less smooth right

#

quick question before that how come this one didnt work well

tight pewter
#

i'd research this on google a bit, there is a ton of fun ways to lerp

gilded stag
#

alright i see

#

lerp is just has a lot more customization

tight pewter
#

but like i said :TweenPosition() is probably fine, you dont have to recreate/cancel tween objects

gilded stag
#

okayy htank you very much

#

ill research more and try another project with lerps

#

do u know like the best reason to use lerps

tight pewter
#

lerping is pretty essential for movement in any sort of game

rancid comet
tight pewter
#

especially since you can use deltaTime (the time elapsed each frame) to make it consistent across all machines, no matter its framerate

gilded stag
#

override

gilded stag
#

are you on about what goes on in the background or

#

what programmers actually script

tight pewter
#

in games, if your machine is hitting 120 frames then your character could move faster per second.
if your machine is hitting lower frames (like 30) then your character could move slower per second

#

to solve this people lerp relative to the deltaTime

#

so then all players move at the same speed no matter their FPS limit

gilded stag
#

oh okay okay

sturdy mauve
#

Guys

rancid comet
sturdy mauve
#

Can someone help me on. Studio

#

Pls

rancid comet
#

With what

gilded stag
tight pewter
sturdy mauve
#

With a soda machine

rancid comet
#

Yeah but what do u want it to do

sturdy mauve
#

Make it work?

#

Bc idk how

rancid comet
#

Yeah but Wym like press a button and it comes out?

sturdy mauve
#

Like let me say a ex

gilded stag
#

just a quick question for a game i work at

#

do roleplay games need it

#

or is it a waste of code

tight pewter
#

yes they'll need it as well

#

if they have any sort of physics or cars/characters that move

sturdy mauve
#

So like

gilded stag
#

does it sort out lag or anything or just fps in general

tight pewter
#

roblox handles a lot of this for you tbf

sturdy mauve
#

Click on the soda machine and it comes out

gilded stag
sturdy mauve
#

It tp to your invitory

gilded stag
#

ignore the spelling

tight pewter
#

thats a bigger topic for another day though

rancid comet
gilded stag
#

okk

#

this bird is actually having a spasm

sturdy mauve
#

IDK

#

Lol

rancid comet
#

I’m on phone rn I can’t do anything

sturdy mauve
#

I need help

#

FUFJENDJDJEJJVKFJDJEKFSSJUEJJESCKEEJEIFFWJWJSJDJUUENWJWJJECCJDJEJEJEJSJSKKBSNSEN

gilded stag
#

oh wait

#

its the override

gilded stag
#

or is it a bad idea

rancid comet
#

Depends

calm jetty
#

i need a scripter for a easy game dm me for more info

rancid comet
#

Game or 1 thing

calm jetty
#

game but not advanced and prolly not take too much time

gilded stag
rancid comet
#

That’s good but it looks weird how it stops midair

gilded stag
#

but its cause the tween has the property to interrupt

#

i dont know how to fix it

rancid comet
#

Yeah idk either

gilded stag
#

ia sked chat gpt it said to do something like this instead of tweens
RunService.Heartbeat:Connect(function(dt)
if gameStarted then
yVelocity = yVelocity + gravity
sprite.Position = sprite.Position + UDim2.new(0,0,0,yVelocity * dt)
end
end)

tight pewter
brittle token
gilded stag
#

its mario

brittle token
gilded stag
#

does he

tight pewter
#

i think its looks okay vertically, the problem is that it stops movement horizontally? or am i seeing that wrong

brittle token
gilded stag
#

i know why but idk how to fix it

tight pewter
#

can i see the code

gilded stag
#

its that true thing

#

like true is the boolean for overriding other tweens

#

so it has to wait the entire 0.3

#

heres full code

tight pewter
#

yeah tweening at all might not be the best option here then, unless you can blend the horizontal movement into both tweens

#

the velocity idea seemed okay

gilded stag
#

i might just make gravity not a tween

#

and the jumps a tween

silk glen
#

gravity shouldnt be a tween

tight pewter
#

you can just give the player a single velocity value (basically just a magnitude + direction)

silk glen
#

simply decrement the position of the frame off of the force of gravity

tight pewter
#

and then just change the direction based on whether it was a jump or gravity.

#

the vertical direction and magnitude*

fair copper
#

single dads

silk glen
# gilded stag

have a incremental system which runs every second or so which decrements the position of the sprite by a certain amount every second (you can run this as a thread then kill it once the minigame is over), then when you jump it simply increments your position up by a small amount (or you can have it run as a tween, but simply incrementing the position is probably better

tight pewter
silk glen
#

personally id just spawn my own thread so theres more control

tight pewter
#

this paired with lerping can make it smooth and allow for different effects

silk glen
#

you dont need to run the gravity every renderstep that's just pointless

tight pewter
#

you'd want to run it every frame

silk glen
#

oh true

tight pewter
#

heartbeat can be fine as well (or task.wait() loops)

#

renderstepped just seems more proper here for GUI but maybe im wrong

silk glen
#

personally i wouldn't use lerp or tween because if you have them overlap with eachother it will get messy but your horizontal movement issue is because your tweens are not calculating your horizontal velocity

take the horizontal velocity of your bird and add it to your tween, D/T = speed, T*S = D so if you have speed, then its just the length of your tween times your speed

gilded stag
gilded stag
gilded stag
#

I’ll rewrite the code tomorrow

silk glen
north frost
#

Does anyone know how to disable the jump button on mobile or reprogram it?

silk glen
#

rebind it

#

pretty sure its a context service thing

#

or no it isnt

#

eh i dont know

#

@north frost you can just set the jumpheight/jumppower of the player to zero

north frost
#

I already did but the button needs to disappear aswell

silk glen
#

search it up

north frost
spark dagger
#

oh its roblox

#

mb

urban folio
#

Who needs help building stuff

jovial breach
#

yo can anyone help me, im tryna make a leaderstats but the code isnt working:
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
end)

#

when i test it no folder is appearing

urban folio
#

You forgot

#

The values

jovial breach
#

but shouldnt an empty folder atleast appear when i play test the game

#

bc of the instance

#

nvm issue solved

dull sleet
#

is it a bad idea to use context action service and user input service together?

tight pewter
#

but it can be redundant in some cases

wet basalt
silk glen
#

for example, pressing W makes the player go forward, this is a example of UIS

#

on the otherhand, pressing R to reload a gun or pressing E to turn a engine on whilst in a car would be a CAS situation, where you only want to bind that input to that specific situation

rain otter
#

would anyone know how to make a local script show for everyone? (not changing the script to a server script) like am i able to fire a remoteevent on all the clients to show something?

silk glen
#

btw thats a very bad idea

rain otter
#

basically im making like a bow and whenever i use a serverscript the arrow that gets fired lags

#

but the arrow wont show for everyone only the client (cause of the local script)

silk glen
#

you have to use a script as a medium and you don't want to have client-authoritative arrows anyways because that'll make it rlly easy to exploit

#

but absically

#

localscript -> :FireServer() -> server -> :FireAllClients() -> replicates to all clients

rain otter
#

alright ill try it out

still oracle
#

Building steal a crown i can code i need builders anyone wanna partner?

still oracle
#

You'll get a cut

#

From the revenue that the game mKes

silk glen
#

ur welcome goat

rain otter
#

😊

wheat stump
#

hi guys, im making a maze survival game. i found a good tutorial on how to randomize the map every time, but is there a way to add items in random corners?

carmine yacht
carmine yacht
strong gust
cinder cipher
#

coding is so fake

frank lintel
#

Bro I need help can yall help me

cloud scroll
tawny spade
polar loom
#

guys what do buffer do?

frosty moat
#

I guess

#

also can manipulate data to make it size smaller

polar loom
frosty moat
#

Look up buddy

runic quarry
rare sierra
#

does A chassis have a dc server?

severe venture
rare sierra
severe venture
#

yeah can i send the link here or

rare sierra
#

not sure if they'll allow it, dms?

frosty moat
#

hey guys

#

please roblox thumbnails profile picture api

neat sigil
rich anchor
#

i need some help i need someone who knows how to make npc or ai pathfinding ;-;

thorn frigate
#

does anyone know an open source backpack (similiar to roblox backpack, with rearranging searching and inventory) module similiar to satchel with a stacking feature? or is there a modified version of satchel with stacking?

wheat pumice
frosty moat
forest mason
#

can be amything but usually bytes

forest mason
neat sigil
gilded stag
reef nymph
#

Yo guys do y'all know if there's a way to prevent VehicleSeats from resetting your camera on seat and unseat? or do i necessarily have to reverse engineer it locally

rotund lichen
#

Who have PayPal?

#

Who have PayPal and have even uhh 1 cent there I just need to test my new PayPal

crisp bay
#

https://x.com/mozert234/status/1878268088111579481

anyone know how to program ts with r6 though

working on a post apoc open world game. still looking for scripters for a % πŸ”₯πŸ”₯πŸ”₯🧟, inspired by tlou

Likes ❀️ and πŸ” are heavily appreciated!!! ✨

#scripter #ROBLOX #RobloxDev #robloxstudio #RobloxUI #robloxevents #robloxart #RTC

discord : mozert

rotund lichen
#

who wanna colab with me i have 1 year and 6 months experience i have a game idea

last helm
#

chat do u know how did fisch implement weight system i already have it but i wanna the formula that fish or grow a garden using to scale model based on weight

fair copper
#

server math

#

i think it uses a multiplier

real hemlock
#

long time no see

hybrid shadow
#

Hey guys, what would you say is the best way to learn coding? Heard lots of good stuff about thedevking, as well as the dev forum.

hybrid shadow
#

Any mini projects u would recommend doing?

fair copper
#

hmm

#

try making a killbrick with variations LOL

crisp bay
#

this guy tuff

real hemlock
#

are you referring to typescript

#

if so ive linked what you need

#

if not explain

crisp bay
#

no lol this shit lol

real hemlock
#

What exactly

crisp bay
#

i just need a movement system like that but with r6 animations

real hemlock
#

Probably the same way, no?

#

Use userinputservice

crisp bay
#

no i need someone to do it

real hemlock
#

πŸ‘

#

that'll be ur best bet

#

i mean someone here might but i dont spoonfeed code

spice oasis
#

how do u change leaderstat height like that?

queen jolt
merry shoal
#

make a custom one

calm jetty
#

hello everyone i am looking forward to hiring developers to work on my game its a very easy game to make and will not take that much working but in the future i would take some working when comming to updates and that type of stuff if u looking to join let me know payments will be included if u want cuts or ur preferd payments

thorny trench
#

luau ts is crazy

silk glen
#

nicest looking r15 ever

gilded stag
crisp bay
silk glen
#

i see

#

u still looking for scripters

#

or did ur game finish up

gilded stag
#

am i able to put like uiframes into a folder

split scarab
#

can any of you make a script that my part regenerate cause i made a script that fall if you touch it and idk how to regenerate it

gilded stag
lapis parrot
#

If any1 needs help with scripting lmk dm me i can do a reasonable price

spice oasis
spice oasis
gilded stag
#

anyone got ideas on how i should auto generate these

queen jolt
#

then calculate the distance between two objects in 2d

#

and randomize the Y position with a minimal distance

gilded stag
#

no idea what that is

#

OH

#

wait no i understand that

#

like where u subtract to make sure theres enough room

#

but how do i generate more

#

to come from the right

queen jolt
#

and generate them as you tween

merry shoal
gilded stag
queen jolt
#

idk what you just said

meager anvil
#

sorry to jump into a current convo

rapid eagle
meager anvil
#

Moving slide, since its an image isnt it?

queen jolt
#

its camera position change and tween moving to side

queen jolt
#

or rotating

#

idk

rapid eagle
meager anvil
#

Ah, so just make the image go out of bounds of the camera while making it move certain directions?

queen jolt
meager anvil
#

Ig that makes sense

rapid eagle
meager anvil
#

Thank you m8 ❀️

gilded stag
zenith ravine
gilded stag
#

i just linked it to the gravity loop rather than tween

turbid quest
gilded stag
zenith ravine
gilded stag
#

ye i clocked as soon as i replied

turbid quest
#

I think theres a big diff between the sounds

queen jolt
gilded stag
turbid quest
gilded stag
#

whats the point of doing the background

#

woah woah woah buddy

#

someone is angry

queen jolt
#

go read how original flappy bird works

#

they tween background and cleanup mess

turbid quest
#

Hey hey its okay

gilded stag
#

i literally did NOT ask for that help

#

i asked for a completely different thing

zenith ravine
gilded stag
#

silly goose! 😹

stark helm
#

ok ,thats prob bannable

zenith ravine
gilded stag
#

hes in a code discussion channel getting angry

stark helm
zenith ravine
#

Bro deleted that message when he heard ban

stark helm
#

I respect it

queen jolt
#
local function generatePillars(frame, minGap)
    -- Math
    local frameHeight = frame.AbsoluteSize.Y
    local frameWidth = frame.AbsoluteSize.X
    local gapY = math.random(minGap, frameHeight - minGap)

    -- Visuals, change whole shit its ass
    local topPillar = Instance.new("Frame")
    topPillar.Size = UDim2.fromOffset(50, gapY-minGap/2) -- change this if its not right size
    topPillar.Position = UDim2.fromOffset(frameWidth,0)
    topPillar.Parent = frame
    
    local bottomPillar = Instance.new("Frame")
    bottomPillar .Size = UDim2.fromOffset(50, frameHeight - (gapY-minGap/2)) -- change this if its not right size
    bottomPillar .Position = UDim2.fromOffset(frameWidth, gapY + minGap/2)
    bottomPillar.Parent = frame
end```

@gilded stag
zenith ravine
#

Truer

queen jolt
#

skid this

queen jolt
#

idk if it works bro

#

tweak it

stark helm
# stark helm I respect it

I have a history of getting banned for rule-breaking stuff I stopped doing once someone asked me to, and they still banned me

gilded stag
#

i used scale so i was gonna do

#

generate random decimal from 0,1

#

and then make sure when subtracted it should be under the length of the bird

#

either way the decal i used for the pillars is too tiny i need to replace it first

queen jolt
#

why it has jump button

gilded stag
#

are these close togethr

gilded stag
queen jolt
#

detect clicks

#

inputended

gilded stag
#

i did thjat too

queen jolt
#

it works on mobile

gilded stag
#

And space bar

#

jump button bad then?

queen jolt
#

idk?

queen jolt
gilded stag
zenith ravine
#

Code it that it only appears for mobile

queen jolt
#

😭

#

anything below it doesnt work

#

so your connection is invalid

gilded stag
#

what

zenith ravine
queen jolt
#

while loop yields the thread

gilded stag
queen jolt
#

this doesnt work

gilded stag
queen jolt
#

what

#

it doesnt connect

gilded stag
#

oH

queen jolt
#

oh

#

just do

gilded stag
#

yes it does

queen jolt
#

no

gilded stag
#

trust

zenith ravine
queen jolt
#

mind explaining

gilded stag
somber vault
queen jolt
gilded stag
#

jump.mousebutton1click:connect:function()

xxx

#

are u sayingdo it like that

gilded stag
queen jolt
#

remove click detection for now

#

i really doubt it connects since while loop yields the thread and it wont allow anything past it

gilded stag
#

ohhh i see

#

i get u i get uill put it above

queen jolt
#

add comments\

gilded stag
#

ok ye works

#

how come no ipairs

queen jolt
#

do closures

#

they look better imo

gilded stag
#

no idea what that is

#

i dont even know what ipairs are iether i just use them

queen jolt
#

and is actually faster

gilded stag
#

how do i generate the new lengths

queen jolt
#

actually its not even closure

#

just do :Connect(function() end)

queen jolt
#

for _, pillar in pillars do

#

if you asked that

#

do math.random(arg1, arg2) it looks better imo

gilded stag
#

does it make a big difference

#

ye i was gonna do that

#

i stole this from learning how to print decimals

queen jolt
gilded stag
#

is there a float randomizer

gilded stag
#

the bird is the most important

queen jolt
gilded stag
gilded stag
queen jolt
#

show me what youre doing

gilded stag
#

im asking

#

i havent changed anything yet but

#

should i just generate

#

a number from 1 to 1000

#

and then divide it

queen jolt
#

math.clamp

gilded stag
#

thanks

#

i do python so i only know random.randint

queen jolt
#

pillarpairs too

#

youre gonna remove it anyways to make it generting

#

i gtg now

#

dm me if you need anything

gilded stag
#

ok thx

sage glacier
#

What would be the equivalent to beginner projects in python like tic tac toe, rocket countdown etc to lua scripting. Are combat systems too advanced to start with?

somber vault
#

yes

static coral
#

🀯

opaque granite
#

yes

turbid quest
gilded stag
muted canyon
rotund ore
#

I am about to crashout, I have used this animation method for ages, yet it just stopped working in one game and works in another, can you help?

local Players = game:GetService("Players")
local plr = Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local animator = hum:WaitForChild("Animator")

local idle = Instance.new("Animation")
idle.AnimationId = "rbxassetid://79841468322486"

local IdleAnim = animator:LoadAnimation(idle)

tool.Equipped:Connect(function()
    IdleAnim:Play()
end)

Local script inside tool, R6

plush sorrel
rotund ore
zenith ravine
gilded stag
desert wave
#
function towersService:Setup(tower, cframe, towerLevel)
    local levelModel = tower:FindFirstChild(tostring(towerLevel))
    if levelModel and levelModel:FindFirstChild("HumanoidRootPart") then
        levelModel:SetPrimaryPartCFrame(cframe)
        
        levelModel.HumanoidRootPart.Anchored = false

        local bodyGyro = Instance.new("BodyGyro")
        bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
        bodyGyro.D = 0
        bodyGyro.CFrame = levelModel.HumanoidRootPart.CFrame
        bodyGyro.Parent = levelModel.HumanoidRootPart

        coroutine.wrap(function()
            self:Attack(tower, towerLevel)
        end)()
    end

    tower:SetAttribute("Level", towerLevel)
end

function towersService:Attack(tower, towerLevel)
    coroutine.wrap(function()
        while tower.Parent do 
            local towerData = towersConfig[tower.Name]
            if not towerData then return end

            local levelModel = tower:FindFirstChild(tostring(towerLevel))
            if not levelModel or not levelModel:FindFirstChild("HumanoidRootPart") then return end

            local towerStats = towerData.Upgrades[tostring(towerLevel)]

            local target = self:FindNearestTarget(tower, towerLevel)
            if target and levelModel and levelModel:FindFirstChild("HumanoidRootPart") then
                local targetCFrame = CFrame.lookAt(levelModel.HumanoidRootPart.Position, target.HumanoidRootPart.Position)
                levelModel.HumanoidRootPart.BodyGyro.CFrame = targetCFrame

                local humanoid = target:FindFirstChild("Humanoid")
                if humanoid then
                    humanoid:TakeDamage(towerStats.TowerDamage)
                end
            end

            task.wait(towerStats.TowerCooldown) 
        end
    end)()
end

how can add to setup to make the head use a bodygyro to move up and down. i've tried it but it moves the entire body. is it because of the neck motor6d?