#code-discussion
1 messages · Page 69 of 1
How much do you earn per comm?
idk
billions
i dont do commisions bcz i dont have a portfolio
Alright how much do y'all earn on average?
i make good frameworks and systems but then i scrap projects
Answer this last question
Negative
How much do y'all earn on average
Average across this year: 300/365
cooms are for possios
uh oh
comms*
Am I cooked for doing a 300rbx comm
not cooms
toolbox is the right tool for 300rbx
it was debugging
farely easy
My favourite thing to do in my spare time is making scripts with 5 different variables all with the same values because I cant be bothered to remember the names of them
As you can imagine my scripts look beautiful
fr
Why is it every time I do a tutorial sword m1 is a tool I just want m1 like in games how do I do this
idfk
tf is this
My game deals with alot of NPCS walking around, how do i prevent lag while keeping alot of them?
don't use humanoids
humanoids are intensive
make your own handler
and don't use a script in each, use ECS or OOP
@shut sorrel hello bro i need ur help
i made a zombie ai but when they get close enough to players (if players moving too) they never get to touch em, they start stuttering n be laggy ionnow
Can someone explain this to me I don't understand it I am watching a tutorial how to learn lua. (This is not mines)
what about it
r u talking to me?
who else
bababoi u wanna help me
do you know what < means
somewhere in this script is an error with the function LoadProfileAsync, anyone know how to fix ?
does anyone know how to play a sound right as soon as a player leaves?
If they're close enough stop using pathfinding and switch to humanoid:MoveTo()
on the client
how can i check the performance of my game
creations tab on create.roblox.com and then click your game
tried that
ive been trying everything for whole day none of em worked
how often are you updating the MoveTo/Pathfinding, are you using heartbeat or a while loop?
heartbeat
idk
thats the code
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local AIController = {}
local zombies = {}
local DETECTION_RANGE = 70
local RUN_DELAY = 4
local WALK_SPEED = 7.5
local RUN_SPEED = 30
-- each zombie will register like: AIController.Register(zombie)
function AIController.Register(zombie)
local humanoid = zombie:FindFirstChildOfClass("Humanoid")
local root = zombie:FindFirstChild("HumanoidRootPart")
if not humanoid or not root then return end
table.insert(zombies, {
model = zombie,
humanoid = humanoid,
root = root,
target = nil,
chasing = false,
running = false,
chaseStart = 0,
})
end
-- main update loop
RunService.Heartbeat:Connect(function(dt)
local playerList = Players:GetPlayers()
for i, zombie in ipairs(zombies) do
local zRoot = zombie.root
local zHum = zombie.humanoid
-- validate
if not zRoot or not zHum or zHum.Health <= 0 then continue end
-- already chasing someone
if zombie.chasing and zombie.target and zombie.target:FindFirstChild("HumanoidRootPart") then
local tRoot = zombie.target.HumanoidRootPart
local dist = (tRoot.Position - zRoot.Position).Magnitude
-- stop if too far
if dist > DETECTION_RANGE * 1.5 then
zombie.chasing = false
zombie.running = false
zombie.target = nil
zHum.WalkSpeed = 0
else
-- run after 4 secs
if not zombie.running and tick() - zombie.chaseStart >= RUN_DELAY then
zombie.running = true
zHum.WalkSpeed = RUN_SPEED
end
-- move toward target
if tick() % 0.25 < dt then
zHum:MoveTo(tRoot.Position)
end
end
else
-- detect nearest player
local closest, minDist = nil, DETECTION_RANGE
for _, player in ipairs(playerList) do
local char = player.Character
if char and char:FindFirstChild("HumanoidRootPart") then
local dist = (char.HumanoidRootPart.Position - zRoot.Position).Magnitude
if dist < minDist then
closest = char
minDist = dist
end
end
end
if closest then
zombie.target = closest
zombie.chasing = true
zombie.running = false
zombie.chaseStart = tick()
zHum.WalkSpeed = WALK_SPEED
end
end
end
end)
return AIController
why do you use tick() % 0.25 < dt
no idea i used ai to make it đ
Yeah remove that if statement just leave the moveto
uhh it kinda better now but still same
lemme send a clip
Watch Roblox Studio and millions of other Roblox Studio videos captured using Medal.
Try changing run_delay to 0 rq
basically if your cash is above 100K then you're rich and if its below then your poor its a simple if statement
I think it's setting running to false so it goes back to walking then still detects player and starts running over and over again in a loop
changes nun
ion think so
Set walkspeed to the same as runspeed
yea still same
If you still stand still does it keep it's distance?
nope it sticks
This is a server script right in ServerScriptService?
module script in serverscriptservice yea
local hrp = script.Parent:WaitForChild("HumanoidRootPart")
-- replace these with your actual animation ids
local idleAnimId = "rbxassetid://78236964138242"
local walkAnimId = "rbxassetid://180426354"
local runAnimId = "rbxassetid://110375194022731"
local animator = humanoid:WaitForChild("Animator")
local idle = Instance.new("Animation")
idle.AnimationId = idleAnimId
local idleTrack = animator:LoadAnimation(idle)
local walk = Instance.new("Animation")
walk.AnimationId = walkAnimId
local walkTrack = animator:LoadAnimation(walk)
local run = Instance.new("Animation")
run.AnimationId = runAnimId
local runTrack = animator:LoadAnimation(run)
local currentTrack = nil
local function playTrack(track)
if currentTrack == track then return end
if currentTrack then
currentTrack:Stop()
end
currentTrack = track
currentTrack:Play()
end
-- adjust speed thresholds if needed
local WALK_THRESHOLD = 0.1
local RUN_THRESHOLD = 8
game:GetService("RunService").Heartbeat:Connect(function()
local speed = hrp.Velocity.Magnitude
if speed < WALK_THRESHOLD then
playTrack(idleTrack)
elseif speed < RUN_THRESHOLD then
playTrack(walkTrack)
else
playTrack(runTrack)
end
end)
local AIController = require(game.ServerScriptService:WaitForChild("AIController"))
AIController.Register(script.Parent)
this is the script in zombie model
Your script just isn't updating fast enough I think, it could be from uncessary computations or maybe since your calling another heartbeat from a module and have that one handling animations too
what can i do đ
it seems its not cause of having 2 heartbeats i changed anim script to smth else its still same
Anyone here do small/medium scripting comms?
i also tried setting network ownership of zombie to server it was still same
Yea
can someone help me with scripting
Dm me
thx
Still need help?
anybody wanna mak a roblox game like bloxburg, no hiring, just creating it for fun :) (dm me)
Uhh without changing too much try this
task.spawn(function() AIController.Register(script.Parent) end) at the end of the script you sent
can someone help me with scripting
yes. very. wanna go in a call in server ? if you can/want to help
let me check the code rq
tysm
still same n got this in output "Workspace.Infected.Script:51: attempt to call a nil value - Server - Script:51"
Anyone here do small/medium scripting comms? Need a system done for dropping dominos
like that?
yeah like those domino playground games
Fehler kommt, wenn active_session den Wert nil hat, was dazu fĂŒhrt, dass der Code in eine Endlosschleife gerĂ€t, statt das Profil zu erstellen
@blissful aspen are u able to make a system for that?
done
@left apex
not everything just the part
Oh wow, Can u goto msgs?
alr
im getting the same error still. did i replace in the wrong place ?
this is the line it shows when i click on the error if that helps
i need help making a script that gives a player a role named "FreeAdmin" when they click on a part using hd admin
im rlly confused and idk how to make it work
local TouchedPart = game.Workspace.TestPart
TouchedPart.Touch:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
script.Parent.Visible = true
end
end)
Is it possible to make it detect when "TestPart" is no longer being touched?
isnt there like ~= or something, the same as != for other languages ?
TouchEnded?
my warnings increased heavily even though they don't popup in the developer console?
all I did was replace the lines of
local datafolder = ReplicatedStorage:WaitForChild("DataPlayer1")
with
local datafolder = ReplicatedStorage:WaitForChild("DataPlayer1", 60)
there are no warnings in the developer console whatsoever, but they spiked heavily after i implement these in the error tool metrics
I've tried, but then the entire script stopped working
Nvm, i placed something wrong and now it works
Thx anyways
nw
when i reset game starts lagging idk how to fix
whats the diffrence between using workspace and script.parent if they both change properties (im new and trying to learn studio)
can you make a global leaderboard with ProfileStore?
Guys what's a 2 player obby idea
maybe a fresh idea for a 2 player "manipulation" obby. so one player goes through the obby and the other trys to sabotage.
no u cant
What is the best coding basics tutorial?
Anyone know how to make a code for hourly bosses. Example a boss that spawns in once ever hour and stays alive for 15 minutes then despawns.
please dont use Code Coach bro is a racist and called me n word so many times lol i used to know him

and he just tries to scam kids to buy his course or books that are AI generated
Dms
yes I watched one of his videos and he was saying how functions are like "slaves"
he's weird bro
used to tell me about how his dad had a pron addiciton đ
i still got the dms
dawg what đ
Yup
expose him bruu
He used to go by StaySail
lol
LMAOO
Just look up his name
on this discord chat
someone said "Worst developer ive met is staysail" lol
not just me 
Idk how he can be racist look at him đ
LMAOOO
Anyone wanna help me with a game it's actually rly cool idea dm if u want to help money is involved
sI have a HUB System from which players can select which Map they want to spawn on, since the game is RP focused I need to send players to the Biggest server so they can actually play the game. However, this current system sometimes sends the player into a different server in the place it teleports them to. Can someone help me out and lmk if there's something I can do to fix the issue?
whatd u use to learn then
i dont want a tutor im just tryna see how i should get started
whether theres some youtuber or if i should learn it from somewhere else
Would any of yous know or are someone who can make scripts for helmets im trying to help my friend with a fire department game
My email gets spammed because of him\
like FUCK OFF
idk i've been in roblox studio for like 7 years i think i learned from alvinblox tutorials but he dont really post much anymore and dev fourm and roblox documentation when i need to do something
LMAOO yeah he's weird bro
i was gonna say originally back in the day i tried alvinblox but idk i was way younger then, i learned some java cuz i was taking cs so im tryna get into scripting here, just tryna see what i should use to learn
tutorials are overrated, watch em for the very basics then just problem solve and refer to documentation for syntax
"The Roblox Coach" đ„¶ asf
Well if you know another language already luau is very easy anyways because itâs one of the easiest languages altogether
But generally most actual knowledge can be used across all languages. Thatâs why learning programming patterns is so useful because theyâll always be relevant
but donât worry about that until youâre at least somewhat proficient at lua
i appreciate the help
im probably gonna tap in tonight it does look pretty simple icl
Yeah i got all the basics out the way in abt 2 days, itâs more about focusing and dropping ur ego. If you know you donât understand something donât js move on, try to understand it and if you canât look for other resources to help you
Yoo, i set a model as a charcter and it works all good but i cant hear the sounds i put in the game anyone knows why>?
using beams can i change how many off the textures are showing up?
its so many
Now to divine what points of this apply to my code and what is just copy pasted
what is this
application for scripter role
OHHH okay
some of this just looks invalid for my code right
like, he mentions 200 lines
mine has 200
mentions varying the API
I only don't use physics really
I commented my code, tho apparently that wasn't enough? I'm not coding assembly here, I don't wanna insult anyone's intelligence
im using brawldev
he got 2 series, beginner and advanced
i really like it
anyone knows the reason of these spikes?
99.99% sure not related to my game specifically, started happening after i've restarted the servers
is this a crude way of checking if a user has shift lock on?
where do u apply
very cool
bro
?
nvm its coming from coregui, which has nothing to do with me
roblox did an oopsie i think
oh
its weird that this started happening after I updated my servers a few hours ago
it didn't happen when I updated servers 2 days ago
only now
do scripters make everything thereself or do they use other peoples work
why cant i change the scale of a model via script
they do use other people's work
oh alr thanks
Hi guys. Since im expanding my server to scripting, may I know yalls âpopularâ people in the scripting space?
@fervent belfry very popular fam around here
đ
So funny
thank you, im very popular for funny here
what are simple things to code to get better ?
What is a good tutorial for scripting basics for beginners thatâs recent?
I would suggest brawl devs tuts.
Learn lua first then how to use it on roblox
Just learn it straight up instead
Leaderstats
local perlin = {}
local bxor = bit32.bxor
local rshift = bit32.rshift
local band = bit32.band
local PrimeX = 501125321
local PrimeY = 1136930381
--[[local gradPerm = { 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225,
140, 36, 103, 30, 69, 142, 8, 99, 37, 240, 21, 10, 23, 190, 6, 148,
247, 120, 234, 75, 0, 26, 197, 62, 94, 252, 219, 203, 117, 35, 11, 32,
57, 177, 33, 88, 237, 149, 56, 87, 174, 20, 125, 136, 171, 168, 68, 175,
74, 165, 71, 134, 139, 48, 27, 166, 77, 146, 158, 231, 83, 111, 229, 122,
60, 211, 133, 230, 220, 105, 92, 41, 55, 46, 245, 40, 244, 102, 143, 54,
65, 25, 63, 161, 1, 216, 80, 73, 209, 76, 132, 187, 208, 89, 18, 169,
200, 196, 135, 130, 116, 188, 159, 86, 164, 100, 109, 198, 173, 186, 3, 64,
52, 217, 226, 250, 124, 123, 5, 202, 38, 147, 118, 126, 255, 82, 85, 212,
207, 206, 59, 227, 47, 16, 58, 17, 182, 189, 28, 42, 223, 183, 170, 213,
119, 248, 152, 2, 44, 154, 163, 70, 221, 153, 101, 155, 167, 43, 172, 9,
129, 22, 39, 253, 19, 98, 108, 110, 79, 113, 224, 232, 178, 185, 112, 104,
218, 246, 97, 228, 251, 34, 242, 193, 238, 210, 144, 12, 191, 179, 162, 241,
81, 51, 145, 235, 249, 14, 239, 107, 49, 192, 214, 31, 181, 199, 106, 157,
184, 84, 204, 176, 115, 121, 50, 45, 127, 4, 150, 254, 138, 236, 205, 93,
222, 114, 67, 29, 24, 72, 243, 141, 128, 195, 78, 66, 215, 61, 156, 180 };
]]
local function floor(x: number)
return math.floor(x)
end
local function lerp(a: number, b: number, t: number)
return a + (b - a) * t
end
local function quint(t: number)
return t * t * t * (t * (t * 6 - 15) + 10)
end
local function hash2D(seed, x, y)
local hash = seed
hash = bxor(hash, x * PrimeX)
hash = bxor(hash, y * PrimeY)
hash = hash * 20261
hash = bxor(hash, rshift(hash, 15))
return band(hash, 0x7FFFFFFF)
end
local function grad2D(hash, x, y)
local h = band(hash, 7)
local u = h < 4 and x or y
local v = h < 4 and y or x
return ((band(h, 1) == 0 and u or -u) + ((band(h, 2) == 0 and v or -v)))
end
function perlin.noise(x, y, seed)
seed = seed or 0
local x0 = floor(x)
local y0 = floor(y)
local xd0 = x - x0
local yd0 = y - y0
local xd1 = xd0 - 1
local yd1 = yd0 - 1
local xs = quint(xd0)
local ys = quint(yd0)
x0 = x0 * PrimeX
y0 = y0 * PrimeY
local x1 = x0 + PrimeX
local y1 = y0 + PrimeY
local xf0 = lerp(
grad2D(hash2D(seed, x0, y0), xd0, yd0),
grad2D(hash2D(seed, x1, y0), xd1, yd0),
xs
)
local xf1 = lerp(
grad2D(hash2D(seed, x0, y1), xd0, yd1),
grad2D(hash2D(seed, x1, y1), xd1, yd1),
xs
)
return lerp(xf0, xf1, ys) * 1.4142
end
return perlin
wow
what in the Chatppt is this
ur just dumb bro
mad?
yeah
I used wiki not AI
what's wrong with math.noise
perlin is a noise algorithm
math.noise is perlin noise
It is? And even if mine uses custom seeds
math.noise takes x, y and z, where z can be used as the seed
A fast, small, safe, gradually typed embeddable scripting language derived from Lua - luau-lang/luau
anyone have tips on how to get hired to build a portfolio if u have none
Just pray
People look for ability, that doesn't mean you need to have scripted a full game, but you need to show that you have the ability to do so. Do a specific feature. Say, you want to code working bow and arrow. Write it down, set a timer for 3 hours, and see what you can do. Hopefully, you will now have 1 portfolio item. If not, you have some coding to learn. Pick something that is hard, but do-able in 2-3 hours.
function AddNameTag()
for i, v in pairs(workspace:GetDescendants()) do
if v:IsA("Humanoid") then
-- if v.Parent.Name == plr.Name then return end
local BillboardGUI = Instance.new("BillboardGui")
BillboardGUI.Parent = v.Parent:FindFirstChild("Head")
BillboardGUI.AlwaysOnTop = true
BillboardGUI.ResetOnSpawn = false
BillboardGUI.StudsOffset = Vector3.new(0, 0.5, 0)
BillboardGUI.Size = UDim2.new(0, 100, 0, 150)
BillboardGUI.Name = v.Parent.Name.."NameTag"
local TextLabel = Instance.new("TextLabel")
TextLabel.Parent = BillboardGUI
TextLabel.BackgroundTransparency = 1
TextLabel.Position = UDim2.new(0, 0,0, -50)
TextLabel.Size = UDim2.new(0, 100,0, 100)
TextLabel.ZIndex = 10
TextLabel.Font = Enum.Font.SourceSansBold
TextLabel.TextStrokeTransparency = 0
TextLabel.TextSize = 20
TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
local teamColor = game.Players:FindFirstChild(v.Parent.Name).Team -- RIGHT HERE
if teamColor then
TextLabel.TextColor3 = teamColor.Parent.TeamColor.Color
else
TextLabel.TextColor3 = Color3.new(1, 1, 1)
end
TextLabel.Text = v.Parent.Name
end
end
end```
im trying to add name tags and when i try to make the color of the text the players team color it doesnt work
im like really tired rn so i barely understand my own code but
nvm i fixed it
local teamColor = game:GetService("Players"):FindFirstChild(v.Parent.Name)
if teamColor then
TextLabel.TextColor3 = teamColor.TeamColor.Color
if TextLabel.TextColor3 ~= Color3.new(1,1,1) then
TextLabel.TextStrokeColor3 = Color3.new(1,1,1)
end
else
TextLabel.TextColor3 = Color3.new(1, 1, 1)
end
Wdym, waiting for playerui?
Obviously I didn't need to redefine local player each time cus I had variables
and I was just being lazy
And the local script isn't in player gui it's in starter character scripts
hey, can you tell me what a handler is
I want to learn
tysm.
is there any script that make Parts Follow waypoints?
shouldi learn modeling after i learn luau?
yes
alr how do i do that any tutorial or a good place to start?
well what you're tying to do is similar to tower defence games
there's a playlist that covers how to do this
yeah but all of that is done with rigs mostly so ill check it out
i was able to do something similar, the key thing is just moving a part from one place to another using one part that everything is attached too
so like a moving platform that just follows a path back and forward.
print(1)
task.wait(3)
print(2)
-- 1, 2
``` ```lua
task.delay(3, function()
print(1)
end)
print(2)
-- 2, 1
task.delay goes to the next line immefiately, while task.wait yields the thread
thanks
it leaves out the important details
Im pretty bad at explaining but imagine you have a function that spawns an npc and destroys it after 10 seconds.
using wait, the whole function would be halted untill the npc is destroyed after these 10 seconds, while using task delay would destroy the npc after 10 seconds, but the script would move on
its basically a guide
then which thing should i start with
Watch Brawldevs
he misses out stuff to and its take alot of time him to explain a little thing
ad jumpscare
XD
he spelt exercise wrong
@lost agate
your tutorial literally spent 1 minute explaining how to assign values to a variable
should i start with it
nvm he spent 5 minutes explaining how to add variables
and it takes 10 min for brawldev
i dont think so
unless you know nothing
oh you said that already
yeah roblox documentation is better
what made me improve a lot is recreating simple games / toolbox items (after knowing the basics)
check it urself
figure out the basic syntax then just start scripting
too hard to understand for people that dont grasp the basics
watching tutorials for 10 hours will do nothing
i know the basics except tables playerstats
Yall what's best to use for combat and ability hitboxes? Raycast Or Shapecast or getpartsinpart or getpartbounds ??
if its small then raycast if its big then getpartsboundinbox
sybeu
just google how to use a table then start scripting lmao
Ok thanks
â
what about advance
if you dont know how to do something just google / watch a small youtube vid on it
how did u learn scripting
tyyyyy @fresh belfry
i forgot most of the thing the last time i open roblox studio was 7 months ago
i think i need to start from the beginning
im just gonna read the docs
hi
@shut sorrel yo
i fixed the problem but uh
i got a new one
every npc except the first one (the ones i duplicated) fall on the ground for the first few secs when they sight a player
u see the one on front doesnt do it
i deleted em n duplicated the working one again and checked if they are the same but it keeps doingi t
reminds me of that one deepwoken gallery video of a vesperion getting chased by mudskipper
thanks
this lead me to remembering something
i tried making em massless as well, theyre massless in the clip, nothing changes
lol it reminds me karliah's pathfinding
lemme try
nope doesnt work, also it only happens while playing the actual game in roblox, not in studio
and it fixed when i build a new rig and pasted the script inside of it instead of duplicating em, weird
hrp is off torso n head is on
alright i tested another thing, when i remove the script from the npc n duplicate em and then paste scripts manually it works fine
i think smth like that
nvm it still happens
WHO IS AN UI DESIGNER
Lets say someone in roblox mobile is walking while holding a gun, he puts his finger on the target which is gonna trigger the tool activation, when the tool activated its gonna shoot a bullet BUT the mobile user is walking so it will detect his finger on the walking button before the finger that he put on the target, and the gun will shoot wrongly, how can i make it that it ignores any finger put on the walking button?
(Blox fruits uses what i want)
If u use a skill while walking it uses it where ur finger is aiming and not where you're finger that is put on the walking button
my only problem in coding is long term memory, to get in that i need to practise so much even if I understand.
should look into it
would prolly help bind and unbind the walking action in mobile
idk i never worked with mobile but it's probably there
And what about non-instant magic projectiles? getpartBoundsInBox would be the best option too?
@digital canopy@abstract dagger
huh
tbh i've never worked with projectiles
i've had ideas tho, maybe an attachment/weld/something that travels along a line and you just kinda cast spatial query as it travels
there's definitely a better way to do it but i've never worked with projectiles
anyone have reccomendations on youtubers to learn scripting for someone who has never sctipted
devking is pretty good for beginners
a few of his stuff is a bit outdated but you'll get the gist of it
weld???
mr fire course on udemy
Hey everyone!
I'm looking for a motivated scripter to team up with me on a complex but with huge potential project, sadly no upfront payment as there's no budget yet, but you'll get a percentage of the game revenue when itâs launched and if we manage to find investors, even before launch.
Experience isn't a must as long as you're reliable, communicative, and can deliver whatâs needed!
đŹ
what is a print for? the videos im watching show how to use it but dont explain what its used for and what i does
print() is used to display messages in the Output/Console window so you can see what's happening in your script.
i use it to know if this and that works good
even tho i barely print
So would i have to use it when making a game?
or scripting something basic
nope. you dont have to
oh ok
however when using variables you need to use their function
like
local myfunction = 10
myfunction()
executes the function
tells what the value is
oh ok
???
tween4:Play()```
why this only rotates the primary part, i only anchor the primary part, and everything are welded
anyone can make a two player obby pad teleport system?
alr dms
Dm me if you wanna make a game with me
anyone can make a two player obby pad teleport system? dm me
anyone can make a two player obby pad teleport system? dm me
anyone wanna help me make a blue lock game if your a adv scripter or a scripter at most dm me
wish there was a channel where you three could ask for developers
they should call it #scripter-hiring or something
prompt.MouseClick
anyone can make a daily reward ssystem dm me
SCRIPTERS HELP ME
hey guys
are there any scripters that like coryxkenshin?
i feel like i'm the only one
đ
theres a lot of people in the world. ur never the only one in anything
that's obvious its just that i've yet to find them
its like looking for your doppelganger
they exist, but it feels so improbable
yfm?
yea
what yall thinkin about the movement
idk but it looks badass
why doesnt the proxpromt pop up
the script btw
replicatedStorage.Events.PlayerPlacedCrop.OnServerEvent:Connect(function(plr, player, oldCrop, Cframe)
local crop = replicatedStorage.Crops:FindFirstChild(oldCrop)
local progression = replicatedStorage.CropStages:FindFirstChild(oldCrop).Progression
local timeMax = crop.GrowthTime.Value
local stageTime = (timeMax / #progression:GetChildren())
local newCrop = replicatedStorage.Crops:FindFirstChild(oldCrop):Clone()
newCrop:PivotTo(Cframe.CFrame)
newCrop.Parent = workspace.LoadedCrops
print(timeMax, stageTime)
local stage = 0
repeat
stage += 1
newCrop.Build:ClearAllChildren()
local stageObj = progression:FindFirstChild(stage):Clone()
stageObj:PivotTo(Cframe.CFrame)
stageObj.Parent = newCrop.Build
wait(stageTime)
until stage == #progression:GetChildren()
print("Crop Finished Growing")
local PickupPromtObj = Instance.new("Part")
PickupPromtObj.Name = "PickupPromtObj"
PickupPromtObj.CFrame = Cframe.CFrame
PickupPromtObj.Transparency = 0
PickupPromtObj.CanCollide = false
PickupPromtObj.Anchored = true
PickupPromtObj.Parent = newCrop
local PickupPromt = replicatedStorage.vUI.CropPickupPrompt:Clone()
PickupPromt.Parent = PickupPromtObj
end)
starscape?
Does anyone know why my game goes from 120 people to like 5 and does it over and over again it just spikes then goes down and up again
if u handle sanity on the client like this any exploiter will be able to completely disable it so if its important for ur game i would move it to the server
nah
ty
whats the inspiration it looks really cool
and it looks a lot like starscape to me
Can one deobfuscate a code?
insee
any obfuscated code is deobfuscatable
Is there a website for that, or does that require manual deobfuscation?
depends on what it was obfuscated with
return(function(IIllIllllIIIlIllllI,lIlIIIIllI,lIIIlllIIIIlIllIlIIl)local IlIIIIIlllI=string.char;
local IllIlllIllIIIlIlIIl=string.sub;
local IllIllIIlIlI=table.concat;
local lIIIlIIllIIlIl=math.ldexp;
-- Rest of the code...
Something like this
If I have no idea, is it still possible
yea u could probably find out
im not too knowledgable on obfuscators that are popular on roblox tho
you detect every millisecond or smth like that
probably like. ironbrew or luraph
unless you wanna spend some time making ur own i recommend a module like fastcast or securecast
The file is obfuscated with LZW payload
Ill try these deobfuscators you said
whats the best way to learn lua
amazing show
Okay it was obfuscated in Luraph
Whatâs the best beginner video for scripting?
starscape ah movement lovely
Why does playermodule sometimes make the script infinitely yield? (On the developer console, it never gets to PlayerModule print)
Guys do i use profile service? For my simulator
should I watch hiatus or brawldev's scripting guide?
You should
ts so fire
is that by using bodyvelocity or alignpos?
why doesnt the prox show up
replicatedStorage.Events.PlayerPlacedCrop.OnServerEvent:Connect(function(plr, player, oldCrop, Cframe)
local crop = replicatedStorage.Crops:FindFirstChild(oldCrop)
local progression = replicatedStorage.CropStages:FindFirstChild(oldCrop).Progression
local timeMax = crop.GrowthTime.Value
local stageTime = (timeMax / #progression:GetChildren())
local newCrop = replicatedStorage.Crops:FindFirstChild(oldCrop):Clone()
newCrop:PivotTo(Cframe.CFrame)
newCrop.Parent = workspace.LoadedCrops
print(timeMax, stageTime)
local stage = 0
repeat
stage += 1
newCrop.Build:ClearAllChildren()
local stageObj = progression:FindFirstChild(stage):Clone()
stageObj:PivotTo(Cframe.CFrame)
stageObj.Parent = newCrop.Build
wait(stageTime)
until stage == #progression:GetChildren()
print("Crop Finished Growing")
local PickupPromtObj = Instance.new("Part")
PickupPromtObj.Name = "PickupPromtObj"
PickupPromtObj.CFrame = Cframe.CFrame
PickupPromtObj.Transparency = 0
PickupPromtObj.CanCollide = false
PickupPromtObj.Anchored = true
PickupPromtObj.Parent = newCrop
local PickupPromt = replicatedStorage.vUI.CropPickupPrompt:Clone()
PickupPromt.Parent = PickupPromtObj
end)
yo r u ed he js said "why does the prox not show up" he asking a question
my stupid knife does its old animations even after replacing them what do i do
wat da hell is a codewar
you made sure the clone shows up on a normal part in non-runtime?
yea
can you make sure there is a proximity prompt in the part while in run-time, do it by finding it in the explorer
i translated a problem to lua and i need someone to approve it
i cant approve my own translation
I think that the background looks too empty, and the star is too dark for what it is
as for movement of the ships, I think that they move too fast considering their scale
and it'd look great if you added nozzles on the side of the spaceships to sell the idea of rotational thrust
does anyone know how i could make a smooth and satisfying odm gear system? please dm me if so
starscape đ
Would AI be able to script meaning there isnt a point in learning scripting rn?
anyone can code a two player obby system, where one player is on the skateboard which is controlling the direction, and one making it move. dm, (payment: robux, Iâm poor on PayPal)
Itâs ass at scripting
well i feel like it would get better or someone makes a really good ai
idk
how would i add the face animation to the starter character?
i can only get it to work on the rig
delete system 32
that fixed it for me
hi
why when i press export nothing happens?
is thedevking tutorial still the best tutorial?
never
his videos are not even tutorials
dont use his videos
watch brawldev instead
alr i will check em out
is it W? https://twiqet-web.netlify.app/
bot isnt up yet
but i tried to do my best on this website
feel free to comment and give me some feedback please!
Twiqet - Advanced Discord Ticket Management
Worked more on PurpleConsole
What's a good video for scripting basics?
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message:lower() == "/namekapat" then
local character = player.Character
if character then
local overheadGui = character:FindFirstChild("OverheadGui")
if overheadGui then
local username = overheadGui:FindFirstChild("Username")
if username then
local uiStroke = username:FindFirstChild("UIStroke")
if uiStroke then
uiStroke:Destroy() -- UIStroke'u yok et
end
end
end
end
end
end)
end)
whats wrong in my script ?
thx gng
fr đ„đ
none itâs cframe and velocity being replicated evey 0.25seconds, and interpolation/extrapolation in between
yes adding RCS is sm i wanna do
alr
kinda valid
Alan becker ahh
Whats the verdict on reuploading dead games
that is so cool
Whatâs the error?
Your console is showing
well depends on the game
my game
i mean yeah go for it if its dead you dont have anything to lose
Except the ad money
well whats the point of reuploading it then using ad money rather than just using ads on the not reuploaded actual game
stats are fucked on the old one.
i dont think youll get any much luck even if you do ads on a reuploaded game that is dead
if if if if if if
trust yourself a little vro
got mad trust issues
"Let me get some footage of my RC car to show the server, definitely won't have too much fun with this"
you should change hte cframe of hte block too
just my 2 cents
y
yo
get animate script
rig dont have animation btw
atleast i dont see it
Who should I watch to learn the basics of scripting I feel like brawldev doesnt explain a lot.
he explains the complete basics
watch a scripting tutorial on more advanced stuff ig
search up like apprentice scripting playlist
and then move up to advanced
qweekertom has some great videos
looks cool
If semeone can do somes script for me for free that doesnt took a day dm me it will be very helpful !
beggars can't be choosers
It take about a day for my chat gpt to make a actually working script smh
Learn and do by yourself đ
Only way
fr
Let me guess script for simulator game?
railguns and better explosion
anyone knows how to make a hug system?
Hug or bug?
Hug would probably require some server-client stuff and an animation
hug
the animation isn't that hard to do
As for the script, itâs up to preference; thereâs a lot of ways to do it.
I would make the first player fire to server to show request for a hug. Then, a second player can fire to the server to hug, and the server will handle it for both players
Iâm describing it very basic, but thatâs sorta the framework
Yeah ik that already but thanks for the info brother!
got a really random question when scripting do you type the whole words or just tab to to fill em out
i do enter to fill em out, typing the whole word is for chads
also how do you learn / practice scripting
im doing some really easy stuff beginner stuff like kill brick etc i keep following tutorials but cant seem to keep up or either i will loose motivation
it will take thousands of hours of conscious effort to become a master, losing motivation after the first few is just silly
yeah you right i phrased it wrong it just that i cant seem to learn from tutorials and idk what to do so i just get bored
for some reason I see the part but when i test pla I don't see it why is that?
you probably turned off can collide and left anchored off as well
Yo Can somone Help me I bought a game but everything for sale is 1 robuk how can I change that]
Also i dont have any of the things in my inv
I got it on clearly dev
What does that even mean
See I bought this game for 15 bucks on a website used by roblox devs called cleary dev

and the problem is i dont have the gamepasses in my inv and cannot chane its prices
You have to make new ones under your game
The ones there are probably owned by the people who sold you the game
And then you have to edit the code to use your gamepasses instead of theirs
Alright ur right
Bro i cant even find where he did the code

has anyone tried venturing out to programming other than roblox lua? how has that gone?
u mean a college degree? lol
i heard people get stuck to only roblox lua after some time
yeah basically ig, like learning other languages n wut not, like a real life "i work for microsft" type job?
bc of learning roblox?
im gonna intern at amazon soon, didn't start with roblox
learning lua these past few days / past week ish
honestly i think i got the hang of it, lua is so easy
OOOO thats so cool brah im genuinely so happy for you, im trying to learn roblox first before learning other languages, trying to get that programmer mindset before moving on
wut language u learn?
-first before moving on
i know a bit of python
OOOO
a bit of java
in school i mostly use cpp
most real world projects require u to know javascript
nice nice ncie, so some of a few on hand i see, very nice
how long did all that take u?
idk im lazy so i didn't really try learning it on my own, i just learned when school forced me to learn
over all regardless, very impressive im happy for u
but game dev is pretty fun so i'm like half motivated to try and learn it
AHAHHAHA WHAT, damn i wish shcool did that to me xD thats cool tho congrats on ur future job :v
oh fair enough thats understandable, im trying to learn n make games bc its true what they say ab roblox "infinite games but no games"
if you're trying to learn how to code, then honestly yea i'd recommend roblox game dev cause a lot of it is basic OOP
and that's what's gonna set u up for future jobs a lot of the time
just thinking in small parts
yes exactly, im j scared of not realizing that im stuck on the roblox world and cant do anything outside of it yk. whats OOP tho in this context?
and a lot of it correlates to how projects are made outside of roblox
im not very word savy yet on all this lingo
object oriented programming, like classes, or in this case modulescripts
reusing code blah blah blah encapsulation
roblox really teaches u this well
oh yes yes, after some time its j simple copy n paste from ur own stuff into other games w j a few modifications
and oh right, don't follow tutorials
and if u do, try to actually understand what people are writing or why they're doing things a certain why and see if it can be improved somehow
yes, i have tried learning to code for the last several years tbh n every time i do i get stuck in tutorial hell n give up after a few weeks
i mean, i think you see the problem
just stop doing tutorials and go make something from scratch
and if you say "that's too hard, i don't understand how to start" and just give up after thinking that then maybe programming isn't really for you
i appreciate the advice and the pictures, they are actually helpful especially that orange text boxes thing, because its somethjing that i struggle with when it comes to defining and making my thing yk
true true, its a mindset that one has to get rid of if they want to start learning, im still trying to do so so i appreciate it
bigger explosions and railgun firing visuals/ hit damage visuals improved
any thoughts on what i should improve for the damage impact visuals? i dont want it to be over the top explosions but needs to be visible yknow
explosions would indicate actual damage being done such as parts / debris coming off wouldn't it
Would any mid scripter like to join my dev team and help make a game like grow a garden.
my major problem is that in the expanse and real life, railgun slugs just go super fast and pierce straight through. now since its a roblxo game i cant rlly do that cause it wouldn't look cool, but i need something else that seems at least decently indicative
like right now i have a flash of orange on impact
Dude this is really good, keep up the good work đ„
ty
wdym
well yeah im trying to strike a balance between realistic and fun/cool
Like it just feels too symmetrical
Everything seems to be going in a certain order rather than randomized events
you mean like weapons all firing at the same time?
quick question, how do i make a part that spawns randomly? just like a horror game that is looking for a key (example). so that, the key place is randomized in somewhere. i really need this, please let me know :)
well or more like mostly random time
Yes
yeah thats because they all get spawned in at the same time
then as stuff slows down, ships move into positions where their weapons won't be able to target and slowly it becomes random
when players get ships, they'll obviously target at random times so it won't look bad at all, but for AI i'll have some math.random in there for "ai reaction time"
wdym
i feel the explosions are rlly big rn
Hm i dont seem to see much
Also one more cool suggestion
because of how im zooming the cam in the video it seems small but this size is:
Maybe when there's a explosion you can make the screen shake
yes
yes will be doing that because those r super cool
Yes adds realism and maybe
Make a cam goujg through an explosion
And then like there's a fiery effect on the screen
as well as depending on close to railgun, railgun shots also will also shake screen a bit
I don't know if that's a bit difficult tho
wdym
So like you go through the explosion like make it really big
And then you get like ash visuals or something on screen or something
Idk
hm
for some reason when i added to other tc on a seperate studio it worked
Not simulator but basically ye
Lol
can someone give me an idea to code someting? (not too complex)
gun
already made that
What's the most complex thing you've made?
same for me but simple ones
Twitter codes
sword combat system with block
Try spell-casting
Making a 'grow a garden' type of game, but the plot wont assign to the player. Its supposed to add a value to the plot and say the user on the GUI but it doesnt work.
That sucks
What sucks, the script or the fact that it doesn work?
The fact it doesnt work
I see youre requiring prior to connecting, you might be connecting after the player joined
Also no reason to contain the character added function in another function
Also if you sent both bits of code, did you print to find out which one's broken?
Because youre either not calling it or the method doesnt work
if any one wants a builder i can help
hm
There's much easier method
Ye, i was bouta say that im just gonna try another script instead of this one
Just make folder with plots on each of them add attribute with owner string and just make it check what plot dosent have owner
Can you explain that to me, since im pretty new to scripting.
Make a folder in workspace called plots in that folder add another folder called plot1 or something else in that folder u just created add attribute with name Owner Type string
Next make server script that when player joins it checks the plots for empty owner attribute
When it finds 1 it sets that attribute to the player name
And when player leaves it finds the attribute with that player names and it sets it to ""
U can add that it sets the sign next to that plot to the player name
Alright, thank you!
Np if u need smth just ping me
Which of these 2 is the value?
Second
The 1 on the right
Just leave it empty
The "" I ment in setattribute
Oh, alright
The first Owner is the name of that Attribute and the second is the value
In script
Yup
Ofc
Make sense
Haha
And the previous script that i used wont work?
Nope
U can copy what I said above and paste that to chat gpt look how he made it and based on that make you're own script
Or watch tutorials
Alright, thank you
Any Asian here who can help my game? Just a quick combat test. ( I am Asian so i need fellow w same ping as me đ )
ye
Yes
Im here
In like 72 hours
Kquit now
your character's lefthand should have folders called "R6" and "R15ArtistIntent"
idk just read the error
it just says it
yo anyone on?
smh why do testers expect pay ?
Uh cuz they spent their time for you?
if it says voluntary in the ad ? and they still apply
but if its not out of enjoyment but instead to find bugs and write detailed reports kinda makes sense 2 pay em
I usually just get a couple of friends or acquaintances that would be interested to help with that
i feel like getting testers is too much hassle
it really is most of the time
they should be honored they are the first one to play my game !!!
Somebody give me a scripting task to do in studio
@pearl inlet
so uh
does for example minecraft
look like perlin noise
mhmhm
i have find the problem ty
but it has some irregularities
so pretty much combining perlin noises allows you to make those irregularities
yes i do that?
well you can
is there like a problem with my perlin noises?
but there is one more problem
with perlin noise
in general
it's hard to make it random
what do you mean?
cuz if you make a math.noise(1mil,1,mil)
perlin noises is a controlled random isnt it.
it will look flat
as perlin noise gets more regular
the further it gets
(the roblox one)
yeah?
it return only
-1-1, but u can scale it though
sorry but what do u want to say, i dont really understand why you explaining all of this.
Perlin noise is supposed to be not random
well kinda
what does if mean in scripts someone help đ
You can manipulate it to be somewhat a bit random, but in general it isn't
unless you make a custom perlin noise
if something then
dosomething
what doed this mean
If is a function trust
It's used to print something in the console
if("hello world")
basically if works like english in a way
if (condition) then
--enter here what you want it to do
oh, so i can print like papers in studio?
no, he is prob trolling
oh, and im not trolling
it's how people used to be i guess
Yes
like during 2016 era i used to do the same but it was quite a long time ago
Btw here's a really good coding tip:
In every script do this for better performance:
do
-- make/paste your code here
end
You'd be suprised at the amount of people that ask questions like that, at this point it isnt trolling at all
ive just started rn
IK what apis are like the stuff that runs the code is what it is, so i can make scripts

If u can't build and steal building in 2025 just give up deving bro
Fr bro
ok
help fix this pls
do
if parent.enum
then add
+1 walkspeed every step
when every step
if walkspeed 16 then walkspeed 0
then
add parent.child remove walkspeed.99
add 0 to walkspeed 99
or +1
(end
(end
(end
Who can script for me for free
Fr fr
Who
Like its Ă trash smiluator every time u jump u get older
Please put it in block code format broski
Lame idea
```lua
-- code here
```
no one fr fr đ„
whats the purpose of do
for i, v in pairs(self.ActivePlayers) do
if team1 == false then
v.Team = self.RedTeam
team1 = true
elseif team1 == true then
v.Team = self.BlueTeam
team1 = false
end
local SelectedSpawn = Spawns:FindFirstChild("SpawnPoint".. math.random(1, 4))
task.defer(function()
v.Character:FindFirstChild("HumanoidRootPart").CFrame = SelectedSpawn.CFrame
end)
PlayerLoader.Load(v)
self.TeamsUi = game.ReplicatedStorage.Assets.UI.TeamsUI:Clone()
self.TeamsUi.Parent = v.PlayerGui
self.TeamsUi.Enabled = true
task.spawn(function()
v.Character:GetAttributeChangedSignal("Eliminated"):Connect(function()
-- here
end)
end)
end
Is this a fine way to manager my team system? Where I just listen to an attribute to increase either Blue or Red teams score
local hello = "Hello"
do
local name = "John"
print(name) -- It will print John
end
print(hello,name) -- It will print Hello, nil (as do end is a different block of code)
but if something is above it
so its like running a script inside a script
but not change it?
thats like a function running immediately instead of waiting to be called
basically it is just a
local function a()
end
a()
o ye
do end creates a scope
But in my experience it doesnt have any practical uses
ÂŻ_(ă)_/ÂŻ
how do I add a luck boost
Nice and fresh from the forums, replace 0.25 with 0.25*multiplier
If the multiplier is 2 it will be 2x as likely to land on special
Alright
You'll probably want to send multiplier parameters to the function
my plan is to multiply the final luck so the ranNum value will be 10% lower so i have higher chances to get rarer stuff. It's a luck boost for "everything" but not really ykwim
No since the luck is a value in a folder in the player. Js need to locate it in replicated storage, and i cant use serverstorage since its a local script
can you guys help me my code wont run here it is
do
if.enun.part= "kill brick"
then
reset to part.variable.spawn, keep health - (this is for keeping the health)
add "death counter"
make 1
create.text
text.variable.is: "oh no"
text.variable.is: "u died"
text.variable.is: "too bad"
(end
(end
wish it was that easy đ this does no difference
Who wanna work on a game with me
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PlayerValues = ReplicatedStorage.PlayerValues
local GamepassEvent = ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("GamepassPurchased")
local VFXGamepassID = "000000"
local VFXOwners = {
}
function giveGamepass(Gamepass, Player)
if not Player then
return
end
if not Gamepass then
return
end
local UserID = Players:GetUserIdFromNameAsync(Player)
if MarketplaceService:UserOwnsGamePassAsync(UserID, VFXGamepassID) == true then
end
end
how do i insert the player into VFXOwners table
table.insert(VFXOwners, Player.UserId)
Bro people here will never script 10 mins for free
why would we
Cause its take like a little bit of ur time
BRO NEED TO PAY 2 BILLIONS ROBUX FOR 10 MINS OF SCRIPT
Say there's a plumping problem, something easy that you need a little bit of knowledge and could do it yourself if you learn but you could also call a plumber if you want and it takes 10 mins to fix
Would the plumber do it for free?
no one owes you anything
- you are demanding people to script for you for free on what is most likely a slop simulator game
then do it yourself
What are you talking about
Do you know how weighting works?
yes
Okay so why wouldn't it work
default is .75,.25 multipy each by say 2 u get 1.5,.5 , the probability remains the same you just doubled the sample space along with chance
I did not say multiply both
then its not "2x luck"
I take it you didn't read this
Bro
its just a illusion
BRI
prove me wrong
it alters the chance, but its not 2x luck, hence its false
now lets say u have more than 2 items, how wouldu decide what to multiply with the factor
its def more math than jsut multiplying the chances
it really depends on how the rarity system is setup
Weighting
exactly what i am saying
You're only doing a two team system, right?
Obviously it's not going to be exactly 2x, all popular rng games lie
And that question was stupid
youd have to increase the odds of the rare items by a factors, while reducing the odds of the common ones by the amount of chance the rare items increased
Use a weighted chance system and multiply the weight of the "rare" items by two when you have a double modifier
easier said than done when you have a large pool of items
HEY
No it's not
works for sure tho
How are you storing the information of your items
im not building this anything , im just commentig on how multiplying by an arbitrary factor does nothing much
no its not what?
local Njerez = game.Players.LocalPlayer
local message = "Për atdhenë! Ndero Shqipërinë!"
game:GetService("Chat"):Chat(patriot.Character.Head, message, Enum.ChatColor.Red)
wait(2)
game:GetService("Chat"):Chat(patriot.Character.Head, "Gjithmonë do të jemi të fortë! Shqipëri, lindje e shpresës!", Enum.ChatColor.Red)
``` why doesnt work
It's not as hard as you're describing it
it is
it does increase the chances of the rare items, but u also gotta compensate by reducing the odds of the non rare tiers
Bro
otherwise ull be out of the range of the 0-100% chance
yes , and doing that manually isn't the ideal way
you have a dictionary with each rarity as a sub table, if it's a member of "rare" multiply weight by multiplier
wouldn't worry much about the range tbh
determing what to increase and what to decrease is problematic
depends on how the selection system is set up lol
fair
It's weighted
If it exceeds 100 that doesn't matter
show it done with a pool of items like pet sim
you can always convert the sample space to 0-100
I can show you how I did my weighted system for my procedurally generated tile system, it shouldn't matter the size of the array
If the sum of rarities exceeds 100/1 that doesn't matter
In a weighted system
function module.ChooseWeighted<K, V>(tbl: { [K]: V }, chanceMapper: ((V) -> number)?, random : Random?): (V, K)
if typeof(random) ~= "Random" then
random = Random.new()
end
local totalWeight = 0
local first : V, key : K
-- Get weights
local weights = {} :: { [K]: number } -- reverse lookup for choosing alg, dont bother running chanceMapper in both loops
for k, element in tbl do
if not first then
first = element
key = k
end
local weight = if typeof(chanceMapper) == "function" then chanceMapper(element) elseif typeof(element) == "table" then (tonumber(element.Weight) or 0) else 1
weights[k] = weight :: number
totalWeight += weight :: number
end
-- Choose from weight
local index = random:NextNumber(0, totalWeight)
totalWeight = 0
for k, element in tbl do
totalWeight += weights[k]
if totalWeight >= index then
return element, k
end
end
return first, key
end
Now obviously there's a lot of better ways of going about this but this has worked extremely well for me and I'm running this roughly 500 times a second
You can pass a specified function to give elements specified rarities
So you could use it like
local ItemPool = {}
local Item = module.ChooseWeighted(ItemPool, function(element)
local Weight = element.Weight or 0
if element.Rare then Weight *= 2 end
return Weight
end
In my case (because I have some special tiles) that sometimes appear I have it set like this:
return General.table.ChooseWeighted(CachedData, function(element)
local maxAmt = tonumber(element.MaxAmount) or 0
local curAmt = tonumber(existingTiles[element.ModuleScript]) or 0
if (maxAmt > 0 and curAmt >= maxAmt) or table.find(BadTiles, element.ModuleScript) then
return 0
else
return tonumber(element.Weight) or 1
end
end, SRand:GetRandom(Seed))
Pool = {[1] = {Common = 0.25,ReallyCommon = 0.5},[2] = {Rare = 0.15,ReallyRare = 0.1}}
function GetRandPrize()
local Multiplier = 0
local Weight = 0
for ChanceType,RollTable in Pool do
if ChanceType >= 2 then
Multiplier = 2
else
Multiplier = 1
end
for Roll,Chance in RollTable do
Weight += Chance*Multiplier
end
end
local RandNumber = math.random(1,Weight*100)
Weight = 0
for ChanceType,RollTable in Pool do
if ChanceType >= 2 then
Multiplier = 2
else
Multiplier = 1
end
for Roll,Chance in RollTable do
Weight += Chance*Multiplier
if Weight*100 >= RandNumber then
return Roll
end
end
end
end
print(GetRandPrize())```
Obviously you can make it look nicer/more efficient but thats just something quick I made
Chatgpt
?
Deepseek
đ
there are free services ig
Do u know a ai to code
i wanna try mailchimop
Cause i cant afford scripter and im not a scripter
but theyre exp asf
Bro
im not a scripter too
Learn how to script
. Tell an ai pls
yoo
BRO I WONT LEARN HOW TO SCRIPT TO CREATE 1 GAME
hi
wat u want
Get a Job.ai has been a game-changer for me! As a recent graduate in computer science, breaking into the AI industry seemed daunting. But this platform
DO U KNOW an ai to script cause im not an scripter and im poor
Im builder
free services is pretty scammy sometimes, if smth is free, ur the product, esp in these kinds of area
go learn
jacks of all trades
Not really they just have limited features
I'm a gfx designer, scripter and partial builder
these r smtp right, ur sure mailchimp works?
time to update my discord
Partiao
Partial
Ok good for u bye
It should work let me see the docs of mailchimp
they have
Yes, that's correct
gotta figure this shii out
hm the welcome email might just be a subscription email ngl
yeah
but then we gotta insert the emails ourselves
in the end
cuz mc doesnt know wat emails we created
if this is the case
might as well send the emails ourselves

Why isnt my chat bubble showing?
NQv/vcv
Im trying to make a game called click for letters, basically u click and u get enough letters to type a sentence
what kind of script is it
import random
import string
chars = " " + string.punctuation + string.digits + string.ascii_letters
chars = list(chars)
key = chars.copy()
random.shuffle(key)
plain_text = input("Enter a message to encrypt: ")
cipher_text = ""
for letter in plain_text:
index = chars.index(letter)
cipher_text += key[index]
print(f"original message : {plain_text}")
print(f"encrypted message: {cipher_text}")
cipher_text = input("Enter a message to encrypt: ")
plain_text = ""
for letter in cipher_text:
index = key.index(letter)
plain_text += chars[index]
print(f"encrypted message: {cipher_text}")
print(f"original message : {plain_text}")
YO
i have multiple which one do you want?
I MADE THAT EXACT GAME
python user 
jk jk
HANG ON
@weak radish can we dm instead of here
what does this mean đ
You don't need to spawn a thread for the attribute changed signal, connected functions run in their own thread
I don't know how else you're accounting for players you add later but you should most certainly put this whole loop in a separate function to clean it up
ur trying to run a function from a boolean
which yk, those dont have that cause they are booleans
local boolean = true
boolean:Destroy() --> this erros
can you help me fix it
youd have to show me ur code
discord not letting me send code
Booleans aren't instances or tables with Destroy methods
screenshot then
Send line 40 of your Config code
dotn share the full script, just the segment where its erroring
--[[
]]
-- Settings
local preventToolUsage = true -- Set this to false to allow players to equip tools inside the GZ.
local fadeDuration = 0.7 -- Duration of icon fade effect.
local forcefieldStatus = false -- False for invisible forcefield, set to true to make the forcefield visible.
-- Main code, be cautious!
local TweenService = game:GetService("TweenService")
local part = script.Parent
local playersInPart = {}
local function tweenTransparency(imageLabel, startTransparency, endTransparency)
local tweenInfo = TweenInfo.new(fadeDuration, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
local tween = TweenService:Create(imageLabel, tweenInfo, { ImageTransparency = endTransparency })
tween:Play()
end
local function onPlayerLeave(player)
local forcefield = playersInPart[player.Name]
if forcefield then
forcefield:Destroy()
end
its supposed to be a safezone script
Can you put the code in a code block? It's easier to read in syntax highlighted blocks
```lua
```
asddsad
]]
-- Settings
local preventToolUsage = true -- Set this to false to allow players to equip tools inside the GZ.
local fadeDuration = 0.7 -- Duration of icon fade effect.
local forcefieldStatus = false -- False for invisible forcefield, set to true to make the forcefield visible.
-- Main code, be cautious!
local TweenService = game:GetService("TweenService")
local part = script.Parent
local playersInPart = {}
local function tweenTransparency(imageLabel, startTransparency, endTransparency)
local tweenInfo = TweenInfo.new(fadeDuration, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
local tween = TweenService:Create(imageLabel, tweenInfo, { ImageTransparency = endTransparency })
tween:Play()
end
local function onPlayerLeave(player)
local forcefield = playersInPart[player.Name]
if forcefield then
forcefield:Destroy()
end ```
Main code, be cautious!
judging by the output window, this is the one that errors out
local function onPlayerLeave(player)
local forcefield = playersInPart[player.Name]
if forcefield then
forcefield:Destroy()
end
yes
Where are you setting playersInPart?
Im gonna assume this fucntion is hooked up with a touchended event
is this right?
i have no idea i bought this game had so many bugs had to remove lot of guis bc game was hella laggy after you reset characther
yes
Ctrl f playersInPart
this?
okay heres the issue, the Player variable is not really the player, is the part that has finished touching
There's another instance of that key being set, keep going
youd have to do this
can i pay you to fix it đ
local function onPlayerLeave(Hit : Part)
local forcefield = Hit.Parent:FindFirstChildOfClass("ForceField")
if forcefield then
forcefield:Destroy()
end
That doesn't sort out the playersInPart being set
the error is in forcefield:Destroy()
