#code-discussion
1 messages · Page 275 of 1
Hey, its actually nice now. Go sleep
nah
I don't wanna wake up at 4AM
Or try hiring some body if you don't get satisfied. But its fine for now for u
it's 9pm rn
Yo are u indian
Ok, its 9 57 here in india
??????????????????
Can anyone experienced give me tip on how to use ads on a new game like how mutch ad credits should i use per day and how long should i run the ads for and should i run a returning users ads after that?
Hey
guys is there any better way to make abilities, i just have a remote event for every ability and a script for the event for the ability.
aloha
yo, does anyone have any ideas on how to make my ragdoll head stop jittering left and right so much? right now it kind of folds into itself and looks broken instead of reacting naturally. i’m also trying to make deaths look more realistic overall, so if anyone has suggestions for cleaner joint limits, better constraints, collision settings, or anything else that helps ragdolls feel more natural in roblox, lmk
solution: fix it
im going to try replacing ballsocket in head with wedge
A
yuh
??
im the best programmer
and im the best for everything
my ragdoll script works perfect in test mode and 2 player client and server test mode but when I save to roblox and join the game in 2 dif devices the ragdoll just seperates and dies like regular roblox bo-dy parts seperating any ideas anyone?
sus boi
uigrid layout dead space sucks
can someone please help? why is my bones not lining up with the dam bird
Bird game 3?
not quite
what are you making son
@nimble cosmos
how do i fix the issue that when i make the screen smaller the frame and what inside move from their space?
i tried to use autoscale plugin and also tried to add UIAspectRatioConstraint
yeah?
did you use function
can i dm you ? to show you how it build cause i cant send images here
A lot of devs code in TS or is it rare?
Rare
Yea that's what I've assumed. Why even bother to use TS if roblox uses luau natively, I mean ig it is faster at large codebasss but still
Sounds like a nightmare
No offense but there are jus a handful of optimized roblox games. No one bothers
Yea ig if u have a really really big game it starts to matter
On other platforms
Who cares about that deep of optimization on roblox

Yea u are right. TS can be used in other things as well so it might be worth to learn
You can learn it but hsing it in roblox is pointless
There aren't Aaa games
Which need optimizations
And not all aaa games got optimization
Min requirements RTX 5090 🥀 😭
AI frames
Like honestly my 9070xt makes 60 fps at end of Wipe at rust. Come on
Such unoptimzation
Lazy ah devs
#modeling or #animation might be more sueful
How would i manage a custom hotbar and custom backpack, like two folders for each inside of the player?
bro whats wrong here why is giving me this error: Players.CrodieeBlox.PlayerGui.Interface.PlayerMenu.MenuHandler:39: attempt to index nil with 'Completed'
for this script:
spawn(function() while InMenu do local Tween1 = TweenService:Create(PlayerCam, CameraTweenInfo, {["CFrame"] = MenuCamTweenPart.CFrame}):Play() Tween1.Completed:Wait() local Tween2 = TweenService:Create(PlayerCam, CameraTweenInfo, {['CFrame'] = MenuCamTweenPart.CFrame}):Play() Tween2.Completed:Wait() end end)
I think that the issue might be this but im not sure
TweenService:Create():Play() doesn't actually return the tween object itself, so you're basically trying to tell a piece of empty data to wait for a completion signal that it doesn't have.
remove :Play() from tween1 and make it seperate,
so
local Tween1 = ..
Tween1:Play()
Tween1.Completed:Wait()
same with tween2
message above is correct
Yea
What is game producer role?
thanks bro
it works
lmao
asdasdasasdasdds
if statement then
else
--stuff
end
while scripting in vs code, Roblox IDE enters an extra "end" statement when i press enter on the else line, instead of going one line down
if statement then
else
end
--stuff
end
i searched through settings of the extension but couldnt find a solution. how do i fix it its pretty annoying😭
it works just fine when i disable the extension
is scripting with vscode better?
if u are a solo dev it depends on personal preferances
if you like the plugins then yea
i watched that some big groups use vscode since it works with github and they use roblox studio to tie all the code/features tgt
i also agree that it depends on personal preferences since vs code looks prettier than roblox studio
uh js delete
Oh actually thought i was in animating tbf
I got it sorted though
That looks absolutely amazing dude well done
I think you should add some sort of friction to the flight to make it feel more like a bird
Thank you!! And it has a little bit, and speed boost when you go straight down
Oh do you mean to the animation
Noo like make turning a bit harder since birds cant just suddenly turn 90° to the side
They can’t lol? Okay I can implement that
Oh LMAO im an idiot and i wasnt paying proper attention
Oh, was is the video cut?
No no i just looked away for a second and it had turned quite a bit so it looked like it turned suddenly
guys my stunClass is clearing stun, but it needs movementservice to clear it. if i fire signal for my stunClass parent (stunHandler) to then fire another signal for movementService to clear stun, would that be too much signals?
guys im tryna make a damn STROLLER and i cant add seats on the tool it doesnt workk
the reason u cant add seats to a tool is cuz roblox disables seat physics when they are inside a tool model since the tool is technically "attached" to your character so it breaks the sit trigger. basically u gotta put the seat in a separate model in workspace or use a fake seat script that plays a sitting animation on whoever touches the stroller because seats and tools just dont mix right together in the same parent.
whats the simpliest way
i dont want it for any complex purposes just to play the exact role a default roblox seat does
prob just play animation
anchor sitting player's hrp, cframe it to the seatpart, and weld constraint
Can you delete 107000 datastores for me
does anyone need help with coding?
idk why people use vscode other than to have an area to write the scripts nicely... connecting it to the game is just so extra and I dont rlly see much benefits... but then again its probably just because I'm not that advanced with my scripting yet
what in the call centre
why isnt this working? its supposed to show a gui when a tool is equipped:
`
script.Parent.Equipped:Connect(function()
game.StarterGui.ScreenGui.Enabled = true
end)`
Where this script placed
Inside the tool?
guys what tutorials should i start watching to learn scripting or is there a better way to learn it
is it possible to take a chunk out of a part? like for a mining game
search up "brawldev" on yt
yo i fixed it
learn by doing
just hop on studio
99% of lua scripter kids wannabes quit before theyve made a single shitty game
Experimentation is key 
the first shitty game is a HUGE step towards the first 100k ccu game
no ads no players
-# Not true actually
Still a huge step
u get ads from robux
u get robux from commissions
u get commissions from being pro
u can also self promo on tiktok insta youtube
and u get pro from making shitty demos or games until theyre no longer shit
the only way and easy one is making roblox studio videos on tiktok
just showcasing random scripts
Hey when do yall know when ever to use FindFirstChild and WaitForChild
FindFirstChild can return nil and doesn't yield
WaitForChild yields potentially forever

Bro
WHAT ARE U TALKING ABT
its a joke chill gng
😭
why
Ik but its not meant for them
Cuz it's fucked up to say somebody is, can be clipped out of context
sorry
Tell them sorry, not me 
ok
Sorry gclaw
It all good
You're changing the GUI In startergui not the PlayerGui
its useful when ur creating something outsite of roblox
like a discord bot or website
but i agree if ur not working on a big project its probs more efficient to jus code in studio
i have a dev product wrapper that streamlines handling product purchases, if anyone wants to try it out hit me up
vscode plugins, offline coding, version control with git, git as source of truth, easily find who modified what when and revert if necessary
wally packages
roblox typescript
roblox rust
just put the fries in the bag lil bro
can someone help me make a laser in my base cuz im making a game called brainrot heist but idk how to add lasers in the bases
make part with Tag
make code that gets all tagged parts and connect .Touched and kill player
CollectionService
o ok
in the part properties got Tag
its the most bottom
there are plugins to help u setup tags quick
send them fr
find it bro
its probably call Tags plugin or smth
i dont use them,i use command bar like a chad
i lowk dont know how to code only build so idk how im even gonna manage
hire someone
im broke 
is this script good?
local lasers = CollectionService:GetTagged("Laser")
for _, laser in pairs(lasers) do
print(laser.Name)
end```
yep
then do
laser.Touched.....
u dont need
in pairs(lasers) do
just do
in lasers do
okey dokey
yo wait
i thought ur pfp was that giga chad guy then i thought it was a knight
i looked closer and its a roblox giga chad
It’s Lego 🥀
tf is it supposed to do
bro its like 5 lines 😭🥀
ok bro i cant see
ts is roblox son
WHich ai
make it explainn
i tried that
js use gpt bro
didnt work lowk
i cant even touch the laser
lemonade?
for some reason it crashes
you need raycasts or touched
alr..
tf is that-
go back to modeling 🤣 🫵
yeah bye
lowk
bro i wanna be a scripter but i cant understand it
ima try to make an ez simulator
wait is lemonade good
yea
oyu just type what you want in the game
you'
then it makes everything for you
like yea
whats a good playlist to learn scripting
ask gpt
deadass i started with alvinblox on yt
back in like 2018
watch his series
copy everything he does and play around
bet i saw him and BrawlDev
then move on to devforum
just make sure you actually copy everything hes doing
and play around see how stuff gets affected
bet bet thank you
ye
its probs way easier now too cuz gpt can explain concepts to u
and tell u issues
yeah for sure i tried learning a while back made some stuff and quit now im like braindead to it
the fuck type of advice is this
its the modern day gng 😭
watch a tutorial on lua first
robloxx assistant
is it any good now
used it once like 2 years ago and it was ahh
never used it again
i was doing dumb exploiting in other games and i wante decompile tools script
but i found a game wo give functions to tools witjout put a script inside them, how thats works?
in english pls
ChatGPT is a literal spyware at this point use Claude
Claude refused to cooperate with the US gov at one point so they went to chatgpt instead
Isnt that crazy
U get nicer answers on the devforum compared to stack overflow tho
How do I create a custom hotbar with a custom backpack? Do I need to create a folder for both in the player?
you gotta do everything yourself
by scratch
Anthropic CEO said no to domestic mass surveillance and fully autonomous weapons with zero human involvement purely based on data that it has access to, AI aren't reliable enough for such use cases.
Anthropic CEO Dario Amodei sat down with CBS News for an exclusive interview, hours after Defense Secretary Pete Hegseth declared the company a supply chain risk to national security, which restricts military contractors from doing business with the AI giant. Amodei called the move "retaliatory and punitive," and he said Anthropic sought to draw...
And then they went to openAI which were on board with this
Meanwhile chatgpt cant even answer questions correctly half the time and hallucinates more than claude
Why would anyone use chatgpt
Well people are now moving away from ChatGPT, nobody their personal data to be shared with third party with no restrictions.
Any idea's that i could make for a portfolio?
I've made a couple of things before. But it's always been rejected by the admin when i submit it
Yo guys what do you think is the best AI for coding
openai is claiming they hurridly accepted the offer without even knowing it was gonna be used for that either
You know damn well they did
Sam altman is not a good person in my eyes
Or in most people's eyes
yeah
@woven palm
U can connect events from any script as long as you pass the tool instance
2 plrs obby, Tower defense, RNG based on click
If u want to work with fights, a base of battleground
Uh
i don't know if that's a good thing or not, my idea was to offer my service as a "pentester", so like if someone is making an anticheat, i'll bypass the anticheat, and give the open source. Just like in cyber, offense and defense.
well same for roblox 🤷♂️
find vulns that could potentially bupass an anticheat
and get paid per vulns found
This is called ethical hacker no?
yes
Humnm
You could do that yeah, but unless you're not able to make your own executor and such, you wont be considered a "professional"
nothing to do between executors and scripts by the way.
thats called red teaming iirc
yes
so should I post this idea in scripter for hire?
i mean idk
i don't like making antichets and games in general
no it technically breaks TOS unless you get your own executor added into the game by the dev
that's why I wanna offer my service as red teaming
i mean tehn again whose gonna snitch lMAO
breaks roblox tos
true but is that againsn't hidden devs tos tho
SELLING 2 CASH-GRABS GAMES. (low price)
I offer -1k for
i mean you can just code a executor in luau, ask tehm to add it and there you go techncally it doesnt break TOS
that's why I wanted you guys opinion
dm
Do u gonna accept - 1k?
not really, an executor in luau has like very bad sUNC
yo
ill do - 2k
how about -10k??
dm me
im joke
mm
100k and 2 dollar
Good price 😄
100k and 1 dollar and 1 quarter
1million and 1 dollar
1 Ecentric shop teacher
1 million 1 dollar and a quarter
1million and 2 dollar
Beat that
you got me
reminds me of this scene
Batman not touching tony stark money
batman more realistic superhero
Money Power
Iron is also just each suit prob costing 50mill
ts wht ur ccu nonexistent
tf does vscode have to do with ccu
Hey
could soemoen plz tell me whats wrong
local SwordSlash = RS.SwordRemotes.SwordSlash
SwordSlash.OnServerEvent:Connect(function(Player)
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:FindFirstChild("Humanoid")
local Hitbox = Instance.new("Part")
Hitbox.Parent = workspace
Hitbox.Color = Color3.new(1, 0.0547189, 0.279103)
Hitbox.Transparency = 0.6
Hitbox.PivitTo(Character.HumanoidRootPart.CFrame)
end)```
SELLING 2 CASH-GRABS GAMES (low price)
@echo dagger
probably because it says pivit
and what's the point of getting humanoid if you don't use it
Also don't use RS to define replicated storage when run service exists and you probably don't need to be using pivot to for a singular part
make local screenGui 100 transparency if 0 transparency else local transparency = 0
hey, havent been on roblox studio for a while. im at a point where i have to make some ui and im here to ask about the best ways to just make simple clean ui
i just used the basic roblox elements before
do i just keep on doing that?
if you want help designing UI you're in the wrong channel
I will later in the script
roblox ai is crazy🙏
Can someone send me a script that opens and closes a door?
i get no error but when i play it wouldnt do the anim
Or how do you make a door open and close automatically (with a script)?
how useful are animation handlers
wrong animation priority
or you dont own the anim
or the script isnt running
One message removed from a suspended account.
all front page games use vscode
One message removed from a suspended account.
One message removed from a suspended account.
yet all the front page games use vscode
you can't go above 10 ccu if you don't have github
it lowkey doesnt matter
Loading the animation via the humanoid is deprecated. You need to load it via it’s Animator.
most benefit to vscode might be like bieng able to use copilot
visual studio skid
i use roblox studio code editor
💔
also auto complete on vscode might be better
yea i dont even bother too much of a hassle
i hit 1.5k in 2019 without knowing/understanding what tables were😭 but its true lowk if i used vscode at the time itd be 10k at least
One message removed from a suspended account.
One message removed from a suspended account.
I didn't know what variables were and my first game got 500 ccu on the first week 😭
if u used vscode itd be 500k 😭😭😭😭😭
I changed it a little and added it but still no animation
i feel its something from roblox
with vscode itd be 150k
One message removed from a suspended account.
conveyors, what are those? sorry for the late response btw.
just to clarify, I'm talking about accessing the GetSet parts of "Part.AssemblyLinearVelocity"
Basically
--Back End of our Server Script
local function addVelocity()
--regular addition to the velocity of the part
part.AssemblyLinearVelocity += Vector3.new(0,50,0)
end
--Back End of Roblox's physics script or sumthin
RunService:BindToSimulation(function(dt) --idk if the BindToSimulation function actually has a delta time variable
part.Position += part.AssemblyLinearVelocity
end)
--if we want to add time manipulation effects the easiest way to do this would to just multiply the Velocity by time as it's being added to the position, so something like this
local timescale = workspace.timescale --would be cool if it was a workspace property
RunService:BindToSimulation(function(dt)
part.Position += part.AssemblyLinearVelocity * timescale
end)
use humanoids for now until next gen is released
One message removed from a suspended account.
-- this is the part I want to access
RunService:BindToSimulation(function(dt)
part.Position += part.AssemblyLinearVelocity
end)
idk i ise humanoids in custom characters and npcs without issue all the time
its legacy af tho ill agree
One message removed from a suspended account.
One message removed from a suspended account.
make a module where you can automatically rig the R6 model with a part or something.
actually that's probably what the humanoid root part is for,
then make a table of enums with all of the States the character can be in.
then add a health variable, walkspeed variable, and all the other stuff you need.
now the problem that I don't know how to solve is animations.
you need someone more experienced for that.
I aint qualified lol
One message removed from a suspended account.
One message removed from a suspended account.
do they work without the humanoid?
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
oh then yea, that's basically all you gotta do
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
RunService.Heartbeat:Connect(function()
hrp.Orientation -= Vector3.new(hrp.Orientation.X,0,hrp.Orientation.Z)
end)
it should stays upright
like I said you need to tell the dummy that it has tripped,
before that was the humanoids job.
if you know that the dummy should never trip then you can just set the orientation directly.
with some maths and maybe a raycast to make sure they dont glitch into the ground.
One message removed from a suspended account.
One message removed from a suspended account.
yea basically this.
but we have to implement our own humanoid states
the hrp directly???
how do you do that?
bro animates the hrp ☠️
One message removed from a suspended account.
it's called root motion it's actually very good
no, no they do not.
One message removed from a suspended account.
what animator do you use?
One message removed from a suspended account.
One message removed from a suspended account.
wdym by this then
can you show me an example?
One message removed from a suspended account.
One message removed from a suspended account.
🗣️ 🔥 he spitting facts
One message removed from a suspended account.
that's very interesting, does he tell you how he animates?
how do you implement your animations?
One message removed from a suspended account.
One message removed from a suspended account.
wdym by turnable
btw can you hook me up with this guy
One message removed from a suspended account.
One message removed from a suspended account.
like I said, humanoid states, basically if the state is not equal to tripping, then the humanoid will stay up right,
then something will happen to change the state of the humanoid to tripping,
then it will fall over because there's a piece of code that is no longer keeping the character up right.
because I haven't heard of anyone succesfully doing root motion in roblox.
and root motion is very good
are you certain he's editing the hrp?
and not the torso?
One message removed from a suspended account.
show me an animation where he does that
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
just show me, do you not have the animation?
One message removed from a suspended account.
One message removed from a suspended account.
you forget -
One message removed from a suspended account.
One message removed from a suspended account.
idk how that's happening when we never touch the position
it's because we're setting the wrong orientations
try this instead
RunService.Heartbeat:Connect(function(dt)
hrp.CFrame= CFrame.LookAlong(hrp.position,hrp.CFrame.LookVector*Vector3.new(1,0,1))
end)
One message removed from a suspended account.
wait lookalong exists?
One message removed from a suspended account.
One message removed from a suspended account.
no-
that's just
average position
wait
does it?
hold up
One message removed from a suspended account.
One message removed from a suspended account.
that's just animating the torso nothing should break but without humanoid the legs might become collidable by default which mess it up
btw can you look for the hrp keyframe?
One message removed from a suspended account.
with humanoid the legs are uncollidable and the rig stands with hipheight instead
too rigid bro and too many keyframes
you need to overshoot and snap back
this ain't the animation channel bud this is the coding discussion channel
but it does kinda look ass ngl 😭
i see shit i call shit
One message removed from a suspended account.
well this time i did give criticism
yea then it's not being animated
One message removed from a suspended account.
👍
wdym it gives you an error
One message removed from a suspended account.
if I typed in the function wrong uh
One message removed from a suspended account.
look for the look along
One message removed from a suspended account.
yea there u go
One message removed from a suspended account.
One message removed from a suspended account.
isn't it LookAt
there's look along then look at
the difference is in the second parameter
what's wrong with it
One message removed from a suspended account.
ah there
One message removed from a suspended account.
show me
like flings like how
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
prob because of this
One message removed from a suspended account.
animator lowkey a noob
One message removed from a suspended account.
that ones not good tho
One message removed from a suspended account.
One message removed from a suspended account.
ah I see,
yea what the guy said above me.
make a raycast and shoot it directly downwards.
then if the raycast touches anything and the distance from the hrp is equal to 1.5 or higher then set the position of the hrp to the position of the raycast + 1.5
this ones not bad
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
that's the distance of the hrp from their legs
you can set it to whatever tho
One message removed from a suspended account.
I think that's the height of the whole character, not the hrp from the ground
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
oh yea it is I think,
I prolly got it messed up
it's deffinitely an improvment.
try increase height very slightly
One message removed from a suspended account.
also you should probably make the legs uncollidable
One message removed from a suspended account.
One message removed from a suspended account.
do it again
One message removed from a suspended account.
because with the raycast it shouldn't do that anymore
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
wtf
One message removed from a suspended account.
One message removed from a suspended account.
OH
make their Y velocity equal zero when the raycast touches the ground
so just do Velocity*=Vector3.new(1,0,1)
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
nah
because then the animation will screw it up
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
Is it possible to learn coding with just yt videos
One message removed from a suspended account.
That’s what
One message removed from a suspended account.
One message removed from a suspended account.
try increasing the height of the ray?
One message removed from a suspended account.
idfk
One message removed from a suspended account.
Can you send me a link
One message removed from a suspended account.
lower the RayLength and completely remove the check for distance
so the ray length will be the height
so ray length = height
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
well that would be expected
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
because there's no physics in the air since there's no humanoid state for standing on ground
One message removed from a suspended account.
One message removed from a suspended account.
that's also normal
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
alr now you can no longer avoid the creation of your own sates.
give your dude some states like
"falling"
"idle"
"walking"
"hurt"
or whatever you feel like.
when the character is not touching the ground, set their state to "falling"
if they are touching the ground set the state to "Idle"
now if the raycast hits something and you are falling, ignore the distance between the hrp and the raycast position.
HOWEVER, if the state == "idle"
check the difference from the raycast length and the position that was actually hit.
if length-distance>.1 then
set the hrp to the length of the racast
else set it to the position of the raycast
One message removed from a suspended account.
One message removed from a suspended account.
np
One message removed from a suspended account.
One message removed from a suspended account.
im not ACTUALLY focusing on optimisation and working this for my game its mainly to learn a lot more and practice
this is for myself
the code
can always refactor it later
i think people worry so much about modular code they end up making a framework instead of a game
does anyone know what :GetDebugId() is
i know what is it but idk if i should use it in my stuffs
what does it do
print(workspace:GetDebugId())
-- outputs: 1_53513626
the word itself
"DebugId"
it doesnt change too
it remains the same
w discovery or nah
odd
it is
also why is this the way it is?
dunno
test out the script
better move on from offering percentage
His status is "partnership"
That's hilarious
yea hahaha
Bio? "Roblox"
The AI context lasts only for one word
bro 😭
Anything but scripting
true
i worked so hard today ngl
so i might just stop scripting for the rest of the century
need a rest
Same ( no just coded http checker)
im actually
doing some animation controller
gotta lock in
gl
One message removed from a suspended account.
im not saying modular code is bad, i just think people try and abstract and decouple their code so much that they spend more time thinking about what their project will look like at the end instead of just writing code
like you should write code so it's easily refactorable not so it never has to be refactored
One message removed from a suspended account.
One message removed from a suspended account.
why is ts genuinely impressive
all im saying is it doesn't really matter if it's a long file
if tight coupling doesn't matter then it's not too important to sperate it
when the project gets bigger that's when u might do smt like that
One message removed from a suspended account.
One message removed from a suspended account.
One message removed from a suspended account.
local repStor = game:GetService("ReplicatedStorage")
local events = repStor:FindFirstChild("Events")
local land = events:FindFirstChild("Land")
local PurchaseLandEvent = land:FindFirstChild("PurchaseLandEvent")
local ServerStorage = game:GetService("ServerStorage")
local handlers = ServerStorage:FindFirstChild("Handlers")
local PlotManager = require(handlers.Plots.PlotManager)
local prox = script.Parent
wait(3)
prox.Triggered:Connect(function(plr)
print("a1")
local plot = prox:FindFirstAncestor("Base")
local ownerValue = plot:FindFirstChild("Owner")
local owner = ownerValue and ownerValue.Value
warn("The owner is ", owner)
if plr.Name == owner then
print("player is the owner")
if plr.leaderstats.Cash.Value >= 20000 then
plr.leaderstats.Cash.Value -= 20000
local plotValue = "Plot"..prox.Parent.Parent.Parent.Value.Value
PlotManager:GiveLand(plr, plotValue)
print("Player bought land")
end
end
end)
when theres more than 1 person in the server, it isnt printing after a1
cant figure out why
anyone have an idea?
I made a cutscene from moonAnimation and i made a camera animation
but i am stil new to scripting so how can i make a script that when event happens it plays the animation with the camera or just i have to make the camera by my own?
sending subway surfers to prove yourself is peak cinema
no he a bot
that makes it even better
lmao
i changed it to that cus it wasnt working to try to fix it, before it was
local owner = prox.Parent.Parent.Parent.Parent.Owner.Value
and it still didnt work
it works when im in studio
but when i try it in game
it doesnt work
this specific script is for purchasing land
in their plot
right
forgot it got deprecated
no but theres 0 errors
and it works in studio test
just doesnt work in game
still need help?
yeah
I wouldve helped if I wasnt dumb
wow thanks 😭
ik
i js use it all the time cus it works
and it looks cleaner
yh
right
lemme try it
still need help?
still didnt work
Best to remove wait before prompt too
Plus I cant imagine where prox prompt must be to look for 3 parents, then Value which can be anything depending on class, I guess its name and then again Value
Show how it looks in explorer
yeah it can error because of "Value" possibly, id suggest here to remove value instance and SetAttribute Plot1Barrier with Owner
it doesnt even warn?
And such way you will save time not depending on Value inside
Plus I would generally put script not inside prompt
But inside model itself
But yeah its unecessary I mean
Just use attributes instead of this way you did
doesnt even matter
yeah I mean just what can make it look cleaner
Like you can fix script if instead trying to reference in find first childs, define them before and use attributes
Because if it works in studio but not in game then its loading issue
Plus for clarity you can test with 2 players local server
how? if it was a loading issue it shouldve been the other way around
why
roblox loads alot faster compared to roblox studio
hmmmmmmm id not say so, you have player and server on 1 side so it loads instantly, its just studio has a lot of debugging tooling
it seems like loading longer
really?
I ususally code this way
whats the new way
yall whats better, bridgenet or bytenet
I mean look he find first child everything and also wait before loading prompt using deprecated wait
Plus he find first child things inside prompt as if there were server sided exploits
I dont use them, I use blitz or forgot its name
bro using deprecated wait for simple things is NOT a big deal
I dont like both
😔
wats wrong with both of them
just kinda overused, there is nothing wrong with any of them, I just like working with newer tools
Like both are 5 years old
fixed it!
Hello guys, is it possible to get chat history (messages) through Roblox API?
nah i don't need to save them though
What for
I don't think I want to answer, I just need an answer yes/no?
does anyone want to join my dev group :D
I made a cutscene from moonAnimation and i made a camera animation
but i am stil new to scripting so how can i make a script that when event happens it plays the animation with the camera or just i have to make the camera by my own?
Use runservice.renderstepped to constantly change the position of ur camera to the part
you're wrong dude, you likely don't even know for what i need it, maybe even I'm just curious
who the hell even said that i'm going to save it
i mean it's good that you can, like, guess, but these guesses are completely false you know
alright but who would ask it in there if I was asking it for something illegal
yeah I know dude, i'm not likely crazy to save it somewhere
anyways thanks for the warning, but no i'm not using it for saving/leaking
because i'm not sure if there's allowed to ask"how could i do this"
the camera not a part, its like a CFrame from the animation
alright, nobody is stopping you from having those guesses but im NOT doing that
I am sure, i know better for what i am using that
or asking
I'm not stopping you from doing it
alright
Is there anyway to make Npcs follow players without using a heartbeat? I feel as though a lot of heartbeat functions on the server is very performance heavy, i cant use movedirection to see when the player is moving since if they just move in one direction the move direction doesnt change, it wont update
guys, for vfx this what im thinking: I have the server create the hitbox and name it the weapon name and the skill number. then I have clients listen to part.added in workspace and then put the hitbox name into a dictionary which finds that skills vfx and then the clients clone it onto the part (inside an attachment in the middle or sum shit)
good or bad?
how many loc do you guys think a game like frontline took
Well if u have the cframe it still works?
The legality depends
Albeit even then it's questionable
I will try
what do you have to do to get image perms
how do i check the server side output log on team test?
hey guys
all my scripters, have yall ever made robux from scripting?
obviously people have
ik
yo what the fuck does that table even mean
everytime i go to other games
exactly bruh
they always got a table like that
lol so real
it keeps happening in the dev console
im trying to get the table for player data but it keeps giving me that string
i cant prog without it
someone help please 😭
put it in #code-help
u cant without doing trickery
can only be read in studio output
is there a way to see the server side output on team test?
else u gotta convert everything to a string n print the string
do trickery and turn everything to strings then format it in a way that emulates tables
p much what studio output does on the backend iirc
would anyone be up to teach me im learning to code and im still a beginner but im not sure what to learn first
you cant print table in console as in studio output
you need to loop through and print
why dont you learn
how to
alr ill try it
hey
my problem with bytenet is it has literally no error handling
is any scripter willing to join a dev group :D
guys has any1 played tongue battles game on roblox?
how does their tongue tool exactly work, any1 got any idea?
is there any 💸 involved
I mean I would be interested if y'all were actually coordinated and had a sort of funding for any hypothetical games
yea
30+ pre members
for our project
and that is?
cant leak here
also we are like 40% done
but our current scripter is sick/has exams so progress been slow
and our other scripter is more of a client scripter
what kind of scripting do you guys need
more in dms
we are dedicated to reach even more
@warm flicker discord limited my account access for some reason after I sent you a message 💔
can't talk in dms now
🤔
damn it's patched ❤️🔥
no alt?
eh it's probably because I use proton VPN and it turns on automatically in the background as long as I have wifi connected
discord's been shady recently
discord told me that you could be spam..
imagine storing someone's suspicion rating from how much they look like a politician
why is that even a thing
this thing just turns on outta nowhere and puts me on a random country, so it probably thinks I'm a bot
do I look like a bot to you
Hah, I use Kaspersky vpn
I always set my location to north korea
I set It to fastest server, but sometimes I move it to America so I can access other websites
I have an old email from tutamail so I'll try to recover that account
it's fly as hell so don't mind
@warm flicker sent a request on my alt
k
wouldn't this remove any advantage of a switch statement if there's so many function calls
would be more practical to roll with a generic if
idk
bad impl
fahh
I'll send an appeal like a chud
Ney
any way I can force a client script to fire a event?
i want npc to m1 but it cant click
bindables? not sure what you mean though
i want to make a attacking dummy right, but idk how im gon make it m1
should i do a task.delay
and js do it infintly?
fire a remote, server authorises, if authorised client plays the animation, server handles the damage and hitbox
don't run animations on the server
Yes
Hey
yo even tho i had (Damage: number), my script still gave damage to my class even though Damage was a instance
shouldnt it return if Damage was not a number?
table.find() BROO
what the fuck is the point of : if it dont even return end when the type check came false
Just there for auto complete
or are you talking about, object:Method()
Damage: number
It's just there for auto complete tbf
Do you even know what type checking is
checks if the variable is a string bool or table with strting/bool in it
^
@hasty cobalt Don't put your age in your bio, btw
why
People are weirdos + age racism
export type PlotManagerType = {
GiveLand: (self: PlotManagerType, plr: Player, plotName: string) -> ()
}
export type Services = {
repStor: ReplicatedStorage,
events: Folder,
land: Folder,
PurchaseLandEvent: RemoteEvent,
ServerStorage: ServerStorage,
handlers: ModuleScript,
PlotManager: PlotManagerType,
prox: ProximityPrompt
}
local function tselect<T, K>(tbl: T, ...: K): any
local results = {}
for _, key in ipairs({...} :: {any}) do
table.insert(results, (tbl :: any)[key])
end
return table.unpack(results)
end
local repStor = game:GetService("ReplicatedStorage")
local serverStorage = game:GetService("ServerStorage")
local events = repStor:FindFirstChild("Events") :: Folder
local land = events:FindFirstChild("Land") :: Folder
local purchaseLandEvent = land:FindFirstChild("PurchaseLandEvent") :: RemoteEvent
local handlers = "@game/ServerStorage/Handlers/Plots/PlotManager" :: ModuleScript
local PlotManager = require(handlers) :: PlotManagerType
local Services: Services = {
repStor = repStor,
events = events,
land = land,
PurchaseLandEvent = purchaseLandEvent,
ServerStorage = serverStorage,
handlers = handlers,
PlotManager = PlotManager,
prox = script.Parent :: ProximityPrompt
}
task.wait(math.pi)```
local prox:ProximityPrompt, plotManager:PlotManagerType= tselect(Services, "prox", "PlotManager")
prox.Triggered:Connect(function(plr: Player)
local plot = prox:FindFirstAncestor("Base")
if not plot then
return
end
local ownerValue = plot:FindFirstChild("Owner")
if not ownerValue then
return
end
local owner = (ownerValue :: StringValue).Value
if plr.Name == owner then
local leaderstats = plr:FindFirstChild("leaderstats")
if not leaderstats then
return
end
local cash = leaderstats:FindFirstChild("Cash") :: IntValue?
if not cash then
return
end
if cash.Value >= 20000 then
cash.Value -= 20000
local plotValue = "Plot" .. tostring((prox.Parent :: Instance).Parent.Parent.Value.Value)
plotManager:GiveLand(plr, plotValue)
end
end
end)```
code wisely goat.
nba 2k
Watch Untitled by Wertar245 and millions of other Roblox videos on Medal. #roblox
u see how everything slow ash right?
but the ping is at 50
why it like that
r they doing client prediction vfx or is it the server that plays it?
cuz everything feel so delayed even tho ping at 50
or is it the animations have too much endlag?
from what im seeing i think the animation endlag is too high and chaining combos feels weird
or it not fading or sum shit
Why doesn't my code work?
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = CFrame.new(100, 100, 100)
I lwk tried everything alr
exactly my point
you know what happens when I run it?
Nothing, no errors, no outputs, NOTHING
Its local, in starterplayerscripts
and I dont see a reason why it isn't working
2 weeks?
But I already know very much
and am working on 2 big projects you could say
I gotta say tho, I quitted like a few months ago
when I only did basics
but I still remember all of them
so I just learned about other stuff and restarted
yeah same
remember gng u gotta spam print statements
thats what debugging is
i would print camera
and see if its nil
yeah thats why I did
or sum shit
exactly THAT and it printed "cam changed"
??
I dont have image perms
but it prints "cam changed"
I put it at the end
of the script
i made a basic gun OOP system and idk what i should learn in coding now can anyone tell me some suggestions on what to learn? would be much appreciated
Just think of something you want to make and script it
Then you will notice you dont know how to make something
then you will learn that
and it is way more fun that way
alr thx
and you actually remember shit
try making a parachute if you dont have any ideas
should i like search up a tutorial on how to do set thing i want and if the tutorial uses things idk then i learn them?
try making a parachute,
watch a tutorial on LinearVelocity for it
then you should be able to make it
so im guessing i have to learn physics for it
alr
CFrame.new(Vector3.new(100,100,100)) try this
actually not sure if cframe can even do 100,100,100 i never actually tried that lol
doesnt work
not necessarily, no
I have seen like 3 tutorials on it
