#code-discussion
1 messages · Page 206 of 1
For the more experienced devs here. Is there any way to have deformable tiling meshes?
I read about editablemesh but I'm not sure it's what I'm looking for (especially because I'd probably need like 200k of them)
What?
Rails.
I need rails, freeform rails.
I need to be able to bend a mesh which would repeat
So, from my understanding, you want to bend one of the tiling meshes?
Ish? Are there tiling meshes even?
wrong everything
wrong channel wrong
just wrong everything
You can use skinned rigs for that instead of editablemeshes. They're easier to make + you can program the train to follow these bones and if it detects bend rails using bone cframe then the train will be derailed
I'm not sure how effective it is at performance tho
I won't be using cframe
for multiple reasons
It needs to have physics
Editablemeshes don't edit collisions for performance reasons
But I'm not sure about the skinned rigs, never used those.
The meshes are created in studio
After, they don't get modified
so they can just always have the same collision
doesnt either
Also if you need >200k rails, then you should replicate their appearances onto the client instead of the server, that way you'd reduce the server memory. This might be against your plan, but at least you'll get some performance on the server side
Basic unions will do so long as they don't exceed past your rails' vertices
id use editable meshes if your rails are really dynamic
note they dont have shadows nor collision
@balmy zenith
Don't editablemeshes have collisions??
Like, I'm editing them at build time - they remain static at runtime
then use a rail segment and repeat along the curve
(The idea is to make an intuitive track building plugin)
Which was my original plan, but it has
a lot of issues
i believe one already exists
Archimedes is not enough
like?
Try to create a switch linking 2 existing rails :)
no like theres plugins that put anything on a curve
which won't be gapfilled
whats the issue with that
You can't
Take two rails separated by an arbitrary amount of studs.
You want to utilize roblox's physics engine?
Yes, I've fixed most problems with it already
I have formulas for max speed on stuff, ways to deal with the janky physics
You are not allowed to hire scripters here, please check #scripter-hirable to find scripters
(Mainly gapfilling so that the tiny holes don't trip the train)
Editablemeshes and skinned rigs wouldn't be useful as their collisions wouldn't change.
which I have solved already (made my own gapfill plugin)
so whats the issue
Making a switch is still near impossible.
Really linking two existing rails is near impossible
Because it's not like you choose a start and end point.
why
yall suck
?
Who the fuck are you supposed to be
someone thats better than you
u suck
Who, him ?
Either of those scenarios is essentially impossible
to fill in
with just "place tracks with x angle repeatedly"
mad cause ur inferior to me
@woeful dune
you place it on a curve
And yet you still live under Israeli regime
place rail segments along a curve
no amount of moderation is changing the fact
far from it
I really don't care I'm just trying to get help here
Yeah, that was my second solution, but then I need to do an absurd amount of gapfilling, and then I run into the sleepers issue:
is this a plugin for in use in studio only?
if so then just use an editable mesh
although
not sure how good roblox collision will be with meshes
Yes
I've been saying this from the beginning
The little things in the middle
sleepers. I can't exactly neatly gapfill with those in mind.
bypassing, really?
then use an editable mesh?
An eye for an eye
mad cause he sucks
except saying "yall suck" isnt a bypass
also editablemeshes seem to have collisions
it has collisions, not live collision, collision is calculated once when doing CreateMeshPart
you can convert an editable mesh into a meshpart which is normal
i believe
does high recv mean build issues? or script issues? im getting 120 receive rn
can be anything
when i removed my scripts, still have a high receive. so safe to say its build issues?
also does high receive cause lag?
lag as in latency yes, not fps
Which I thought as well yeah
what seems to be the problem here?
local DataStores = game:GetService("DataStoreService")
local PlayerStore = DataStores:GetDataStore("PlayerStore")
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "leaderstats"
local coins = Instance.new("IntValue", leaderstats)
coins.Name = "Coins"
coins.Value = 0
local success, data = pcall(function()
return PlayerStore:GetAsync(player.UserId)
end)
if success and data then
coins.Value = data.PlayerData.Coins
end
end)
game.Players.PlayerRemoving:Connect(function(player)
local success, errorMsg = pcall(function()
local PlayerData = {
Coins = player.leaderstats.Coins.Value
}
PlayerStore:SetAsync(player.UserId, PlayerData)
end)
end)
when i run it it says ServerScriptService.PlayerStats:18: attempt to index nil with 'Coins'
print data and check urself
data.PlayerData is nil
guys how to make commands
how would i go about making my torso and limbs lag behind my camera position so my head is in front of them but still aligned with the camera
in a top-down 2d game how can the character be coded to be covered by a tree when they walk behind it but cover the tree when they walk infront of it
I don’t think your code accounts for when the player joins for the first time
idk i'm new at this
Basically your code expects there to be a “coins” variable in the database
But there isn’t
Check out a tutorial
Ideally you should learn profile store or profile service (I forgot which one is the newest)
Is it bad to use the OnClientInvoke function thingy when using remote functions?
Cos it means exploiters can get to your code?
Ive never used a remote function
Mind telling why you’re using a remote function? I’ve never had a scenario where i couldn’t use something else
Oh, at the moment I'm just learning scripting and was curious why
Ah alr
Apparently you use them for stuff such as passwords etc in your game im not too sure
I honestly don’t even remember exactly what they’re for
Also no, it shouldn’t be unsafe as long as you have proper checks on server side
Same with remote events
Ok thanks I was just wondering, good to know they're not that important tho cos I don't fully understand them tbh lol
Alr
anyone elses plugins wont load?
D
How do you plan to verify if the player can use that skill?
Either way your still going to have to cross the server boundary to fire all clients
it would ensure that animations are synced across all clients
and also consolidate states to be server authoritative
which is important for parry based combat
Nah
Animations shouldn’t be handled on the server
Animations already replicate to all the players meaning they are already synced
Though if you want to be further secure you could load the animations on a player on all the clients
they aren't synced though
because if you play an animation on ur client you would see it first before roblox replicates it to the other clients due to latency
Player 1 does a skill (plays anim on their client)
Player 2 loads the anim on player 1 cliently
Player 3 loads the anim on player 1 cliently
thats not relying on roblox's animation replication
You would have to create an animation handler to do this
I know
thats doing it on the client and binding to another client's animator
That’s why I said you can further improve those by loading animations on the player cliently
playing an animation on the server does basically that at the cost of a little overhead
Sure but it’s just like tweening on the server
its not
It’s not recommended
because it would fireallclients internally to play it
tweening on the server actually tweens it on the server
No im talking about recommending
Most people agree that animations should be a client sided thing
Now if you think that the server works better for your use case
L I G M A
I just don’t know why you need animations to be server authoritative
i need combat to be server authoritative
so im not going to put extra effort into syncing animations and doign them on the client if theres basically no benefit to user experience
I mean alr
Do you fire to the clients to do VFX?
When an animation event gets fired
yes
Each time the aim event gets fired?
i fire to the clients when the hitbox has processed
Yeah but let’s say your using a skill
That chargers
And you have a charge anim event
When that anim event
Get fired to you fire to the all clients to apply the VFX?
yes
Yeah that’s not a good way to do it imo
They way I do it is now that all the clients load the animation on the player who started the skill
Those clients can listen to the animation event
And apply the VFX on their client without ever firing to the server
It saves so much remotes going back and fourth
its pretty negligible performance
Trust me it’s not
the only thing ur method solves is the rare case where vfx packets are dropped
I used to have it the way your doing it
Just fighting 1v1 after a while
Into a 15 player server or something the amount of remotes would start to have a noticeable affect
It also depends how many skills you have
If each skill only had 1 remote then yeah I doubt it would have a noticeable difference
It if you have 7 skills each with 5 remotes that’s 35 remotes firing throughout the game
99% of skills have 1 remote
most of my skills are like invisible
or just a combat animation
because its a star wars game
can someone tell me how to open the toolbar in this new bad ui 💀
guys is it possible to make Roblox cursor invisible?
i have a custom cursor module yet my only issue is the Roblox cursor being above it regardless of the custom cursor ZIndex being very high
i know its pretty much possible
do u know the way?
I do not
since
I want the cursor to be able to change colors
I make a screengui in which I position it to where the mouse is etc
if I made the cursor icon the custom cursor I wouldn’t be able to change the size, color, etc
@eternal kindle
hmm
let me see in a quick script
u want to see my script?
no no
ok
local UIS = game:GetService("UserInputService")
UIS.MouseIconEnabled = false
this will make the mouse invisible
the default one
tried that my mouse icon wouldn’t get disabled
I can show my script to further help
I also tried setting my mouse icon to nothing
yeash do it in my dms. This channel isnt for code help
yes
Could anyone help me understand code?
@winter flax
Yow So i use ray cast logic to make a simlpe fire ball ability now want to make 2 more abilities the first one is a lighting attack form above kinda like bloxs fruits rumble fruit c skill but i have no idea of what logic to use any ideas?
what
Nothing
does anyone know how games like tsb and azure altch have "zero delay"?
like even if i have 150ms of ping, all my actions will come out basically instantly
and even on azure latch if i have like 200ms of ping i can kick the ball and the physics are smooth and everything is synced up perfectly
this is not true in TSB because they have input delay
tsb has a really small delay based on ping
same thing based on azure latch, but like how do they accomplish this? normal remote events in roblox studio have a delay because of ping
thats just because input delay is rarely noticeable unless u have very high ping
idk about azure latch
prob some sort of client prediction
what
server authoritiative ball system with the client synced to it via prediction
you just accelerate it so that it can catch up to the actual simulation
what about the things like velocities from doing things like dahses? i would assume those are on the client
yes
how would they be verifed if theyre on the client
like whats stopping a hacker from just making their dash go 3x as fast as a normal dash
thats possible in any game because movement is client authoritative
nothings stopping them really
oh ok i thought there would be some weird extra element thank you
how would it work for other clients tho? in azure latch when someone kicks the ball it looks almost instant
assuming animations are synced they can just run the same logic
hm ok thank you ill look into this
noob
depends on ur thumnail and avg playtime i spend like 5 ad credits a day and had a ccu of 10
also, how does the thumbnail work?
like where is it displayed
i don't see thumbnails on roblox anymore
like you know the old ADs
that were on the sides
it shows the thumbnail of your game now u dont have to make a seprate icon now
so in creatives in ads manager i just upload the thumbnail of my game?
no u dont have to upload anything there u just select ur game in ads manager
Does anyone know how the Math.random method makes the random numbers?
Like does it base the rng off time
Or does it use another system
labubu
hello guys
What do grow a garden use for toolbar(Like is there and open source one)
its literally just the roblox backpack
No
just wrote their own
Coconuts can't speak english
Am i doing it right? Its not printing it on the second image after the signal gets fired
can someone help me replicate a desmos function in roblox but instead of sine it becomes perlin noise?
https://www.desmos.com/calculator/nllqav6gb6
oops meant to sed in code help
@hybrid craterPlease don't try to Hire in #code-discussion
In future use the Marketplace to avoid further intervention
anyone know why the pathfinding wont jump over higher walls??
local function computePath(player, targetPos)
local character = player.Character
if not character or not character:FindFirstChild("HumanoidRootPart") or not character:FindFirstChild("Humanoid") then
return
end
local humanoid = character:FindFirstChild("Humanoid")
local path = PathfindingService:CreatePath({
AgentRadius = 2,
AgentHeight = 5,
AgentCanJump = true,
AgentCanClimb = true,
Costs = {
Water = 20,
Jump = 0.1,
Climbable = 2
},
WaypointSpacing = GRID_SIZE,
MaxSlope = math.rad(60)
})
while character and humanoid and humanoid.Health > 0 do
local startPos = character.HumanoidRootPart.Position
clearPathVisuals()
local success, errorMessage = pcall(function()
path:ComputeAsync(startPos, targetPos)
end)
if not success then
wait(CHECK_INTERVAL)
continue
end
local waypoints = path:GetWaypoints()
local status = path.Status
visualizePath(waypoints, status == Enum.PathStatus.Success)
if status == Enum.PathStatus.Success or #waypoints > 1 then
local moveSuccess = moveAlongPath(humanoid, waypoints, targetPos)
if not moveSuccess then
wait(CHECK_INTERVAL)
continue
end
else
break
end
break
end
end
For a tip jar skin system would it be better to make a completely new tool with that skin or should I just do it as a mesh
Like a mesh that gets cloned and welded
Or a tool gets replaced
how would i recreate this smooth body rotation?
you would have to make a string and a few more codes
yea
wdym yea
eya
how is that helpful
@pearl shuttle quit tryna ping everyone >:(
Its spam
lerp the bodyorientation to the current camera's orientation
how would i do it in third person aswell?
someone have a video for do money system
how do i save a value from playergui when player is leaving if it says not found player gui
ping me when answer is found im going in ultrakill
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera
local Character = script.Parent :: Model
local HRP = Character:WaitForChild("HumanoidRootPart") :: BasePart
Character:FindFirstChildOfClass("Humanoid").AutoRotate =false
RunService.Stepped:Connect(function(_, dt)
local current = HRP.CFrame
local goal = CFrame.new(HRP.Position) * Camera.CFrame.Rotation
HRP.CFrame = current:Lerp(goal, 1 - 0.1 ^ dt)
end)
``` idk
make it found
why r u grabbing values from playergui to save anyways
because i need to
to what
editing values from playergui as state isnt a valid method
id have a cache on the server with the player's state and edit that
you should also sync it to the client so the client can read from it
why do you even put the values in playergui anyways
put it in the player instead
or literally make a dictionary with player state
if I wanna make a skateboard feel like your driving a skateboard would it be smart to use roblox vehicle seat
or should I script my own controller if the latter then any ideas where to start?
because i need to
dude
is there any way to get values in player gui or no
when plr is leaving
js say
local PlayerStates = {}
function PlayerAdded(player)
local Data = GetData(player)
PlayerStates[player] = Data or DataTemplate
end
function PlayerRemoved(Player)
local Data = PlayerStates[Player]
Save(Data or DataTemplate)
end
bindable Get Data(player)
return PlayerStates[player)
end
no, your method isbs
what does isbs even mean
oh ok
why wouldnt it work
why does roblox destroy the values
when player pressed the button
leave button
immediatly
literally just parent the values to the player like leaderstats or have a variable with all player states you can edit/update and shit
is it good to play animations on the server
doesnt matter
actually?
How to put the UI on the corner for all devices
make the anchor point 1, 1
scale for position instead of offset
set the position to 1,0,1,0
Yes
if it doesn't work mess around with the anchor point
if you play on client it will play on the server anyways
thank you this works but my goal is to make it so third person works like normal but the body lags behind when the character is turning not just all the time
everyone else tells me playing it on the client is better
everyone else is skids
What coding software should i use?
Scratch
LOL
If you’re playing animations on the player’s character, you should do it on the client. You get more information and decrease server load
But eventually server replication will make it look buggy
If u are doing animations with animation markers for fx do it client side
And the main hotboxes n stuff are server
how to make murder vs sheriff/rivals type lobby queue system
Gng thinks im chatgpt 😔🥛🥛🐮🐮🐸🐸🐸🐸🐸🐶🐶📿🔛🔝🔛🔝❤️🩹💔
Yes
But ur gonna have stop the animations replicating from the server back to player
how would you read/write a buffer like a dict
BufferUtil.read(someBuffer, "key", schema)
BuffeeUtil.write(someBuffer, "key", schema, value)
will prolly work but like no types :(
is there a good way to do this but with types?
you don't
you convert the whole thing from a buffer to a dict
would a proxy dict work
uhhhhh i dont really wanna uncompress like 100 dicts
wym
a dictionary that points keys to buffer indices & types
unless im misunderstanding
that is what the schema is for, specifying the format to read/write in
but i still get no types
unless theres a way to do like
typeof(schema[key])
which might work?
oh I see, my bad
actually it wont, cuz value isnt of the type
schema would be like
{
Key = {0, "u8", 1} -- bit index, type, primitive
}
hmm
ngl, this is prolly worth since just the schema alone is probably same size as an decoded buffer 
so i just convert to buffer and throw out schema
although this assumes 1 schema only maps to 1 buffer
🤔
how do you know where a key is
a map is dynamic and can have any keys
yes its a fixed layout
a struct needs to have its keys already defined
static size, static keys, not static values
if an action is server authoritative
it's fine
but if it's something like movement trigger it client side
guh
the type should be automatically correct right? im dumb
cuz function would need to detect which type to parse as
then return said value
maybe
or i should throw out types 
what if the schema was also a buffer..
erm
how do i fix pathfinding walk animation stutter
Yoo anyone on
I made a fully customizable backpack system which lets you edit the way your backpack looks! You can also add custom buttons to the side to filter items of that type only! + more coming
Here is the full devforum post about it:
https://t.co/hDMQ8BUSDS
#Roblox #RobloxDev
exuse me?
What did it say
example?
ill try this when i get home
i fixed it myself
its because of the fraction of a second between the humanoid.MoveToFinished:Wait() and the loop starting again
i just made it check if the waypoint is within 3 studs of a hitbox part i anchored to the humanoidrootpart placed near the feet
which fixed another problem i had where the npc would get stuck when jumping over an obstacle
cant remember exactly but they where talking abt ai
using ai for code
chatgpt is so shit at coding
ive tried to use it to make stuff when i was a little learner and oml now im looking back and it would make 30 lines of code into some crap 80 line pile of spaghetti
real idk how to script it yet but im pretty sure it was way to many lines i asked it to make a gun and it gave me 130 lines of code
a month ago i tried to get it to fix smth and it gave me such a bad fix, i ended up fixing it myself like 30 minutes after and it was like 3 times better
thats not bas
bad
oh lol
depends how advanced it is
ehhh kinda mid
does it have like bullet tracers and recoil
no
ai so buns bro
do you use connections or a loop
was it just click and if the hit of the mouse is an npc then damage it
depends
i rarely use connections but normally i find a way to fix my code without loops or anything
im starting to use task.spawn and cancel
should use connections movetofinished and blocked like this https://create.roblox.com/docs/characters/pathfinding
but i normally find some other way to do it
loops cause issues, you shouldnt loop over the waypoints
oh
it was smth else
what i was talking about earlier
but ill still try to use connections
so i cant do a for loop going through each waypoint
interesting. how come?
it just causes issues, i dont remember how
i see
i think its just like hard to break out of
since you may have multiple of the loops running, and thats an issue
connections make sure you only move along 1 path
alright thanks for helping
im gonna use connections when i get home and hopefully it goes well
yea i js asked ai to make a gun and it has 255 lines of code and has ammo, sound and muzzle flash
skid
ok
Shirou day
lmao
sometimes when I play an animation it can cause jumping to like push backwards
its weird to explain
like walking backwards and jumping
causes like some fling/push back
player gains some weird velocity
any scripter here that can work for %? game is 60% done
australia
iran banned roblox i think
that was ages ago
oh
daily reminder for everyone to thank their scripts by using this
while script do
print("thanks for working")
end
can you?
these 3 lines of code prevented my script from taking over earth thank you
can anyone
steal a food
could a custom 3d physics engine in roblox be faster than roblox's physics engine?
the custom physics would only need to have simple OBB, Sphere, etc rigidbodies
probably yeah
depends on how you go about doing it
roblox has a lot going on in its physics though
which is why it can slow down a lot
custom solutions can be better cuz you can have actual deterministic physics
which roblox does not have
just need some boxes to collide, context is like a factory with conveyers
yeah it would be faster then
just remember that no matter what the main bottleneck is always going to be actually moving the parts
may that be through bulkmoveto or some other strange method like bones which i hear are really efficent
prolly gotta cull the visuals
what is this advertisement
bro just sent the most dogshit code
yooo who on rn
me
😉
do 1, 1e834
Bro
Use exponent
perfect
bro i am new
i tested it and it crashed🙏
very unexpected
Use exponent in the feature
lol fr
Lol it. Hurts me
what is it
Do you even learned it in math in school?
yep
Power/Exponent
oh yeah
It is the same as here
i learned it as power only lol
Does anyone know stuff that'll look good on portfolios?
Lol
stuff
Makes sense
VFX is good for posting on Twitter ig
or physics experiments, like cloth physics and so on
isn't this scirpting
To be honest I don't realy like twitter and never got good results from twitter either. No one would ever follow me
everyone would follow * if we new
knew
I also don't understand why anyone would follow me.
Posts of progress on my game? who cares
doge
If you post interesting stuff people will follow you
basically the point of gamemaking
hm
my games all look pretty boring to be honest
(Maybe because they're all 1 week into development)
don't tell me its damn brainrot
alright
Let me show you a WIP game of mine(currently in development, 0.5 weeks old)
if u did please don't check the instagram comments 🙏
So we got cables that are made up of single segments and some ports
Gonna be a game about hosting and managing servers/websites
thats boring as hell
In-game coding is also gonna be a thing.
We will try to also implement real-life networking stuff
Well we will try to add a gameloop
local function AlignModel(deltaTime: number): ()
local Pivot = Instances.Player.Character:GetPivot()
local MidFoward, TotalFoward = 0, 0
local MidRight, TotalRight = 0, 0
for _, SideVector in FowardSide do
local RaycastResult = workspace:Raycast(rootPart.Position + (rootPart.CFrame.LookVector * SideVector), rootPart.CFrame.UpVector * -RAY_LENGTH, AlignVariables.RayCastPara)
if not RaycastResult then continue end
if OldNormal ~= RaycastResult.Normal then
OldNormal = RaycastResult.Normal
alpha = 0
end
TotalFoward += 1
MidFoward += RaycastResult.Normal:Dot(Pivot.LookVector)
end
for _, SideVector in RightSide do
local RaycastResult = workspace:Raycast(rootPart.Position + (rootPart.CFrame.LookVector * SideVector), rootPart.CFrame.UpVector * -RAY_LENGTH, AlignVariables.RayCastPara)
if not RaycastResult then continue end
TotalRight += 1
MidRight += RaycastResult.Normal:Dot(Pivot.RightVector)
end
local NormalAngle = CFrame.Angles(-(MidFoward / TotalFoward), 0, -(MidRight / TotalRight))
RotationMotor6d.C0 = DefaltC0 * NormalAngle
end
Can anyone tell me why in this code, the more the ramp is inclined, the more I sink into the ground? I'm manipulating Motor6D linked to the character's rotation, but I think there's code missing to compensate for the sinking, but I don't know where to start
pastebin exists ^
My friend and me primarely
and people who realy like details and realistic networks
Yeah....
We didn't want to use unity/godot since it would be too annyoing and we both'd have to learn it from the start
no
on roblox or external software?
I mean that's cool but that's not realy a game
'''lua
dawg
So you are making a game about the worst part of programming shit

table.find(tablfind, {skin.Name, survframe.Name})
tablfind has the {skin.Name, survframe.Name}
as [1] = {skin.Name, survframe.Name}
it returns nil what do i do
what
Holy syntax
Table.find find a value you are inputing
Nice
Nah you good its like 2 seconds lol
yeah not rly, it's pretty fun. Especially if everything is not as complicated but still realistic. Expanding will also be easier hopefully
This gif is amazing lol
Why when I launch the game the UI is shifted
Did you use offset instead of relative size?
?
Send me a pic of the size and position of the shifted things
is thss real
btw this wouldnt even get on the front page even with 5M usd of funding
so i hope this is just a passion project
I know
I'm doing this for fun
Me and another friend realy like details and both have irl servers so we thought we'd make this just for fun.
Since it's been a lil while since I coded I just made this small AOE thing in like half a hour for fun
tweens or moon animator
Tween but I don’t plan on keeping it on server just testing purposes
#⭐creations message
feedback pls?
whats the most organized ways to make the attacks on the units
in the main
game
tds
someone want to make with me a Fishing Game im a Scripter
@unreal mulch
https://x.com/LoucaL555/status/1980320407912870054
those games exist on steam wrong auditory on roblox
It's a passion project
who is gonna pay on the servers?
wdym pay? If I need robux I'm gonna do comissions or make a cashgrab game
servers
how u gotta implement the coding?
w out servers
Ohhh
Servers only work when the person is online. But the website can still be accessed and the data will also be stored.
It's gonna be complex
If that doesn't work then I'm using my personal server
website requires severs
gl On saving all the Data
Thanks
whats he doing?
game about hosting/managing servers/websites on roblox
Datastores?
the roblox server would need to be up at all times
No?
The servers will be run on the server the accesser is on
for the time that he's on that site
but you cannot remotely start up a roblox server without joining it
besides, how will you communicate to the roblox server from outside?
oh now i get what you think
literally
websites on roblox
not accessable from everywhere
so inside roblox?
so it wouldnt really be a website
it would?
so just a webpage on roblox?
websites yes
just not accessible from WWW
yeah
accessible in Roblox
anyone could make a website?
?
like would anyone be able to make one in the game
if they would be invested enough then yes
how do i define the type of this table to be {any}
Trading_Client.InTradeConnections = {}
in a module
:: {any} cast it
yeah i tried that but it doesnt solve my problem
elaborate
later on i do this
table.insert(self.InTradeConnections,
TradeOfferItemTogglePacket.OnClientEvent:Connect(function(action: string, item: Item, yourAction: boolean)
self:HandleDisplayItemToggle(action, item, yourAction)
end)
)
and the strict mode complains saying its not the same type
is this located in the constructor
what does it say exactly, whats the other type?
no in the module itself
in the .new?
type 'connection<any,any,any> could not be converted to rbxscriptconnection
out of everything, simply just in the script
is the packet thing a roblox remote event?
then why are you using self?
wdym
yeah kinda
if its in global scope, how is it in self
helps communicate between server and client
is it custom, or roblox's
what code where you talking about? the table define? or the table.insert?
the table.insert is of course in a method
self.InTradeConnections?
why are you using self here
when you set the InTradeConnections in global scope
what am i supposed to use then
Trading_Client.InTradeConnections this?

anyonee have beginner scripter homework ideasss
i need likeee smol projects to learn w
Has any scripter here worked on steal a type games
Dm
Me
dont u work for that hood game slr or sum?
Yes
What’s the best way to get profilestore data on the client
look into replicaService by madworks
Alr thanks, is it better than the one(s) made by loleris?
Stupid question don’t answer that
Js read it, mb 😭
Idk about the loleris one
yo im thinking of making a game whats the best way to hire ppl while also making sure they dont steal parts of the game
ok
Collaborating and hiring/getting hired outside of Marketplace is not allowed. Consult #marketplace-info and #rules
anyone know how to fix some virus which just spews out 80 thousand lines of arabic
game that has around 150ccu
Ik bro but all my announce will be Denied
geniunely not making ts up
Just reboot bro 😭
where can i senda screenshot its legit
This doesn't allow you to break the rules
my luaheap is seeing that random require scripts
full of arabic which translate to random dog facts
Is an rule?

get friends to start scripting or trust experienced scripters
save us twin
try doing ctrl shift f
then searching require(
who can script in studios?
My cat does
bro
local function rootMotion(): ()
local character = CharacterHandler.get()
local rootPart = character:WaitForChild("HumanoidRootPart") :: BasePart
local elapsed = 0
local originalCFrame = rootPart.CFrame
for index, currentFrame in rootMotionData do
if index == #rootMotionData then
break
end
local nextFrame = rootMotionData[index + 1]
while true do
if elapsed >= nextFrame.time then
break
end
local alpha = (elapsed - currentFrame.time) / (nextFrame.time - currentFrame.time)
local offset = currentFrame.cFrame:Lerp(nextFrame.cFrame, alpha)
rootPart.CFrame = originalCFrame * offset
elapsed += task.wait()
end
end
end
``` anyway to improve or nah
already tried,
yea
local RunService = game:GetService("RunService")
type MotionFrame = {
time: number,
cFrame: CFrame
}
local rootMotionData: {MotionFrame} = {
{time = 0, cFrame = CFrame.new()},
{time = 1, cFrame = CFrame.new(0,1,0)},
{time = 2, cFrame = CFrame.new(0,2,0)}
}
local function rootMotion()
local character = CharacterHandler.get()
if not character then return end
local rootPart = character:WaitForChild("HumanoidRootPart") :: BasePart
if not rootMotionData or #rootMotionData < 2 then return end
local elapsed = 0
local originalCFrame = rootPart.CFrame
local motionCount = #rootMotionData
for index = 1, motionCount - 1 do
local currentFrame = rootMotionData[index]
local nextFrame = rootMotionData[index + 1]
while elapsed < nextFrame.time do
local alpha = (elapsed - currentFrame.time) / (nextFrame.time - currentFrame.time)
local offset = currentFrame.cFrame:Lerp(nextFrame.cFrame, alpha)
rootPart.CFrame = originalCFrame * offset
elapsed += RunService.Heartbeat:Wait()
end
end
end
rootMotion()
this much better
also how did u know i also used MotionFrame for my types, or u just coincidentally used that aswell
i made it up didnt know u used it, coincidence ig lol
np
lmfao
oh yeah, i guess ill change the for loop too
checking # each time is probably slower
its kinda preference but i like my conditions within the while loop too. unless theres a performance thing im unaware about, probably negligible if there is? lmk though
is there any reason why you're not using runservice for this
no reason
task.wait was just faster and came to mind at the moment
not faster, but faster to type
yea if u like it then use it its ur way
i mean we're talking like such minimal improvement that it doesn't really matter how fast it is
Yo
any gain you might get from using runservice is going to mean nothing since setting the cframe takes like orders of magnitude longer anyways
gain is gain ig
lll
i'm not an optimization dev so idgaf
some people get crazy over stuff like that
fair and true
Who wanna be my friend
my first ever go at a Sprint/Stamina script, I'm still a beginner, thoughts?
thanks 👍
nice

benefits of using RunService.Heartbeat over while task.wait() do?
heartbeat always runs after physics
task.wait i think is more varied in timing i think
task.wait runs after physics as well
they are pretty much the exact timing
after stepped is task.wait() then heartbeat
👍
anyone wanna help me with coloring system in my fashion game ill pay afterhead
my sprint animation looks weird. Is that my fault or the animators? is there any way I can make it look smoother with scripts?
Show it
Watch Untitled by wertar101 and millions of other Roblox Studio videos on Medal. Tags: #robloxstudio
The animation is quite ass ngl
so its not my fault?
Nah all u did was set walkspeed up right?
yeah
Naw its not ur fault the animation just needs to be better
oh alr tysm i thought there was like some secert shit people right to make anims look better
not sure why its saying it reached the buffer size limit when i = 29997 while the totalScreenInfo is 30000
probably because you start at 0
you have 1 extra value
also why use a string?
thats just a waste
use actual uint8s
yeah buffers usually need one more byte but even if i increase the buffer size by one it still doesn't work
because color hexes are strings
good 👍
then dont use color strings and encode as 3 uint8s?
does to hex return a #, i forgor
edit: no
also it accepts bit offsets, not byte offsets
so you gotta do i*8
- if you wanna fill entire thing use .fill
but id guess you also wanna do other things than fill all
also info per px would be 6 bytes as a character is 1 byte
and this is why using hex is inefficient because 1 character maps to 4 bits but stored as 8 bits
it works now all i had to do was increase the buffer size by three more bytes and decrease the loop amnt by three bytes to match the 0 based index
hex is three bytes
the data it stores yes
but hex is 6 characters, each character is 1 byte
so you are wasting half your storage
stored as 6 characters = 6 bytes
hex data is only 3 bytes, so you wasted 3 bytes for nothing
what would you say the alternative is if i wanted to use and store hexes to be used in fast secession without using alot of memory
for richtext since it uses 5 less bytes then rgb
Anyone know what fighting systems usually cost to get made?
is anyone else having trouble opening rbxl files
thats actually pretty cool
what this for?
he probably means uses less characters
just store as rgb then convert to hex when using it
I've been trying to learn scripting but I honestly don't know where to start. Any recommendations or fundamentals that I should learn?
There is a game on steam called the farmer was replaced, it’s a very simple custom made language but it should teach you the logic behind it
😓
bro I escaped code help channel just to meet you sending shitpost again
lets connect autism
wat
i still need to figure out frustum culling bruh
how do the hell do i build frustum planes from fov
i meant in color tags
optimization
that sounds like more work than you really need to do
?
anyone got a reason why ZonePlus doesn't work on small parts
does it need my whole character to be in it or sum
ima try itemEntered rq
nop
ima js use .touched mayne

R u even updating your studio 😭
fuh nah
Any one trying work on this deepwoken copy with me
anyone wanna help me with this pre made quest system but help me set it up for my game will pay ofc
ok @fallen summit
Hey does anyone know if the 200 Lines of Code can be split in multiple Scripts (For the Scripter Skill Roll)
Ofcourse it needs to be working together in one System.
you can ask in staff help =] I don't have that role, or i could help you.
OK thx
no
So it needs to be in one Script only?
Yes
OK thx
Give me 3-2 months Im done with learning and im advanced
rn imm beggninger know all the basics
3 months to advanced.. woww
yea sure
i made a little thing but every time it walks the animation glitches and restarts?
anyways to fix
how much time takes to get on home reccomendations?
?
how much time takes to get game on home reccomendations (algorithms)
no idea bro
It depends on the code
skidding?
hi
wsp
so what services u need
uhh i dont understand where you place scripts, local scripts and module scripts and for what purpose
oh gosh
and the wiki aint helping😭
😭
took me like idk 1 year to understand
but u can learn in 1 month if u are 100% focused on understanding instances & services
it's like going in a surgery and asking the guy each tools and there functions @turbid quest
😭
@turbid quest if I can help I can send u what u need to learn for NOW
Services
- workspace
- replicated storage & first
- Players
- Starters (gui, character, packs, players etc...)
- server storage
- server script service
@turbid quest
and when u learnt thoses u can do
- Debris
- Runservice
- Lighting
- Marketplace
- SoundsService
- TextChat
Chatgpt is the BEST tool
debris is literally how objects break?
I lied chatgpt isn't helpful at times
nah it's to delete things properly
so memory garbage collection?
also look at this video that I wish I seen before: https://www.youtube.com/watch?v=Ng1uYpFcpOA
Discord: https://discord.gg/bEn49K5JUt
Patreon: https://www.patreon.com/Suphi
Donate: https://www.roblox.com/games/7532473490
Documentation: https://create.roblox.com/docs/scripting/networking/client-server-model
0:00:00 - Intro
0:00:09 - Text File Replication
0:02:04 - Studio Replication
0:19:21 - Outro
thanks👍
I'm not joking, this video you have to see it before learning services
even some experienced developers don't know about this
im not watching roblox studio website trust me i got a youtube with alllll episodes u need to know
still aint no way you advanced at scripting in 3 months
tutorials mean nothing except for the first week or two
find me a tutorial that explains a public library expect for popular one such as profile store
thats just stupid
tutorials in general are stupid
@smoky pecan if u want to become advanced u need to read things like this: https://devforum.roblox.com/t/replicate-your-states-with-replicaservice-networking-system/894736
not tutorials
UPDATED MODULE CALLED “Replica” HAS BEEN RELEASED - Click for more info Donate R$ to creators (Click here) If you find this resource helpful! 🕶 Madwork - ReplicaService ReplicaService on GitHub ReplicaService is a selective state replication system. ReplicaService helps you make server code which changes and replicates any state to ...
understanding does
but yeah not making u 100% advanced by reading
this is just theorical
i was working in studio n i found some weird stuff, soo i have a simple server script saying "This file work", now this gets prints into the console in Normal test but if i run in team test it wont print why? and yes in filder i have all checked
any help, im so confused
is obby for ugc games worth it , for advertising them with like 40 ad credits
will i be profitable
each ugc - hair and mask cost 39rbx each
yall is it possible to set color attribute via script?
why are we using debris in 2026
nope i use tutorials and it work he tell us everything then gives us a test the test u can like experience and more shi
Yes it does
Of course it’s more simple to learn that way but doesn’t mean you cover every detail of the language 
no it doesnt 
test yourself
thats the best way
it does, if u understand math problems u can do them 😭
thats not what libraries are
they provide you a solution
you dont understand shit
yes so it's making ur coding simple
you understand what it does in order to use it though
so?
you need to understand anything in order to use it
thats just common sense
yes so it's making u more advanced knowing more advanced stuff
idk how to explain but that's the idea
yeah obviously but this isnt restricted to knowing libraries
libraries doesnt do anything except convenience
libraries save life lol
do u know the definition of advanced
perhaps your standard of advanced isnt as high as mine
but i view advanced as those who are top level
can anyone help me make like a chasing ai im not that good at lua
using libraries is already a sign of high level
this is not true
that's what I'm trying to explain
theen anyone can become advanced
cuz your definition of advanced is not advanced at all
if you're think about more advanced it's called expert sir
expert would be even higher yeah
but some skid who knows how to use a library isnt advanced
all you need to do is read the docs of the library
its quite literally handed to you
I mean if the code works, 👍
💀 💀 💀
"if the code works" is definitely not advanced level 💀
for me beginner advanced or expert is the way you proceed and how strong your code is. So beginner will not do things the same way as an advanced SO the advanced one use libraries that the beginner don't
do u get that
yes so your definition of advanced is literally anyone who isnt a beginner
any decent scripter will use libraries
proteins

they dont even gotta be decent to use libs
look how many skids wanna use datastore libraries so bad
they aint even know datastore yet fr
trust me if you are using libraries you aren't beginner
yes you arent
but not being a beginner doesnt mean your good at scripting
guys how do i sed my code
it does if i experience it
yea i know
` ` `lua
your code
` ` `
whats that
is that roblox studio code?
`lua
without space
Only time libraries are valid is if you're working with some obscure service, like firebase.
Other than that you should be using your own/making your own libraries
The more I've learned about programming and scripting in general the more I understand that most people that claim their advanced are just beginners.
imo, unless the library is really good or really basic, for example things like signals do not have specific behavior and is basically same across any library

