#code-discussion
1 messages · Page 105 of 1
If there's no pay
Just make it yourself
No need to "work" for someone
If they won't pay
fair enough
Unless you're planning to make it co own type thing
Yea or offer % at least
Most of codes you write better be from the forum and use a better ai (paid ones )
its not horrible, wouldnt say its the best way but its certainly not the worst, just be aware itll probably get a lot of stuff wrong our outdated.
That is true.
ChatGPT is just trained to search the web, and use those references to build an answer to a prompt. But it's not proven that any of their models can reason. It only simulates it.
So sure, Roblox may have a site for referencing their Luau documentation, but ChatGPT simply can not read & act upon like us humans.
chatgpt can change rblx files now
I got a question for any scripters in here how much would it cost me for someone to tutor me for an hour in here in robux or cashapp
check #tutors
alright thank you
is ther anyone who can learn me scripting?
is there a place where i can hire someone to find and fix a small bug for me?
for not so big of a price
ello can anyone tell me how to learn lua?
start with:
variables
data types
if statements
for loops
functions
arrays
incomplete roadmap but u should get most of the basics here
chatgpt ngl
everyone i have a question
how can you use the time position of a animation track to find what frame of that animation the character is on and use that data to interpret the position of different parts of the body during that frame
kind of a mouthful but i hope it makes sense what im trying to find
??
go to #animation
oh
multiply the time position? idk gng
I didn't completely understand this but your key words are
animation events
attachments
What would be good? An explosion that uses just Spherecast for detection and Raycast for line-of-sight or do I simulate fragments? I kind of like the realism of fragment simulation but I'm not sure if it'll be fun.
I use FastCast which already works for my firearms, and I'll also be using them for projectiles in the future.
fragments with random reach distance would be more realistic yet less optimized , it's more about your goal
you can make a bunch of raycasts from the explosion center and then check if it hits a player but it is not as optimized as just doing a spacial query and raycasts
If I were to use FastCast to simulate the projectiles from the point of impact, would it still be optimized? I modified my FastCast to use Spherecast so I am not sure.
idk i dont use fastcast
It basically uses Raycasts to simulate physics like bullet travel time and gravity.
why not just benchmark it yourself?
just compare the memory usage and frame time of each option
use debug library and dev console
so uhhh , I got a weird method
make a sphere that tweens size and detects the hit
and the hit detection should be randomly
while it's about let's say 20 stds , it's a guaranteed hit ,
and after that the more it get big the rarer it is to hit
more like gambling
@coral prawn
or magnitude idk
yo, im trying to tween items that the player collects, the problem is those same items are tools the player can equip, and tweening a tool is really glitchy, how would u guys do this?
one sec ember lily in stock
im completely new to scripting can someone tell me the most efficient way to learn
projects or a tutor
Dont take % unless the guy shows you his transactions page
Then decide
Jumpscare
Anyone paying % with no bobux should fill one of these out
how come AnimationClipProvider:GetAnimationClipAsync doesnt allow me to use the frame data for each limb, like the local rotations and stuff
find a roblox lua roadmap first to see what items u should target learning
Read the documentation
I dont know
If the doc is shit, then good luck
i hate doing animations in code
idk why but its always super complicated
i remember trying to make a sword swing and failing miserably
Its not that bad
keyword: probably
wth
hold on is that code functional
it looks functional
Yes
wth who writes like that
Its normal code unformatted
also what is this
i received pain just by looking at the image
wireless transmission
the documentation is so brief 😭
Hey, any rational coder here that can help?
is there another way to access local rotations of animation raw data
Rip goodluck
Prob
Go into code help for that
I don't work with suspension systems as often and i encountered an issue where the car keeps bouncing non stop which makes no sense
And by the way its a custom suspension system
does it need to slope
Hm?
i can think of a system that would make the car always float horizontally above any object under it
but idk how to make it diagonal
I don't need a system lol i already have one i just need to fix that tiny bug
No worries im asking everyone who comes accross this message
are u using raycasts?
Yes
im assuming ur casting four rays from the four points and having the car suspend based on that
Yes
i think ur gonna have to use constraints
By making the car suspend i made a problem where it causes a chain reaction of suspending
cuz idk how to balance the car based on just the info from the raycasts alone ngl
hmmmmmmm
maybe weld 4 invisible raycasts points that serve only to give an updated position of where each tyre of the car should go, and move the car to those points with constraints?
nvm i am not familiar enough with constraints to provide more suggestions
No problem
but i think u wouldnt be raycasting from the car itself but from some welded suspension points
believe it or not.. Linux is 🤮
Hm
1 second you b rought an idea to my head
Ok I was sleeping and I suddenly had an idea
U can set the position of the car to the average y coordinate of the raycasting part positions
Oh and using the vector between two raycasting parts to find out how to rotate the car
or all four lol
but I don’t wanna do math rn to figure out how to do that
so ima go back to sleep
good luck
Does anybody know how to make a donation booth just like in Pls Donate? I cant get the passes to display, I think theres a problem with roproxy
local AnimationClipProvider = game:GetService("AnimationClipProvider")
local animationId = "rbxassetid://507771019" -- Example: "Stylish" walk animation
task.spawn(function()
local success, clip = pcall(function()
return AnimationClipProvider:GetAnimationClipAsync(animationId)
end)
if not success or not clip then
warn("Failed to get AnimationClip.")
return
end
print("Got AnimationClip:", clip.Name)
for _, keyframe in clip:GetChildren() do
if keyframe:IsA("Keyframe") then
print("Time:", keyframe.Time)
for _, pose in keyframe:GetChildren() do
if pose:IsA("Pose") then
print("Bone:", pose.Name)
print("Position:", pose.CFrame.Position)
print("Rotation (lookVector):", pose.CFrame.LookVector)
end
end
end
end
end)
can someone explain why this only returns the data for the HumanoidRootPart, and no other limb
Any challenging to script things? Any except AI. I want to improve scripting, and id like to do challenge tasks for own improvement.
Try after if pos then
Add an else and prints, maybe other limbs aren't pose for some reason, if not works, then check your animation if it usses this key frames. Make sure your animation uses legs, arms and other stuff.
How do i detect player resetting their character? Not just death but resetting, i know its remote function but maybe someone got ready script?
Guys I've been struggling with an animations problem for a while.
Tool that is supposed to play an animation when activated shows this a "sanitized id" error. Need help quick.
I got one
Make a primitive replica of a popular game
Yo guys whats the best way to store skills with datastore?
i was thinking about creating numbervalues and then make the script refere to that number value. If the player has that numbervalue the skill will apear in the inventory of the player
rational
I want to learn how to script on Roblox. What should I do to get started?
watch the playlist => (https://www.youtube.com/watch?v=9MUgLaF22Yo&list=PLQ1Qd31Hmi3W_CGDzYOp7enyHlOuO3MtC)
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...
ty i gonne watch it
does anyone need anything scripted? if so, dm me
price?
based on the thign needed to be scripted
Yabadabadoo
guys
how to get skill role
cant find on website
can you do deepwoken
like the parry system
sorry nty
i’m joking
💔🥀
dm me if u need anything scripted
Can you script me a game for 50 robux
cant advertise here
can someone ban this guy
Am I wrong
In what aspect is Linux better than Windows
Windows literally tops linux in security..
Linux has distros that have features dedicated per OS
For example
I want a lightweight distro ?
Linux mint / Lubuntu
I want security stuff without installing ton of things ?
I don’t care about performance, I don’t have a bad PC
I care about security.
Arch/i forgot the other one
you're scared of your chrome privacy ?
well
scary
No, I’m concerned of Linux’s security mate
Windows has better security measures than Linux
Sure
NO I TRUST
Does your distro enforce kernel module signatures?
CALMA
does Linux support virtualization based security
Kernel mode code integrity, not sure if thats a thing
I am not?
u dont really have to tho
(except some distros but I think that's not the case)
I never paid for any Microsoft product.
where is your key
I don’t have one, don’t need one
well that either mean stolen either mean hacked, so we re back to source
Nothing wrong with that
It still tops Linux in security
So? People who claim that Linux is more secure argue with me about this daily, yet none of them can prove my point wrong.
will your trust more a private software or an open sourced one ? Imo, I wouldn't trust open cuz anyone can do barely anything
BUT
Private.
ah ye in security I can agree w/ u
Thanks
btw depends you can litterally enclose urself with linux and with windows... idk
not my stuff tbh 🤷♂️
Even with good configuration you’re not going to have it as secure as Windows
I wouldn't bet it
Windows enforces many things and they do it for good reasons
Whereas linux doesn’t enforce anything, afaik
maybe
you can literally disable ASLR with root privileges, says enough
dunno what it is
Address space layout randomization
Uhh, randomizes the memory layout
ok
This is more low level stuff
just something else, what do you think of jojo (that's not a troll its for a friend of mine)
who and what is jojo
anime
I dont watch Anime
guys do weldconstraints break when cloning a model?
ah.
this scripter guy needs a humanoid in the custom rig im importing, do i just add it or does it need to automatically go there by roblox
dm me if u need a scripter
im making a editable mesh ocean and if i create the water on client i run into memeory issues after like 5 tiles but if i run it on server i can do as many as i want but its not replicating to client what do i do??
1/10 chance to get kicked fomr the game i think
optimize
try using parallel lua too
any ideas on how to make jumping smooth so when i hit ground my speed doesnt get reseted it happens bc walkspeed is 0 but i cant make it other way since i am trying to make bhop type sht
it just has a chance to kick a player
not really anything crazy just someones spiteful ig
looks shady asf
Don't know why anyone would format it that way and add magic id's like that
besides someone trying to hide something
1/10 chance to kick everyone in the server
nvm 💔
im so off i didnt read it all
probably, but it's really dumb and shady
don't know anything about the game so I can't really say
Thanks for the help
what is it
do local scripts work with module scripts
Yes
so then why is my code not working
you can't run serverside structures from a local script running module code
if that's what ur trying to do
do structures include rigs?
yea
i'm tryna make a script where
every 5 seconds a rig spawn
and i can kill it with a gun
god damn it
I mean if it works literally all you need to do is put it in a serverscript
ok how do i do this then
what code did you use to try to do it with a module/client side?
so i tried to do where
local module = { righumanoid = game.ReplicatedStorage.Rig.Humanoid}
and then insert it into the local gun script like
modulescript.righumanoid:TakeDamage(30)
i already got rid of the modulescript
i'm tryna find another way
That's why turning on text wrapping is essential
does your gun work?
it works
okay
well just make a script in serverscriptservice
reference the rig
clone it, then make its parent the workspace
so then
how would i make it spawn
if you make the clones parent the workspace it will be placed in the workspace
so itll appear to players
I assume that's what you mean by spawn
so can i instead do
or the wait
while db == true do
yea
you can just say
while true do
db doesn't really do anything unless you actually want it to stop spawning
but it doesn't look like you do
so if you get rid of db, make the if a while loop, it should do what you want
however
this is a script
This will spawn an infinite amount of them
none of them are spawning for some reason
or maybe they do
only 1 did
Well yes, to enable scripts in the Workspace you have to modify a special property
so what am i supposed to do then
just make it loop?
Nevermind actually it won't, thought you had parented it to the rig rather than a spawnpoint
What do you want to do in the first place?
its in the player I think
Do you want for them to simply respawn when they die?
i want to spawn them repeatedly every 5 seconds
and for the player to teleport above them after they spawn?
Alright, well, for a legacy script to execute it needs to be a descendant of ServerScriptService, so first create a script there
waiot
i have the rig parented to the workspace
nvm i'm stupid
it's still in rep storafe
then what
You then need to create an infinite loop that waits 5 seconds at the end of each iteration
how would i reference the spawn script there
This can be done with the while loop and Roblox's task.wait function
Huh?
the spawn script is in rep storage
.. and?
What do you mean by "reference the spawn script"
Do you need something that's a child of the spawn script or to modify it?
how would i refer to it in the script in the serverscriptservice
The same way you're currently doing it
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rig = ReplicatedStorage.Rig
You're trying to refer to the rig right?
yea
Hey guys, i need some help here, is there a way to lock all types of player movement in studio? no jumping no moving so i can control it by script instead?
Okay, so now inside that infinite loop you created, you have to clone the rig and set the Parent property of it to workspace so that it can interact with the world and be visible
what are you trying to do..?
Yes, there's a property for it in StarterPlayer, it was DevMovement something something, set it to Scriptable
simply make autorunning so players cannot impact movement themselves, also no jumps
clone as in copy and paste it into workspace?
consider disabling loading characters and making custom characters using AnimationControllers instead of humanoids, and then script the characters as you wish (control will be disabled by default), but there are some outdated easier methods if you really wanted to
Cloning is done through the Clone method and creates an exact replica of whatever you use it on
do you justw ant me to put this into serverscriptservice?
peak locals
Eh no, that won't work at all
Asking for help in #code-discussion or #code-help is mostly for someone to guide you rather than give you a script and tell you exact instructions, but you don't seem to be a scripter at all or tried to have learnt before building something
Since you're trying to do something simple anyways, I'll just write one for you, but flg hire a scripter if you try to do anything somewhat advanced
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rig = ReplicatedStorage:WaitForChild("Rig")
local spawn_point = workspace.SpawnLocation.CFrame + Vector3.yAxis * 5 -- change "SpawnLocation" yourself to whatever name "spawntuah" has
while true do
local rig_clone = rig:Clone()
rig_clone.Parent = workspace
rig_clone:PivotTo(spawn_point)
task.wait(5)
end
i'm learning how to script
This is not the place to learn how to script
true
Luau is extremely simple and written almost as if it was English, so it shouldn't cost much to learn it
You can kind of check what each keyword of the language means and the feature it has at the https://create.roblox.com/docs/luau "Features" section and "Types" section, although skip "Type coercions", "Userdata" and "Type checking" as those are never needed
Type checking n stuff can be rlly nice to use
And optimize as well
Optimize what?
Well, yes, but types are never needed to build anything in Luau, they're only useful to get better hints from the editor and catch errors before you push a release of the game
It does make autocompletion more accurate
Saves a lot of time
Like for example when working with humanoids
Just tell the code that it’s a humanoid and it autocompletes properties and methods that are only usable on humanoids
well learning how to script of itself isn't that easy a thing to do
bro what
Humanoid.PlatformStanding
Or disabling states
thanks i just set walkspeed to 0 and jump to 0
cana nyone
dreaming of the day when i get a coding buddy where we make stupid shit and eventually hit it big 😢
im a builder lets make stupid systems n shiet
what? lmao
😭
Kinda real
Can we just mass produce retroslop
Nuh uh
for i,v, WorkspaceItems in pairs(workspace:GetChildren()) do
print(v.Name)
end```
I was studying more for I loops for my settings project I was working on and had a question about this code I found on the forms. Is `WorspaceItems` a builtin variable to roblox?
I don’t think so
The code works as expected and returns everything in the workspace I was just curious if it was
Wish roblox had a notifier telling me if a variable is read but never used like VSC that would answer my question
So I tried to print workspace items and it produced nil so it's a variable that has no value so idk anymore
workspaceitems is not a roblox object
ok thanks im being real dumb cuz I cant read it lmao
im gonna work on something else
i wanna make a game kinda like the game Steal a brainrot howw would i do that bc they seem to be making lots pf robux
I have a knock and grip system but it’s not working I need someone to go in my studio and see what’s wrong pls
is it a pvp sort of game
Yes
ok
Do you have to code auto adjusting UI or is that something that can be done without code?
it's hard to tell how much of the screen the UI size takes up since studio covers up more than half of it '
theres a bunch of ui objects available
like UIAspectRatio
and UICorner
and a bunch of others
you shouldnt have to scale ui with code but you can if you want
Guys, there’s this weapons system that I got a while back and it’s practically broken now. So basically it’s these Star Wars blasters but when I’m using them/shooting them it isn’t showing for other players. @ me if you can help
Must be old as hell. Probably designed without filtering enabled
I thought so, I recently just came back to the studio
I wanted to finish a game for my group but then I realized the blasters weren’t working
Is there any work arounds to this?
No. Needs a complete redesign
Dawg
Actually no, it’s designed with filtering enabled
So why does it still do that?
why isnt my admin commands working it prints "argument 1 is missing or nil"
Because you didn't even do what I told you to do?
what was it
Knowing not to script is already one thing that will make you unable to get help around these channels
Not knowing how to read is also another
i started one month ago, made a whole grow a garden game
Remove the part where it says
local player = args:match('player="([...and replace the "player" at line 13 with "args"
i dont know args, sub, or any of that
You unfortunately don't know much
yeah "much"
wdym by ts
This is basically telling me you don't know variables or string manipulation whatsoever
Exactly what it says, clear instructions
i know variables
u want me to replace local player with what
nvm
Nope, to remove the whole line and replace the usage of player at line 13 with "args"
Im confused what number im trying to index, all I was trying to do was change the surfaceGUI text labels, text
local id = script.Parent.SurfaceGui
script.Parent.RemoteEvent.OnServerEvent:Connect(function(player,age,id)
print(player.Name)
id.Name.Text = "Name: ".. player.Name
id.PFP = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=" .. player.Name
end)```
what abt the "or game.players:FindFirstChild(player)
do i replace that with args aswell?
Hold up what 😭 🙏
"Players" is in fact not "player"
This proves yet again you don't know what a variable is
I'd cus id changes
no the findfirstchild(PLAYER) part
im just confused about error because it does show the Name
There's only a singular occasion where "player" is used
^
id changes when the event is called so id is the number
like this?
it still erroes
argument 1 missing or nil
I should've labled it better but it's not id like a UserID, it's ID like the card
Oh it's just that you're trying to set the name of id, which is a number
Ya
errors
Why use the same variable
Did you just revert it to an older version before doing what I said
Are you ragebaiting?
ID is the surfaceGUI that displays the info
yeah i moved it back b4 talking to u
now its normal
I did not tell you to change game.Players:FindFirstChild to game.Players:GetPlayerbyUserId
im not ragebaiting
That very part I told you to change is what makes it search by ID instead of username
ohhhh
my brains fried its 1 am sorry
The next part we're now changing is the one that makes it require the whole player="..." part
Whatever you sent isn't the surfacegui
Yeah, the code for kicking isn't even there, add target:Kick("Reason") at the end of the function
I have 2 scripts 1 is a script to trigger the remote event I have another that is a local script to display the information, however the script is the one producing the error which is the code I provided
The script that triggers the remote event isn't sending a surfacegui, it's sending a number
Possibly the age number
maybe you accidentally swapped them around
they have to be in order
or possibly, you're trying to send the player along which is wrong since that parameter is automatically added
i'm not sure myself honestly lol. I'm trying to learn remote events and trouble shooting is confusing when it produces the results I expected
like this? @urban coyote
@crude quarry This one's the most likely
At the end of the function would be right after line 14, but yes that also works although it will produce an error when the username isn't found
so I removed the paramaters that use number IE userids and account age and now it says
Players.TheEastPineDev.Backpack.Tool.Handle.Script:4: attempt to index nil with 'Text'```
So I think you're right in it trying to trigger a paramater with a number but its using a string instead
how can i add a ban function command aswell
is there like a player:ban thing aswell?
question is where is trying to be trigged lmao
@urban coyote
@urban coyote okay please excuse my stupidity
script.Parent.RemoteEvent.OnServerEvent:Connect(function(player, id)``` It was trying to trigger id in the param
thats what was causing the error
not sure why it works like that but the error is gone now
can u kick in studio? i cant kick myself it js says "server kick message: kicked by an administrator"
If not vehicle one or that who required months to script - sure.
Studio just doesn't show the box, but it will on the normal player
I'm gonna start a simulator game with physics based progression, how much do you guys think would be a fair offer/payment for that
ehh for a scripter like maybe 50?
depends tho how good lol
That's like the broadest thing ever
fr gang
I was thinking of putting percentage + robux on the base of the game so he can add stuff for updates
It's still a draft idea so I'm just gathering info to set the budget for everything
oh then like 5% and maybe around 2-5k robux
Yeah but your game could cost 10-inf$
fr lol
2-5k? I doubt it's that small
unless you're talking about 2-5k per task
It won't be too complicated, Just a simulator system based on physics (hitting certain objects while ragdolled or such gives reward), and possibly an extra rng system for more content
But most likely I'll make different unlockable animations for each time the player hits the walls/targets
Still incredibly broad, look at past posts in #scripter-hiring and look at how much information there is
yeah per task lol
Bro what
Stop undervaluing scripting
25% is the bare minimum a scripter shouod be earning
And if you’re a good scripter you shouod be getting paid way more
I get paid 250k robux for commissions
If you charge 2k robux for a task
Then you suck ngl
Hey, little question here. How can I make things synced across servers? For example: a random lootbox is opened every 5 mins and everyone gets the same things. Thank you in advance.
test out this script it is so beautiful when this script makes landscapes hallways rooms alleyways its just so cool also make sure to add a Part in the game so it works
that why u bad
how do i make so there a leaderstats for cash
im new scripting
make a leaderstats folder inside of the player
when they get added
and then add a number value
named "Cash"
k ty i wil try
so a folder called leaderstats?
yeah
k
local players = game:GetService("Players")
local function playerAdded(player)
local leaderstats = Instance.new("Folder)
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local cashValue = Instance.new("NumberValue")
cashValue.Name = "Cash"
cashValue.Value = 0
cashValue.Parent = leaderstats
end
for _, player in players:GetPlayers() do playerAdded(player) end
players.PlayerAdded:Connect(playerAdded)
that should work
tf
hey would you like to test my script
do you think he wants the entire game scripted for him for 5k
yeah
3% is also way to low
yup lmao
yea, he ain't getting any scripter
that is my script for a part and i wanted to do so if you stand on it you get +1 every second but it kinda doesnt work. Does anyone know a solution?
I think you spelled smth wrong
i mean its working but the wait(1) isnt working because it gets way to many +1
it gets way more then 1 in 1 second
try to use debug
ok
.Touched fires repeatedly
add a debounce to the event
oh ok
also use task.wait() since wait() is deprecated
ok
any errors?
no
i am doing that rn
are u actually creating the leaderstats?
ye why?
no like check if the leaderstats is being created
ye the leaderstats works and everything only the wait() didnt work
but i am doing rn what goddessess sugested
the problem is he only added a wait() to the touched event which doesnt yield the script
what's the error?
also, task.wait() & debounce
u need to add a debounce instead of using wait
send the code i can implement it
copy paste it
debounce is not gonna do it
thats the code rn i tried implementing it
maybe i did smt wrong
Touched is an event listener, it will fire everytime the part is touched, everything is wrong you need to restart
local part = script.Parent
local debounce = false
part.Touched:Connect(function(hit)
if debounce then return end
debounce = true
local char = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
-- ur code here
task.wait(1)
debounce = true
end)
this is not gonna work
i will try ty
n why is that?
bro send the code
in text format
is up there
if you stand still it will fire once
oh ok
local part = script.Parent
part.Touched:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
wait(1)
if player then
local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats then
local cash = leaderstats:FindFirstChild("Cash")
if cash then
cash.Value = cash.Value + 1
end
end
end
end)
@somber wadi You shouldn't use Touched at all, it's not gonna work if you use Touched.
What you can do to get 1 coin every second you are touching the part is a bit more complicated
nope, that's not gonna do it either
i want to add every second a coin but only if player touches the part
spawned function can loop?
local part = script. Parent
part.Touched: Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if debounces[player] and os.clock() - debounces[player] < 1 then return end
debounces[player] = os.clock()
if player then
local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats then
local cash = leaderstats:FindFirstChild("Cash")
if cash then
cash.Value += 1
end
end
end
end
game.Players.PlayerRemoving:Connect(function(player)
debounces[player] = nil
end)```
mb for formatting did it in notepad
lowk overcomplicated
not really lol
i will try
also wont work
Any1 know how to add VFX to a viewport frame?
You create a coroutine, a while loop with a task.wait(1) inside, inside that loop you give the player 1 coin every second, connect a function to runservice.renderstepped or heartbeat, that checks if the player is touching the part or not, you could create a boolean that tells you whether its touching or not, based on that you control the coroutine and yield/resume based on the boolean
ohhh u gotta have a boolean checking if the player is touching and have a while loop
This event only fires as a result of physical movement, so it will not fire if the CFrame property was changed such that the part overlaps another part.
it's not gonna work
yeah ik i didnt know what he meant
renderstepped or heartbeat kind of slow no?
depends on runcontext
script is obv on the server
local part = script.Parent
local db = true
part.Touched:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if not db then return end
db = false
if player then
local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats then
local cash = leaderstats:FindFirstChild("Coins")
if cash then
cash.Value -= 1
end
end
end
end)```
i have coins there, make sure u do cash
renderstepped can't be used in the server as far as ik
k
bro thats not what he wants
nope
i dont understand a word i am to dumb for that
what he wants?
yeah its a little complicated, you should start with something a bit easier - and then later on itll all make sense
what is it, that you want to learn?
use ZonePlus 🗣️
i want to do a simulator as a first game to learn a bit and i want so he has to watch like tv and he sits on a sofa and i want that he gets every sec 1 cash more
sitting
ye
1 sec let me check docs
k
you are using Seats right?
local RunService = game:GetService("RunService")
local touching = {}
local debounces = {}
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
if not character then return end
local player = Players:GetPlayerFromCharacter(character)
if not player then return end
touching[player] = true
debounces[player] = os.clock()
end)
RunService.Heartbeat:Connect(function()
for _, player in Players:GetPlayers() do
if not touching[player] then continue end
if debounces[player] and os.clock() - debounces[player] < 1 then continue end
debounces[player] = os.clock()
local leaderstats = player:FindFirstChild("leaderstats")
if not leaderstats then continue end
local cashVal = leaderstats:FindFirstChild("Cash")
if not cashVal then continue end
cashVal.Value += 1
end
end)
Players.PlayerRemoving:Connect(function(player)
touching[player] = nil
debounces[Players] = nil
end)```
might have errors did it in notepad lol
i will ye but rn i use just a part to get script
k
start with the seat first
ok
you can listen for Occupant property
then you gonna need a table debounce,
local playersSitting = {}
insanely unoptimized 🙏
ik lol
it's just a example lol
its just a example genius
that is wild tho
its the same thing as doing while task.wait() do lol
with the for loop
no tf its not 😭
task.wait() is the same as RunService.Heartbeat:Wait() r u slow
so i have the code for getting 1 cash every second i just dont know how to do so it only works when touching or sitting on a seat
no..
you need to practice man
its pretty much the same
runservice.heartbeat runs every frame
and also runs a for loop every frame
on the server at that too
not at all gng 
fr 😭
@hallow crag task.wait yields the code for a certain time in seconds passed
meanwhile Heartbeat is an event that fires every frame (dont remember the order)
yea
so what do ihave to use everyone saids smt else
I told you its a little complicated
whatever man it was just a example
i would never do that on the server lmao
hes a new scripter i aint gonna give anything overcomplicated
scripting is a little like maths, the only way to get better is to practice
i looked up a website it sais that detects if the player seats
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
-- listen for when the player sits down
character.Humanoid.Seated:Connect(function(active, seatPart)
-- active (bool) : true when a player is sitting
-- seatPart (Instance of Seat or VehicleSeat) : the seat that the player has just sat in or left
print(string.format("Is %s sitting? %s", player.Name, active and "yes" or "no")
print("the seat in question : ", seatPart)
end)
end)
end)
would that work?
ok
but i think that script only asks like if the player is sitting not if he is sitting on a specific seat or?
you're completely correct on that
but you can check the seatPart's attribute or name using an if statement
legalize task.wait hate
seatPart.Name == "your seat name here"
ok
yea but i believe attributes would be better
this will run everytime the character sits/gets up, "active" tells you whether you sit or get up
ok
try implementing it yourself, if you can't then ask more questions here
i got it already tyx
alr alr

task.wait(1)
print('Loading scripts')
task.wait(3)
print('Loading maps')
task.wait(5)
print('Loading skins')
task.wait(3)
print('Completed!')
perfect loader
peak
can you use 1 remotes event for 2 script or local script?
its to communicate between a script and a local script
what are you trying to do?
trying to connect 1 script with 2 local script
are you firing to the client or server?
firing from the server
yeah just create 2 seperate OnClientEvents but just a warning u can only use 2 OnClientEvents so if u wanna use more on one remote event then u gotta create ur own network module
oh ok
does anyone know how can i make a script that detects any executed script? i tried it but it always failed
thats completely false tho
onclientevent can be used any amount of times
not really
its more of a 'style' of developing
oh ok
im pretty sure OnClientEvent connections to the same remote events are limited at 2 but maybe it changed
afaik there were never limits to the same remote event
theres no reason for there to be a limit
im pretty sure if u have more then 2 only 2 of the onclientevents will fire at a time
but aight
just tested it
works perfectly
memory leaks 😍
local court = game.Workspace:WaitForChild("RBF Court")
local tween = game:GetService("TweenService")
local ball = court:WaitForChild("Handle")
local plr = game.Players.LocalPlayer
local animation = game.ReplicatedStorage:FindFirstChild("DribbleArm")
local conn
conn = ball.Touched:Connect(function(hit)
task.wait(0.1)
if hit:IsDescendantOf(plr.Character) then
ball.Anchored = true
ball.CanCollide = false
local humanoid = plr.Character:FindFirstChild("Humanoid")
local track = humanoid:LoadAnimation(animation)
track.Looped = true
local function bounceLoop()
while true do
local o = ball.Position
local upinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local downinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local down = tween:Create(ball,downinfo,{Position = o + Vector3.new(0,-2,0)})
local up = tween:Create(ball,upinfo,{Position = o})
down:Play()
down.Completed:Wait()
up:Play()
up.Completed:Wait()
end
end
coroutine.wrap(bounceLoop)()
track:Play()
conn:Disconnect()
end
end)
This is the code I use to play the animation for the ball bouncing and the player moving their arms - the animations themselves work on their own but the problem is I think the ball's movement interferes with the player and this causes the player to be pushed in unpredictable ways or even be flipped upside down as the image will show. Image showing My character seems to flipped upside down
I even set cancollide as false so perhaps it wouldn't collide with the player's body - but the problem still prevailed. What is the cause of this issue - all help appreciated.
no lol character connections get automatically disconnected when the character is destroyed/removed
mb
they fixed it a long time ago lol
oh lol
i remember when i had to add a line of code to prevent .CharacterAdded memory leaks
@rapid verge @hallow crag I fixed it
triple event nesting is horrendous though
yeah well you're nesting's biggest opp tho
@rapid verge can you help when ur done
you probably don't even want to touch python at all
why would u add non character connections inside of CharacterAdded events anyway 😭
especially on the server
show video
ehh i dont remember what my approach was
I don't have a video
coroutine.wrap in 2025 💔
or what part was causing the memory leak/event overlap in general but this is what i remember
just use task.spawn
uh oh
theres something called collision groups
check if the player didn't already touch the ball
the player might've touched it multiple times causing it to create more than 1 animation
hi
I made it disconnect after te player toucehed it
oh ok
oh what about them
sorry
couldn't you use a if statement
Wait what
so u want it to collide but not with the player?
Yes because the ball will drop before the game starts but obviously I don;t want it to infterefere with the players' movement
collision groups
kk
If it’s not collidable and it’s like a normal tool, I would probably just make it massless, because I think anything connected to a player’s character will affect their movement. I still think it would effect it even if the ball was massless but considerably less
Ok
also I didn't make it a tool @drifting whale I just made it a part that welds to the player's hands - does that change anything
yes
A lot, the center of mass of the player’s character would be modified because you are welding a object to it
Also I think if it is a tool then it would not affect the movement of the character.
-# I think
Oh
but the problem is
If it's a tool you can like disable the tool and that might cause errors in a basketball game
Disable?
Why would you disable it but either way just try making it massless for now
Ok lemme make the part massless
@drifting whale It didnt fix anything
Alright then how do you get and weld the object
local conn
conn = tool.Touched:Connect(function(hit)
print("Picked up by",tool.Parent)
local weld = Instance.new("Motor6D")
local toucher = game.Players:GetPlayerFromCharacter(hit.Parent)
if toucher then
weld.Name = "Joint"
weld.Part0 = hit.Parent.RightHand
weld.Part1 = tool
weld.Parent = hit.Parent.RightHand
tool.Parent = hit.Parent
end
@drifting whale
And did you say it would make the character movement feel weird and it would also make the character somtimes when picking it up flip?
yeah
Flex code instead…
So for the character flipping part, just move the god damn ball to the correct place first and then weld
wait what
@drifting whale this is what I mean bruh I'm under the baseplate / court
Yeah it’s moving the character to the ball
ball.Position = hit.Parent.righthand.Position?
local conn
conn = tool.Touched:Connect(function(hit)
print("Picked up by",tool.Parent)
local weld = Instance.new("Motor6D")
local toucher = game.Players:GetPlayerFromCharacter(hit.Parent)
if toucher then
tool.Position = hit.Parent.RightHand.Position
weld.Name = "Joint"
weld.Part0 = hit.Parent.RightHand
weld.Part1 = tool
weld.Parent = hit.Parent.RightHand
tool.Parent = hit.Parent
if toucher.Team.Name == "Team Blue" then
apron.Color = Color3.fromRGB(0,0,197)
lanepart1.Color = Color3.fromRGB(0,0,197)
lanepart2.Color = Color3.fromRGB(0,0,197)
lanepart3.Color = Color3.fromRGB(0,0,197)
lanepart4.Color = Color3.fromRGB(0,0,197)
lanepart5.Color = Color3.fromRGB(0,0,197)
lanepart6.Color = Color3.fromRGB(0,0,197)
like so?
I would say so
k
@drifting whale some sort of improvement
But now I can;t move at all - because I animated the player's arm to rotate back and forth to recreate the bouncing of the ball it just rotates and the bal disappears again
I feel like it’s not unanchored
Nice
BUT @drifting whale
wut
Now when I walk with the ball, the ball ets further and further away from me, I don't know if that's because it stays at te postiin it was set to
local conn
conn = ball.Touched:Connect(function(hit)
task.wait(0.1)
if hit:IsDescendantOf(plr.Character) then
ball.CanCollide = false
local humanoid = plr.Character:FindFirstChild("Humanoid")
local track = humanoid:LoadAnimation(animation)
track.Looped = true
local function bounceLoop()
while true do
local o = ball.Position
local upinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local downinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local down = tween:Create(ball,downinfo,{Position = ball.Position + Vector3.new(0,-0.75,0)})
local up = tween:Create(ball,upinfo,{Position = ball.Position + Vector3.new(0,0.75,0)})
down:Play()
down.Completed:Wait()
up:Play()
up.Completed:Wait()
end
end
task.spawn(function()
bounceLoop()
end)
track:Play()
conn:Disconnect()
end
end)
The new code
Wait
BRO
Why are you setting the position in a lop
Loop, put it outside the loop
You are setting the position of the ball in the loop
Which is wrong, it should be outside the loop before the setting of the welding
Wait
Wait I am confused what you using local o for
And how is it moving away from you if that’s all the code
I meant to remove that
I though u just update the ball's positonsince the animation for the ball bouncing is a constant loop so it should follow the player as they move
@drifting whale
I would just use a spring
And then just force the players to be shiftlocked when holding the ball to minimize the interference from the ball when moving
nah, I am just a hallucinating dumbass
@drifting whale
does 0.13 mean 0.13 seconds
Yes
What does it mean then
is there someone who wants to help coding disasters in my game
im more of a builder/modeler
move track:Play outside task.spawn so it runs immediately then stop it with track:Stop after timer ends set bouncerunning = false right after too
I can put a disaster code in Ur game
Stop doing local conn = event
Instead just use a janitor module, like trove
What things that stores information I can get access like Google sheets and?
I want to make an store in document, with some information and access it in place.
Like the nicknames or numbers.
Guys when would you say you have a good enough level of scripting to actually create your own game
Now obv you won’t know everything but what point did you guys think you had a good level to actually do things
always
if you keep waitng till a certainl evel to make a game you ll never be good
you make a game with any knowldge you have
Its Good Guys ?
Peak
I love it
Anyone know how to make a whip system? Is it animations or how would I make it?
for what...
Uh... thats a secret
Do you have any idea on how to go forth with it?
animations prob
also idk much abt animation but I think u can rig the whip
so it's not just a stick
thanks
does any of yall have any like fun projects u did when u were a begginer to learn because my stoopid brain working when i finished thedevkings tutorials
who needs a system scripted
fellas what free tutorial do i use? brawldev?
DUDE WHAT

thedevking, brawldev, gnomecode, byteblox
ty
who wants a sword fighting system for only 2,000 robux
MonzterDev >
itsz_floppyfish
Ngl send me a preview
Byteblox carried us
Introducing newbies new features roblox added
Good
No its bad
?
what you posted is bad
what could be better
whats the objective of what you sent?
Looks like you're using .Touched
Okay so whats your hit detection look like
yea
that's kinda makeshift touched though
guys how much would a system that saves all the things the player has (cash, cars, guns, etc) cost? (the cash system is already made)
but itll have better detection while inside a part
thats pretty hard on processing power though
500 robux at best
so should i remove the ystem
Maybe 200
its got advantages over touched, but Im not sure the performance cost would be worth it
Can't he just optimise it
so how much would the system cost at best
what about a shop system
compared to other systems not really
a more advanced one
Idk? You didn't say anything much
let me look this up to make sure IM right about the performance thing
well
ok
yeah, I'm right
Ur system is good for my pov
thanks
you could use it but if you have a lot of weapons using that system it might have performance issues
its complicated
i only have one weapon
For me personally I'd take 1k
and different baldes
It's mainly just
yeah but every instance of that weapon will use region 3 wont it?
How the gui looks
or
That's it
no only the blade
yeah, I mean every person with a blade will be using it
thats a good price, just for your knowledge, im not making a simulator game
you can probably get away with it if thats all you have using something like that
but its not ideal
yes
from a performance perspective
Do u want shop system for dealership or robux shop
a template with the name, thumbnail and tag that would display the info on another gui
so would this be worth selling for maybe 500 - 600 robux
Hard to understand without reference tbh
But u need an estimate price so idk
I'm not sure what else your system does, it really depends on the buyer
As i said, it's primarily interface designer requirement, the scripter only makes it functional what isn't hsrd
so it basically does not kill your teammates which is made through attributes and attacks certain objects
Look bro, i didn't see cool effects in ur system, i only saw how sword slays, so as a buyer I'd say it's worth 1k at best, and can be a template sword
Actually 3k bcs I'm not poverty buyer
Ur system is a nice template for starting group or for simplicity
ok
thanks
so should i just add more vfx
Not just VFX
What about camera fov changing
Or damage counter
Ect
ah i see
And kill cam
thanks
Like something what lays in front of eyes
Will sell for super high price
And what is super easily configurable
aight
TextLabel (Name), ImageLabel (Car Image), IntValue ( so it can connect with the car spec gui <my weird idea> ) the template would duplicate with every car inside the Module script.
the car model would spawn on the showroom and the camera would rotate around it
I'm not forcing u
2k if made by good scripter then
Fair price without self valuing
I heard 15K from someone
Nothing hard
Some might take more, some less
I'd take 2k to make that system
The camera spin reminds me of NFSMW
I have a made system for it
oo
But it's literally for myself
there is a career mode with a hella cool gameplay thing, its cargo boxes which you need to deliver stuff with to random places
Add background music to it and ability to open hood and look at engine
Ye I've played it
rev and test drive
Shit is buggy asf when it comes to buying modded car
I dont play with mods Career mode
It's fun
I dont play career mode with mods*
"fatal lua error game paused"
lol
time trials tho
Is 200 robux too much to pay for a script that, after a selected number of seconds, teleports the player to another one of my experiences. Once the player arrives there, if they were teleported from that specific experience, they receive a badge of my choice?
And selling dash cam footage is a bless
200 robux could be exact price for it tbh
its completely fair
Not hard to script
like the perfect price imho
Ye
I didn't like them
I recommend you playing need for speed most wanted 2007
me neither
my game isnt a car game though
Sad
check my profile for dc server link
there is a link to the game somewhere
its called Career (not inpired by Beamng)
I'm in hospital
oh shi
why