#code-discussion
1 messages · Page 16 of 1
local TextChatService = game:GetService("TextChatService")
local HttpService = game:GetService("HttpService")
local BugCommunityCommands = TextChatService.BugCommunityCommands
function do_ssu(playerSource)
if not playerSource then return -1 end
print("Starting SSU from the user "..playerSource)
task.spawn(function()
local webhookData = HttpService:JSONEncode({
["username"] = "BUG COMMUNITY EVENTS SYSTEMS",
["embeds"] = {
{
["title"] = "__**SCPF > Bug Community**__",
["description"] = "@everyone\nAn SSU is being hosted, [join ARC-912 now!](https://www.roblox.com/games/114506073413318/ARC-912)",
["type"] = "rich",
["color"] = "#f00a5e",
["fields"] = {
{
["name"] = "Hosted by:",
["value"] = playerSource,
["inline"] = true
},
},
["footer"] = {
["text"] = "ARC-912 Bug Community Systems, For Personnel Use Only"
}
}
}
})
local success,result = pcall(function()
HttpService:PostAsync("WEBHOOK",webhookData)
end)
if not success then
warn("An erorr occured while sending the SSU message, expected result 200, instead got "..result)
return -1
end
end)
return 1
end
BugCommunityCommands.SSU.Triggered:Connect(function(TextSource)
do_ssu(tostring(TextSource))
end)
Working on SSU command
can you help fix my marriage?
and my alcoholism
probably but i'd recommend cleaning up your code a bit for readability
I already fixed it
was something unrelated
kk but still
wdym?
wait did you alr clean the code
guys dont do workspace do game[“workspace\0 space is not working but you can use this roblox service”]
yeah it's cleaned up and all fixed
Its .0000001ms more optimized
I dont need help anymore
kk
how to make it so i spawn on a bed laying
hey can someone help edit my script?
Does anyone have an idea of how I could make a system which has hitmarkers like fortnite on meshes or models? Using surface guis to display the markers.
?????
local bestvariable = "i suck at coding"
print(bestvariable)
i suck at coding
i just watched the whole beginner series scripting of thedevking
i can actualy read code now
basic codes
cool
now watch gnomecode
whos that
devking is best :>
suphi is also a rlly good one
this is a newer youtuber with some newer tutorials that is pretty good too https://www.youtube.com/@iamLudius/videos
fr
lol fr though gnomecode alvinblox and devking saved me
he's good but pretty outdated
Ludius got some more updated stuff
brawldev is probably better since he's newer
and he also has a dedicated playlist for beginners
like the devking
okay so
or just deep search through the docs
🤷♂️ works too
yeah but its hard for people who don't understand the docs because they arent competent enough with scripting
ig they could start with tutorials first then
why the game tryna communicate with me
PID controllers can replicate damped harmonic motion, but damped harmonic motion can't replicate all the movement that PID controllers can do? Am I correct?
@plucky plank dm
does someone have here the scripter role?
Looking to hire a Full Time scripter for an upcoming anime project. Our team has had 3 successful games
CCUs peaked at:
CA - 20k players
UBG - 5k players
Sword Fantasy - 3.5k
20-30% can be given to the programmer. All other funds covered by us.
local function randomUnitVector()
local sqrt = math.sqrt(-2 * math.log(math.random()))
local angle = 2 * math.pi * math.random()
return Vector3.new(
sqrt * math.cos(angle),
sqrt * math.sin(angle),
math.sqrt(-2 * math.log(math.random())) * math.cos(2 * math.pi * math.random())
).Unit
end
function MiningClient:SpawnHitMarker(Ore)
if Ore.PrimaryPart then
local OreSize = Ore:GetExtentsSize()
local RandomVector = randomUnitVector()
local worldSpaceRelativeCFrame = Ore.PrimaryPart.CFrame:ToWorldSpace(CFrame.new(Vector3.new(RandomVector.X * OreSize.X, math.random(0.2, OreSize.Y), (RandomVector.Z * OreSize.Z))))
local raycastParams = RaycastParams.new()
raycastParams.FilterType = Enum.RaycastFilterType.Include
raycastParams.FilterDescendantsInstances = {Ore}
local raycastResult = workspace:Raycast(worldSpaceRelativeCFrame.Position, Ore.PrimaryPart.CFrame.Position * 1000, raycastParams)
print(raycastResult)
local part = Instance.new("Part")
if raycastResult then
if raycastResult.Position then
part.CFrame = CFrame.new(raycastResult.Position)
part.Size = Vector3.new(0.5, 0.5, 0.5)
part.Anchored = true
part.CanCollide = false
part.Parent = workspace
else
warn("Raycast Failed!")
end
else
warn("Raycast Failed!")
end
else
warn("No primary part set or loaded!")
end
end```
Does anyone know why my raycast result returns nil?
how to convert terrien to meshpart
anyone knows how i can get the font and size of default roblox display name thingy?
Bindable Event?
What is that
hello
I am making a hitmarker system like fortnite for mining in my game, and I display the targets but when the mesh fidelity is set to automatic the raycasts hit on weird spots and the targets get displayed on weird spots but when I set it to precise geometry then they almsot always are nearly perfectly positioned, but then my question is what if I have a lot of these ores, how badly does it impact performance
or is there a way around this
or what should I do in yalls opinion
it'll impact performance depending on how many ores u have prob
u could make it so precise geometry is only applied to nearby ores
ok
what is the best way to make ImageButton.MouseButton1Click only fire when the player holds their mouse down for less than x seconds?
Don't use Mousebutton1click
Use mousebutton1 down
Assign a varriable to the current tick
And use on mousebutton1 up
maybe like imageButton.MouseButton:MouseClick: connect(function ()
smd inside that do task.wait(x)
if mouse.pressed then
fire or whatever
Mhmm, actually there's quite a few ways, what do you want to do?
rx works so well in these cases
but its overkill
local Down
for _, Slot in Items:GetChildren() do
if not Slot:IsA("ImageButton") then continue end
Slot.MouseButton1Down:Connect(function()
local Tick = tick()
Down = Tick
end)
Slot.MouseButton1Up:Connect(function()
if tick() - Down <= 0.1 then print("Click") end
end)
end
i dont know why but this just feels wrong @dusky relic
Mhmm, do a while loop
let me write it for you real quick
this is actually wrong it wouldnt work my bad
Slot.MouseButton1Down:Connect(function()
local Tick = tick()
Down = Tick
task.spawn(function()
while tick() - down <= 0.1 and UIS:IsMousebuttonpressed(enum.userinputype.mousebutton1) do
task.wait()
end
if tick - down >= 0.1 then
--run the code for the click~~
end
end)
end)
local MouseSlot
local Down
for _, Slot in Items:GetChildren() do
if not Slot:IsA("ImageButton") then continue end
Slot.MouseButton1Down:Connect(function()
print("MouseDown")
Down = tick()
MouseSlot = Slot
end)
Slot.MouseButton1Up:Connect(function()
if Slot == MouseSlot and tick() - Down <= 0.1 then print("Click") end
end)
end
i meant something like this
hi
@young rock That should do the thingy
hb this one? @dusky relic
the issue is, the click would only register when you let go, so you can hold it for like 5 seconds and the click would only register when you let go
thats what im trying to do
except
i want it to only work if i hold less than x seconds before i let go
so like
i dont want the click function to run if i just hold down the button for like 3 seconds and then let it go
thats not a click
(for what im trying to do)
im actually most of scripting now from this server some and mostly the forum forum is a w
anyone want to team up and make a game together?
Anybody know how to learn more advanced coding? personally I would need help with modulescripts, I have read the documentation Im just confused
think of modulescripts as a script where you can reuse code from it in other scripts
I can help!
hi
yo
Sup
sure then, info dump me
So modulescripts can contain variables, Numbers, Values etc. Like i can use player ids and require it in another script checking if the player ids match the id we want.
So picture a script that contains info
And we use the script in another script
can u help me script a hover gui?
Imposter..
i think time for you to rebrand
hey guys
how to like when u touch a part , it gives u hd admin
Bro watched that video of climbing to get admin
REAL
would there be a problem if i use while loops (runs for like 2-3 seconds) or task.wait()s inside connections?
yea big problem
then task.spawn?
same
what do i do then
u wanna put a while loop but without it breaking the code from the rest?
x.MouseButton1Click:Connect(function()
local Tick = tick()
while tick() - Tick <= 5 do
print("Hello")
end
end)
so lets say this is the code
would that be a problem
yea it will crash
where does it return nil
put wait() after print
yeah right but besides that?
fixed issues way long ago maybe you could help me out on my mining system?
what about it do you need help with
how should I make the system, using touched, hitboxes or raycasting and how would I do it
like which is move convinient for players
raycasting
why exactly and from the players mouse or where
Does anyone know how to create a character selection in Roblos Studio?
ores in a simulator
no everything gud
ores in a simulator
oh alr thanks i had to make sure
ores in a simulator
raycasting, fast and accurate
from the mouse?
but what about hitboxes why do combat games use those
how can I prevent exploiting
sanity checks and only allowing for 1 ore to be mined
add a mining timer on the server that is a few hundred MS earlier than the client and do not let the player mine another ore until the timer is up
hitboxes can be done in a number of ways but they also use raycasting, just a different type which is called shapecasting (casts shape)
well i personally like a mix of both
well the pickaxes will have a cooldown but what do I send to the server the ore they mine or the raycast
shapecasting for abilities and raycasting for melee combat
how do people use raycasting for combat
you should send the server the ore and then verify the ore on the server
raycast from hands/raycast from multiple points on a tool
and for my case?
do I jsut raycast from the mouse?
or the pickaxe
and what about the getpartsinpart stuff where is that used
the mouse
for hitboxes
you dont use that because it sucks
you use GetPartBoundsInBox
why does it I saw people use it in combat systems
is it expensive?
because they are new to roblox
and touched
even worse
in which cases is it used and in which not
touched is used for systems that you dont care about accuracy on
teleporters for example
for example for upgraders in a tycoon I use touched right
cuz 1 object is stationairy
mhm
but does accuracy matter on ores
for the mining
ig ill just use mouse raycasting
laggier
do not use touched for a large amount of items
bro just think of it like this
for 50 ores
50 event listeners
or 1 function call
but for example in my tycoon I spawn ores to visualize stuff on the client not minable but on conveyors and there is multiple upgraders and hunderds of ores sometimes do I still used touched?
Yo guys, can someone explain to me returning, i cant understand that
you have a function, you give function arguements, it returns a value out of your given arguements
local function Sum(a,b)
return a + b
end
print(Sum(2, 2)) --> prints 4
Thx for ur help
np
Hiya, does anyone here use VSCode for Roblox? I'm having trouble getting syntax highlighting to work
What plugin do you use?
luau lsp
guys it doesnt work i want it so when theres someone that clicks on the text button they buy a gamepass and i have a rainbow carpet in replicated storage with a remotevent and when someone buys it the rainbow carpet goes to starter pack but ONLY for that player that bought it
its late and im tired
PromptGamepassPurchaseFinished is supposed to be called on the server
Thats first fof
Off
Then you can remove the givePass event
Remove the givecarpet entirely
Just add it when the player joins if they have the gamepass
damn bro im a dumbass
Yea I know
@sacred wagon question, is using simplezone for a bunch of touchpads better/worse than touched?
kinda dumb question but still wanted to ask
How much will it cost to create an outfit game
What is an outfit game
like people join, there’s pre made outfits they might like and if they buy you get a commission
like all those “halloween outfits”
games
Tho is what I’m working on rn :’)
just make one yourself @spark bluff
oh fr? how’s it going
its pretty simple
It ain't performing how it should then rip
really? wtf
i’m really not that experienced and don’t have time, was thinking of paying some people doing it and then running ads
Quite well! Js need to make a map and refine code! :D
oh nice, are you going to run ads
try this @wide quail https://marketplace.visualstudio.com/items?itemName=UnderMyWheel.roblox-lua
Most likely
im so confused what is their to refine
is it not just a button system binded to collectionservice
Oh shoot I should come up with a name for it lol
or am i tripping
I need to change ways accessories work and whatnot
how much you planning to put into it
As well as change how bundles work
:addaccessory
🤷♂️
gl
Not sure tbh, I have never rly done them b4
lol, not quite what i need
idk works pretty well
and bundles are just replacing mesh ids
I js need to change what accessories are being worn and whatnot so it unequips and changes, but should be simple so I’m saving it for later
Good shout
i c
lmao
I'm about to start learning lua, any tips before I start learning?
dont watch thedevking
Is gnomecode helpful then?
and read documentation and search youtube before asking unless it is very specific, you can still try devforum too tho
yeah he is better
Alright! 
i recommend brawldev for beginner
might be outdated for some stuff i think
Alright, thanks guys!
Guys which one looks better?(1 or 2)
can anyone help with my tools disappearing once i equip them for like 5 seconds ingame & in roblox studio
2 is 100% better
2
oh i thought people would prefer 1 lol
AHHHHH
1 g
backpack bro
not starterpack
ill go with this one then, any recommendations?
and should i make the mouses icon change like this or nah
like when the mouse hovers over a slot
how do i get parts result.instance parent which is a model
if result and result.Instance and CS:HasTag(result.Instance, "Ore") then
local block = result.Instance:FindFirstChildOfClass("Model") and result.Instance
Hello, I made this little traffic light system I would appreciate any feedbacks. This is one of my first systems that I made completly on my own (I am an intermediate scripter)
It's made for a one-lane tunnel allowing trucks to pass one at a time. If a truck enters from the red light side an alarm will be triggered. The lights automatically switch every 20 seconds but if a truck is inside the system prevents switching until the truck exits. If a truck stays inside for over 2 minutes (e.g., player logs off), the system forces a switch to avoid blocking traffic. And main functionality is that if truck enters for the green light side, it will wait until he comes back out, and switch.
what do you even mean by that
imagine i have a part
and i click on the part
Real quote there in the bio
and the part is inside a model
how would i get the models name
with using that part
This is ur sign to get an ultrawide monitor
Part.ClickDetector.MouseButton1Click:Connect(Function()
print(Part.Parent.Name)
end)
@random comet
maybe?
2 monitors better
2 monitors?
I have a 2nd one
just using my macbook as the 2nd one rn
my other monitor is off
with ultrawide + second monitor you can do 3 things at the same time
not rlly
this ultrawide was like $300
but you can buy 2 monitors instead of an ultrawide
so its a 60hz one
nah bro stole that
pretty good actually
Does anyone know if its possible to teleport a player to a seperate placebut control the amount of players that teleport to that place aka.. 1 player server for the same place but a 2 player server for the same place etc
anyone willing to help me with a racing game?
also this doesnt work
its based on raycast
i click the part the raycast detects
so i cant do result.Instance.parent
your script or the clickdetector
my script
you should be able to
by the way you do .Parent not .parent right?
yea ik
and make sure that .Instance isnt nil
alr you can join general 10
aint no way bro
yeah its erroring there
if head dosn't exist it errors
so use ffc
thought it did the same thing 😭
Hello, I'm a Roblox Dev scripter and I am willing to help you on your game. On The Weekends and on the Week Just Dm me
anyboyd got an idea for something i should program?
i usually work with python in databases and just got into pygame and lua seems interesting so i wanna test myself but don tknow what to code fr
Can anyone help me figuring out sending data to google sheets?
is this a joke?
like, the script isn't seriouys, right?
like, you made this shit ]just for fun
i mean i created to test my skill level and knowledge

go back to meep city
i dont play meep city bro
I play super hero tycoo-
do any of u guys know what A-chassis tune is
like the stuff for vehicles on roblox
you can try googling it
but i already know what it is, im just wondering if u guys know
so concerning
well i dont
ok
hmmm
pettier than stackoverflow
i don't understant what it is yet
GET OU-
how do i learn coding as quick and efficent as possible?
just farted.
just farted.
With money
pay for classes and teachers and your golden
but it gets up there quick
whats wrong with this script the reutn settings in underlined red ["SCPS"] = { -- Set this to the Roblox team name
groupID = 35675821; -- Change this to the actual group ID
["Squad Member"] = { -- Set to the group role name
"DC-15A"; -- Set to the name of a tool you placed in ReplicatedStorage --> ToolGiverRP --> Tools
"DC-15S";
"DC-17 [Healing]";
"Thermal";
};
["Squad Sergeant"] = { -- Set to the group role name
"DC-15A";
"DC-15X";
"DC-17 [Healing]";
"Thermal";
};
["Squad Executive"] = { -- New rank added
"DC-15A";
"DC-15S";
"DC-17 [Healing]";
"Thermal";
};
["VIP"] = { -- New rank added
"DC-15A";
"DC-15X";
"DC-17 [Healing]";
"Thermal";
"Cuffs";
};
};
return Settings
can someone who knows how to code dm me
u have to caculate the radius of the sun times 2 and divide that by 5 to function in with 0.5 vector points
rs whats wrong with it
If u use 1 zone for every touchpad its maaayybe better
its there other ways to apply velocity other than using bodyvelocity cuz thats depricated
Any of the new mover constraints
Look on the documentation

k thanks
what should i try to make
is this optimized enough?
print(game["Run Service\0🔥"]["Parent\0🎃"]["Run Service\0🚀"]["Parent\0👻"]["Run Service\0🐱"]["Parent\0💀"]
["Run Service\0🌊"]["Parent\0🍕"]["Run Service\0🦆"]["Parent\0🎩"]["Run Service\0🌟"]["Parent\0🥶"]
["Run Service\0💎"]["Parent\0🚗"]["Run Service\0🐍"]["Parent\0📀"]["Run Service\0🍀"]["Parent\0🦖"]
["Run Service\0🔮"]["Parent\0🎈"]["Run Service\0⚡"]["Parent\0🎵"]["Run Service\0💥"]["Parent\0🎯"]
["Run Service\0🎨"]["Parent\0🚦"]["Run Service\0🐉"]["Parent\0🧩"]["Run Service\0🦊"]["Parent\0🔑"]
["Run Service\0🌙"]["Parent\0🥁"]["Run Service\0🍄"]["Parent\0🎲"]["Run Service\0📡"]
.Heartbeat:Wait())
A gun
Yes
I suck at scripting 💀
alright i made it better
-- optimized runservice heartbeat saves on average 0.00000000001 MS!!!!
return function()
game["Run Service\0🔥"]["Parent\0🚀"]["Lighting\0🎃"]["Parent\0🌊"]
["Run Service\0👻"]["Parent\0💀"]["Players\0💎"]["Parent\0🎩"]
["Run Service\0🍕"]["Parent\0🐱"]["ReplicatedStorage\0🦆"]["Parent\0📀"]
["Run Service\0🥶"]["Parent\0🐍"]["TweenService\0🔮"]["Parent\0⚡"]
["Run Service\0🚗"]["Parent\0💥"]["Workspace\0🎯"]["Parent\0🐉"]
["Run Service\0🍀"]["Parent\0🚦"]["PathfindingService\0🦊"]["Parent\0🔑"]
["Run Service\0🎵"]["Parent\0🥁"]["SoundService\0🍄"]["Parent\0📡"]
["Run Service\0🎨"]["Parent\0🛸"]["Teleport Service\0🌍"]["Parent\0🍩"]
["Run Service\0🧩"]["Parent\0💎"]["MarketplaceService\0🐍"]["Parent\0🍪"]
["Run Service\0🌙"]["Parent\0🦆"]["Chat\0🔥"]["Parent\0🍩"]
["Run Service\0🎲"]["Parent\0🦊"]["HttpService\0💡"]["Parent\0⚡"]
["Run Service\0💡"]["Parent\0🐉"]["Debris\0🚀"]["Parent\0🍕"]
["Run Service\0📡"]["Parent\0🎵"]["CollectionService\0🌍"]["Parent\0🎯"]
["Run Service\0🍄"]["Parent\0🐍"]["InsertService\0🥁"]["Parent\0🚦"]
["Run Service\0🔮"]["Parent\0📀"]["LocalizationService\0🦊"]["Parent\0💎"]
["Run Service\0🐱"]["Parent\0🌊"]["VRService\0💀"]["Parent\0🍩"]
["Run Service\0🦆"]["Parent\0🍀"]["DataStoreService\0🔥"]["Parent\0💡"]
["Run Service\0🚀"]["Parent\0⚡"]["NotificationService\0🔑"]["Parent\0🍪"]
["Run Service\0🎨"]["Parent\0🎩"]["PolicyService\0🚦"]["Parent\0🎯"]
["Run Service\0💎"]["Parent\0🥁"]["UserInputService\0🍕"]["Parent\0🍄"]
["Run Service\0👻"]["Parent\0📡"]["StarterGui\0🌍"]["Parent\0🐉"]
["Run Service\0🔮"]["Parent\0💀"]["StarterPack\0🎵"]["Parent\0💎"]
["Run Service\0🍩"]["Parent\0🐍"]["StarterPlayer\0🔥"]["Parent\0🍪"]
["Run Service\0🚦"]["Parent\0📀"]["VRService\0🥶"]["Parent\0🎨"]
["Run Service\0🎲"].Heartbeat:Wait()
end
….
Anyone able to help me understand this issue.
I've got a remote function and I'm giving it a return value (when I print it, it's what I want) but when I look @ the return value on the client it's not what I want. Like it's not the same as what is being returned inside that remote function.
Is this a local or module script?
server or local is possible
Not module?
good idea
Gotta keep the code organised
How much for someone to script me a ptz camera? I need it to pan, tilt and zoom. maybe with Motor6D or remote events or something yk to show the camera moving while it’s being controlled. also a script that detects when the user is sitting so they can view and control it?
What is ptz
and make it the most not flexible thing ever to save .00001ms more because you get fired for not following those practices and forced to work until 3am every weekday to get your project finished or you are also fired
to hard
how do i make a hold e to spawn car system
-
do it all on the server and when the prompt is Triggered, grab the player, from their grab the character, then the character's humanoidrootpart
-
clone the car model from ReplicatedStorage
-
position it to the player's humanoidrootpart + 5 studs in front and 5 studs up
-
parent it
-
thats it
how did I never realize how similar Lua is to Python~
You could prob find someone in #scripter-hiring who is capable
or post in #scripter-hirable
maybe
i think i said those backwards xD
oh well u get the idea 🤣 
i thought i was tripping😭
sorry, im sick so severe brain fog 🤣 🤣
should i pickup scripting?
indentation 
we need curly brackets on lua
cursed
yeah just pop up youtube and follow tutorials. It's best to do simple concepts til things start clicking. Luau can get pretty complex (especially when getting into bit shifting and actors) but you won't need to touch that for most things.
The important thing to remember is if you're struggling, you're doing it right. You won't learn without effort. Practice is what makes things become easy.
nooo curly braces are great
thank god lua has the end keyword at least
the indention is fine with lua if you limit your nesting.
typically when I see curly brackets I have a tendency to associate it with lower level languages (exception with Java), so i like lua being a bit out of the box
if not condition then return end
my beloved
hey i need some help with an inventory system
anyone know what the best regions to sponsor are
whatever regions ur game is localized for
Have you heard of LUARocks?
pls explain
i love learning about new things
Neat
what is this..?
why do the models that i clone onto my avatar lag behind my when i turn my camera in shift lock

i did it and my PC is now levitating
why do the models that i clone onto my avatar lag behind my when i turn my camera in shift lock
"Parent 🦊 "
yeah that's the nice part with lua, the fact you can read it. In a way, it sort of feels like the beginner friendly version of cobol.
Can someone help me? I have a move where I use a tool and 3 spikes come out the ground in front of me, how do I make it so each spike creates a rubble effect around it?
guys im working on a down bad HORRIBLE brainrotted addicting obby game with rainbows and sunshines for some money with my friend whos trash as hell in roblox studio like my man asked me for help to write a script to make a part transparent lke bro you dont need a script for that and were making this game for some money lol
fr
What should I be looking into to determine if a player is inside a part?
get parts in part
I'll look into it, thanks
was those voice suposed to be and what that was ?
I was watching a video about bojack horseman forgot to mute the video when recording
Need a price opinion
$24 schmeckles
anyone want help with their game i am an intermmidiate level scripter i really want to help someone out and practise
How much would you pay for about 50 different trolls
meeee for sure please
that sounds great i know just enough scripting to get me by with trial and error needed someone for that 🙏
like to buy the gui? or a gamepass
and if gamepass what type of game do you have it in
hello guys i wanna get into scripting for roblox i have studied python so i can understand like scripting works and wats the logic behind it but i wanna learn how to code stuff in roblox studio can anyone recommend me any tutorial for this?
Roblox scripting tutorial could work
can anyone help me scripting huhu im broke
does any body now how to make HumanoidRootPart always rotate as camera at first person? (even while swimming)
Then learn and script yourself huhu
Silly question
Is it possible to script a npc in a way he remembers the player from last gameplay and his responses change on that
why not
YAYY
A variable goes to a function and has an argument
Yeah
U would have to use data stores for this
Or a system that identifies a played from an outside source like a player badge
ohhh okay thank you
Hi hi
Make a folder inside of a player add datastores to it whenever he talks to a NPC add a value that he has and before he talks to it check if he has talked to the npc by checking if that specific values is in the folder
I think it would be better to Bool Value it but if you want to do it for many NPC's i dont reccoment Bool value
How much for someone to like script me a working ptz camera? I need it to pan, tilt and zoom.i also need something yk to show the camera moving while it’s being controlled. also a script that detects when the user is sitting so they can view and control it?
it’s for only one npc, thank you for the advice
@candid kestrel cape looks sick
Learn it and decide
They can be useful
But they aren’t a need there is always a work around
I think ur audio system has a bug lol
The print statement i used to test works but the animation doesnt play does anyone know why? The animation ID is correct
then use bools because they are just easier to datastore i also saw someone having a single stringvalue and then trying to find the npcs name in the string (the value) but idk about that
I'm getting an error: "Argument 1 missing or nil" when clearly the argument is there?? Anyone know what this means? On the :InvokeServer part
It's in a local script
Got it!!
This was a practice. I'm learning coding and this is day 1. Looking good or any tips?
The code is not supposed to mean anything)
show the server side
can anyone please tell me how to close this tab? i beg
It prints the right thing tho
it prints "rebirths"
HMM
so you invoking it right like uhh you deliever right data but it gives the error
Am I being stupid here
correct
neither, use ropes
wdym "use ropes"
what does the return function mean in a simple way?
rope constraints
What am I doing wrong... I don't get it
What does the ds and plr do in the parenthesis' out of curiosity?
satire?
hmm
nah i rlly just started learning yesterday
im not that good at it yet i just learnt maths, variables and other things
when you use a remote function from local to server, you send any information that you want (in my case ds which is equal to "rebirths" and when you receive it on the server side you put player there, because it automatically sends the plr argument over when going from client to server
Check other stuff like updateleaderboard
Does that make sense
@formal meteor did you uhh print the table on client or did you print it on server?
server
it's not a table tho
alright, you dont need a subtraction cause theres a built in one lol, but you could try type annotation on functions that return a value, also use task.wait over wait
WAIT A MIN
i understand it abit
Print it on client
subtraction(n1: number, n2: number): number
if it gives back right info then your issue is with that function
yeah lemme try printing the table
thanks! i was following the tutorials by devbrawl
learn modules
I honestly have no idea
same weird ass shit
yea
isn't that in a long time? I'm not at the advanced scripting part yet lol
if 57 is your print and 71 is the error, is the invoke even causing that?
long time?
oh not really, i wish i started learning modules earlier because they make your life easier
you can use ones in replicatedstorage and use the functions both on the client and server
I have no clue???? It invokes right, and prints out the right argument that I send with it, but for some reason in the local script it's erroring??
i use this on the client and server to both find a players party
i just call findparty and pass the parameters in and it will return what i need
print out ds on the client then
works all fine
but can't print out the table
on client
cause it errors on the invoke thing
it's so weird
I feel like it's not a scripting issue but rather something else
i mean the error is there so it is a scripting issue
is it me or did i still not learn tables in his videos?
some setting of my game that I don't have toggled or the remote function secretly being a remote event or something
i suggest learning them, really helpful
where should i learn them?
i didnt learn them anywhere tbh, i just looked at the built in functions and made stuff work with it
Watch the alvinblox or TheDevKing series
i heard thedevking was bad
theres also different tables in roblox dictionaries and arrays
ok! i'll look into his channel one day if i'm in a problem
array = {5, "5", false} dictionary = {Name = "any" value = 5, state = false}
dictionarys use keys and array use indices
Dont underestimate BrawlDev hes really good
print array[2] would outcome string 5
I bet but I didn't watch him
He helped me, anyway u any good with scripting?
Decent yeah why?
Mind helpin me in dms?
hes like a teacher, basically he explains thourghly what to do and at the end of each videos, he gives like homeworks to do in the comments and the other commenters can correct you to learn
send it
you should also learn module loading
so you can use modules from anywhere
lol maybe after I finish with the beginners playlist
rn im learning ''if'' statements
this is the one i made
i can pass in any modules i need and it automatically initializies it and i use a shared table to use it in any script
Awesome sauce
ooh great
how much time did ir take you to learn this mych
i locked in like 5 months ago but technically 2 years
i didnt know what a table or module was till 5 months ago however
ah yeah reasonable lol
im only coding because i need to make a dcs (it's a variety of scripts/modules scripts thatstores values, animations, n etc though apparently it's hard and complicated a bit to do)
guys guys , anyone have a idea on a custom character i can make for my game for hwich i wanna be able to add armor and all
fallen king from tds../jk

how long did it take to learn lua
from what i know im bad but is a module that thing where you do get service : and then something - or is it just completly different and did i just embariss myself - just a question
a module is reuseable code pretty much
thing of a function but as a script
ohhh i see
modules are helpful for things like library that may need to be used on the client and server and can just be called to get a result
i made a npc move with pathfinding, problem is it stutters/lags when moving. i have setnetwork nil on a server script inside npc itself?
yo does anyone know how i can put the animations of geppo of jumping and dashing into my script please dm me (my scripter is gone for vaction for 1 month)
tell fr
anyone knows why my animation is only visible to me and not to others
does anyone have any guides on creating r15 viewmodels
You can learn lua in a few weeks
ngl im using modules to hand like main logic of the mechanics(e.g. role assignment abilities etc) and then calling them wherever.
That a good thing or nah?
my game is like 95% module so yeah its fine
the best use cases of modules is replicatedstorage one
oh.
got mine in serverscript atm
idk how your game is setup but you could call some of the functions on the client
in replicated
ahh fair
atm I have module for role assignment and working on role abilities tonight which will probs go in replicated
thats fine, im pretty sure the modules in replicated are read only
one thing I need to get good understanding of is rarities etc as there'll be a progression in place that requires them
and no its not a simulator
role assignment is probably best outside replicated though tbh
Ahh makes sense. Yea still learning things as I go and the project I'm doing is mainly to learn more complex things
keep that on the server if its vital to the game
yea its in serverscript
with a script calling it and a local script in start player scripts to give player feedback thro UI
what about role related abilities? which one would benefit more? replicated or server script?
would it be needed on the client
With abilities I mean something simple like
if you are x role you can choose a player to kill during the night
if you are role y you can choose to protect a player etc
I'd need player input for it so sort of
how are you storing the role, attribute?
yep. got role and team attributes
team attribute is for winning conditions
all stored in tables in the role assignment module
logic is:
- you join
- you get assigned to a team
- you get assigned a role belonging to that team
- GUI showing the role you have been assigned appears on your screen
im not sure tbh the security with modules is kinda weird from what i know
the client could change the module but the server wouldnt accept the new source code and wouldnt replicate to the server iirc
ugh that sucks
I want to make a character camera position shifted to the right in the y extension. Any chance of sharing a sample code?
client could change it from serverscript too? or can it only be changed if in replicated?
no the server cant be changed
i think module scripts only run their code once
gonna keep in server script then sounds safer
thats fine tbf. role assignment only occurs upon joining(start of the round)
yeah its actually better for security that it only runs once, because a client couldnt modify it
and then cleared up upon leaving to avoid issues when joining a new round
for the server
ahh I see. Makes sense thank you
np i might have been a little wrong with some of that cause security with modules is a little weird thats why i dont put data in there but its something along that line
random question.
For game logic needs the round goes as follows
- Round starts(day1)
- after 60s night comes(lasts 30s)
- after night day 2 comes
This goes on until someone has won(winning conditions are met)
Is it best to use os.time to do this?
i did it this way cause i use tables
that's fair enough. I appreciate the help
os time or an attribute somewhere
I've thought of os.time as I heard its best way to make sure everyone is on the same page during the game.
Not sure how I would go about making sure however that everyone has loaded before start of day1
i thought you were using preloadasync
Someone mentioned to have players in a table that is transfered from lobby place to round place im guessing and wait for everyone in the table to load
Isnt that just to allow everything to load before players are loaded?
yo zloryhh
yo
idk never needed to use it
do u know why when i import an animation it doesnt work?
from what I've seen thats what I thought it is tbf
even tho it worked before
which if it is, I will probs make use of
But issue is more a matter of avoiding putting players at disadvantage by starting round before everyones actually been teleported
seems to be a callback to load things
is that an answer to me?
no idea. havent done animations like ever
alr
np
np
makes sense. Ill have a read on it when I get a chance
are there any helpers on this server?
from the roblox documentation they use a table and callback with preloadasync
doubt staff is here to necessarily help with developing but you might get some help in #animation
ohh I see.
only worry I have is
Lets say 10 players join queue
teleport starts
1 of them quits mid teleport
that 1 player would still be in the table of players im guessing? thats cuz afaik I'd have the table on the lobby place be sent to the round place in some shape
but that would mean that the table wouldn't be able to be modified(if at all) until in the round place
And I can see how someone leaving would cause issues with round initiation
Or later on role assignment (theres like 5 roles that have no player reqs but theres also like 10 roles that are only assigned if the minimum target of players has been reached)
honestly i dont use preload so idk, what i'd do personally is use a message to figure out how many people there should be, repeat task.wait until that quota is met or just quit the repeat after 10 seconds
im not sure if the repeat would start before your timer though
mhm
if you have a constant number of players its easier
for the message you mean seeing how many players there should be based on how many of them joined the queue and were still in the queue when the teleport got triggered?
yes, send the message based on the people in queue
v
then I could avoid triggering any function that has a min player req if any of them quit midway tp
idk much about teleportservice and sending the data with the players so i'd use a datastore personally but im sure theres better methods if you looked into finding the players in the table
if youre just looking for the number, use an array to store their name in the table or something, and just send the number of children over to place 2
yea I will need to have a good read about teleport service and anything associated with it
I mean either this or I wont learn and get any better so🤷♂️
Hello guys i want start learning lua and im here to ask yall do you have any tips how do I beggin
if u a scripter and love blue lock please let me know. i have everything else handled. you will make thousands
start easy like GUI and learn what certain statements do
Is the dev king tutorial good for Beginners?
Me?
☠️
no thats my recording bugging
it doesnt sound like that ing
How would I make realistic acceleration for a vehicle? Ive made my own chassis, now I just cant figure out how to make it accelerate like a real car would, as in accelerate slower at higher speeds.
Does anyone know how to replicate the destruction physics in jujutsu shenanigans. I’m want that kind of destruction in my game
lf a experienced scripter that I can talk to
does anyone know how i can check if a player is following a user on roblox, on roblox studio?
Use BrawlDev’s tutorials on scripting, the videos are kinda long but trust me he explains it pretty well, I myself am on the advanced scripting tutorial playlist rn
But start with the beginner scripting tutorial first just so you can get an understanding of the basics
there is any way to secure my game from saveinstance()?
anyone can try to help script me a ptz camera? I need it to pan, tilt and zoom.i also need something yk to show the camera moving while it’s being controlled. also a script that detects when the user is sitting so they can view and control it? i’ve tried chatgpt and it’s been no help and made my problem worse. either that or im just dumb
i have all the weld constraints, attachments and hinges but when the person sits at the seat they can’t view the camera to control it nor can you see the camera moving.
looking for someone to go over scripting pricing and payment. I am looking to make a game and hire some devs but just want to know some average pricing so pls dm me your skill level and priceper what eever unit you wish to use (time/lines/difficulty/ect)
It’s called voxelization
yo can someoe legit show me how to make a leaderboard
ordereddatastore
its complex
very complex
i alr know how to make an ordered data stroe but i dont know how to implement it to make a global leaderboard
setasync tells you how to
key (the user id) value (the stat value)
use a loop to iterate every like 10-60 seconds of all the players and run a function that sets async and its global then
I am so confused rn i just dont quite understand i need like a step by step tutorial
if you type a function it tells you the parameters it expects
So, i've been told by a friend that implementing animations on the serverside is better for combat focused games where stuff like hitboxes and particles need to be timed with the animations, is this true?
but everything on utube is either outdated or using a preexisting board
im telling you how to do it
see if you type any function in, it tells you the parameters it expects
Sure
I dont know how exactly animators handle it
But I assume its the same as client with one less context to go through
What
local NpcHumanoid = script.Parent
local Waypoints = workspace.AI.WayPoints:GetChildren()
function patrol()
table.sort(Waypoints, function(a, b)
return a.Name < b.Name
end)
for _, waypoint in Waypoints do
if waypoint:IsA("BasePart") then
NpcHumanoid:MoveTo(waypoint.Position)
NpcHumanoid.MoveToFinished:Wait()
end
end
end
while true do
patrol()
end```
anyone know why this wouldnt work? npc walks about half way to the waypoint then ends up switching paths to the next one, its supposed to get to the next numbered part then switch paths
handle all the technical aspects like hitboxes, damage on server and animations vfx on client
I’d say, add 3 print statments: one after movetofinished event, one at the end of the for loop in the patrol function, and one in the whileloop after the patrol function
It wont fix the issue but it will help finding where the issue could be situated at
Then you run the code and observe when what runs
Or you can use debugs and breakpoints instead, that also works
Cuz rn the only idea I think could be the cause is if one of the children in this waypoints folder/group isnt a basepart and it just skips the rest
how hard is it to learn scripting
Well its a very expansive topic
my current code that works like i want it to now, most trouble was trying to get multiplier not to act weird between 0 and 1. any advice or suggestions? otherwise i'm keeping this
i changed it to use heartbeat after looking up some stuff and made a function to add points instead with better math variable
Other than how ugly it looks and some poor practices no your chilling
just closed tho so too lazy to show again
💔 2 days in, i'll get there
lmk what the poor practices are tho
Some indenting would be pretty sick
define services at the top not inside of your events bc the way u get the player is sickening to look at
wdym by that
is the getplayerfromcharacter not at the top of the function
how can i make it higher
i got interested and reopened it, i'm assuming this? '
i sleep now
guys my friend added this to game
what does it do
have any of you made a movement system without the humanoid?
getinstanceaddedsignal in collectionservice is the best function ever
anyone?
forst part
makes hands visible
or no
head visible
for some reason
I think what it does is that it changes transparency for the player's character ONLY on their client. and the second part just moves their camera offset based on their head cframe
im guessing this is for a first person game?
he makes the head visible
why would it be visible in first person
what are you talking abt
oh wait hmm im wrong mb
the script excludes the head
either way the script gon break on slow computer cause he doesn't wait for the character to load
read it again it doesnt say if ~= head it says if == "Head"
what are you talking abt lol
???
mm
i see so the script js makes the legs, hands torso visible
and ts gon break either way
cause he's not waiting for character load
maybe he put it in startercharacterscripts
could be
i dont get the run service one
he shoots a ray and if it hits the camera moves
ion really know why you would need something like that
hmm what if it was used to stop the camera from clipping into the wall?
i mean in first person the wall never really clips in the wall
head*
but i guess maybe it could
if it's some pvp game then maybe it's valid
yeah
one thing i dont get is how they used ray.new
because i think its deprecated and workspace:Raycast is newer
yeah, but a lot of people watch tutorials making ts and don't even look at what they are writing
look at most code
still using bodyVelocity
when it had been deprecated for like 3 years
and 99% code snippets still use linear velocity because they blindly copy tutorials
yeah most tutorials i see are just spoonfeeding code
i doubt most new devs would actually try to understand the model that they are dragging and dropping into their "game"
but that's just my two cents
i teach scripting professionally
on a monthly basis
unlike the per hour people do
https://www.roblox.com/games/16167223198/NEW-MAP-Combat-Surf how much should I pay for someone to make a movement system similar to this
there is legit no movement system wdym?
u talking about the sliding?
u should pay 120
bunny hop
120?
sounds absurd ngl
bro wdym by bunny hop?
movement system like the one in counter strik, search it
oh alr
and u think counter strike is a roblox game
counter strike is a professional game on steam
like the game on roblox called "Surf" but have it easier to use and faster
I am making a kids game, don't overcomplicate stuff.
why you all suddenly beefing
that would be more reasonable
@hard mulch
oh ok
but i mean he is right tho counter strike is a massive game
yeah
you know what else is massive?
so bhopping is a mixture of using left and right air acceleration and preserving momentum in midair hmmm
LOL
Head moving system
I think
im probably wrong so correct me
question to the scripters:
how do you balance upfront/on completion payments? on the one hand, the scripter doesn't want to get scammed by the buyer so asks for upfront. on the other, the buyer doesn't want to get scammed so asks for on-completion.
bringing this up because a scripter who I thought was trustworthy not only stole money from me, but also stole my game idea (since I can't script it's a concerning prospect)
contemplating not doing upfronts anymore but what kind of scripters do on completion you feel?
Up-front should only be done with people you trust, i.e. scripters you've worked for in the past
i never do completion
its either upfront , partial upfront or per task
im not making a whole pet sim game then getting paid
well I'm asking for what's the middle ground? because scripters seem to be getting comfortable with scamming
used to be a builder-only thing but I'm seeing it a lot more with scripters now
hourly rate
If only 🙏
how much should I pay?
Low
Hello gyus how can I send my message in scripting-hirable?
50-70 usd for a bunnyhop system
anyone tell me how to send in the scripting-hirable
ok thanks man
lol this is wrong
lol
this only happens when you find shitty devs @frail parcel
you will not be scammed if you press on development
i do not take upfront and never have, i take after completion (before releasing the game to the client) or per task
or if its long term %/trusted company that i am familiar with i will work with them in their own studio
wait aseond
what
wait a second
not everyone takes per task
and there are plenty of people you can sell the assets to if things go in the opposite direction
not to mention people buy fully completed games all the time
just have to have clients
where
What your bunnyhop system will do?
he needs a bunnyhop system to be like cs
what where
i think he meant where do ppl buy full games
you can either seperate the assets (assuming you programmed the game properly and made it dynamic) into systems and sell them to asset library sites/discord servers
or you can sell the game to a game studio
if the concept is decent it will be bought
not easy to differentiate friend
the scripter I hired had contributed to 5 games with 5 billion visits
guess my game idea was good enough to warrant throwing away that reputation 🤷♂️
just checking, u reported him right?
yes, I've filed a scam report
they left the server . only reason i filed a report is to help others in case they return
anyone has experience with doing client-sided knockback? the delay of bodymovers on server is kinda disgusting tbh. and client-side bodymovers make it smooth only for the victim depending on the network ownership 😭
name
i also do not count contributed
proper work & solo/duoed projects >> contributed
large games rotate devs faster than i can blink
yes
what is the difficulty
chextime
which games did he say he contributed to
Or he just lied

i mean thats what im figuring out
@frail parcel what was the job and what was your offered pay
not sure how to make it smooth for all clients, what i did is fireall clients an event which applies a linevelocity on the client of everyplayer to the victim but its only smooth for the victim
This is such a common issue
this is a terrible idea
I don't know how to fix it either
ik 😭
set network ownership of the uppertorso to the client, apply the force to the client
because you can't really client predict physics like that
it should replicate fine
For this to works, it first needs to travel to the server to set the network ownership.
and if that is not good enough then you will have to use a spring implementation or play an animation on the player @indigo flame
and thats not mentioning how insecure that is
mate uppertorso network ownership won't hurt anyone
350$ , the job was a range of different tasks but all towards making a game I had in mind
its not even rootpart
can you explain to me why uppertorso network ownership would be an issue
Because that isnt how the physics work
er
that is not true
a lot of ragdoll systems use that method for ragdolling
why don't we try it and see instead of saying whos right and whos wrong
where is the channel for gui commisons to hire
anyways there is the solution of springing the client
ill try both ig
oh no what will i do my client has network ownership of their character where i can add a sanity check and disable it after ran
😭
Huh?
You suggested this for knockback
yeah tho a sanity check could fix the vuln pretty good ig
i know thats why its called a sanity check
i didnt think you would just give all players network ownership for no reason lol
thats dumb af
what games did he say he contributed ot
his profile says 11b+ visits on twitter lol
If I am understanding correctly, you're planning to give physics control to the players enemy
i thought you can only have 1 ownership at a time?
wtf
no
Then how do you work this for knockback
floor is lava and sharkbite games
rip
you have to replicate it anyways right... so while you replicate the effects you can also send the affected player data to make them knockback themselves
thats what happened to me yh
You make the problem worse
its smooth for the victim and choppy for everyone else
its gonna be choppy for everyone else if you dont replicate it
and just run it on the server
@indigo flame btw what are you using to do knockback
sec
For some reason body movers on server work terrible
line velocity i tried
i tried assemblylinearvelocity of hrp
and bodyvelocity which is deprecated
you have other methods, try AlignPosition and ApplyImpulse
ApplyImpulse has the same issues

