#code-discussion
1 messages · Page 76 of 1
that im not making any money hopefully
and all anim were made by me
because i am animator that i want to see the anim in game i guess but the scripting it uhhhh too compicalted
im try to breakdown it but the only thing i know it writing only varible
here
for your walk
local weapons = {
"Combat"
}:: {string}
Character.ChildAdded:Connect(function(weapon: Instance?)
if weapon:IsA("Tool") and table.find(weapons, weapon.Name) then
print(`Equipped {weapon.Name}`)
end
end)```
instead of updating it from another local script add something like this into your animate script and update youre idles and walks that way
this look more complicated....
I'm try to understand it instead copy and paste from other
sorry for you time btw
what it does is
see when you have an item equipped and check if its in the weapons table
if it is itll print equipped what weapon you got
and then you just update the anims yourself
still
it because I don't write like you and not understand all symbol
}:: {string}
what even it that
I really never used lol
its type checking whatever is in the table is just a string
How to make all the buttons go out of the screen like this showing just one frame
explain
aren't the buttons already going away?
The thunder dev already explained it to me
who is selling a game
oh you don't need help anymore?
what was the problem ;o
U know when he opened a frame all the other buttons tweened out the screen
yes
Guys i was trying to make my first game but im kinda stuck at a place im not able to figure out why my code is not working
I want npc to spawn outside the gate , and then they walk in and form a line in front of us
i wrote all the necessary code still the npc doesnt spawn , what am i doing wrong ?
show the code
Not showing the code and output window is def gonna solve ur issue
(Aka show the code and output window)
wait
bro whaaa 😭 i been onto this for 2 hrs now used all ai helps too but i cant
now i went to take ss of the error msg and npc spawned
tyyyy
wow
also, use the task library so start doing task.wait()
it used to say ReplicatedStorage:WaitForChild("RequestNewCivilian")'
ohhh okk noted
allr ima go try to make it walk now
output window it shows me all red sometimes " asset not loaded"
how much robux would it cost to script a skip stage ImageButton
script it how?
like when player click on ImageButton Gui it pops out the dev item and when tey buy it then skip Stage (for obby game)
oh ye mb
here
i am trying to do it for like 2.5h now
yt dont help chat gpt dont help roblox ai dont help so i was wondering if i can pay someone and how much would it cost bc i gave up on it
is it
a specific dev product like
skip one stage or is there like skip 5 stages , etc
just 1 skip
like click buy and it skip stage non eles
its simple
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local localPlayer = Players.LocalPlayer
local button = script.Parent
button.MouseButton1Click:Connect(function()
MarketplaceService:PromptProductPurchase(localPlayer, 1836264283)
end)```
this will make it so when they click whatever button you got, itll prompt them with a dev product - 1836264283 is a random ID so replace it with yours either put this under your button, or wherever you guys handle GUIs
yes
it show me to buy it and when i buy it non happens
Giving up is not a option if you want to make your own game
idk i just copy paste it i have like 0 clue with scripts
i gave up on try to do this myself (scripts)
no im asking you if the prompt came up when you clicked the button
for the dev product purchase
oh yes
okay
i can inv you to team create to see your self
ima pay you up if you do it if you want
send me ya user
it is very simple though,
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
MarketplaceService.ProcessReceipt = function(product: {[string]: any})
local player = Players:GetPlayerByUserId(product.PlayerId) :: PLayer
if not player then
return
end
if product.ProductId == 1836264283 then
print(`{player.Name} bought skip Stage`)
end
end
this checks when they buy the skip stage, and then you'd just update their current stage on the server
where do i put that
server
do you have a script where you handle dev products? if not just add one
just add me and give me TC i'll quickly do it, ImKiddon
while true do
alr
what type of game
accept
added
ok
ok @somber axle
oh do you get a new stage when you move 1.5 studs up or something
yo there is already a script here that does it
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local skipStageProductId = 3289392669
game.ReplicatedStorage:WaitForChild("SkipStageEvent").OnServerEvent:Connect(function(player)
MarketplaceService:PromptProductPurchase(player, skipStageProductId)
end)
MarketplaceService.ProcessReceipt = function(receiptInfo)
local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
if not player then
return Enum.ProductPurchaseDecision.NotProcessedYet
end
local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats and leaderstats:FindFirstChild("Stage") then
leaderstats.Stage.Value += 1
end
return Enum.ProductPurchaseDecision.PurchaseGranted
end
idk it was not worling
thats from Lua Gpt i thinkj
damm tysm man
Is there anything wrong or stupid about my code?
hello guys new roblox update roblox can ||fuck ||your game radomly
sorry for the swear
just made a data store using buffers, i am feeling like god
how do i get player from textchatservice.OnIncomingMessage
isnt this a client only thing
always game.Players.LocalPlayer for client
i cant
local player returns the local player (wow omg), but i need the player who sent the message
What are buffers?
GetPlayers or GetPlayerByUserId? (from docs)
isn't it in parameters
nope
this guy was right
kinda
player = getplayerfromuserid(msg.textsource.userid)
it's better to give a hint and let you figure it out :)
things that help supress memory leaks, and store data in them.
not the best definition though, if im wrong someone can correct me.
they don't really help supress memory leaks, if not done properly they can be the cause of it
it speeds up access to that data that you want to temporarily store, for fast-access copy
so in a sense it helps manage memory, it doesn't solve memory leaks
memory leaks is like forgotten trash or the mess in your room you haven't cleaned up in ages
to sort your mess, you can use trays and have quick access to the small messes in ur room
aka buffers
ya'll rate my electrocution system https://streamable.com/dyz2f7
I think it'd be funnier if it just straight up ragolled
how'd you do it
oh yeah thx for the idea
normally
it looks so cool 😄
make a buffer and when it comes to save in data store just convert buffer to string
I mean specifically how'd you structure everything together
i made a template for a usedata
next
when player joins i load the data in a table and create leaderstats if not then i set user data to my template
setting up data soo player have some starter values
and when it comes to save or load converting to string or from sting to buffer and that's all
my 15 yr brain trying to understand this is killing me
blud am 14
me when people got different learning processes!
thanks for correcting me, wasnt 100% sure.
yoo 1 week free nitro
this is a great start!
i would definitely recommend a retry mechanism, what if something saves/loads at the same time potential data loss could happen
what if players crash.. do they just lose everything? -> auto-save maybe
then there's plenty of other things to do if you'd like
How?
discord birthday
When did u claim?
21 minutes ago
How did u get it?
Does it only work on pc?
here, nitro
i guess it should work on mobile too
Does it work on pc?
i did it on my pc
Didn’t work for me? Did you try on website?
Oh okay
ohh
have u gotten nitro in the past 12 months
ur not available if so
oh its selected users @dapper flume
oh nvm
@dapper flume your account must be 1 month old atleast
Hi?
.
you got until 23 of march
your account will turn 30 days old in 22
so i think you might get it, idk
No point bc I have had nitro the past year
yeah bad luck
Mhm
rudimentary ik procedural animation
should i post the place file cuz
p stuck, idrk how to improve it
cuz it looks a bit clunky
can anyone help me i use figma for gui but the wierd shapes that i downloaded from google png just show as squares on roblox
Guys really need help with code that dragging frame from one scrolling frame to another, need workable code or hint
If I make the group, but somebody else makes the game and they add it to my group, and make all the gamepasses and stuff 50 50 how do I know they won’t just change it and scam me ?
who has a game to 10 ccu to 1k?
You don't, unless you enter a contract
Realistically what's a contract going to do?
It legally binds them
To keeping you in the split
It has to be a proper like contract from attorneys and stuff though
any server for exploit development?
looking for scripters for my studio.Dms if interested
executors are free and safe. they are not patched and continue to function.
full-coverage patching on game basis detect hooks which can be bypassed by decompiling getfenv() from a debug.getinfo hook.
executors are detected due to low monetary incentive for older developers to work on them, but roblox refuses to do anything about the detection.
#yourdailymisinformationspreadpreventiongirl
how to fix when I turned off streaming enabled for a script in testing it made me unable to turn my screen with right click hold any help?
Looking for scripters for my studio.Dms if interested
roblox banwave soon by bitdancer
do not listen to this informant.
me when its me
Hey guys, I want to build a really good portfolio and I wanted to know what I should add to a scripting portfolio
if your known wanna collab with me 😁✌️
i have almost 50 members on my port
should you focus on making the game loop first and finish that before focusing on the flashy stuff like modeling and animation?
i usually do the backend stuff first before working with the models/animations but it depends on scripter
just recently got into lua, I'm trying to learn some so that I can do code related commissions this summer, any tips on where to read up to help me learn?
all of this just for deciding how much an audience likes a certain role and how they should move lmao (this is for my roblox horror game unscripted where you're actors on a tv set)
also animations are placeholders atm
does anyone know how to make ball physics
is it possible to stop a if function during the middle of it, if so how?
connections id say
how can I make a grow a garden but different style : Practice coding not copying
what do you mean by stop a function in the middle?
as in preventing the code in the function from being executed after a certain point based on specific conditions?
can anyone teach me how to make kinetic blade(fortnite) dash
Yes
Use a return statement
that stops the code after the statement call from running
Does return has to be at the end of the if function?
it doesn't have to but it can
it depends on why you're using a return statement
return at the end of a function is basically useless with no variables attached
^
use return to either return variables or end the function entirely
Alright thanks, I’ll see what I can do with it
i need help with scripting dash
local Data = {"test1"}
local function test(Call, Data)
if Call == "GET" then
return unpack(Data or {})
end
--// push n other call types to update data;
end
if call isnt equal to "GET" it wont return anything, and if it is but theres no data, it will return an empty table
if both variables exist it will return all the values inside of data separately
anyone have any packages they think are good to know about before starting roblox dev? i've worked with some other engines before
Knit seemed somewhat interesting but the fact it breaks intellisense is not great
return
janisjanis01 has a video on this
If I put a lot of Trees with Leave Shake in my game will it lag (the script that makes the leaves on blocky trees shake)
I mean ideally you'd handle that on the client
So if you do probably not I guess
yes
ProfileService
I’m trying to make air combat system and how would I keep the players in the air
making the gravity 0?
AlignPosition maybe
Hello guys
use a LinearVelocity. make the max force on all axises some high number and make the VectorVelocity (0, 0, 0)
What
or just math.huge
If anyone’s wants to join a server that gives nitro dm me
I’m going to get it soon!
whats the best way to learn lua not roblox docs
free models
i learned trough free models
free models is insane
tf u mean ?
u wanna know how to create a gun search one up read the code and try to change it to make it work how u want
Yo, i got around 4 years of Experience as a scripter now but I have legit no portfolio. I didn’t do any commissions for released games and I have an nda for the other games. Any idea what I could code for my portfolio ?
well since u u have 4 years experience i assume u already coded some shit
some people are allergic to reading
prof service is good but like
just make your own, its literally 2 scripts and 1 is a module will controls for ur all the players data
Did you have any like passion projects
Even small ones
You can try extending on those
try copy other games, but make it a little bit more unique
he is talking about small project for his portfolio not entire games
ah alright
uhhh, just make systems
With four years experience I'm sure you can come up with a good project idea
yeah exactly
just make little systems, or make ur own engines as a passion project
making ur own engine shows ur all ur skill tbf since it requires alot of exp
I watched a yt short about that once
I could code my own controller
The guy had a cauliflower head
but for now I’m sticking to ikcontrols because they’re easier to visualize for me
As his 3D animated representation
Have you seen this guy before
https://youtube.com/shorts/wCPYtaVuW2w?si=0P_9fK4O_gQ03UmO
FULL VIDEO: https://youtu.be/JnkAlwMjalc
3D animation is made of many components that seem daunting, but aren't so bad when you break them down. Here's one of those components!
Subscribe! https://bit.ly/3rugbJ5
Store: https://shop.doodley.org/
More Videos: http://doodley.org/
-------------------------------------------------------------------...
is it? never used it
it’s
fine to use it
if you’re a hyper optimization freak then you could make your own system
i see
i just got a slash vfx and its a particle emitter but i tried scripting and it does work and shows the vfx and the position is almost correct but it looks ass can anyone help me?
how the hell do i turn off this white square thing i cant even code properly
press insert
tysm :DDDDD
you're welcome
" . " on the far right on your keyboard
hey guys is it ok to not have any game ideas
I suppose, but dont try making a game without an idea
yall whats the best way to learn lua not by roblox docs or free models
if u know algorhytms then just tutorials should suffice but like, you might want to read docs atleast just a little bit (or learn lua's syntax) ht tps:// www. tutorialspoint.com/lua/lua_basic_syntax. htm
I made a coin system woohoo
BrawlDev series
3 a day
dont rush it and code with him not just watch
use the new action input system
theres a new doc on it
what have u made so far
Its incomplete and cant be used in live games atm not worth it
local UniqueId = {}
MainServices = {
game:GetService("Workspace");
game:GetService("Players");
game:GetService("Lighting");
game:GetService("ReplicatedFirst");
game:GetService("ReplicatedStorage");
game:GetService("ServerScriptService");
game:GetService("ServerStorage");
}
Services = {
CS = game:GetService("CollectionService");
HTTPService = game:GetService("HttpService")
}
for _,service in MainServices do
if not Services["CS"]:HasTag(service, "MainService") then
Services["CS"]:AddTag(service, "MainService")
end
end
--// GUID
UniqueId.GenerateUniqueId = function(brackets: boolean)
brackets = brackets == nil and math.random(1, 2) == 1 or brackets
assert(type(brackets) == "boolean", "expected boolean got "..typeof(brackets))
return Services["HTTPService"]:GenerateGUID(brackets)
end
--// instance finder only (exclude example: workspace, replicatedstorage)
UniqueId.FindByUniqueId = function(UniqueId: string, exclude: string | Instance)
assert(type(UniqueId) == "string", "expected type string got "..typeof(UniqueId))
for _,service: Instance in Services["CS"]:GetTagged("MainService") do
print(service)
if exclude then
if typeof(exclude) == "Instance" then
if service == exclude then continue end
elseif type(exclude) == "string" then
if service.Name == exclude then continue end
end
end
for _,instance in service:GetDescendants() do
if instance:IsA("Instance") then
print(instance)
if instance:GetAttribute("UniqueId") == UniqueId then
return instance, service
end
end
end
end
return nil
end
--// helpers
local function IsDescendantOf(Instance: Instance, Parent: Instance)
for _,service in MainServices do
if Instance:IsDescendantOf(service) then
return true
end
end
return false
end
return UniqueId
Is that animating or procedural
having a stroke reading this
I thought I was the only one 😭
what the heck is this 💀
beautiful specimen
thats cool asf
Peak
Cause ur slow
Hey so how do I turn my players into an animal
Like an animal like a lion as a playable character
I found the issue, It was the raycast hitting the player's foot due to the animation
I added player's character to the raycast exclude list and it works fine now
don’t rage bait…
Wha ;-;
Mb
Just find some morph script in toolbox and change the morph ig
Or make the model the "StarterCharacter"
And put in starterplayer
Ahh okayy
Like do u get the model?
What are U trying to make
Ah ok
Like a player can turn into a lion or other animals and fight other players (with animations and special abilities)
That's the basic idea
Ok yea that’s a bit of a hybrid kinda thing
U need know model and coding
but that’s me so
yea that’s something noobs should stay away from
Modeling is so hard lol
Yeahhh I'm kind of a beginner and I know only scripting
Cuts the process down by a lot
learn to make a parts rig
or U could take something on sketchfab that’s open source
Hmm yeahh but it's chunky and no players will like it lol
And retopologize it then bake then add bones to it
Sketchfab?
Hmm
Yea modeling site
look it up
Models on Roblox need to be under 10k tris
And they also need to be rigged
If you wanna animate them in Roblox moon animator
Since ur a noob they need both of these two
yea U don’t even know what tris i don’t expect you to be able to figure this out anytime soon
Good luck maxie find a tutorial
Ok
Facts
I got 28 dolla in mah bank
Im scripter and modeler
And 4 quarters in a jar at home
why
I don’t really keep images lmao but I send a lot of my work in the modeling channel
If you wanna search for images there go for it
I mainly just make my own games
I don’t have a portfolio
These are two of my own characters I modeled tho
Chat this man is the worst scripter you've ever met
Im insane actually
"Wasting my time"
yea I coded like 16 hours yesterday
whats one skill thats easiest to improve in under a month
I need to code more
What did you code
Filling out job applications
Im coding a streets game so I made robbing, a cash system, added new chars
💔
16 hours?
Yea basically
Im sorry
Mobile support?
It was just really focused that day
For the most part, it’s mainly just proximity prompt and gui button activated
The only real thing I need to add mobile support to is assault rifle
Since it uses UIS:WhilePressed(mouse button 1)
Or something like that
You can uh
is adding mobile support a whole different ball game?
No
It really isn’t unless ur game is like a combat system
With a bunch of buttons
But I believe there’s a new roblox service for all inputs
I need to try it today
Show the game gang
genuinely had a reality check when i realised mobile conversion isnt automatic
I gotta see how quickly ill break ur code
Ok bet we can play
Yay
I’ll dm you in a sec
Thank you though
Thanks I'm finding a way rm
im using a trial to do this but its looks chopped af can how can i make it smooth
What the hell is even modeling 
So does Roblox only supports tris?
I researched it and found out about quads and ngons too
yo guys! where do i apply to get hired for my scripting?
roblox autoconverts to tris
ngons and quads are really just triangles when U think about it
Yoo guys, I need help just watch the video, after that the issue should be clear, that the player cant move on the platform is normal, thats what I wanted, but after the platform drove back to beginning, the character is moving too. After the platform is back, the platform should be there forever and the player is free of the fix. This is my main problem
uh
So I'm seeing game engine formats, 3D DDC formats and 3D exchange formats which one does Roblox use?
ty
Wdym
likei nstead of having to write game.replicatedstorager.modules.blabla.blabla
u can just press
copy location, and it copies it for u
Just set up variables for that
U can skip like 2 or 3
Local blah = game.replicatefstorage.modules
Then u won't have to mention all dat again
u do understand
that u make a thousands of variables in big games
its just a qol 🙏
Alr
Well idk but I think it can be optimized
Anyone a modeler here?
Imma just put the game on hold until I can model myself ig
Wth is a bone hierarchy 
Just stop being a lazy bum 🙏
U sure u dont wanna pay me lol
its not about being lazy its about saving time
Dw they’ll add that after 50 years
Wha 
I can teach you how to make sketchfab models into rigs in studio u can animate
im a pretty rare guy
take the offer if U want
Yeah but I don't even have any international banking system to pay the fee 
My country has hyperinflation and civil war so it's not that easy to get one 
what would i do without module scripts
I'll have to learn it locally or learn it myself
Your games won't work (if a big one)
Imagine a badgehandler
without module scripts
and u have over 10 badges with requirements
ver hard to manage
Yeah lol
When I started scripting small games
I never used module 
Actually I just don't know how to use them lol
poopy code
not even now?
When I started I mean
Now I use them from time to time but
what languagve is this
Not professionally ya know
is this luau
why are U on roblox then
U clearly got worse issues at hand
luau
Well because I'm underage and I have no actual thing I can do
its pretentious cs major coder code
thats why it look weird
everyone always gotta make the most advanced functions and variables
so what
cuz people can take advantage of that
how so
only the guys who don't make games make stuff like that
because there's a bunch of built in functions, libraries, and workarounds to make something work
all I'm doing is making iPhone firmware in Roblox
I mean this looks like something out of c++
I can't understand none of that debug shi 

did u make the debug module urself
that's the debug module
u got a whole ass compiler
When do u need to use codes Like that in lua?
like... Now?
I'm like a beginner rn so I know pretty much nothing
scenarios
Any chance to get a sneak peak on what you're making
Yeahh I'm just curious ya know?
the iPhone in Roblox
Like the whole phone OS? 
yes
even the internals
do u study at harvard
I'm 15
thats impressive
yes
Dang bro u got a lot of talents and skills
I even have some internal versions of iOS
like InternalUI and SwitchBoard
SwitchBoard's internal name being NonUI
thanks 
Tyler are u living in 1st world or 3rd world?

First world country, according to Google.
Oh yeah u can def get 100k+ salary with that kind of skills even if you're 18 or smt
I think
Or more if u become an indie developer and succeed lol
all I know is that I'm a female doing all of this
almost the entirety of women and girls around the world don't find it interesting to do this
but I'm one of them that do find it interesting
Coding used to be a females sport
U can literally make a guy salary while staying at home with that kind of skills
Like when they code by hand? 
you mean like a remote job?
Yeah at this age rn
back in the 80-90s iirc
Yeah I was mentioning the same era
it really doesn't matter whether you're female or male in my country, keep polishing your skills and stay curious will get u very far
Ahh ok
Are we talking Windows machines? Commodore 64s?
I know they helped in the space race tho
No
It was like really small
Like codes for launching rockets
Idk
how much soccer ball kicking system costs?
There were the Commodore 64, IBM PC, and the Apple II family.
Is this allowed?
I don't have much knowledge about the 80s but I thought Apple started later
@somber vault @rustic inlet
Modcall them, don't ping
Missed that
i took screen
Imagine writing code on one of these
ez
Make user report I gotta bed myself it’s 2am
i took screen of it
yeah that's what I'm talking about
my dad's still asleep, is he off work today?
How would we even know that? 
ik yall dont know
but i dont know either
most of the time i just say that if im going afk
someone know how i can show the results in a GUI/leaderboard?
leaderstats
gonna try posting this again, my projectiles dont detect any parts when at high speeds
looks correct to me but I could be missing something
if anyone needs a dev dm me 🙂
dm me if u script i have a game idea & 200k in ads u get 50-60% of the game 60 max 50 min. u must be intermediate +. i do userinterface modelling and other stuff too so all that would be taken care of
someone give me a scripting challenge no combat stuff please
game.ReplicatedStorage.Events.SpawnBall.OnServerEvent:Connect(function(player)
local humanoid = player.Character:FindFirstChild("HumanoidRootPart")
local ball = game.ServerStorage.Models["1_Ball"]:Clone()
ball.Parent = workspace
ball.CFrame = humanoid.CFrame * CFrame.new(0, 10, -3)
end)```
How would I make the ball fall slower?
i was bored so i searched some challanges and found one - volleyball systems. e.g press g to spawn a ball then features to hit the ball etc. literally, im doing it now LOL
sounds fun
from where do big roblox studios get their devs
dark web
Ive been making silly little projects in roblox until now and i want to make a game but i dont know whats the most optimal way to structure my game some people told me to use knit framework some people told me to just create my own framework anyone got any suggestions
Put the values in leaderstats. Or make a gui for it and just update the gui when te values change. Also in the getasync function you are saying: “getsucces” and “currentgold” the currentgold is supposed to be an error message
anyone want free pixel art? 👅
yes yes yes
dm me, if i have free time ill do it
oof, i forgot that my pfp is already pixelated lol
How do you people even understand this language?
how to adjust animation speed
k
i did that but the thing i am trynna do is not working i am trynna make a skill for "e" when i test it nothing happens
? but thats not the same issue you just presented to me
ik i thought that was the error
IF ANYBODY NEEDS A FREE CODER THAT DOESNT TAKE % OR ROBUX DM @dark coral HE WILL CODE A WHOLE GAME FOR YOU AND YOU TAKE ALL EARNINGS
fake
whitelist is just deprecated its not actually an issue and would have worked anyway
yeh i think sum els is worng in the scripts
so whats the issue
i am following a tut but did everting similer but it iant workin
white list is racist!!!
youre not even useing the raycast
there a blacklist too so dw
then use exclude and include so its not racist
basically this is what i made fore m1 now i am doing similler with E key for a skill but when i pree e it does not work
ok butg where is the actual remote being used
on the server with this module
wdym (coding for fst time 🙏 )
you must actualyl be using this module somewhere
i am using moduelescripts, if that helps
this is not a first time scripting setup but ok
coping a vid
i was just tryna make a skill for fun
but you dont know what youre doing
anyone needs a scripter feel free to dm.
guess ill figure this out
ur doing FireMove(player, data, "Movement")
somewhere
u need to change it to "Combat" or "TestSkillSet"
Dont copy vid try on ur own
i am only making this cuz my frind made a beamvfx i was like y not make a skill
so thats y
If u copy vid, u wont truly grasp the code
i never did scripting i main modeling
real ur just copying code word for word
and not learning anything
Yes
guys does anyone know why this script isnt working?
how much rbx is it okay to charge for scripting a gun in First-person Shooter ?
add a for _, player in players:GetPlayers() do
above
just send the code here
ill fix
alr, but after can you explain it to me
yeah ok
local player = game.Players.LocalPlayer
local gui = script.Parent.Parent
local label = script.Parent
local guiText = label.Text
game.Players.PlayerAdded:Connect(function()
print("Player has joined experience!")
gui.Parent = player.Head
guiText = player.Name
end)
local gui = script.Parent.Parent
local label = script.Parent
local guiText = label.Text
local function CharacterAdded(character)
local head = character:WaitForChild("Head")
gui.Parent = head
guiText = player.Name
end
if player.Character then CharacterAdded(player.Character) end
player.CharacterAdded:Connect(CharacterAdded)```
that should fix it
I would do that on the server
then why r u using localplayer
and a localscript
😭
?
who want to make a script for 2 dollars
Thats not my script
Why
if u need the name to display for everyone
then u needa do on server
Yeah
inexperienced. Also, just testing.
and can someone explain what difference it makes when using for loop
Um.... but you would want to do it on the server though
Otherwise clients can play around with the display
alr fine 😠
Im not forcing you 😭
Its just a good practice
You dont want things like that on the client otherwise players can tweak the information shown on the display
And put some bad words
It wont show for other players but still
ok im doing it
local replicatedStorage = game:GetService("ReplicatedStorage")
local billboardTemplate = ReplicatedStorage.Billboard
local function playerAdded(player)
local function characterAdded(character)
local head = character:WaitForChild("Head")
local billboard = billboardTemplate:Clone()
billboard.Parent = head
billboard.TextLabel.Text = player.Name
end
if player.Character then characterAdded(player.Character) end
player.characterAdded:Connect(characterAdded)
end
for _, player in players:GetPlayers() do playerAdded(player) end
players.PlayerAdded:Connect(playerAdded)```
u would do something like that
yeah
make sure to place the billboard in rep storage
i am
alr good
bro im not that dumb, but fair enough
ohh shi
just do what i did
Hello, so I’m making some game and I need to have around 500-600 enemies on the map (maybe a bit more, anyway <1000) Here’s the script: local ss = game:GetService("ServerStorage") local rs = game:GetService("ReplicatedStorage") local plrs = game:GetService("Players") local ps = game:GetService("PhysicsService") local sss = game:GetService(...
np
yeah tweens are pretty neat
just a tip never tween on the server
why? what happens
its just bad for peformance
if u need a tween to appear for all the players
then u needa
fire to all the clients
to play a tween
oh alright. Also can you just explain which parts are the servers and which is the client?
Because i watched a video and i still dont understand it
server scripts (the greyish scripts) normally go in serverscriptservice
local scripts (the blue scripts)
normally go in starterplayerscripts
or startercharacterscripts
oh so are those the sprint scripts and the other player specific scripts
any code running in a serverscript is the server
any code running in a localscript
is the client
👍
and then to communicate between the server and the client
remote events
u can use remote events/remote functions
do u guys ever attach scripts to a part? ive never seen myself do it
nah never
i just use one script
yeah for killbricks and stuff but thats pretty much it
and use collection service
😭
just add a tag to each killbrick
and use 1 script
damn
yea xd
oh so its fine
not really
is it good for optimizing?
when using collection service
then go ahead
??
yeah
u can just grab all the parts
in 1 for loop
and add the .Touched
event
it also saves time from having to go to each script in each part
true, what do you think of this ability? do you think i can make a game out of this? Obviously, I can make it look better down the line but do you think its a good mechanic?
to do this i use a folder and parts inside
its a good start
i could use collection service instead
but its basically just noclip
yeah ig
the only thing im average at is animation and modelling
u can either for loop through the folder or use collection service
its ur choice
yeaah i could
do you think i can post my thumbnail here to show for progress and for any thoughts?
yeah animations aint that bad but modelling hell nah
fr modelling is hell
i mean if u want
alr
its a public chat lol
this is meant for a tutorial on how to make thumbnails
i think its quite good but idk
its decent enough for the video im making
better then what i can do lmao
Yo, someone to make a new game ? i already have the first prototype which need ideas and improvements, my first game has made over 5m revenues in months, DM me for the prototype link
do you think i can get commissions for this? I want to build all of my skills up and gain actual experience. Also, It would be a good place to improve my skills
Anyone have some recommendations of what to do I am learning Lua and i have some experience with c# and i notice it is a little bit the same but now I am stuck because i watched some tutorial but don't think I have the knolage to built something decent what should I try now?
u could it really depends how good you are
and how good your reputation is
make a test place and just mess around. Get tools from the toolbox and analyse different parts of the script. Also, stay concistent
yea all people look for are cartoony artists.
bit sad tbf
thanks man appriciate it
dont worry, also dont go for too ambitious projects. If you can't script it then it can really de-motivate you and make you want to quit!
yea I am noticing that lol
i think this could pretty cool if you make it so for other people you look a little transparent
while using phase
if you need help dont mind asking fr
Yea maybe
I don’t mind
Can do team create, just I have school and that. So I won’t be that active
sure
Guys is there any ban hammer with animation in toolbox?
I dont need the ban script just need the animation
okay whats your user
also do you want to add on dms?
@wide socket
oh ok
ive added you as a friend on discord
How should I do projectile hit detection?? mine sometimes goes through walls
I'm using Raycasting and cframe rn
I tried both on server and client and it still goes through
My projectiles are going pretty fast but It still should be detecting the dang wall
Do you think AI can be a good tool with helping to learn scripting
Well i mean i do know the basics of coding and I dont want to use it to make a whole game. I mean as in using it to fix busted code and give pointers when needed
code of doom
i am at a point where I want to go out and make small projects but dont know what to do when I hit a roadblock. Like I have no idea what to do or search up
id assume ai could help but I do hear that it might have more cons than pro when using
GPT is just unreliable most of the time
same with most AI
ask it to fix a gun and it'll spit out code on issues that weren't even issues while creating new errors
I suggest whenever you hit a roadblock just use the devforums
they usually have what you would need
besides like complicated things like
how to make advanced boats with Ai
why is there never coding tutors in the tutor channel
cause youtube exists 🔥
One message removed from a suspended account.
how do people use rojo, it literally slowed down my workflow because I don't get to have instance suggestions
you set it up wrong
Lemme rephrase, I get some instance suggestions, but more often than not it just kinda sucks
like yay I get to use vscode
I use it on vim
but also I get to look through 2 different screens trying to create a script
create script under part in studio, go back to vscode, forget what the stuff I wanted to reference is called so I go back to studio, see the stuff's name, back to vscode
like a month or 2
I don't think you're advanced enough to have the need to use rojo
how so
I very rarely place any scripts in workspace.
I don't have the need to really go into roblox studio at all.
I also don't test my code until the very end 99% of the times
I don't have a purpose for the roblox studio IDE since all i really use it is to write code, the rest is just clutter.
during my workflow.
Well, I am making the entire game myself
at least for my hobbies
Yo! sorry to ask for assistance here but people in code help are busy in a debate or smth and don't seem keen on assisting. So yall mind helping me out with something? I am a bit new to coding but trying to make a simple currency system which I should be able to eventually learn to replicate easily.
so like, I do need to quite often go to Studio to do things
ok so, one thing programmers hate is asking to ask
oh mb I get that
imma just copy/paste what I sent in there
well the idea is to have a very player based econimy
yeah, tbh it was better to ask to ask here since its not quite a help channel lol. Go ahead
for the time being I want to make a simple npc store, should be easy enough, what I need to learn to replicate is how to "change the currency value"
but for now what is being absolutely awful, is jumping through hoops to make a backend that just simply "changes the gui number"
It’s not that hard
Yo anybody able to help me with a lil code? Struggling to make my gui change. trying to make a simple currency system, I have a + and a - button which should increase and decrease the currency amount. what I have so far is an event to take and add a "Skiddle" (my currency name). they work just fine and fire to the output box, but here is the server script which takes the input from the server event which for now for some reason does nothing.
local RS = game:GetService("ReplicatedStorage")
local AddSkiddleEvent = RS.AddSkiddleEvent
local TakeSkiddleEvent = RS.TakeSkiddleEvent
local SkiddleCountInstanceMade = false
AddSkiddleEvent.OnServerEvent:Connect(function(player)
if SkiddleCountInstanceMade == false then
local SkiddleCount = Instance.new("IntValue", player)
SkiddleCount.Name = "SkiddleCount"
SkiddleCountInstanceMade = true
end
local SkiddleCount = player.SkiddleCount
SkiddleCount.Value += 1
local SkiddleCountValue = game.Player.
wait(0.1)
end)
I am getting no errors but it just doesn't do anything, any tips?
I know, it really shouldnt be, but its being extremely difficult at the moment
Is this a currency system?
well this is just to make the instance then change the currency amount
wait this doesnt look right
lol
@jolly forge Did you chatgpt the code..
no
I am just a bit new and frankenstein'ed it together ;-;
its literally supposed to be a button which increases the amount of skiddles which is the currency
So your making a currency system
I know how to make a currency stat in the leaderboards section
wtf is this😭
idk about lua but to me it looks like you are assigning the value of player.SkiddleCount to SkiddleCount, then changing SkiddleCount, which does not change the player's count because you modified a copy of it
Nice
what you are implicitly telling lua is "see that box over there? Make a clone of its contents, then put it in this new box. Then, change the contents of the new box"
ok gotcha
what I want to do is connect the string value once is it made in the player, then just edit that every time that I want to take money away or give it
hmmm
honestly what I have so far looks so ungodly overcomplicated and janky, there has to be a way I can make this jank-free
