#code-discussion
1 messages Β· Page 90 of 1
Yup.
does anyone know like the best way to think of game ideas, bro i jus cant think of anything
go to roblox website click See More near Trending and see the games in there then copy them its as simple as that
thats boring
then think of better ideas yourself
no
if u dont want advice then dont ask for it then
yo does anyone that's pretty good at scripting just wanna make a fun project with me and my friend?
go do coding problems
basically infinite ideas
sup
i have two folders with two spawn areas with their own specifications, what would be the best way to randomly generate a different amount and different type of item for each area?
i was thinking of just storing the folder name, prop amount and the type of props in an array and storing that in another array to be called
whats the problem with that
idk i was just asking to see if there might be a better solution
it sounds good enough
cuz rn im gonna have to store each folder's data like this
i mean its not the worst but
yea
My first go at a Death Screen, thoughts?
maybe remove the flash right before the text appears
you can use a dictionary
theres two flashes and the second one just feels out of place to me ngl
if readability is the issue
yeah i get it, but i just didnt like what it looked like without it
I've experimented alot of ways, but thanks for the suggestion!
sure i can try
epileptic players: β οΈ (literally)
I mean, it's a death screen, so..
Wheres luau
tierlist didnt have it but ill put it in B cuz its objectively mid
python my beloved β€οΈ
Assembly in S for the memes and the guy that made rollercoaster tycoon
nahh S tier
its objectively best interpreted language
Anyone can try out my game, i need testing
anyone here know another service or some i been messing with timed notifications. so a push notification that arrives a day later for example it works but im using roblox memory store and it has heavily limited quota
This is a questions for any scripter that works for any big game:
Do you pros use github and rojo?
Is studio enough at your level?
im joking
used to work on a semi big game
rojo and vsc is a must when u get to a certain point, studio just isnt enough for coding
hmm how come though? can you elaborate
SOMEBODY SAVE ME
syntax error?
RunService.RenderStepped:Connect(function() --yourFunctionCode end)
local doors = script.Parent.Parent:GetChildren("Doors")
for i,v in pairs(doors) do
if v:IsA("Part") then
v.Touched:Connect(function(hit)
if hit.Parent:FindFirstChildOfClass("Humanoid") then
print("touched")
v.Gui.BillboardGui.Owner.Text = hit.Parent.Name.. "'s Tycoon "
task.wait(0.2)
end
end)
else
print("not player")
task.wait(0.2)
end
end
``` why dose it only run 1 time then stop?
at some point youve got so many scripts and other stuff it makes navigating and coding around studio really clunky and slow
nation can you help?
oo ai
Hi there, I'm creating a UI to show the current stage a player is on. Should the local script with the code for this be placed in StarterPlayerScripts or StarterGUI?
What is rojo?
the ui should be on the client side you could put the script to change the stage text there too but hackers could have access to it as its on the client side but if it dose not let you tp or anything should be fine
Hm?
thos ^
i kinda forgot
Oh, thankfully my logic behind the UI switching happens on the server, but thanks for letting me know!
want me to fix it or do u want the explanation
yeah thats the better way
explanation if you dont mind
But where should I place the UI script, in StarterGUI or StarterPlayerScripts?
alr so looks like it only runs once cuz print("touched") will only show up when a player touches one of the door parts, no one is touching anything or it only happened once then you'll only see one "touched" printed. Also, the else case in your loop (print("not player")) will run for any object in doors that's not a Part, but only once during the loop, not every frame or touch
where is the script right now?
you can use this script to debug,
v.Touched:Connect(function(hit)
print("Touched by:", hit.Name)
how do i get it to keep looping?
Currently, the local script is in StarterPlayerScripts, but I'm debating whether or not I should place it in StarterGUI
u run logic constantly instead of js on touch, you can also combine touch + loop
it should not matter its just were you pefer
ty
Oh okay, thanks for the help.
yw, lmk if it works or not
will do
try using a boolvalue as a child of the doorpart
then just modify ur script from there
it is a boolbalue
oh
Thanks for the reply. Do you think github is important?
And do you recommend to beginners to start off using github and rojo or first get ahold of the basics of luau and studio?
whats dat
for i, v in pairs(doors) do
local claimed = v:FindFirstChild("Claimed") -- Look for the BoolValue object
if not claimed then
warn("Claimed BoolValue not found in", v.Name)
continue
end
repeat
if v:IsA("Part") then
task.wait(0.2)
v.Touched:Connect(function(hit)
if hit.Parent:FindFirstChildOfClass("Humanoid") and not claimed.Value then
print("touched")
v.Gui.BillboardGui.Owner.Text = hit.Parent.Name .. "'s Tycoon"
claimed.Value = true -- Set the BoolValue
end
end)
else
print("not player")
end
until claimed.Value == true -- Check the .Value of the BoolValue
end
Try this
okay
BOIIII IM BOUTTA CALL PACKGOD IF U DISS ON BGLOX FRUITS ππππππππ
you have to write a program for a specific question
whats the question
github is important yea, especially for ur portfolio, having a github is good if ur a beginner and trying to grow ur portfolio, rojo isnt that important until you working on massive projects and even then its pretty easy to grasp
do you use lua
yeah
was that the question
no
whats the question
why
but i dont want to
it didnt find the claimed
ok
why did you ask me what it is then
Can I see your personal github portfolio?
thats odd, is it still the same error?
oh my github is pretty empty, lmao, I havent gotten around to putting my stuff up there (I should probably work on that)
but uh, dont be like me, you should probably put your work on your github π
Did you ever do comms?
sometimes, i do comms for my classmates, last i did i made a grade calculator for them
not an actual calculator π
it was specifically catered to our courses cuz our professors had wacky grading methods
classmates π u can legit just gpt that
they pay me to code π€·
How would a scripter with 0 experience at all but has learnt some stuff and made some stuff as personal projects get his first comm? Do you think posting in #scripter-hirable is the best option for the first ever comm?
also, AI is like, a cardinal sin in my school, you get crucified if youre caught with gpt or claude in your browser π
use a python gpt proxy π€·ββοΈ
for roblox? then usually try to make stuff that can make your portfolio look good, AI pathfinding, datastores, etc. are pretty good since it shows you understand luau. also helping in #code-help might be able to help you get comms
ong
local ProfileTemplate = require(game.ServerScriptService.DataStore:WaitForChild("ProfileTemplate"))
local ProfileStore = ProfileService.GetProfileStore("PlayerData", ProfileTemplate)
local userId = 5441663311
local success, result = pcall(function()
return ProfileStore:WipeProfileAsync("Player_" .. userId)
end)
if success then
print("data wiped successfully for userId:", userId)
else
warn("Failed to wipe data:", result)
end
I am using profile server data module and when i try to remove my player data from stuido i ran the above code its printing data wiped succefully but if i rejoin or continue the game my data is still there. why might it be happenning?
I think it's because you set the userId even though it's different for everyone else
guys is this possible to get a rope to make a bezier system? to make for zipline?
here i am showing the example? ;-;?
mb not π i might try pull this off right now
How often do you create new scripts, and how often do you recommend creatin new scripts?
idk why and is so hard to make a beizer thing ;-;???
idk why π?
it feels so unaccurate :(
is it bad to have lots of server/client scripts?
maybe
Hey everyone,
Iβm searching for a solution or a toolβlike a virtual animatorβthat can play animations directly on models or rigs without relying on Humanoids or Animator instances.
The reason is, I want to protect my animations from being stolen by exploiters who use GetPlayingAnimationTracks() to detect and copy them.
If anyone knows of any existing modules, plugins, or custom scripts that handle animation playback completely off the Humanoid system (for example, by directly manipulating CFrames or joint transforms), Iβd love to hear about it.
Guys, I need help with a really important firepower in VFX. I want to make it into a hit. I'm making a hit system, and when it hits a player, fire will come out and blood will be lost. Please help.
looking for someone to give urgent loan
Yeah learn how to organize frameworking using only 2 scripts, local and server.
so put all the logic into modules?
put everything into modules and require the modules from the local and server scripts
I was answering not asking
but what does that change
its just more organized and cleaner in my opinion
and it means u can run scripts in order
can you help me
with what
I have a problem. I have a fire power in the form of VFX and I do not know how to make a hit and reduce the playerβs blood. I tried to do that so that when a player hits someone his blood is reduced and when he hits, power comes out of his hand
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local fireVFXTemplate = ReplicatedStorage:WaitForChild("FireVFX")
local HitPlayersEvent = ReplicatedStorage:WaitForChild("HitPlayers")
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local function createFireVFX(parentPart)
local fireVFX = fireVFXTemplate:Clone()
fireVFX.Parent = parentPart
fireVFX.Enabled = true
delay(1, function()
fireVFX.Enabled = false
fireVFX:Destroy()
end)
end
mouse.Button1Down:Connect(function()
local character = player.Character
if not character then return end
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid and humanoid.Health > 0 then
local hand = character:FindFirstChild("RightHand") or character:FindFirstChild("Right Arm")
if hand then
createFireVFX(hand)
end
HitPlayersEvent:FireServer()
end
end)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local HitPlayersEvent = Instance.new("RemoteEvent")
HitPlayersEvent.Name = "HitPlayers"
HitPlayersEvent.Parent = ReplicatedStorage
local DAMAGE = 20 --
HitPlayersEvent.OnServerEvent:Connect(function(player)
local character = player.Character
if not character then return end
local hrp = character:FindFirstChild("HumanoidRootPart")
if not hrp then return end
local rayOrigin = hrp.Position
local rayDirection = hrp.CFrame.LookVector
local raycastParams = RaycastParams.new()
raycastParams.FilterDescendantsInstances = {character}
raycastParams.FilterType = Enum.RaycastFilterType.Blacklist
local result = workspace:Raycast(rayOrigin, rayDirection, raycastParams)
if result and result.Instance then
local hitHumanoid = result.Instance.Parent:FindFirstChildOfClass("Humanoid")
if hitHumanoid and hitHumanoid.Health > 0 then
hitHumanoid:TakeDamage(DAMAGE)
end
end
end)
if not result or not result.Instance then return end
You could avoid so much nesting.
Guys
besides no type checking knit is fire in my opinion
Useless shit
I fucking hate AI
I told AI to make a fully functioning Chess GAME
with all of its rules
it fucking did it
We're cooked
uhh u obviously never used it properly
Yeah because programmers always fucking making chess games as their learn projects
Ofc there's code on stack overflow that chat gpt copy
Now asking doing something simple yet bizzare, how will it go?
What you think AI will be capable of after decade?
Nothing
AI doesn't exist, it's a copying machine that copies everything from internet
It won't do better than say something that was already been said
ask gpt to make a full roblox game theres gonna be a ton of mem leaks and depricated function usage
Basically a search engine but smarter
then explain image generator AI
Same shit, copying
if it copies everything from internet, how does it generate images EXACTLY like you describe
Because there's many pictures on the internet?
It learned good enough
But nothing else, and nothing new
Nah you idiot. Tell it to generate a giant potato chip licking messi's feet while eating nuggets and playing football in his imagination. does that even exist ???
Generate it, and it's gonna be wrong
Yeah, I know. But that's not the case dude
AI is real bro
explain AlphaEvolve AI
What is it
Did you know that google's latest AI, was able to discover new solutions humanity couldn't discover for 50 years?
And you tell me that it's copy and paste?
@pearl blaze
how do you know if someone is good at scripting if you don't know any?
send a ss of their code here
its just in general, its not like theres only 1 person available for hire
if there uses depricated functions
reusing blocks of code again and again
instead of making a function
you can tell if there using ai by checking if theres alot of comments scattered around
yo is anyones studio acting weird?
yeah roblox died cause gag update
fml
love when a raycast cant detect between any of those dots
is there any benefit of adding --!native on top of your script? does it actually do anything?
it most certainly does
but you probably shouldn't if you haven't done programming in native languages before
but if your script does tons of math it could help
Hi guys
how much would it cost for someone to make this script/system?
user clicks a button that prompts a dev product
if purchased, it will create a text label with a password from an array, there are 10 random passwords to chose from
just make like 10000 more raycasts
Love crashing my pc
i fixed it anyway
how so
any1 know how that one dude on yt remade the Whole Travis Event on Roblox Like The Aniamtions there is no way he made it
lua is pretty good at optimizing stuff, but certain operations still have some overhead that native will reduce
like vectors
i really want to know how to make the player loads stuff that would not load normally, like when its far
how do i start
start what
scripting
by starting
thanks
yeah
how to become pro scripter
learn
zixpq292 got all the answers
yes
anyone here good at scripting willing to do 50 percent of whatever my new game makes or whatever that thing is called i forgot what its called thanks
im a philosopher now
what is whatever that thing is called blah blah meant to mean
uhh idk i forgot you know what it is
no because i dont know what you are on about
guys
for how much
you put the things in the script thing to make it work
write some random words test it, it doesnt work scream at your computer quit and never come back
print("hello")
sure
f
r
no srsly I forgot
am I cooked
i want to forget how to code
because then i would be better
learning from my mistakes
depends
anyone
if the idea is fun
I FUCKING HATE VIEWPORTFRAMES
i think he hates viewportframes
i do NOT like them
its a game were you just click on a screen but you can uograde that screen to get mutipliers, those upgrades only have a small chance of happening whcihc makes players stay in the game, also you can do other stuff im missing alot of what the game is abt in this text but theres more t
sry for english
uh
bussiness tycoon
i was modeling fro this guy but he wanted to use ai on his projects and make cash crabs and scince we never singed on anything i just took my models and now i need a scripter to help
What networking library you guys using
funny how i started working on my own like 15 mins ago
what yours will have special?
idk im still thinking
figuring out how tf imma use buffers
but i know i will not use m*tatables
then why you doing this
because i dont want to set up replication everytime i make a new project
so i can just import my module and go about my day
and its more optimized
or trying to be atleast
did you check packet?
yes
it does what you need i think
i dont want to skid
i personally been using for a while now, and its pretty good
and suphi kaner is cool but his code is ugly af
i want something i can change easily
you would you change it?
i never tried to edit any library before, why would any one do?
what if it is unoptimized or bloated
or not performing the best it can
thats why i just prefer to make my own
i can barely figure out what the code doing cause its near illegible
and also i dont just want to skid off other modules i want to learn how to make it myself and also better
yea, i think you should make something which solve a problem, there are already many networking libraries, so you can try making something different
does anyone know where i can find a partner to work with ?
here ig
anyone know how to work with fastcastredux
i keep getting this error
ServerScriptService.Modules.FastCastRedux.Signal:90: attempt to index nil with 'Delegate' - Server - Signal:90
function SignalStatic:Fire(...)
assert(getmetatable(self) == SignalStatic, ERR_NOT_INSTANCE:format("Fire", "Signal.new()"))
local args = table.pack(...)
local allCons = self.Connections
local yieldingThreads = self.YieldingThreads
for index = 1, #allCons do
local connection = allCons[index]
if connection.Delegate ~= nil then
-- Catch case for disposed signals.
ThreadAndReportError(connection.Delegate, args, connection.Signal.Name)
end
end
for index = 1, #yieldingThreads do
local thread = yieldingThreads[index]
if thread ~= nil then
coroutine.resume(thread, ...)
end
end
end
its just FastCastRedux, an open sourced raycasting library
what is wrong with my home pageπππ
whats wrong with it..? π
guys how much it would cost me to pay someone to make me a ball script like blue lock rival for my blue lock game ?
guys is this code efficient on detecting if a player is playing from a computer or mobile????
damn these scripting commissions are barely paying
allat
500$ bare minimum
does anyone have scripting experience and tryna partner up ?
local
Can someone help me make a timer, a clone spawns every 30 seconds and I want a ui to display the timer for me but no script will work, I have done many things but they never sync...
local countdownTime = 30
while true do
local currentTime = os.time()
local timeLeft = countdownTime - (currentTime % countdownTime)
textLabel.Text = "Next Clone In: " .. timeLeft .. "s"
task.wait(1)
end```
local platform = UserInputService:GetPlatform()
Would anyone (other than me) find use in this?
json? why json?
Anyone need a discord serv for their comms? HMU!
i know for rbxts you need types, so that would be cool but it already exists (though it kinda sucks)
but why json
hmm
Wdym.
ngl i thought it was just for putting your scripts in places
ohh you want to put scripts under instances
Yes, precisely.
Also, to avoid Rojo's habit of just deleting instances which aren't referenced/mentioned in the said .json file.
Anyone need a discord serv for their comms? HMU!
it does that?!
Yes π₯
Hi there,first of all i wanted to say that don't make my fun cuz of this spammer thing.
Anyone here can script a game like grow a garden??
That's why I made that plugin.
ok yeah that's cool then i like it
Why do you have the Spammer thing π?
bro's a likely spammer
idk why everyone make fun of me but i don't even spam
wait does that mean you can just open up baseplate with a rojo project and sync and all the assets come in? :o
likely spammer
I mean, if you have all the information in the .json file theoretically yeah.
I think.
ngl i wish rojo synced back and forth so you could just yeah
i wonder can rojo put in like custom models
Don't think so, even though it's a plugin it can't make its own Instance Classes.
If that's what you meant.
trying to think of all the things that are studio exclusive
animations? model import?
How can I be sure when I'm looping trough folder there will be module scripts on client?
What if not all module scripts replicated?
why would u have it in the json file
just use rbxm files
Nope. Testers and scripters are two different roles. Scripters often test their own code while testers often try to exploit the code to see if the scripter has overlooked anything. This can then be reported back to the scripter to be fixed.
guys is it true because thats what a scripter im trying to hire said
cuz localscripts run when everything else is replicated
Is using chat gpt to help me script ok? Iβm moderately good and can use module scripts and make semi advanced systems by myself at my current skill level
if that were the case, you wouldnt need to use :WaitForChild(). it depends on where it's located
Yes it's true. No matter how good a scripter is there will always be players who do unexpected things which may or may not cause issues
So it's best to have a team of testers play a game before release
what should i try making all i know is the basics
in a rng game...
How basic? You could make an intermission system. A system where parts randomly spawn on the baseplate. An ai that attacks. A floor that tweens downwards and destroys after a set time
I did all sort of stuff like that in the beginning
okey i will try ty
Sh no one's buying from you
I want to get the project off my hands
Then sell it in the right channel
What channel
any1 know what there doing with handling moon animator cutscenes and rigging it
If anyone can fix some bugs for my βSteal aβ type game message me, will pay.
no
im right
localscripts are the last to run
modulescripts are already loaded by then
Guys, letβs say Iβm making a game that needs to save lots of data and information for each player and each player is storing lots of data; is profileservice the way to go?
Not that useful no since rbxts-object-to-tree plugin already exists which generates you a d.ts file for either your entire Service, or for a specific model, your choice
Alternatively with something like rbxts-build, you can further automate this process by just saving a .rbxm files or even asset place files in your repo and have lune scripts to generate these types
I got blocked for posting link
Rojo syncback is available in UpliftGame's fork, which is supposedly going to be merged sometime this year, but who knows, you can try it out at
check out github UpliftGames/rojo
even if the local script is in ReplicatedFirst? (as if you would ever need to do that)
no
if its a regular local script
you shouldn't really use replicatedfirst anyways
wdym "regular"?
regular location
not replicatedfirst
cuz it has special replication priority
are you talking about just modules loading before local scripts?
guys how important are functions
oh. i took it as everything replicating before local scripts. you might be right in that case then. it might still depend on the location of the two though
very
only if ur localscript is in replicated first and module isnt
otherwise my statement is correct
dont be brainwashed by functions they are useless you will never use them they arent even real you need to wake up wake up wake up wake up wake up
The only function you need is the function to drink coffee all day and night
Is there a server for gamejams?
What about for loading screen
There are 2 types of devs:
Devs that use first and devs that use second one
This maybe a really stupid question, but how do u use OOP in like an efficient way
Many times, my code gets pretty complicated with OOP
And I always have to call .new() for classes
does anyone know any open source games with good code i can look at ?
structure is something to learn from regardless
Does anyone here know how to do rank binds with bloxlink?
(I need to be taught or I can pay abt 300 robux if you do all the rank binds)

Wow you're so hot in here babe
can someone explain the benefits of using rojo as an indie dev?
i got lazy
you can't even see π
nothing wrong here
stop framing my boy lebron
does a LinearVelocity always have a delay?? its very noticable whenever I use them
by delay do you mean ping
Iβve discovered a pretty bad performance issue in one of top games that has to do with Instance.new and wanted to write about this, since this is not obvious unless you know the system inside out. Tthere are several ways to create a ROBLOX object in Lua: local obj = Instance.new(βtypeβ); fill obj fields local obj = Instance.new(βtype...
yea now read the post
name assignment replication
thats a value base instance, changing its name/value after parenting doesn't impact performance
you change the value of value instances every time, why not worry about the replication then
no
im a little bit stupid and dont know what you mean π
im talking about this
very nice camera
thanks!
are you creating it on server?
yeah
yea its likely a replication delay
and theres a post about it
When a LinearVelocity is created on the server, it will appear to have a noticeable βdelayβ before it acts when viewed as a player. This causes a sort of βteleportationβ or βlagβ effect to the part of which LinearVelocity is a descendant. A reproduction file listed below uses LinearVelocity & BodyVelocity as a comparison. BodyVelocit...
but its marked as solved
you could just do the visual in client
How'd you do an orthographic perspective?
ima check it out
Anyone want to test my game for me
Hm, interesting. Lol then there was no point in me doing allat π
This is the first episode and beginning to become a Roblox Scripter/Game Developer! With 3 playlists (Beginner, Advanced, GUI) containing 50+ videos and 30+ hours of content, I will guide you through this journey to start making the games you want to create on Roblox!
DISCORD π
Join my Discord Community if you want scripting help, participat...
is this the best series for learning scripting?
uhh so far for me yes
i want a tutor lol is there any good ones i can pay a good amount
you should try doing the objectives at the end
they really help
don't focus on just the video and test out what you learn ig
uhhhh try in #code-help
I have told the code i have for leaderstats to get my id, how do i call it?
I could fill in that spot if you're still interested
how good are you
and
can you actually teach
Been scripting for 6 years (on and off)
Yes, in a way that's digestable for you
I'd prefer to do it in vc though, I'm a more hands on person
yeah vc but how long have you taught
or have you
I don't have a long history of teaching people because I've only taught a few friends
4 hours max I guess
Oh I thought you meant per session
and how much
It depends on what you want to learn
5$ per hour is fine with me
$5 per hour lmao well yeah
im just trying to learn how to make my own game that ive been working on
and will pay more if its good
I can help you with learning the programming concepts related to your game
We can take this to dm's if you want
dont fall for it naps
why lol
to pay him $5
what
I don't even know you
see i tried helping u
Anyways, if you want to gauge my teaching, we could do a 30 min session free of charge
And if you still want to continue, we can start from there
anyone want to test my game for me
okkk
tomarrow
What's your timezone? Mine's in GMT+8
est
What's your preferred time to start?
whats a good youtuber to watch after i finish these basic scripting tutorials
help me plumbow
im sorry
idk lol
Let me check my subscriptions lol
I mean if he wants
no neeed
im probably not going to be awake
what timezone
Why not start the freebie session now?
sleep
Oh makes sense
i gotta wake up at 3
How does 12am EST sound for you?
QweekerTom and B Ricey
whats a cameratype thats like track but ur not able to move the camera ( camera rotates as part rotates )
What're you trying to accomplish? Scriptable would do well with this
You'd have to make the camera rotate along with the part using runservice though
thanks
funny death tracking
mango
Was using viewport the right move for my game?
Yes
Anyone want to test my game for me
why cant i fireclient my remoteevent
Anyone have a cooking system ?
no, you are changing viewport on runtime
which is bit reasource intensive
plus there's no necessary reason for it to be on viewport either
dont use ts π
put the modules u need in replicated first
Can someone help me fix a bug in my game?
how to increase render distance
How do you make a code that saves items in the backpack but also items in your hand for when you leave and rejoin?
Uhh I cant do the code right now (its 4:11 am so I dont have my pc here) but you can assign a number to every item in backpack and character (character for the item in you hand), use DataStore to save them, and then, when you enter game, make the DataStore load these numbers and give the player the items that have the same number that was saved (same with the item in the hand)
Thx
absolute cinema
hi guys im a coder
\wait why is this image so fresh this image was made 2 days ago??
how do you ensure you dont get scammed out of percent based payments?
what
like if you get 20% of a game promised to you is there a way to ensure you dont get scammed
like a roblox feature
To people who got scripting role: i applied but Idk if it'll get accepted or denied. Do you think having very simple projects and not being really all thata experience will lower my chances of acceptance
is there server for OS animations like roVFX? but for animations
sign an nda
nope
local Players = game:GetService("Players")
-- For Stats
Players.PlayerAdded:Connect(function(plr)
local leaderstats=Instance.new("Folder")
leaderstats.Name="leaderstats"
leaderstats.Parent=plr
coinvalue=Instance.new("IntValue")
coinvalue.Parent=leaderstats
coinvalue.Name="Coins"
coinvalue.Value=0
end)
is there any error here?
no but why is coinvalue a global variable
i have its value increasing in another function, is there alternate?
also, i dont see the folder in explorer, its somehow isnt working
uhh just grab the value from leaderstats
instead of making it a global
ill send in a chunck of a code, lmk if you see some concerning errors
it turned into a file apparently
viewports are pretty bad for renderng and theyre very resource intensive
can anyone help me out why is it doing this?
I love when players is replicates storage
why is players replicatedstorage
I think you meant to name it Replicated storage since it would then work..
pretty sure it's chatgpt
π
yo if ur gonna use ai to code atleast use a good one π
chatgpt tends to name services exactly what they're called
gpt is so ass
surprisingly there isnt 5 trillion comments explaining every line though
I use it to check params when I'm lazy and stuff, wouldn't trust it for a whole script tho
its a battlegrounds game
yh ai is useful for debugging but writing whole chunks of code is a pretty bad idea
can u tell me why replicated storage is red?
Well yeah cus if it is chatgpt he tried to only take a bit so it wasn't obvious
I literally told you
deleted the comments π
why?
bro just read#code-discussion message
name what replicated?
Replace "Players" with "ReplicatedStorage"
got it
I hate the 50% of non/scripters who need spoonfeeding
yes i am no scripter
cuz the scripter is on a 1 month holdiday
im so cooked
Yes but if you're scripting atleast try
could you help me out?
Not for free no
% is ass
is this ai?
its so messy its so hard to read
i know just had to clarify
aint even trying to hide it atp
players is :GetService:Players() not replicated storage, you're naming it wrong
you need both players (since u wnat to connect a function upon players adding) and a replicated storage (since u want to require a module in it)
but it was a genuinely funny script ty
hes trolling u do know that right
alright alright, if he's not trolling it's okay to help a guy
if he is, then π€·ββοΈ
they already helped
i spent way to long on a simple code
crazy
okay
i LOVE ui scripting
were you debugging or something
no just scripting ui
im still a beginner in it
Watch Scripting and millions of other Roblox Studio videos captured using Medal.
how long did that take u
and send ss of ur code
dont wanna talk about it
thats takes like 10 mins max
took me 2 hoursπ
for me its 5mins
damn
its ok tho ima be a pro soon
once i learn how to fix ui scripting bugs
im locked in
not bad atleast u didnt use gpt
what is that code colour broπ
i would NEVER use that again
i js chose a random one im ngl
that code color is fire bro
chatgpt is so bad
yeah it triggers epilepsy
ye is js weird a bit
fr
ty ty
Do you guys recommend to start scripting?
bruh that's the purpose of this server
no if you dont want existential crisis
if you have never programmed before then no
depends
guys stupid or not stupid (pls let it be stupid)
its a good way to get into programming in general
lets you build a very versatile skill
stop trolling
im not
you are that's clearly 0
what philsophy is that
0
zerology?
0
I have programmed a little before
π
0

0
ty and no i aint joking
so you understand like the basic data types booleans, string, integers etc
?
if you pass an instance to the server side from the client side, does the instance change to the one on the server side?
check dms
if the instance was created on the server or before the game loaded then the instance remains the same when passing to the serverside however you cant pass instances created on the clientside to the serverside
its a player gui so it should work then
Scripter needed for a VAR system, robux only
?
why are u tryna pass a player gui from the client to the server
bc the gui has to do with purchasing smt with in-game currency
detect when the player clicks the button fire a remote to the server to deduct the currency
Exploiters can change the price associated with in from client side so I have to do it from the server side
So you want me to only deduct the amount from the server side
I mean I can do that too tbh
I have the price saved as a NumberValue in the ui instance thats why
I'll just fire the ui instance to the server and check to see if the player has enough for it
purchaseButton.Activated:Connect(function()
remote:FireServer("Test")
end)
-- Server
local Prices = {
["Test"] = 10
}
remote.OnServerEvent:Connect(function(player, itemName)
if not itemName or typeof(itemName) ~= "string" then return end
local leaderstats = player:WaitForChild("Leaderstats")
local currency = leaderstats:WaitForChild("CurrencyName")
local itemPrice = Prices[itemName]
if not itemPrice then return end
currency.Value -= itemPrice
end```
i would do something like this
the prices are completely serversided
Ty
oh yeah and dont forget to check if the player has enough
u would just do if currency.Value >= itemPrice then
Oh yeah ofc
The problem is that I was just running the whole thing from the server-side via a remote event to prevent exploiters from bypassing in any way
I'll just verify the prices alone now
yeah you shouldnt do that
just secure ur remote events on the server thats all
Alr
They're on the server
yeah ik i was just reminding u
Ty man
partially might be-- but i'm new so pretty much documenting anything i might get confused on later
so the task.wait() at the start and the player service kinda got messed up so i never had leaderstats, im cool now
guys can I get some ideas for vfx scriptingπ ? Idk what to do
whatβs wrong
i struggled quite a but on leaderstat so i did anything i could to help myself
nice
i recommend cleaning up ur code a little bit
studio has a built in format button
how to fix pls
code :
local MessageService = game:GetService("MessagingService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local GlobalSymbol = ":g"
local allowedUserIds = {1251710945}
local MessageFilter
local function Permission(player)
for _, userId in pairs(allowedUserIds) do
if player.UserId == userId then
return true
end
end
return false
end
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if string.match(string.lower(message),string.lower(GlobalSymbol)) and Permission(player) then
message = string.sub(message, 3, 30)
pcall(function()
MessageFilter = game:GetService("TextService"):FilterStringAsync(message, player.UserId):GetNonChatStringForBroadcastAsync()
end)
if MessageFilter ~= nil then
local msgData = {Player = player.Name,Text = MessageFilter}
MessageService:PublishAsync("TextLabel", msgData)
end
end
end)
MessageService:SubscribeAsync("TextLabel", function(AllData)
local Db = false
local messageData = AllData.Data
local AllCharacteristics = {messageData.Player,messageData.Text}
ReplicatedStorage.MessageServer:FireAllClients(messageData.Player,messageData.Text)
end)
end)
pls help someone
am dumb
How do I turn this into Velocity math?
its created with cframe so I want to be using velocity for the throwing part
add a queuing system so it stacks the message if the publicasync fails
use fastcast it a module useful for creating projectiles
Can someone experienced help me to make Instance extention?
I want to merge my class with instance
why?? I want to code it myself and that wont do bezier curves
that I know of
uh it makes it alot easier and you can also detect what it hits etc
yes it will create a curve
how π
can you help pls
add it to table its not hard man
yeah use oop
can you pls do it for me
I am not experienced witht this kind of stuff
I just make tower defense abilities and gimmicks π
Kinda got my own problems atm been working on this game for way too long need to commit to it and finish it
ill pay you 100
bobux
via gamepass
It's decent in studio it's messed up here wo it's cool
100 robux is nothing to me I used to make 800 a day for nothing
how abt 900 then?
haha
You can't use :Destroy() tho
im serious ill give u 900
And I need to get both properties from an instance I'm extending and use methods
nah sorry bro 900 aint nothing to me
this guys ego is crazy
I just dont want to help this guy out he doesnt want to do it himself
but then he wants to pay me a small amount for time I dont want to waste on something so simple
Guys could I get some help for this error pls
First time trying to do a knockback system
thats the wrong script
theres no character definition in that code
oh nvm
mb
its cause u cant access the localplayer on the server
you need to show the lines
so we know where the error is
the last lines are end) and end
didn't fit in one screenshot sry
try putting this in a localscript
ok
Now it doesn't do anything
I think Index needs to be lowercased __index
^^
make a serverscript with runcontext set to client
tell me if that works
Yoo it works your the best
np
same thing
doesn't do anything
not even a error?
nope
Maybe the character dosent have time to load?
which character?
send the entire script to me from top to bottom in dms
ill help you out real quick
oh thx
add a print at the top of the script check if it runs
Guys should a scripter post in #code-discussion ?
depends
this channel is for discussing how you'll code something
the other channel #code-help is where you post your code
Interesting, what about this one #βcreations ? Do scripters have a place there?
Selling an unused slap tower game with a good gimmick for robux.
GUI is done
Scripting is done
Logo and thumbnails are also done
π£οΈ
just to post videos of their code working I guess
no one would play ts twin
i mean the concept already exists why do it twice
one must leech the trend when it exists
yeahhh But they would play the big one
i mean you can take the obby concept and make a new one not just 1-1 replica of a obby game that already exists ( slap tower )
or grow a garden
yeah thats what im saying
its not the same
it has a different gimmick
other than slapping what..
anyone need a simple script? ill do it for 200 robux
you can just make it a flaming tower then, the slap concept is already used and would make no reason to make it again
I feel with slapping it becomes more intense
in the first place I don't have the time to handle the game even if I want to, my vacation ends tmr
make it with kicking
Is anyone here advanced and know meta tables and Projectiles/Bezier Curves? I need to ask them a question
damn I didn't think of that
lol
what exactly r you gonna ask
do you know how to do smooth projectiles? I'm doing a throwable object and I dont want to use fastcast I want to code this myself I understand everything needed to do it but I'm not sure if I should create the projectile on server and setnetworkownership or fire to all clients to create the projectile and just do checks on server. I'm using it for a bezier curve for throwing an object
rn im testing both ways to do it and it would be easier if someone knew the best way and just told me
do you wanna handle things thru the server, client, or both? i mean simulation + verification
I dont really need to simulate verify it on server because I'm thinking ill just need to check their radius when they throw the object to make sure its in range
you could do,
- server verifies range before allowing the throw
- then the server sends a remoteevent to all clients w/ the data for the throw(curve path start, control, end)
- the clients simulate the projectile locally with a Bezier tween
i havent worked with projectiles much, mostly going off with what I know from documentation
bezier tween will be best or should I use velocity?
because I think I can do this with velocity as well with each point
that depends, Bezier Tween is more "cartoony" or "smooth" while Velocity is more realistic
if you want an arcade-y feel go with bezier tween
what is the difference between bezier tween and a bezier velocity?
with tween you manually position the projectile along a bezier curve while w/ velocity you compute the derivative of a bezier curve to basically use it for the projectile's physics
both are good options, really just your preference
alright ill have to test both maybe but ill try this
does anyone know how to remove a background of an effect as a screenshot?
local totalWeight = 0
for _, v in pairs(boxes) do
totalWeight += v.weight
end
for _, v in pairs(boxes) do
v.weight = math.floor(v.weight / totalWeight * 100)
end
``` is this inefficient
cant think of a better way to turn some values into weights
hey guys im pretty new at coding why wont this script detect if the victim player is blocking (holding f)
pairs and ipairs is deprecated btw
huh
just do in boxes do
It's not offically deprecated atm actually
noooooo
but it's recommended to do it the new way
for Index, Box in boxes do
end
if boxes is a table already then you dont need anything else
im assuming a table with key value pairs count?
any table counts
nice
u know
ive completely underestimated how hard it is to be a game dev
gotta know UI, coding, 3d modelling, vfx and animations
Its not hard tbh once you know how to do everything
is this script works (teamCheck) script
(im bad at scripts i dont know what should i do if u can fix the script ill be really happy)
local player = game.Players.LocalPlayer
if player.Team == 'YourTeamName' then
print('Yes, player is in that team')
else
print('No')
end
you dont need to model if you know people to do it for you
so far id say im 20% on UI, 50% on coding, 50% on 3d modelling, 1% on vfx and 0% on animations
animations and ui aint that hard though
not looking so good
ye but it takes some time getting used to
picked up figma recently
still quite not used to the controls yet
too late lol
animations i have no idea
im not into animating but its not hard im just not good at making good animations
nice
lets talk about your indenting first
no, that just uses pairs by default.
using next is faster + bypasses __iter
It takes long to learn everything id rather just get better at one thing
my what
oh yeah uhm
its not its just recommended to use the general iterator
thats what I said below that
oh mb
here
yeah
I thought they were deprecated at first
then looked it up and noticed I was wrong
how can i do this: removes part of a terrain and the better the axe, the more terrain it removes. also add a gem spawn with different rarities and chances of showing.
how can i prevent players from tab-glitching
By tab glitching do you mean the freezing roblox?
yes
Guys do you think learning time service would benefit me as a beginner?
time service?
tick(), os.clock(),os.time()
Yeah those
its not a service though
My bad
os.clock and tick is pretty useful if you want everything timed correctly
like projectiles
like Projectiles * dt * speed
I would start smaller though and do Remotes then modules then meta tables
those are the main 3 things to learn to being a pro
but if that's too hard go lower and keep practicing remotes
Do you consider yourself a pro?
os.clock() isn't dt
then why is that your example
good point
it's still something similar os.clock as the starttime and then subtracting it with another os.clock to get the time difference
that would just be a delta
yes dt
different from dt passed by runservice lifecycle functions
theyre diff concepts but yeah
tracking your own time differences vs deltatime passed from those
I say im a pro I can code anything that I put my mind to
Coded these
It's not fully finished yet
Another thing Ive coded
All of those dinos are clientsided but the movement is controlled on server
It looks good
thanks
Im gonna have to recode it better but I'm planning on doing it soon after I finish my current game
I noticed I could of done a lot better
I have a script that have 1700 lines and that you can easily recode it to make it like 300 lines, but too lazy to do it (lol)
yeah I dont like messy code I recode a lot
if you got 1.7k lines there is something wrong lol are you using modules?
gotta keep it organized
You ever done comms?
never have they always want more than its worth
I used to get 800 or so robux each day from my own games and they wasn't that good at the time
I have trouble finishing most of my projects but I'm trying to fix that. My current game is almost finished
This is a good goal. To be able to script whatever you put your mind to. How long would you think it would take to get to this level?
Yeah, the thing is, that thing controls most things of my game
I just recently gotten good at it and started learning everything I can but I've been coding 10 years off and on. I code more now than I ever did so I think 1-2 years if you're constantly coding and learning
Have you personally turned this into a full time?
I'm hoping to put out a few projects all of my dev friends has games with over 100 people on them
so hopefully I get some soon I need sponsor money for my games atm so it might be awhile till I can actually get anywhere
any1 know how to script profilestore? i need help making the inventory of the plr save
This game right here might go somewhere not sure about my current game though
the current one is kinda like spleef
you collects coins and then use them to buy traps and weapons
with falling platforms of course
Atleast try to be modest
Those things aren't anything extremely difficult either
So maybe best not to brag
Im not bragging all I said was I can code anything
Doesnt meen I can code a full game
Bro what
and those npcs are using raycast on server to control movement
"I can code anything" "Except some stuff..."
it's more difficult than you think