#code-discussion
1 messages · Page 9 of 1
awesome!
How are u loading the R6 Character?
i have no idea what thart is LOL
oh fr?
nah it workls when i put it into r6 mode
yeah it boogy
can someone help me make a horse mount
tysm man
can i add u or pay u something
for doing that
what exactly does the .1 mean here?
the animation plays for 0.1 seconds
thanks
nah all good dw
can i add u man
nah sos don't add people gets flooded 2 fastr
all good man
u cool if i mention u in here if i need smth?
sure
guys can someone help me please
with?
my game is getting full exploited
how do I launch my website that i coded from vs code
how is it getting expoited?
Don’t know there hacker that can kick us and remove map
Can you screen record a video?
Here the kick annonce
But for the removing map don’t have proof
Was this in studio, or when you were playing the game?
When playing
Yes
did you add any free models into the game?
Nope
do you have any idea how it couldve happened/started?
No it was like a hacker joined was removing map or was directly kick us
But me and the owner we gonna redo eveything
Game
Yeah
After
?
After shutdown?
no if u set it to private it automatically shuts down server
Alright so after set it to private?
Step 2?
doing a quick search, i found this article, read this, see if it helps, seems simiolar to your situation
Alright
anything useful?
I watched require and it’s not that
It’s probably a free model but don’t know what
i suggest no matter how damaging it is to your game, delete every free model imediately
Alright thank for the help
yeah fs, feel free to dm if u need more help, keepo the game private for at least 36 hours and clear out every model in that came
Wassup everyone
@somber vault you invest?
I may have a game for you with good results
need scripting help anyone?
dont invest anymore sorry
oh sure ! no worries
would you help me learn scripting?
like i know a good amount to make a basic for example clicking simulator but i would make a few mistakes
start witht the brawldev series on youtube
thats how i started
OMG I DID
i have done like 5 series quit coding 5 times it was such a good series
I’m trying to optimize my game to simulate bouncing thousands of parts on a trampoline. Currently I’m just using assemblylinearvelocity to move the parts, but I don’t know if that’s unoptimized or if there’s something more efficient I can use.
Using the engine physics with that many parts is gonna be unoptimized no matter what. You should calculate the paths each part takes manually
i plan on making the entirety of versailles, along with its interior. is it possible to unload certain items from the world whenever you're not near them? i was thinking about unloading whenever you're far away from something and the entirety of the interior whenever you're outside, and even while you're inside some rooms are still unloaded until you're in them. if so, how? (below is ~800 parts)
maybe lowkey
if theres 800 parts id say youd have too like group it and i guess script it like a radius around you and if any parts in that group around in the radius they stay loaded and the ones outside the radius unload
but then youd have issues with unloading the parts and reloading them
so its gonna be laggy either way @hazy night
oh brudda
Hello im very new to coding and such but i seem to have a issue on this
well i mean what can i say man thats 800 parts!
ill probably just keep some parts in serverstorage because i plan on using it for roleplays and such and use it as needed
or rooms
etc yea
i mean you could do it in segments
if player is inside room A which would be a part or group then whatever is out of there view while there in the room just dissapears but say they enter the hall way some things come back and the ones still rendered out of your distance are still gone
but youd have too do alot of coding too make it efficent i feel also youd have too lay that all out just for a rendering script
youd have too have an amazing amazing game for it too be that an efficent task though
like i feel theyd charge you alot for that
Why dont you turn some parts too unions?
or remodel some of the parts youve already used on the structure
Capital P
let me try one second
most of it is unionized and meshes
nope did not work
OOF
ts is crazy
bc id say if its in via parts
remake the structre and make less parts same thing
i mean you can still do that realistically @hazy night
but thats a personal thing like me personally i wouldnt go through all that
What u even trying to do?
heres a close up
ill probably just put most of it in server storage and use it as needed
ii think make a button or something
when you touch the red thing
Im very new so im just learning the basics
in the video
No no geniunly just trying to change the aspects of the red block
through coding instead of doing through properties
Lemme list a few things then for u
Yeah, im just starting doing this so im not very good
honestly thats alot of lines for that single thing
i do understand you just started
just saying you should look for efficent results with less length
but its okay too have alot of code too
First red underline (its case sensitive so capital P)
Use Enums for Material and Lapis so e.g. Enum.Material.Brick
Color use Color3.fromRGB(0, 255, 0)
👍
how do i specify the object when using a Enum
show
Ok lemme rephrase
dont let that stop you @lyric hull scripting can be honestly just stupidly draining
basePlate.Material = Enum.Material.Brick
its like
the baeplate script works
but the one under it doesnt
the baseplate script actually adapts to what i said
while this one does not
Swap out baseplate for peice ere
Peice.Color = Color3.fromRGB(0, 255, 0)
Peice.Material = Enum.Material.Brick
Then also
Peice.Color = Color3.fromRGB(0, 255, 0)
thinker
🫡
@ivory atlas
what's up
u can just ask that chatgpt next time it will give you an explanation and solution
oh i shoudve
as long as youre reading the explanation youre learning
it takes the fun out of the community 🙏
Enum is a value, it's basically just an array really. It can be visualized similar to:
Enum = {
Material = {
Brick = "Brick",
Plastic = "Plastic"
}
}
i mean i honostly thought this was awsome
of course it's a lot more extensive than that
i learnt enums from a person on discord
so say part.enum, then my etc values and traits too said object?
im just making sure
Enum is just a reference for things, like:
part.Material = Enum.Material.Brick
part.TopSurface = Enum.SurfaceType.Weld
there are a lot of enums that can be applied to a lot of things, like
UserInputService.InputBegan:Connect(function(inputObject)
if inputObject.KeyCode == Enum.KeyCode.F then
-- F was pressed
end
end)
It's a special data type that defines a set of constants
do you have a game in mind you want to create
if you just open a code editor and type "Enum." and look at the options it auto fills, you can see all of the enums in the roblox api
Yes but im not near the skill i need to be at right now
i have lots more to learn before attempoting my first game
tdy i learnt prints variables and propirties
Enum.Material.Brick is literally the same thing as "Brick". It's the same thing as referencing a massive table and is most useful for intellisense
what do you have in mind
oh i see
my first project will most likely be something more so simple like a obby but with like a cool future. instead of having pre made builds i will script somethjing where you have a tool with a limited amount of objects that you can use throughtout your obby
you can name it material before or wtv
like part.material but you establish that 100 with enum? @ivory atlas
you don't change Enums - you just reference them. just imagine Enum as being a big dictionary. any time you see a drop down list under properties for an instance, that's an Enum list
like this is the Enum list for Material
then when you want to set the material of a part, you can reference things from that enum list, like:
part.Material = Enum.Material.Pavement
my point was kinda like after enum you establish the traits and properties clearly too the game
like that locks it in n shit and makes it work?
Don’t do task.wait (5) pls
do task.wait(5)
no space
You spelt Color with lowercase c
how do i test plr.idled it wont print at all
@lyric hull thats what i was about to say, but you told me you got no error so i thought its normal
next time just pay attention what your output tells you
cam you help me link messaging to this phone
would this require alot of time to make?
dont think so
congrats
how do i move something in one direction given the magnitude and direction
you uhhhhhhhh
veldocitye = speed * diteicuton
why is my script so fin laggy
local folder = rs:WaitForChild("Geppo")
local event = rs:FindFirstChild("GeppoEvent")
if not event then
event = Instance.new("RemoteEvent")
event.Name = "GeppoEvent"
event.Parent = rs
end
local function GeppoEffect(plr)
local c = plr.Character
if not c then return end
local hrp = c:FindFirstChild("HumanoidRootPart")
if not hrp then return end
local shockwave = folder:FindFirstChild("GeppoShockwave"):Clone()
shockwave.CFrame = hrp.CFrame * CFrame.new(0, -2, 0)
shockwave.Parent = workspace.FX
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local shockwaveTween = tweenService:Create(shockwave, tweenInfo, {
Size = shockwave.Size * 2,
Transparency = 1
})
shockwaveTween:Play()
local sound = folder:FindFirstChild("GeppoSound"):Clone()
sound.Parent = hrp
sound.Volume = 1.5
sound.PlaybackSpeed = 1
sound:Play()
game.Debris:AddItem(sound, 1)
game.Debris:AddItem(shockwave, 0.8)
end
event.OnServerEvent:Connect(GeppoEffect)```
Since the script uses the tweenservice, define it outside of the function and at the top of the script to avoid getting it every time the function is called, also maybe task delay + destroy instead of debris at the end might work better possibly??
Also to avoid waiting on find first child every time for the shockwave and sound specific to this function, it's faster to just store a reference to them before the function definition (to avoid errors you'll have to check whether they exist in the function, so something like "if not shockwave or not sound return end", for example)
yo i adjusted it a bit but the lag is still there. ```local rs = game:GetService("ReplicatedStorage")
local folder = rs:WaitForChild("Geppo")
local tweenService = game:GetService("TweenService")
local shockwaveTemplate = folder:FindFirstChild("GeppoShockwave")
local soundTemplate = folder:FindFirstChild("GeppoSound")
local event = rs:FindFirstChild("GeppoEvent")
if not event then
event = Instance.new("RemoteEvent")
event.Name = "GeppoEvent"
event.Parent = rs
end
local function GeppoEffect(plr)
local c = plr.Character
if not c then return end
local hrp = c:FindFirstChild("HumanoidRootPart")
if not hrp then return end
if not shockwaveTemplate or not soundTemplate then return end
local shockwave = shockwaveTemplate:Clone()
shockwave.CFrame = hrp.CFrame * CFrame.new(0, -2, 0)
shockwave.Parent = workspace.FX
local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local shockwaveTween = tweenService:Create(shockwave, tweenInfo, {
Size = shockwave.Size * 2,
Transparency = 1
})
shockwaveTween:Play()
local sound = soundTemplate:Clone()
sound.Parent = hrp
sound.Volume = 1.5
sound.PlaybackSpeed = 1
sound:Play()
task.delay(1, function()
sound:Destroy()
end)
task.delay(0.8, function()
shockwave:Destroy()
end)
end
event.OnServerEvent:Connect(GeppoEffect)```
i assigned the video to see if there is any lag
here is the client sided script
local rs = game:GetService("ReplicatedStorage")
local plr = game.Players.LocalPlayer
local event = rs:WaitForChild("GeppoEvent")
local MaxGeppos = 6
local anims = { "117809230080363", "113416058649629" }
local an = 1
local function setupGeppo(c)
if not c then return end
local hum = c:WaitForChild("Humanoid")
local hrp = c:WaitForChild("HumanoidRootPart")
local Geppod = 0
local CanGeppo = true
hum.StateChanged:Connect(function(_, newState)
if newState == Enum.HumanoidStateType.Running or newState == Enum.HumanoidStateType.RunningNoPhysics then
Geppod = 0
end
end)
local function FireGeppo(input, typing)
if typing or Geppod >= MaxGeppos or not CanGeppo or input.KeyCode ~= Enum.KeyCode.Space then return end
if hum:GetState() ~= Enum.HumanoidStateType.Freefall and hum:GetState() ~= Enum.HumanoidStateType.Jumping then return end
Geppod += 1
CanGeppo = false
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://" .. anims[an]
an = 3 - an
local animTrack = hum:LoadAnimation(anim)
animTrack:Play()
local bp = Instance.new("BodyPosition")
bp.MaxForce = Vector3.new(100000, 100000, 100000)
bp.Position = hrp.Position + Vector3.new(0, 40, 0)
bp.D, bp.P, bp.Parent = 1000, 3000, hrp
game.Debris:AddItem(bp, 0.2)
event:FireServer()
animTrack.Stopped:Wait()
CanGeppo = true
end
uis.InputBegan:Connect(FireGeppo)
end
setupGeppo(plr.Character)
plr.CharacterAdded:Connect(setupGeppo)```
tbh idrk whats the problem. whenever i try to add any type of fx it js makes it worse, i tried adding the wind effect from that clonetropper guy and my whole game became a slideshow
im not sure but i used to suspect https://www.youtube.com/watch?v=aTsvzP16x8k&t=269s, but i find it impossible since it only lags when i geppo
You can edit the game and Download it
Discord: https://discord.gg/dbMeFEQtEA
Here is the Model:https://www.roblox.com/library/14616590532/Water-System-V1
Hmmmmm well the only thing I see left to change is maybe also putting the "tweenInfo" before the function since it's always the same??
Not sure what else could be causing lag other than that potentially
Yo can anyone be my scripting mentor
anybody know why my shiftlock is like this
https://streamable.com/4pxbv9
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local head = char:WaitForChild("Head")
local camera = game.Workspace.CurrentCamera
local runservice = game:GetService("RunService")
runservice.Heartbeat:Connect(function()
if char and head then
camera.CameraSubject = head
end
end)
AutoRotate seems to be turned off
ah alr ill try turn it on
then or smth
i thought autoRotate was always on
If for whatever reason setting the subject to head breaks it, use camera offset instead of setting it to the head for the same effect
It should be
how do i do that
tried it but same result
It's a property
where do i look under
I think it's humanoid
i looked at chatgpt but it didnt say that offset is a humanoid property
Skidder is skidding
how to fix this camera problem
hi
can you ask me
if you summon hordes of enemies attacking into one player but it doesn't lag.
how it does work when it rlly need a take time to respond and optimized.
does anyone happen to know how something like this could be made?
I'm talking about the shuttle being smooth on both clients
perhaps each client has its own shuttle that gets calculated individually?
nice job!
can you help me link messaging to this phone
yo can u help
im in bed
oh lol
im working on the same thing too!
dam nice
i got some screenshots saved
the kernel I already got started with, iBoot is being reworked, and the UI will be getting a complete overhaul and reorganization
it also features low level software
hey guys! im using this gerstner waves model "https://www.youtube.com/watch?v=aTsvzP16x8k" but i find that adding scripts like windcontroller and my geppo script make the game perform like a slideshow. i have turned the render distance by so much yet it doesnt budge, yet when i delete the waves completely it fixes and every script starts to run smoothly, is there any way to go about this? is there any alternative gerstner waves? i have seen games like rell seas, peak seas and some other games on the devforum perform it perfectly without any lag in their systems. help would be appreciated
You can edit the game and Download it
Discord: https://discord.gg/dbMeFEQtEA
Here is the Model:https://www.roblox.com/library/14616590532/Water-System-V1
can you help me link messaging to this phone
So umm guys my ai
Peak
Most useful codeassist suggestion
Hiring a advertiser that can advertise my newly published RNG game on platforms like Discord, twitter and youtube (mainly discord)
DM me
Payment: $5 or 1,000 robux per 1,000 visits
can someone help me add the message system to this phone i have tried already if someone can help me from there will be great and appreciated
How to make ragdolling smooth , like when o see another player ragdoll in my game it’s like he teleports and I can’t see him ragdoll down the hill
Do you guys know if the scriptmate plugin is any good for learning lua?
Are there goated scripter Here?
Yo
I need a scripter for my friend game it has 67k visits no joke dm me if you want to be a scripter for his game
i have a shift to sprint and whenever i use my roll / slide the animations from the two overlap if i use the shift and press one of them any ideas on how to fix it?
I've taken a look at it, the full version is paid but judging from the free version it really only covers the bare bones basics of Luau, hence better to just learn from other places (BrawlDev has a beginner series for a total start and advanced scripting which is also a good introduction to something a bit more complex) but the actual API reference/documentation is the best choice since it's official by Roblox and contains the most info, literally everything is documented
how can i connect a pathfinding script to a localscript?
i tried to do this but it doesnt work
I see I see, how would you go about going through the actual doc to find what you need in that regard then?
you don't need the if statement
Wait() returns nothing
alr but how can i do it so when the npc is at the specific waypoint it prints something like how i tried to do with the if statement
just print it on the server
The site is not too badly structured, but the best choice is to literally right click on whatever function you don't know and click on "help" at the bottom of the context menu or "go to definition" (something like that) and it will automatically open the page of the site
if you want it on the client, use a remote event
its good?
yes
The best part of using the "go to definition" is that it also works for user defined functions, it automatically jumps to its definition, even if it's in a separate script
ty
@stuck radish also, you think you can help me here?
you won't be able to move any other character other than yourself using a localscript, unless its networkowned by the client
i want just to show a text in the textlabel in the left up corner
remote event
when the npc is at a specific waypoint
and i do the script in the same script with pathfinding?
your pathfinding remains exactly the same
you just need an extra line to fire the remote event to all the clients
yeah
and on the client you receive it and display at which waypoint they're at
going to try now
what would be some good scripting functions to learn if you want to make a detection system (sort of like padyday)
I have tried making one it didint work how i want it to work
workspace:RayCast()
local function csp(npc, player)
local npcPos = npc.Head.Position
local playerPos = player.Character.Head.Position
local direction = (playerPos - npcPos).unit
local params = RaycastParams.new()
params.FilterDescendantsInstances = {npc}
params.FilterType = Enum.RaycastFilterType.Blacklist
local rayResult = workspace:Raycast(npcPos, direction * 50, params)
if rayResult and rayResult.Instance.Parent == player.Character then
return true
end
return false
end
what will this do?
i have tried a diffrent method, it sort of works, just it didint meet with one of my standarts.
code:
local DetectionPart = game.Workspace.Part
local waitTime = 5
local PrintMessage1 = "5"
local PrintMessage2 = "10"
local PrintMessage3 = "15"
local PrintMessage4 = "20"
local PrintMessage5 = "25"
script.Parent.Touched:Connect(function(otherPart)
if otherPart.Touched then
print(PrintMessage1)
wait(waitTime)
print(PrintMessage2)
wait(waitTime)
print(PrintMessage3)
wait(waitTime)
print(PrintMessage4)
wait(waitTime)
print(PrintMessage5)
end
end)
like
it detects and everything, but its supposed to go up in incerements and only repeat from the start after not detecting a player for 5 seconds
local DetectionPart = script.Parent
local waitTime = 5
local debounce = false
local playerStillTouching = false
local printMessages = {"5", "10", "15", "20", "25"}
local function startCounting()
debounce = true
for _, message in ipairs(printMessages) do
if not playerStillTouching then
debounce = false
return
end
print(message)
wait(waitTime)
end
debounce = false
end
DetectionPart.Touched:Connect(function(otherPart)
if not debounce then
playerStillTouching = true
startCounting()
end
end)
DetectionPart.TouchEnded:Connect(function(otherPart)
playerStillTouching = false
wait(5)
if not playerStillTouching then
debounce = false
end
end)
heres a better script
does it do what i wanted it to do
i see it works very simmilar
yes
it dosent go up in increments though, it just goes 5 for 14 times, then it starts spamming 5 and 10s, and after you leave for 5 seconds go back it doses the same
is it possible if you could make it that after those 14 5s it sends one 10?
then stops tracking
local DetectionPart = script.Parent
local waitTime = 5
local debounce = false
local playerStillTouching = false
local touchCount = 0
DetectionPart.Touched:Connect(function(otherPart)
if not debounce then
debounce = true
playerStillTouching = true
touchCount = 0
while playerStillTouching and touchCount < 14 do
print("5")
touchCount += 1
wait(waitTime)
end
if playerStillTouching then
print("10")
end
debounce = false
end
end)
DetectionPart.TouchEnded:Connect(function(otherPart)
playerStillTouching = false
wait(5)
if not playerStillTouching then
debounce = false
end
end)
this should work
now it only spews out 5s
and it was 14 because i was moving 14 times
like
it spews out one 5 the first time you touch it
then it starts adding 5 each time you move
so it goes
5
for 5 seconds, then it just spews out a 5 each time you. move
until forever
please use task.wait cro, its way better than wait()
is it possible in some way to make homing shot with a raycast-based gun?
tween service?
track da player
i dont think you can make curves with just tween service
nvm then
Why does linear velocity act weird when I turn of cancollide
why is not working?
it doesnt show the text
in the label
errors in output?
nope
put prints
in the script? or local
both
alr
Playergui pls
Why does linear velocity act weird when I turn of cancollide
huh
Your supposed to use player gui
in localscript?
it doesnt work
and ik if the localscript is in the startgui > screengui you dont need anymore localplayer
I think u spelt it wrong bro
this is ez dude
then the event is the problem
and what should i do?
idk
ig you got this wrong what i want to do is to print something in the output when the npc arrived at waypoint position
example: the npc is moving, he arrived at a waypoint and it prints in the output "the npc arrived at waypoint1"
it prints for me in the output right now when the npc is moving and when the npc arrived at waypoint it doesnt print anymore it prints only the npc move
thats step 1
now you need to send the index of the waypoint
then u can print
text.Text = "Waypoint: "..waypointIndex
in localscript where text is or in the normal script?
on the server you do FireAllClients(waypointindex)
alr
waypointindex = i in your case
not again 😭
is this good?
i changed the text.Text in print just to test if its going to print in the output
now you need to receive in the connected function on the client
I suggest reading through the basics though
- Beginner Course: Roblox Scripting for Beginners (approximately 5 hours)
- Advanced Course: Roblox Advanced Scripting (approximately 15 hours)
it doesnt print anything
best way to learn scripting?
@muted lake should work fine
can anyone help me w something
i made a toggle to sprint and whenever i use my roll or slide the animations always collide and it looks really weird
what do i do
Make the player not able to sprint until the rolling or sliding animation ends.
ah your smart
thanks it worked
really? I thought you were making fun of my answer xD
nah i just made it now and it works
can someone tell me why this changess the text but doesnt hide the guis
local reset = game.StarterGui.Reset
local spectate = game.StarterGui.SpectateGui
local musicgui = game.StarterGui.MusicGui
script.Parent.MouseButton1Click:Connect(function()
halogui.MainFrame.Visible = false
halogui.MenuButton.Visible = false
reset.mobButton.Visible = false
spectate.Bar.Visible = false
spectate.Button.Visible = false
musicgui.Frame.Visible = false
script.Parent.Text = "Show Guis"
if script.Parent.Text == "Show Guis" then
halogui.MainFrame.Visible = true
halogui.MenuButton.Visible = true
reset.mobButton.Visible = true
spectate.Bar.Visible = true
spectate.Button.Visible = true
musicgui.Frame.Visible = true
script.Parent.Text = "Hide Guis"
end
end)
try PlayerGui instead of StarterGui
I’m a beginner and there are things I don’t quite understand. The way certain things get explained in videos makes sense, but I don’t fully grasp certain concepts. I try to break my code sometimes to see how it works, but I still don’t understand it. Is there documentation that I can look at to clear up my confusion?
lowk just use chatgpt and see how it corrects you
ask for it to give you step by steps on why your code is wrong and it gives you challenges
thats how i started to learn scripting
it hides the guis now but when i click it again it still says show guis
i changed it to this
local halogui = player.PlayerGui.HaloGui
local reset = player.PlayerGui.Reset
local spectate = player.PlayerGui.SpectateGui
local musicgui = player.PlayerGui.MusicGui
script.Parent.MouseButton1Click:Connect(function()
halogui.MainFrame.Visible = false
halogui.MenuButton.Visible = false
reset.mobButton.Visible = false
spectate.Bar.Visible = false
spectate.Button.Visible = false
musicgui.Frame.Visible = false
script.Parent.Text = "Show Guis"
end)
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Text == "Show Guis" then
halogui.MainFrame.Visible = true
halogui.MenuButton.Visible = true
reset.mobButton.Visible = true
spectate.Bar.Visible = true
spectate.Button.Visible = true
musicgui.Frame.Visible = false
script.Parent.Text = "Hide Guis"
end
end)
This worked?
I think the problem here is because they are both inside the same function
yea but it doesnt show the guis
it showed the script previewer too
you are connecting two separate functions to MouseButton1Click. When the button is clicked, both functions run in order
ok what if i put :connect(function(user)
for the 2nd one
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local halogui = playerGui:WaitForChild("HaloGui")
local reset = playerGui:WaitForChild("Reset")
local spectate = playerGui:WaitForChild("SpectateGui")
local musicgui = playerGui:WaitForChild("MusicGui")
local button = script.Parent
local isHidden = false
button.MouseButton1Click:Connect(function()
isHidden = not isHidden
halogui.MainFrame.Visible = not isHidden
halogui.MenuButton.Visible = not isHidden
reset.mobButton.Visible = not isHidden
spectate.Bar.Visible = not isHidden
spectate.Button.Visible = not isHidden
musicgui.Frame.Visible = not isHidden
if isHidden then
button.Text = "Show Guis"
else
button.Text = "Hide Guis"
end
end)
try this
it works tysm
by Chatgpt:
Why This Fix Works:
✅ Only One Function is Used → Prevents conflicts between two event connections.
✅ isHidden Variable → Keeps track of whether the UI should be hidden or visible.
✅ Toggles UI Properly → Uses not isHidden to change visibility every click.
✅ Correctly Updates Button Text → Matches the visibility state.
Now, clicking the button will hide the GUI and change the text to "Show Guis", and clicking again will show the GUI and change the text to "Hide Guis". 🚀
I created a lazy module loading system, but since it uses metatables, for core functionality, I cannot require any module through it that uses 'coroutine.yield', is there a workaround or I have to exempt them from loading through the metatables? I do not wish to heavily rewrite any part of existing librarys like Zone++ or promises
can someone help me with my codes i dont really know coding and tried getting ai to make code but i need my game to work well with multiplayer meaning i need server sided scripts but i have client based scripts and dont know what to change without the code breaking
You can create a new thread by task.spawn()
I dunno if that would work trough, try task.defer too if it's still gonna cry about yielding in metamethods
But probably task.spawn() would work.
to be sure I send you the funny errors I encountered 
"ModuleScript cannot resume non-suspended awaiting coroutine"
and
"attempt to yield across metamethod/C-call boundary"
I know that you can't yield in metamethods.
@nocturne brook I don't know what you wanna do, but if you're trying to yield when indexing or newindexing something and yield at that line of the script, that won't work.
You will have to use functions for that.
like if you want
local thing = table.Stuff -- yields untill thing exists
That won't work, you will have to use functions or methods for that.
What I am doing is that I have a table, with a metatable, that gets indexes, and if the index isnt defined yet, I get the module, require it and put it into the cache table and return it
Bit more complex than that bc its inside a big OOP slope technically, but that shouldnt cause any issue
And module is yielding?
Shortly, you can't wait for new variable when indexing, that won't work, use methods instead.
LoadingTable:Get()
Yea most likely, never encountered such issue, and this only happens with big modules like the topbar, zone++ ect
You still can yield and use some coroutine and task functionality in metatables, but never yield when Returning.
Returning stuff should be instant, no exceptions
Don't even try to find any other way to go against it, that's how metatables work.
So I either remove metatables, and just use basic caching or I write spaghetti code
You kinda can you use methods, it's not spaghetti.
And use coroutines to yield code.
you mean required one
-- So instead of table.Thing
local table = LoadingService:Get('Table') -- yields untill all table is loaded
print(table.Thing) -- will always be loaded
Or something like this.
Loader:GetConfig(...)
Do you know how to use coroutines and task libraries to yield your own code and continue it?
If you can give me tips or a short tutorial I would be happy, I never really used them 
Nah coroutines and thread working are must have.
Technically, theres a function I call from everywhere (globally)
function LoaderClientTable:GetUtility(TargetUtilModuleName)
return self.LoadedUtilityModules[TargetUtilModuleName]
end
And self.LoadedUtilityModules has the metatable set, that returns the table by index if its already loaded, or requires it, sets it and returns it if not
I am not saying this is the best way of doing it but at least I made it work, until now 
Wait I was about to teach you coroutines but you don't need them.
Why you can't just do __index but yourself?
You mean regular caching?
without metatables
if self.LoadedUtilityModules[TargetUtilModuleName] then return self.LoadedUtilityModules[TargetUtilModuleName] end
self.LoadedUtilityModules[TargetUtilModuleName] = require(someModule)
return self.LoadedUtilityModules[TargetUtilModuleName]
or something like this.
so without metatables
is 150k robux enough for a 3rd person gun system
OTS?
Consider how much time you'll spend and think how much ur time is worth.
whats an OTS
I never use that shit honestly.
Do I lose anything if I switch?
You get more proficient code.
I know you dont know full context but just in general
Literally, anything is faster than metatables.
Elaborate?
Metatables are twice as slow.
im trying to put up a hiring post
When indexing and stuff.

what does OTS mean
Over the shoulder system
yeah
I do functional OOP, basically pass first argument into function that means object, and it's just a table.
exactly
150K robux, hmm, if you cover tax, provide models, anims, sounds, and can give the guy a clear description of what you want, the only one factor left is the complexity of the system imo
Guns and camera system? @half breach
its a simple OTS just shoot and reload. all assets provided
nothing specific at all
disposable guns
How complex are shooting is?
Like is there recoil?
And what do you mean by disposable guns?
a little camera recoil thats it
Yo
like, when ammo runs out you just buy a new gun thats it
Same, the module loader instance is a OOP object itself tho lol, as I mentioned, its a big OOP slope haha
Just use functional OOP.
local function createObject()
return {}
end
local function doObject(object)
object.Stuff = 5
end
yea I know
So it's a tool?
That you just swap for new one?
yeah
the only main part of the gun system is
that it needs to be optimized
not laggy asf
Isn't that's like, mandatory for a normal job?
apparently not, i wasted 80k robux on a gun system that blows up mobile users
- Must not be first person
- Must be optimized to the maximum
- Must have magazine (clip size) / reloading / fire
- Appropriate guns must have auto / semi mode
- Must be easy to modify for an intermediate level scripter
is all i can think of
Ngl I could do this one for you easily, I had experience with custom camera systems, and I'm too experienced to heck up this easy gun system
Wanna hire me? I do need robux for some advetising.
how fast can you do it is the question
what can you cook up in 24 hours
Nah I can only tell the maximum amount of time it can take, hard to know for sure.
how to make a pass that will teleport you somewhere after you purchase it
after the purchase is successful do the teleport
is anyone here a scripter?
whats stopping my tweens from working? (tsv2)
local TweenService = game:GetService("TweenService")
local ts = require(game.ReplicatedStorage.TSV2)
local info = TweenInfo.new(.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
local remote = game.ReplicatedStorage:WaitForChild("summon")
local playerCDs = {}
local cooldown = 1
local function summon(character)
if playerCDs[character] then
if os.time() - playerCDs[character] >= cooldown then
playerCDs[character] = nil
else
return
end
end
playerCDs[character] = os.time()
local rootpart = character.HumanoidRootPart
local stand = game.ReplicatedStorage.stand:Clone()
local stand_rp = stand.PrimaryPart
stand_rp.CFrame = rootpart.CFrame
for i,v in pairs(stand:GetDescendants()) do
if v:IsA('Part') or v:IsA("MeshPart") then
v.Transparency = 1
end
end
local weld = Instance.new("Weld")
weld.Part0 = rootpart
weld.Part1 = stand_rp
weld.Parent = stand
stand.Parent = character
for i, v in pairs(stand:GetDescendants()) do
if v:IsA('Part') or v:IsA("MeshPart") then
if v ~= stand.PrimaryPart then
ts:Create(v, info, {Transparency = 0}):Play()
end
end
end
ts:Create(weld, info, {C1 = CFrame.new(2.2, -1.4, -2)}):Play()
end
local function unsummon(character)
if character:GetAttribute("attacking") then return end
if playerCDs[character] then
if os.time() - playerCDs[character] >= cooldown then
playerCDs[character] = nil
else
return
end
end
character:SetAttribute("unsummoning", true)
playerCDs[character] = os.time()
local stand = character.stand
local weld = stand.Weld
local weldTween = ts:Create(weld, info, {C1 = CFrame.new(0,0,0)})
weldTween:Play()
for i, v in pairs(stand:GetDescendants()) do
if v:IsA('Part') or v:IsA("MeshPart") then
ts:Create(v, info, {Transparency = 1}):Play()
end
end
task.wait(.3)
stand:Destroy()
character:SetAttribute("unsummoning", nil)
end
remote.OnServerEvent:Connect(function(player)
local character = player.Character
local stand = character:FindFirstChild("stand")
if stand then
unsummon(character)
else
summon(character)
end
end)
how's this looking?
local function Bestnumber()
MyNumber = 31
MyFunction = 12
print(MyNumber+MyFunction)
end
Bestnumber()
@tranquil oracle
yoo
what's the project?
samurai showdown kinda like ubg but way better upd and maps and ect
etc
i wanted to make a proximity prompt that allows the player to sit
i tried changing players seatpart it was readonly
same with Occupant when i tried creating a seat
so i just did this
local prt = script.Parent
local prom = Instance.new("ProximityPrompt")
prom.ActionText = "Sit"
prom.KeyboardKeyCode = Enum.KeyCode.E
prom.HoldDuration = 0
prom.Parent = prt
prom.Triggered:Connect(function(plr)
local chr = plr.Character
if not chr then return end
local hum = chr:FindFirstChild("Humanoid")
if not hum or hum.Sit then return end
local vs = Instance.new("VehicleSeat")
vs.Anchored = true
vs.CFrame = prt.CFrame * CFrame.new(0, 1.5, 0)
vs.Size = Vector3.new(2, 1, 2)
vs.Parent = workspace
local root = chr:FindFirstChild("HumanoidRootPart")
if root then
root.CFrame = vs.CFrame + Vector3.new(0, 2, 0)
end
hum.Sit = true
local conn
conn = vs.Changed:Connect(function(p)
if p == "Occupant" and vs.Occupant == nil then
conn:Disconnect()
vs:Destroy()
end
end)
end)
but its a bit buggy and there has to be an easier way to do it right?
how do you make a blocking system? like how do you make it so the player doesnt get hit
I finished the script but where do i put the tools without it being in the Inventory hen u join the game
you can put in in server storage
Thx
make a folder of tools and whenever you want to access it just clone it and make the parent of it the player's inventory
Thx
what are you making?
Im so happy rn making the script was so annoying and hard
i feel you
I boss like obby game
im just now starting to exit tutorial hell
I Really hate remote functions
Both in math and scripting
my main issue atm is just the types of remote functions
Remote events and functions are just wierd
well functions are alright but remotes are pretty nasty
i do still think its a matter of practice
ye
remotes and functions are very easy
No im talking about remote functions
Not both of them seperate
still pretty easy
Not really especially with someone with 2 weeks of scripting experience
well remote functions can be used for invoking the client or server when you want to do something lets say your trying to make a gun using raycasting
you can invoke the player from client
and then use the remote event to see when something is invoking
basically the main idea
I alr have the basics
@somber vault well that depends on if the person has experience with other languages
Remote functions are not basics
then they can grasp remote functions
generally no
be reasonable
false
could be pretty confusing
for people
who are new
no
with the other guy brawldevs
datastore is easy
though
thing?
what is this
where'd you learn
dev king?
data store is basically considered advanced
bros paying to learn lua
well isn't it easier
Waste of money to do courses ngl I learned from playlists
to yk just watch videos or use a free site to learn
how much were the coruses
well yes
whats that
sure the courses can teach a bit extra
but its not much better
watching videos is significantly better
in terms of other stats
it has positions and stuff tho?
such as money
and the fact that you learn about the same things
or atleast learn all the basics
so money wise it's better
thanks
@somber vault I did not say that. I said about the same. not exactly the same therefore no
well no
you could join a discord server specifically the ones from the tutorials in the descriptions
then ask for help
no
wym datastores are advanced...
like the discord servers of the youtubers
nah bro, you need to stop
explain?
data stores are beginner level
well can't learn datastores before learning most nof the other basics
bro, how long have you been scripting?
i doubt he has any studio expereince lowkey
i said you cant learn datastore before learning the other basics
jk
ye sure whatever
all you need to know is variables, functions and syntax to get started buddy
your the type of guy that's never heard of a module
well mysterious
bro even my 11 year old little brother just started oop yesterday 💀
well lets say your making an obby
bro dude does NOT know what a module is
you'd need to loop
or even a remote event 💀
remote events are used to communicate between server and client
modules are used to store variables and functions
and to be required to use for other scripts
wdym store????
fr
you mean you use modules to create much more robust and reusuable code
good boy tho, you learned remote events
this finna be diabolical
💀
and require the mod
he doesn't understand shit
don't be so negative
i have 1 minute of scripting exp as well
and have never used roblox studio before this
if he can't do basic metatables bro
Tbh I know quite a bit about scripting, but my vocabulary sucks 
could have learned another language
or maybe you did
for learning lua yes
well if they know how to script why not?
lol
well it is
lol
so
?
correct
yes
so it can do it nearly perfectly especially in the future
I know someone with 20 years of experience in scripting general. he said ai will soon replace programmers
20 years of experience
not me
some other guy
ik
ye im 5
very sadly
not a friend
just had a chat with him once
and ye
so ai will very likely replace programmers
Put it like this:
there is a possibility that ai will be good enough to replace programmers.
but the future is still unclear
so while you don’t know how good ai will become, why not learn to do it?

You need to be a scripter to understand code ai generates
Who created AI
-# (Programmers)
Do you know how to ping reply? /genuine
Are you on mobile or pc?
I think you can right click a message then
axtritho i script
see i cant ping
my cat left
not for me
it extremely advanced
like more advanced than my brain
Remote functions are lowkey weird to me
Why not use remote events?
fr
remote functions are so hard fr
invoking client and server is impossible
because i have one brain cell
fighting for 5th place
right?\
So basically remote functions are just events with the ability to return variables?
Why would you use events then?
learn raytracing
i cant my cat probably knows it
ask my cat
he probably knows
ill just keep procrastinating
with my last brain cell
How would i go about running a timer that is the same between each server, like in multiple roblox events
messagingservice
I'll look into it, thanks
who knows how to use toolbar plus pls dm
local BFS = game.ReplicatedStorage.BuyFromShopSpeed
local Speed = game.ServerStorage.SpeedCoil
BFS.OnServerInvoke = function(player, toolName, toolPrice)
local PLR = player
local leaderstats = PLR.leaderstats
local gold = leaderstats.Gold
local PromptS = game.StarterGui.GUI.Shop.ShopOpen.SpeedBuy
local purchaseSuccesful = false
if gold.Value >= 250 then
gold.Value -=250
local cloneS = Speed:Clone()
cloneS.Parent = PLR.Backpack Mainley this one
purchaseSuccesful = true
else
print("Purchase notwork!!!!")
end
return purchaseSuccesful
end Can you guys explain to me how i can make it go to starter pack not backpack so it can save on death? Appreciate it
can someone help me????
can anyone with vc can help me and my friend we are trying to script a shop ( Our currency is Time) Not time played just Time
and i need help trying to work the shop
anyone know a possible cause for high recv kb/s and high packet kb/s in a fighting game
im stumped we are unable to figure out the cause of these random spikes nothing in debugger shows any signs
😭
Server sided effects
if you know OOP & is tryna get paid for ez commission lmk
Remote functions only get data from server/go to server?
guys do you think that a plugin that can add has ui packs and vectors would be something good for studio?
it possible to get the description of a limited item without using marketplace service?
anyone know where i can get a super hero flying script
Try waiting for enemyChar first, then do If enemyChar then enemyHrp
Yo does anyone wanna help with my game I'm having trouble
it's for a simulator I'll give you a ton of revenue
what do you even need help with?
check dms
if i have a billboardgui as always on top, is there anyway to have it NOT clip through walls?
isnt the always on top supposed to make it do that?
i only need it to cover a players head though
if i put it as false then it stays behind the players head
im confused what u trynna do🥲
thats not the right tool for that job
its definitely not
then what should it be
weld a part to the head
did you actually ever look at the docs for billboard gui
ok so take your time explaining
no i dont think i will
i dont think you will either
your right i wont
i know im right
wont it do it anyway w/o being always on top?
unless u wanna go for it another way like the other dude mentioned
nah it has to flicker
i guess you were wrong then tman
impossible
how can i make it so my fly script instead of doing the forward fly animation when i move left or right turn left instead of just moving left while the animation has me facing forward
like a light?
or like flicker as in show the face briefly
ty for help
Ts so ass
I think u should scrap that idea cuz no one will ever play that game
Censor it next time 😡
We making new languages now
boiiii this is not tufff
Nice concept
prec8 it gangg
its just a concept btw bc im tryna expand my scripting knowledge
Math Concept looks decent just needs to be further developed for an actual game
Keep grinding 💯👍
anyone here know about FiOne?
good job bro don’t give up
bro
hey guys so im making a body velocity train right and i want to put a square where the train is gonna stop, what kind of math do i have to do to calculate the position? it decreases in velocity by 1/7 in a wait() loop when slowing down
hey
going to bed. gn @everyone
What should i make to practice scripting keep in mind that im a beginner and i know only a few advamced stuff like remote event sand remote functions and local scripts
don't listen to the haters bro, I remember being at that stage of scripting too ma boi! you'll never meet a hater doing better than you - david goggins, and its type shit
Yo you got an idea?
You could start out with a basic incremental simulator game, with a shop, tasks and ui
So i make a basic simulater
or you could go for a tycoon for practice
So can i make like a clicking system and like with the system i can buy tools and items?
yeah
if you really wanna push your shit
oh
make a tycoon
if you don't how to
make it 😄
: D
is it hard
well that depends
how much work are YOU willing to put in?
if you try and have fun, it's easy
if you hate it, it'll be hard
OK
wait
Making a tycoon isnt that hard
Im so goofy
Just make the parts invisisble
than make them visible if u buy it
game.Players.PlayerAdded:Connect(function()
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Value = 0
cash.Parent = leaderstats
end)
Not working man
Can u find th error in it its supposed to work
sure
I figured it out lol
you didnt pass player
I forgot to put paramater
that's the most important part
it'll structure u with some discipline
don't give up
Ok
do pomedoro, 25 minute rotations
you could 25 mins scripting
5 min break
12.5 minutes of building
12.5 of scripting
and then restart
Ok
code discussion > code-help
i do pomedoro, often with stuff that I find boring
i worked 3 hours today using solely pomedoro
why is it killing the player???
can any scripter in here help with adding a front dash animation to my script? (I have the animation and the dashscript without any animation)
Yo does anyone know how to post hiring ads
Is there anyone that could help me continue my game. I need a scripter. I can’t pay but it’s a pretty simple concept. It will require mostly ui. It can help you develop skills or portfolio. I am asking this because my previous scripter backed out randomly.
does anyone have any scripting jobs i can do
am i getting paid perchance
Can I show u game rn
i guess
I think the hardest thing would be saving data storage
Well, UI is the main part for the scripting
There’s going to be a lot of UI cus that’s what kids like
easiest part
jp
Boutta say lol
lowkey tho
I have 1200 ish on all my accounts combined
@latent tapir
?
Fr?
yeah, what specifically are u tryna store
Ain’t no way
Then I’m negative beginner
lol
i might be able to do it for u
but prolly not
im a bit busy atm
i can do it rn
Alr
for free
i guess let him do it
if you want comms, go to the hiring section bro
this is a place where you help out for free
mhm
im chowing down on ceareal gng
i should do data store as a module script right?
whats up
the world is not ready for roblox matrix math
can someone help me my roblox studio isnt responding dm me if u can help
its cute but that jumpscare dawg....
yeah thats being worked on 💀
how much would it cost me to get a relatively simple forum developed
as a website
Is there a way to develop an anti afk script without teleporting the player to a new server
my dumbass was wondering why this print is underlined for a solid minute only to realize i typed task.wait 🤦♂️ gotta be the dumbest thing i've done all week
Dont worry, one time i've written a button script and it didnt work, and the thing was instead of referencing the button in the script i referenced the workspace
For what?
Like taking notes of code etc
I try to take notes then go into studio
and learn it from memory
Just script it in studio?
There are comments there too, you can write -- and then your comment
Yeah but I am trying to learn like LUA then C++ etc
I wanna take notes on all of them
not just go into studio and do --[[ print("hi") ]]
Just open up notes
Also note plus plus is for reading code of other programs
And changing it
oh alright
If you want to just write code then notepad, studio code or Roblox editor is fine
yeah
taking notes is pointless
just code
if you need to remember smth open the mf docs
it doesnt 💔
programming does not work like that
itll be objectively slower with notes
It can actually be useful and open up google docs and jot down what you remember about a specific topic, it makes you remember the topic better
@molten plinth