#code-discussion
1 messages Β· Page 172 of 1
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
yes
i mean u dont have to use it
but i dont reallly see the enefits tbh
i just code stuff on studio
same
i like that playtesting stuff
im so happy my plugins work i havent used them in like a year
Scaling ui manually..........................................
but my codes are also on vs code cuz studio needs to work with wifi
i wanna learn making uis
ui is easy if u ask me
it takes time tho
not really
not as long as scripting
it only takes like 1-2 hours per frame if ur sweating on it for it to be perfect
yea true that
i spend like 20-30 minitieus on ui
this didint take long
and its decent to me
ui wise
doesn thav emuch content tho
lol
nice
guys chatgpt is useless its breaking my game :( someone shouldve told me this was a bad idea
it only took like 20-30 min
..
this is ragebait
yes
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
lowk this server is really useful for learning stuff like ui and vfx
b they give ut he assets in pinned messages
lol
what did u really expect anyway π₯
you should script two working planes and then build a city with a big park in the middle and two really big towers
i expected it to work :/
the most i wwould use ai for would be for putting debugs in my script when im lazy
What script did you send
π

im trynna make it clear a players inventory when u press "yes" on the GUI lol but i cant script so i thought it would be easy enough for chatgpt
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
im getting error from the highlighted line
What is queue
queue is queue
data structure
well
its a song playing system
im making the queue feature
Me when I provide a fraction of the code then wonder why it doesnβt work and why nobody helps me
mb
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
Is there any gzipping library for roblox buffers?
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
I call bull cz when I send the whole script and send the part where I'm getting the error I got a "nobody aint reading alla that mind you the script wasnt even big"
i do not care
Any pro scripter here can i ask for a favor
what do u need (im not a pro scripter but i can try to help)
Do u mind reviewing my scripts and tell me how to improve or optimize
sure
pluh
is it ok to prompt purchares out of server?
Send script here for hundreds of people to see and therefore get more help
yeah
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?
are you fr?
why would it be bad
ts song β€οΈβπ©Ή π π
β€οΈβπ©Ή πΉ
π πΉ
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)
Roblox gzips buffers when theyβre networked if ur tryna do that
So u donβt have to compress them when networking them
Internally Roblox networking already does it
why does this enable when i press play even tho i disabled it
oh, nice, thank you for letting me know
Yup π
ok this might be a dumb question but what is ts π why is it broken
ur missing a "
theres Physicsservice instead of PhysicsService
did u type it in discord or do you not use autocomplete
because you have click to move?
Idk if that is intentional, just what doesnt work as intended here and where in code do you think the bug is?
nah its intended im just saying even tho i didnt had it, ppl would still be able to move with wasd i kinda thought about just adding a background frame
set walkspeed to 0 if you dont want ppl to move horizontaly
ill try
helo
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
maybe itβs missing :GetControls()??? local playerSV = game:GetService("Players") local player_crv = playerSV.LocalPlayer local control_modular = require(player_crv.PlayerScripts:WaitForChild("PlayerModule")):GetControls() control_modular:Disable() -- unbinds on target devices control_modular:Enable() -- binds action back
alr fixed it ty yall
if anyone needs help with coding let me know!
https://streamable.com/q5oa71 is ts nice guys
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?
The scripts dont even exist anymore and its still connecting
u need a state manager
heh?
what do you mean
disconnect it then
i dont see how that'll help tho
i tried
deleting script won't disconnect
can you show the code
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
is it supposed to print only when player joins
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
why would it fire the message event when player respawns
It fires when the event is fired?
The firing part works, its just the event stacks because prior connections dont get cleared
as seen here
even tho the script no longer exists, the connections still connect
Probably everyone knows how but how can i make a global leaderboard for my game its almost done but thats missing
400-1700 robux for anyone who can make me a good pfp! (suprise)
youtube tutorials usually explain it well
dude so basically i have a module for states player uses, like for example
local lastSelfAttackId = nil
local isBlocking = false
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
yeah but im not using states, im using events
Ive fixed it now
If anyone needs help with scripting Let me know I can do reasonable prices with high quality work!
Help or need something to be done?
Dude stop
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
how hard would scripting be to learn?
easiest thing ever
Took like 1 day back then to learn the basics
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
mb gang
if youre looking for a job though in that sector its like 6 months - 2 years depending on the role you want
ic
but it doesn't mean you'll learn all that full within 2 years
you'll just be good enough to scam the employer
well am just in college, taking courses. rn am learning OOPL, database and etc ts been kinda difficult lol
right
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
ye am trying but idk if i should try focusing on system analysis / database first
database management/fundamentals first imo
im surprised, i was expecting way longer, would this still apply to someone with no experience with other scripting languages
no ones paying you to help them
alright thx
the keywords are easily learned (hence why the language in its entirety can be learned within a short time span)
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)
as in the documentations in general, not decals
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)
so i should try learning in tangent with the game idea instead of trying to understand the language fully first?
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.
thank you
np gl
you can use this as reference for lua btw
roblox uses 5.1 for luau iirc
wait there arnt any major differences between lua and luau right?
i wouldn't say major differences no
anyone wnna script my blue lock game
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
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
so those would be replaced with writing to datastores and stuff im guessing
hi is it possible to spawn a part locally
like only one person can see this model n stuff
Yes you create the part in a localscript and only that player will see it on their client
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
what about tweening a part locally
Then that part will only move for you but be in the same spot for another player
You can switch between client and server view when testing your game to see what's happening
okk thanks so much
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
This could just be a problem with your tween code
let me try again
Might be anchored
nah it works now YAY
thanks very much
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
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
One message removed from a suspended account.
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?
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?
maybe add a stylized border, make it wider so it's not so congested
Let me try
agreed
also a more mature font
but thats my opinion
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?
you dont read the docs like theyre a book
theyre reference pages
just go work on something
Just start creating ^
yep
probably stay away from the comic sans
which font should I use?
I am not pro at web development
Times new roman is a popular choice, verdana can be good. @hot prism
just dont use something too cartoony
I was just thinking that my portfolio sucks
Roman is quite good
I like it
I feel like there should be like a video back ground or smth
yeah looks better
you could add texture to your backgrounds / nav bar background too
like a noise image or something animated.
you can throw something like this into your CSS
for a noise image
but this is just an example, use whatever you want
Yes it's the carrd.co
But I use it too
Laziness reasons
you can also do a circular gradient on the body background, to create a sort of vignetting style
lots of tools at your disposal just have fun with it
Lol
kk
Like my models? XD
I'm just too lazy to edit
show in dms
Yes
tyty
same
I just place images
btw are you a scripter?
lol
Makes it look 5x worse
I just learnt a bit of css and html at school
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
Am aware
talking to eco
Btw @tight pewter what should I use GitHub for exactly?
guys give me an idea to make (like a td system or something)
make me a nuclear plant
to show off your public works, and track contribution to popular projects (if you contribute to anything)
and also prove that you can maintain things that people will use (if you have anything like that)
Why not also use carrd.co for that?
like a a nuclear powerplant of like a plant which is nuclear
make a td system or something
like a plant which is green
i was taking about script but ok
cause carrd.co can't do that
i guess you could link your github on there if you want
I mean are you practicing?
already working on that
are you like a pro level
ah
Wait what is github for?
yes
Mostly used
i can do building asw
but also as a programmer/scripter you should probably know web design and how github works
tryna do jack of all trades right now
just to come off as well rounded
most people use it for version control or collaboration
but it has tons of features tbh
Ah ok
Appreciate it
yep yep
thanks
you can create a circular gradient using the radial-gradient() function is css
ye np
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
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?
create a list of all the children pillows, and remove each one that has been taken
the spawnpoints variable is the pillows
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
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
looks wonderfull!
What are people mosty looking for when they hire a scripter
a scripter
Funny guy
checking that you've actually made what's in the portfolio + checking if you've actually done comms before
But what do they commission you for
well that depends on the task right?
you wouldnt believe me if i told you
Cause i want to build a portfolio but idk what the most popular things are
just stop talking
do some placement systems, combat systems, fishing, some basic stuff like that first
just showcase systems that are high in demand or things that look good
Okay π
also this might just be me but i love seeing a super full portfolio so ik you've got experience
like dozens of projects
Thanks
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
TeleportPlayers()? dont u want 1 pillow for each
also ur doing the countdown thing inside weach plr
each*
are placement systems basic?
So how do I add an image as background?
where do i put the countdown thing?
well depends on how you make them, but generally yeah
they might take a few hours but most aint advanced just some work
idk what you want, but rn its doing a countdown between each player being sent to a pillow idk if that's what u want
including data saving?
ugh that part is annoying but its not super hard
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
what I do is choose an area on each plot that is 0,0
currently its just a countdown between rounds that i will change later
then the position of each obj is a certain distance from that
u dont need extremely advanced stuff, i started doing comms in like 2019 i didnt know much more than what u do rn ngl
Okay good
Because there arent many tutorials on frameworks and workflow so i think you just need to learn it with time
this line errors plr.Character.HumanoidRootPart.CFrame = Pillows[RandomIndex]
.CFrame at the end
yeah
oh yh
a lot of it is bad or skidded so you are honestly better off coming up with your own
Okay thats good to hear
now it says im trying to index it with a number
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
parallel luau is interesting
@crisp ivy @tight pewter how do I put a background image for my thingy?
I want it to be blured as well
like a PNG image or somethin?
jpg
I want to put this bloored out
if I don't like it I will change it
in CSS background-image: url("SomeImage.jpeg");
or in HTML use <img> tags if you need to do certain things with it
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.
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)
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;
}```
tyssmmmm
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)
np
btw
yep?
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
let me try
so what it does it blurs the whole thing
but the background
this is the code btw
try putting the filter in a separate rule set like body::before {} @hot prism
kk
might have to put the image there as well
hi
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
doesn't work
or edit the image with whatever software and blur the image directly before using it
checks out
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 π
can i ask you something in dms?
why not here?
no u cant
cause is for commision stuff
i dont do commissions tbh
oh sorry for disturbe
np
oh i got it thanks
so just leveling up
GUYS WHAT IS THIS FOR?
yep yep
pastebin is usually used as a quick way to show code
paste
yes
its kinda rough but
cause sometimes it goes backwards cause of this code
i think at least
probably just lerp for more customization (instead of tweening) and you wont have the overhead of creating/cancelling tweens
lerp?
linear interpolation
lerp(a,b,t)=a+(bβa)Γt
are you using GUIObjects? or are these just decals on a part
gui objects
nvm i read the code more lol
im pretty sure guiobjects have a TweenPosition function
is guiobjects just all the children to the screengui
probably dont need tween service
GUIObjects are things like Frames, TextLabels, ImageLabels etc
so label:TweenPosition()
oh wait
lerping just gives more customization and you can move smoothly with less overhead
tweenposition ok
im a bit lost on what lerp is though
do u have a video on the differences maybe
or a spring
Lerping is hell use tweens if possible
ill add in the stuff to tweenposition brackets but ur saying htis right
yep
is that not in built to roblox then
and lerp is just a method that lets you 'slide' between values smoothly
Iβve a module for tweens for ui I made ages ago itβs kinda ahh but it works
for example changing a value from 0 to 1 smoothly
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
LMAO
you can write your own lerp function
What is the advantage of using react lua rather than just dealing with vanilla UIs?
but yeah that :lerp() function is the same thing
Yeah
ye ye i was just reading it
okk how do i write
you can roleplay as a web dev thats about it
much simpler/intuitive to just use the UI system roblox provides already
i dont get what a b or t is i cannot lie
Bruh
I'd rather be an actual webdev thx lol
Number variables like for example a = 1
right lol
I believe that too
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
Yeah
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
Time I think idk
big steps mean less smooth right
quick question before that how come this one didnt work well
i'd research this on google a bit, there is a ton of fun ways to lerp
okayy thank you
and compared to TweenService it can have less overhead
but like i said :TweenPosition() is probably fine, you dont have to recreate/cancel tween objects
okayy htank you very much
ill research more and try another project with lerps
do u know like the best reason to use lerps
lerping is pretty essential for movement in any sort of game
Camera movement Iβm guessing
especially since you can use deltaTime (the time elapsed each frame) to make it consistent across all machines, no matter its framerate
for this should i keep overide true or false
override
im a bit confused on what you mean by that
are you on about what goes on in the background or
what programmers actually script
ohh i get you
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
oh okay okay
Guys
Yeah
With what
so like most games do that then?
yep every game engine considers this sort of thing, so learning about lerp functions can be beneficial as a game dev
With a soda machine
Yeah but what do u want it to do
Yeah but Wym like press a button and it comes out?
Like let me say a ex
i see i see
just a quick question for a game i work at
do roleplay games need it
or is it a waste of code
yes they'll need it as well
if they have any sort of physics or cars/characters that move
So like
does it sort out lag or anything or just fps in general
roblox handles a lot of this for you tbf
Click on the soda machine and it comes out
the game i work for has a lot of lag issues haha and iw as wondeirng if that could be a reason
It tp to your invitory
ignore the spelling
no it doesn't handle lag issues directly, but you can create a sort of lag compensation system with it (in the case of movement)
thats a bigger topic for another day though
Just add a click detector add a script make it so when activated clone the tool to the players backpack
Bro yk how many people said a ton of stuff what to do
IDK
Lol
Iβm on phone rn I canβt do anything
I need help
FUFJENDJDJEJJVKFJDJEKFSSJUEJJESCKEEJEIFFWJWJSJDJUUENWJWJJECCJDJEJEJEJSJSKKBSNSEN
should i add deb ounce to a jumping system
or is it a bad idea
Depends
i need a scripter for a easy game dm me for more info
Game or 1 thing
game but not advanced and prolly not take too much time
hows it looking
Thatβs good but it looks weird how it stops midair
I AGREE
but its cause the tween has the property to interrupt
i dont know how to fix it
Yeah idk either
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)
yeah a debounce/cooldown isn't a bad idea
Why does the player have autism
Mario has autism
does he
i think its looks okay vertically, the problem is that it stops movement horizontally? or am i seeing that wrong
What else would make him go save princess peach every day for 30 years
yeah im really confused why
i know why but idk how to fix it
can i see the code
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
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
thats what i tried doing
i might just make gravity not a tween
and the jumps a tween
gravity shouldnt be a tween
you can just give the player a single velocity value (basically just a magnitude + direction)
simply decrement the position of the frame off of the force of gravity
and then just change the direction based on whether it was a jump or gravity.
the vertical direction and magnitude*
single dads
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
yeah, using something like renderstepped for this can be fine @gilded stag
personally id just spawn my own thread so theres more control
this paired with lerping can make it smooth and allow for different effects
you dont need to run the gravity every renderstep that's just pointless
you'd want to run it every frame
oh true
heartbeat can be fine as well (or task.wait() loops)
renderstepped just seems more proper here for GUI but maybe im wrong
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
Okk could I also use run service
Okk thank you
Okay thank you so much
Iβll rewrite the code tomorrow
heartbeat is apart of runservice but it takes place after rendering
Oh alright
Does anyone know how to disable the jump button on mobile or reprogram it?
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
I already did but the button needs to disappear aswell
search it up
I don't find anything that works
Who needs help building stuff
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
but shouldnt an empty folder atleast appear when i play test the game
bc of the instance
nvm issue solved
is it a bad idea to use context action service and user input service together?
not necessarily
but it can be redundant in some cases
I usually use CAS when I need to bind an action to an input for a long time, while I use UIS when I just want to check for an input at a specific moment. In a way, CAS is like a more polished version of UIS
Goofy ass animation
CAS is used for specific input-related situations whilst UIS is meant for global input-related situations
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
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?
clarify
btw thats a very bad idea
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)
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
alright ill try it out
Building steal a crown i can code i need builders anyone wanna partner?
are you paying?
it worked, thank you man
ur welcome goat
π
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?
no nothing is truly random in this world the cake is a lie
Unfortunately theyβre correct
coding is so fake
Bro I need help can yall help me
maybe slider ui
guys what do buffer do?
encode data, encrypt..etc
I guess
also can manipulate data to make it size smaller
how?
Look up buddy
Fisch inspired ui
does A chassis have a dc server?
yes
do you know it by chance?
yeah can i send the link here or
not sure if they'll allow it, dms?
Itβs mainly only used for performance optimizations
i need some help i need someone who knows how to make npc or ai pathfinding ;-;
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?
no lol, its just a class to manipulate data, its general purpose
oh ok good to know
holds a sequence of data that's usually just temporary
can be amything but usually bytes
research roblox's path finding service it's good for most use cases and extremely simple
You can just adjust it with raycasting so it canβt get stuck and is actual smart
oh
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
Who have PayPal?
Who have PayPal and have even uhh 1 cent there I just need to test my new PayPal
https://x.com/mozert234/status/1878268088111579481
anyone know how to program ts with r6 though
who wanna colab with me i have 1 year and 6 months experience i have a game idea
me
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
hey mozert
long time no see
ts as in typescript, if so https://roblox-ts.com
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.
start coding
Pretty straight forward
Any mini projects u would recommend doing?
"anyone know how to program ts with r6 though"
are you referring to typescript
if so ive linked what you need
if not explain
no lol this shit lol
What exactly
i just need a movement system like that but with r6 animations
no i need someone to do it
Then go to #scripter-hiring #scripter-hirable
π
that'll be ur best bet
i mean someone here might but i dont spoonfeed code
yes there is
how do u change leaderstat height like that?
you cant
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
thatβs disgusting wtf π
luau ts is crazy
this looks cool but why is it in r15
nicest looking r15 ever
Its cheaper as the game is heavily animation base if i did r6 plus more ppl like it also i need zombies so its way cheaper in r6 and also having to rig them aswell
am i able to put like uiframes into a folder
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
ignore how fast it is
If any1 needs help with scripting lmk dm me i can do a reasonable price
then how do u explain the pixels showing up on that screenshot
the one in the screenshot doesn't look custom tho
anyone got ideas on how i should auto generate these
Teach me gangyo
make ma minimal distance threshold
then calculate the distance between two objects in 2d
and randomize the Y position with a minimal distance
what
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
you tween entire screengui containing elements
and generate them as you tween
:Clone()
for the pillars i didnt tween i just added onto the position
idk what you just said
https://medal.tv/games/roblox/clips/kZNJdrSitqyxRiyWk?invite=cr-MSxidlosMzEyNDgyMTU&v=3
Just asking if anyone knew how this effect was made? Not really sure what to think
Watch example by Aim99 and millions of other Roblox videos on Medal. Tags: #roblox, #dustborn
sorry to jump into a current convo
what effect
Camera
Moving slide, since its an image isnt it?
its camera position change and tween moving to side
Big image move it
That's a ui
Ah, so just make the image go out of bounds of the camera while making it move certain directions?
sucks
Ig that makes sense
Let's say a screen is 1920 make it 2200 and move it
Thank you m8 β€οΈ
like .position += udim2.new(0,3,0,0)
Yall mess with the mud walking sound made by : @turbid quest
i just linked it to the gravity loop rather than tween
did u made the sound effects urself β€οΈ
The guy at the top of ur reply made the mud sound
ye i clocked as soon as i replied
I think theres a big diff between the sounds
tweenservice the entire background around the bird
i used tweening for the bird
Like either the mud needs to be smoother or the grass courser
Hey hey its okay
i know that but what is the point
i literally did NOT ask for that help
i asked for a completely different thing
Itβs not bad just needs to be smoother
silly goose! πΉ
ok ,thats prob bannable
They wouldnβt ban u for that but prob a mute
hes in a code discussion channel getting angry
yh, probably
Bro deleted that message when he heard ban
still improvement
I respect it
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
Truer
skid this
Thanks!
I have a history of getting banned for rule-breaking stuff I stopped doing once someone asked me to, and they still banned me
i didnt use offset
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
yay!
why it has jump button
are these close togethr
i just did it for mobile users
i did thjat too
it works on mobile
idk?
yes
Code it that it only appears for mobile
what
Make sure u scale it and offset it so it looks clean for mobile to also u should add a ui corner and ui stroke
while loop yields the thread
its scaled
the function is above it?
oH
yes it does
no
trust
Yes it does
mind explaining
works
https://streamable.com/gww5fy yo do we like this guys
because you have click connection dumbass
ye but ur not explaining what i should do
remove click detection for now
i really doubt it connects since while loop yields the thread and it wont allow anything past it
any iterator function isnt required
and is actually faster
how do i generate the new lengths
any function that is created on runtime
actually its not even closure
just do :Connect(function() end)
what
for _, pillar in pillars do
if you asked that
do math.random(arg1, arg2) it looks better imo
does it make a big difference
ye i was gonna do that
i stole this from learning how to print decimals
holy wairforchild nest
is there a float randomizer
there is a floating point precision error
doesnt work for that
yeahh
im asking
i havent changed anything yet but
should i just generate
a number from 1 to 1000
and then divide it
math.clamp
remove ipairs
pillarpairs too
youre gonna remove it anyways to make it generting
i gtg now
dm me if you need anything
this is temporary yea
ok thx
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?
yes
just do the same in lua
π€―
yes
Just try playing around with what you can do until you get more advanced ideas
flappy bird
im not joking
oh
@unique peak
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
You should use #code-help for this but just dm me so I can help π
I did, that channel is always not about code help, but discussing memes
Gl beating the og flappy bird
im going to cry its not working
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?