#code-discussion
1 messages · Page 1 of 1 (latest)
just try to making things with the knowledge you have
like you watch a youtube tutorial and instead of going to watch the next one you practice what they show you, and you put it to use
does anyone know how to revamp a UI using LOOP?
you just want the code fixed?
what should i have on my portfolio to get scripting commissions
local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local HRP = Character:WaitForChild("HumanoidRootPart")
local Animation = script:FindFirstChild("Animation")
local debounce = false
UserInputService.InputBegan:Connect(function(Input, gameProcessed)
if gameProcessed or debounce then return end
if Input.KeyCode == Enum.KeyCode.E then
debounce = true
HRP.Anchored = true
local Animator = Humanoid:FindFirstChildOfClass("Animator")
if not Animator then
Animator = Instance.new("Animator")
Animator.Parent = Humanoid
end
if Animation and Animation:IsA("Animation") then
local AnimTrack = Animator:LoadAnimation(Animation)
AnimTrack:Play()
Humanoid.WalkSpeed = 0
Humanoid.JumpPower = 0
task.wait(AnimTrack.Length)
else
warn("Animation not found in script!")
end
HRP.Anchored = false
Humanoid.WalkSpeed = 16
Humanoid.JumpPower = 50
debounce = false
end
end)
wtf is this hsit
Just do small items that are used often, Pet systems, Shop systems, trading systems, etc then make a game with all those objects and show people that and youll most likely get commissions
ok
making ur own system
no it works but i put in the humanoid root part script and it just stopped working
i just wanna know why and yeah kind of how to fix it
hi
returning scripter here, why do people now create tables with type
for example
type tableSomething = {}```
typechecking
😭
thats not creating a table. its creating a type
type Person = { name: string, age: number }
local bob: Person = {
name = "Bob",
age = 40
}
``` example use case
types are used for intellisense and strict typing and allat
can someone tell me why my baseplate moves when i use pivotTo on something else
yo guys who can help me with a script
Hi your so good
how do I send code in this way
lua
lua
local hi = name
hi
.
got it
hi```
ok bet ty
So ur saying I make games with knowledge I know? So I can improve?
I was using this code below...
function fateProceedure()
if(fate == 1) then
fate1()
elseif(fate == 2) then
fate2()
end
end
fateProceedure()
Why is it that I can't call the function before I define it even after removing local
Not games just small things like a button to change the color of a part
Then from that I can improve?
Yeah pick something simple to make and learn how to make it and make sure you learn every piece, start with YouTube tutorials and learn all the basics I learned from Alvin blox if you still need to learn some basics
Okay thx!!
can anyone explain the reasoning behind this
I tried to use fateProceedure() before I made the function and it didnt work
but when I use it inside of other functions BEFORE making it, it still works
Hehe
does anybody know any other solution for creating a pathfinding system other than using dijkstra's algorithm
Whose tutorial playlist do I watch to learn more abt scripting?
Learn more?
I’d say docs helps a ton, and any video works at the advanced level
Just pick one that is semi recent preferably.
Personally, I used TheDevKing, but it’s a bit old and fast
Where can I access this docs ?
I’ve preferred videos, but I can’t find any that is new/a bit old
Type checking
somethign
I want to make a freeze tag system however idk where to start
google, chatgpt, youtube
how to fix autoscale ui plugin not working
the one made by zacbytes?
yea
Like it’s actually not working
why the hell isnt this simple script working 💀
game.StarterPlayer.CharacterWalkSpeed = 100
end```
.walkspeed
You forgot a .
its supposed to be that since its at starterplayer
not for me
...
It works for me
Try re installing
Yeah I never tried it that way let’s do a different way to get the walkspeed is this a local script or a server script and where is it located
Oh I looked it up and this isn’t the right way to change the characters walk speed this property refers to the default setting for characters that spawn into the game
If you tell me if this is a local script or a regular one and where it’s located I will be able to tell you how to reference the players character
huh
its because you USED to be able to change your walkspeed in game settings
which i just tried
and it didnt work
i already updated my roblox studio
dont knoe whats wrong
What do we think
@glass valley
Is this script in a tool or something where is it located
hold on
bro 💀
yeah mb i dropped my phone in the toilet lol
anyways
🤯
Just tell me where it’s located
serverscriptservice
but this can wait, i just want to know why won’t the walkspeed change in game settings
How old of a scripter are you
4 months 💀
Bro who told you to use that method
idk
You reference the walkspeed by find the players character and then their humanoid and walkspeed is in their humanoid
.
Wait let create a script to get the character reference
can you do the same script i used and see if it works in your game
after
bc i want to know if roblox is buggin
What are some scenarios where return is used in games
player.CharacterAdded:Wait()
local character = player.Character
print(character.Name)
local humanoid = character:WaitForChild("Humanoid")
— now this is how you get the walk speed
if humanoid.WalkSpeed == 16 then
humanoid.WalkSpeed = 1000
end
end)```
if u had to make a blank invisible button to cover up something would u use a blank text button or a blamnk image bnutton
Do you want me to try to explain it and fail horribly
yes please explain
Ok so return can be used in many ways for example you are check if the a variable exits so you want get a error when you reference it
local player = script.parent
if player then
—whatever code here
else
return
—we used return here because we want to break out of the if condition
end
Did you understand even a little
I see what you're saying
uh it sets the value of a function to what ur returning
Please use YouTube if you want a deeper understanding
Try to see if the dev king has a video on it
in this case, the if block's value should be stored in return
is that correct
yeah I was just watching it
yes but how exactly can I experiment it
I do understand that return stores the value of the function inside of it
however
@glass valley can you help me again after u done?
Ok for instance do you know what a book value is
I'm not exactly sure, what is it
So it’s something that is either true or false
So for example we have a combat system
And we have a variable named local blocking = false
And the player tries to attack someone that is blocking we can use return here to make us not execute the attack / do dmg since there blocking here is how it would look
function add(value1, value2)
return value1 + value2
end
or sosemthing like that
u see what i mean
If (target player reference here).blocking == true then
—execute attack here
else
return
end
do you get why return is useful now
What do you need help with?
so basically I just realized all my scripts with walkspeed are broken now somehow
can i send u the script?
Don’t tell me you used the same weird method of referencing the walk speed
yeah send it
message too long hold on
bro how long is the script
shouldn't it be like this?
if(target player).blocking == false then
--attack here
else
--block vfx playing
--block animation playing
--damage neutralized
end)
but like
how would I use
80 lines
return in here
yeah I’m not in studio so I can’t see if I didn’t properly use syntax or not
Oh that’s actually not that long
Yeah just dm me
Listen I just use return to stop other code from being played if the variable is in a state I don’t want it to be in to prevent errors or to return a value to a different function
its not letting me send messages to you
can you show me an example of where you used it
sure let me see
function findPlayerByName(name)
local players = game:GetService("Players"):GetPlayers()
for _, player in ipairs(players) do
if player.Name == name then
return player
end
end
return nil
end
local foundPlayer = findPlayerByName("kxroum")
if foundPlayer then
kick:(“you stink”)
else
print("Player not found")
end
fun little example
DevKing should still work fine, but anything earlier is also good
Sorry for replying so late :p
Is it possible to use return in this way:
I use value1, value2, and possibly more values as parameters for a function. Inside the function I do some mathematical equations to get the increasing acceleration of a car per second. I use return to get that information and store it inside of a variable. I can use that variable to actually do the work where the car speed is applied and what not
@glass valley
Yes definitely you can use return to return multiple values from a function
do you want a example
in code
yessir
Why is lerping better for billboards than tweening?? I've spent an hour trying to get tweening to be smooth but it was so jittery I'm not a new coder I know oop but this is frustrating I had to convert cframe to vector3 and lerp the cframe..
the thing I wanted to do was basic I hate how I had to use it
function calculateAcceleration(value1, value2)
local acceleration = value1 * value2
local newSpeed = value1 + acceleration
return acceleration, newSpeed
end
local carAcceleration, carSpeed = calculateAcceleration(10, 2)
print("car acceleration:", carAcceleration)
print("car speed:", carSpeed)
what is lerping
🔥
are you messing with me?
no, I'm actually trying to learn
oh ok so it's basically a alternative for tweening, lerping is more for Models and parts though
Tweening is more for UI
you are smarter than me so you can become a better scripter than me if you build on your foundations of scripting and go into vfx
Had to lerp ui which is why I'm mad rn normally tweening is smooth
I guess it's not with billboards
I spent all day today trying to make a advanced path finding AI it was such a pain
what for?
I was trying to see if I could do a commission
ty
is lerping essentially just ui animations but instead of ui you are animating actual models
I remember I coded something like it before but I forgot the method I used to simultaneously compute the maths while moving the npc towards the target
basically you're moving something smoothly but with models and parts yeah
oh W, going to have to learn lerping then 🔥
can I use tweening for adding animations such as the type writer effect on uis
It's not hard it's real simple if you know for loops
yeah but I would use a real model for a typewriter if I was you lol
you could make a 3d model and lerp the model to the camera
just like how guns work
oh that would be smart asl
hmmm
yeah but can you still achieve the same quality as on uis
Yeah I've seen it all I've been coding for 10 years off and on
Yeah
Crazy
yeah you can make the map then decode the map into code
but why would you do that when you can just make the map and spawn it in workspace lol
How can I spawn it
parenting it to workspace
I think his talking about like procedural generation type stuff
Like generating a environment
yes like minecraft
yes it's possible with math.noise
and math.cos
I've actually made something like that
Cool
years ago though
oh thats fire
do you code for any games?
I was the original coder for defusal
before they kicked me out
they haven't made a good game since I was in the group
oh dam that's crazy
Bro I’ve tried making games so many times but I just get stuck when it comes to building it
they ended their career
worst choice in history
same shit happens to me
just use templates n get a builder later on with percentage or sum
you're right this is like the only good game they have
I'll dm you some games I've gotten done though
Yeah I was the coder in 2016
I’m greedy man I can’t do that
type shit
they kicked me out right after
they did add a bunch of stuff but during the release that was my code
had 10k people playing
flamingo played it live on yt
It probably lost players when it stopped updating
that's not even funny, why'd they fire you
Now that’s just crazy their rubbing salt in the wound
I told them I wasn't going to code anymore if he was going to keep adding his friends to the funding %
spent 2 weeks with barely any sleep coding it
Did they at least pay you well?
U cant DMCA it?
none 0 robux
Wait wait wait did you agree to do it for payment
They did want to give me 2% if I would code for them in a separate studio I told them no
I was with them from another project I didn't think he would do that to me
damn
hmmm i can try
I am
So many skill roles )_)
Any advice for a lil’ guy who only knows luau and gdscript?
Just keep working
And you'll be the best
🫡
an1 know how to make a roblox verification with o-auth. i got code that "semi-works" but the link part isn't working.
alr
I need help
Who is experienced at scripting and making cutscenes?
Wait they didn’t want to pay u even 2%
Im looking for a strong scripter who can be my developer partner for my mech game. Dm me for more info!
They did but I wouldn't take it
Oh
That is slave wages I spent 2 weeks straight with barely no sleep coding that
Makes sense cuz what is 2% gonna do
Scripters deserve at least 30% of a game cuz they control what happens to it
I was like a temu worker
U still commisionable or u taking break
that was in 2016 I coded defusal
I got my own game going atm though
Ohhhh
did you register it
Does anyone know how I can make a floppy/wobbly character like gang beasts?
screenshare (requires host to run a python script)
im not releasing this because people could screenshare very unappropriate sites right inside roblox
8 fps
the screen is made up of mini parts (pixels) which i automated using a cutting script so i dont have to place a bunch of tiny parts manually.
python grabs the colors on my screen and shares it to roblox studio via http service roblox studio gets these colors and assigns the color to the pixels.
basically a virtual monitor.
Buddy i js have a question 😭
I need help
Who is experienced at scripting and making cutscenes?
Nvm I fixed it
That’s really cool; nice job!
might leak source when its stable but idk for rn
people might use it for bad reasons if you know what i mean
i just did it as a test to see if its possible and it suprisingly is
nah
if they agreed to 2% thats that
u should’ve discussed profit shares before starting the game
always gotta put a few backdoors in
not on my pc rn so ill show u later
its a bunch of cut parts that display a color thats on my monitor
Show a video
Makes sense
any ideas about what to script for my portfolio?
Anything that showcases an api/technique/service
ex: elevator for tweens
Or make game systems for popular genres
that depend what is your game how much they affect your game whats the goal of your game
a majority are just value or optional, some are dlc though
dlc ?
woah
my goal is just a casual fighting game and it's going well in revenue and decent in playercount
it was 10 back then and now its 30-40
my way to say exclusive only to gamepass
thats good tho spamming gamepass is not really good
it can kill game so be carefull
bros motivation is driven by the success of big games 😭
well a majority of things is easy to grind and free
wdym?
so i don't think it should be bad
i get it just sometime people go to far
but look at this
what in the world
who adds that many gamepasses
bedwars
not even pet sim has this much
oh yea the kits
if its optainable ingame than its fine
bro wth
thats some crazy stuff the bot sent
my inspiration to add new things are bedwars, pixel gun 3d, and random media i see on twitter
well one thing is for certain players will view u as a greedy roblox developer even if thats not what u want
just to many passes
and im betting theres plenty of dev products
theres only coins
most expensive product is 400
oh yeah and i added a couple premium benefits
do you get paid by roblox if you have premium benefit?
ok but im guessing they have to re purchase coin products a few times just to afford something am i right?
no but it encourages them to continue playing
yeah, but i don't really recommend purchasing them, its kinda optional
wdym?
whats your pvp's game name
you can just get more coins by having friends in your server
i wanna see if its good or dog
i understand its like every game that add coin
you can get a lot of coins really easily
yeah
personally I wouldn’t add to many profit driven products
how many players do u have?
Game name?
i ssent it
this is my game
dopey fighters 3
search it up if you think its an ip grabber
its not
like to dislike ratio is crazy
i clicked ( im on the aust side )
are u listening to feedback
we got bombed way earlier lol
like by bad people
which sadly influences their vote
yeah
bro started a war with another dev team 💀
gonna be honest with you the game is decent but the ui
you play on mobile :d
and ur group wall is closed….
our group wall is closed for peolpe not in the group
that's normal lol
dont agree on that
it feels like item asylum because the game is just chaotic, that's really it. i get compared to it very often
your still on mobile
its not chaotic a tool just deals 500000 dmg
Help this poor fellow out
that doesnt mean its chaotic
frl
he can probably get it when he joins back, sometimes roblox doesn't detect rejoins with the new gamepass owned
then tell him this
i think its ideal to engage with ur community
oh yeah we're adding pyro hooligan like people wanted, got suggested this heavily in game chat
how much robux this gonna cost
Can anyone give me a scripting hand with smth I can’t do 😶
its free
its gonna be part of the new skin crate
👍
how much robux is the skin crate
skin crates dont cost robux
👍👍
they just cost coins
im telling you this as a guy who made a randomizer pvp gme before:
your game is good in terms of visuals and gameplay, its simple,
why did it pop up gamepass purchase suggestions when i joined
also your game has the feeling of a randomizer, but at the same time not with the characters and allat,
50000 dmg tool bros trying to be IA,
audio shouldn't be global cuz when i played i heard some and my ears went nuts,
some anims are good some should be remade
final verdict: i'd give your game a 7.5-8/10
id see it as a game id play so
oh yeah i should give context on why hte melees are insta kill
solid rating
we were making a talent show originally with a sledgehammer tool as a prop for the show
when prepping it, we found sledgehammer duels fun
which dopey fighters reborn (aka 2) was made
same with monitor pads
which were props for parkour of our talent show
one thing is the ratio
59%
yeah i know
context?
i hope we can make it up though
why is it so low
i used to own another game called tds rpg, which had 10m visits. that community hated my original work
that ratio will scare away players
so i later left tds rpg and shut it down permanently
i left tds rpg to work on dopey fighters 3
about this, did u make a tds just cuz it was trending
i hate people who make copies of popular games
no it was a group project for fun out of passion, but it got popular out of nowhere
dignity over greed
every roblox developer in question:
i didn't want to be popular with tds rpg so i used it as a fundraiser for df3
a month later
for me its dignity over greed
because people started harassing me over and over
trying everything for me to be gone
so i didnt care about them anymore and did whatever which i milked completely
you don't just say that youll use that game's funds for another out loud
i care about dopey fighters and i will always care about my original work
people think theyll be used
well i don't care about my tds rpg audience, and i know they're too stubborn to try a pvp game. i'm much more happier with other things
imma hold your balls when i say this
u never cared about ur audience…. What if some of those individuals are playing ur new game……
i mean i'd care about them then, because they're willing to try new things. the people who are stubborn are usually the most rude towards me
also look at this terrible recreation lol
i didnt wanna hire a modeler
so i just took a sphere
with a smiley face that turns black and green
via tween
wanna see something funky
okay
check ur dms and hold your balls
Why don’t any script I make now not work but my old ones do in the same game?
guys best site to make profilo
guys is there a way to detect if a gui element is hitting other gui element?
looking for GUI and scripter robux payment only and payment after completion
I hope I can finish this game
ngl it looks sick
this game is gonna get popular for sure
I was a developer on their group and they wanted me to be the owner on the other project we did so i thought I could trust them
yo yo so why does cloning a part from replicated storage, then parenting it to the hrp only parent it to the hrp from the point where the player spawns?
warning.Parent = hrp
local warningweld = Instance.new("WeldConstraint")
warningweld.Parent = warning
warningweld.Part0 = warning
warningweld.Part1 = hrp```
but parenting it to the torso or any other parts work?
nvm fixed it just moved the position after its welded and parented to the correct spot
how do I make a couratine that returns the name of a variable when yielded
i been wondering, since animations replicate to the server does that mean you can use them as an alternate to remote events
like once a player plays a specific animation the server picks that up
You cannot return variable names
do you mean quarantine?
logically yes
but i wouldn't suggest it if u dont know how to handle it
Of course
Coroutine
oh alr
how could I return a value when a couratine is yielded
you get it from the resume function
i thought you can only send arguments with the resume function
ty
is there any way to get it from the close function
Im trying to create a loop that loops through 5 CFrame values and creates a tween on the camera with a delay inbetween each and then a button that can break the loop
I did a couratine since I can close that whenever but I need the name of the tween so I can cancel it
is there no other way to do it?
a table is the most stright foward way
ah ok ty
https://gyazo.com/5bdbc83bc91ebb43be817540d209e02e i hate tweening how did i even manage to accidently do dat 💔
meant it in a way i know how i wrote it but didnt work the way i expected it to at all
yea
its supposed to when the player goes up they fade out
naw its cuz the way i wrote it
making it just make the player fade out normally is easy i already had that but trying to make the other parts thats apart of the player model do the same
lol
type TransparencySurface = Instance & {
Transparency: number,
}
local function getNormalTransparencySurfaces(character: Model, filter: () -> boolean?): {TransparencySurface}
local results = {}
for _, descendant in character:GetDescendants() do
if descendant.Name == "HumanoidRootPart" then
continue
end
if not filter(descendant) then
continue
end
if descendant:IsA("BasePart") or descendant:IsA("Decal") then
table.insert(results, descendant)
end
end
return results
end
ah not needed anymore i found a simpler solution, thank you though!
What did you find?
to be honest it just randomly started working
Then it's not working
how come? its working fine now
Seriously?
You think things magically become better?
It's an intermittent bug; if it had the capcity to happen in the first place, it has the capacity to happen again
well i did obviously change it up a bit
Murphy's law
other issue was also
since i used GetDescendants() it would also tween the transparency of two parts in the player model which i wanted to keep transparent
The function I gave you will provide you with an array of all instances within the character that contribute to normally visible surfaces on the average character. Use it to tween the transparency of the character as a whole
so lua if person.Name == "Example1" or person.Name == "Example2" then continue end
worked for me
How can i make it so players character can automatically swim underwater ?
I tried pathfinding and move to but these doesnt make the player go underwater only til the surface
Your face is still visible
You have the capacity to turn the HumanoidRootPart visible as well
@stray dock
ah that was a old gif it works now turning the face invisible
do you just wanna see the full code block? and gif of it working now
Mate, you need to get out of the "I need a video" mindset
It's called software engineering for a reason
You have to make this shit yourself 90% of the time
It's not like someone's going to have a perfect breakdown of that exact GUI
Um
true you gotta go thru all it if you want smth that looks good
Dude. "This" is so unclear
Know what you want before asking for help
You should know how frustrating it is to try to unpack a vague request from someone
I know it
Ok i want to make a tower defence i dont know how the reward system work
Are that more clear
The problem are i cant good English
type TransparencySurface = Instance & {
Transparency: number,
}
local function getNormalTransparencySurfaces(character: Model, filter: (Instance) -> boolean?): {TransparencySurface}
local results = {}
for _, descendant in character:GetDescendants() do
if descendant.Name == "HumanoidRootPart" then
continue
end
if filter and not filter(descendant)) then
continue
end
if descendant:IsA("BasePart") or descendant:IsA("Decal") then
table.insert(results, descendant)
end
end
return results
end
local function auraTransparencyFilter(instance: Instance): boolean
return instance.Name ~= "X" and instance.Name ~= "Y"
end
local transparencySurfaces = getNormalTransparencySurfaces(character, auraTransparencyFilter)
You can do something like this
guys
any idea why my shit doesn't save? when I added DS to my leaderstats it saved the multiplier but the other thing partsummoned didn't save? even though i had a button spawn parts and when it spawned parts it counted in leaderstats so why aint my DS working?
Do some one knows where i can find a tutorial from a tower defence map elevator system
@wanton robin its wdsyus other acc doesent let me send messages
@smoky citrus its wdsyus other acc doesent let me send messages
Why would you ask this question without providing your code?
It is 1000% an implementation issue on your part
too lazy to open studio 😭
Then don't bother askin'
Can you pass a cloned model between server and client?
Only if the model was cloned on the server, and the clone was given enough time to replicate to the client
i passed it on the server to the client but i think you are right about the second thing since i didnt add any wait() functions, so imma try that
yea it works, thanks!
I’m working on https://veo-six.vercel.app/
It’s a voting application I need feedback please
I think my game will be a little different to those auto battler mobile games
The player will have more control
I'm planning basically an RPG game.
except instead of controlling only one character, you control an army
and in town you recruit more soldiers to join your army
I already have lots of different tricks to optimize it hehe
for example I'm not using humanoids, I just set their cframes (and I can throttle the cframe update rate if needed), and only animate them if they're on screen
and have custom replication
it was the only way to get it to work with so many npcs
default roblox humanoids and replication can't do it
I have some optimization tricks I tested that can get up to 10,000 npcs running around on the server
this is an old video where I tested 5000 npcs (each npc is represented by a simple cube.. which is fine for testing purposes)
you can see each cube is moving and maintaining its own personal space.
it's not going inside other npcs or inside the big blocks
it's a bad example though because the recv is high
I can optimize that to be lower though
they're crazy unoptimized if you want to have high numbers of them
yeah I have a system for managing hp etc.. other MMORPG attributes too
Yucky humanoids
maybe use cull throttle
No you're not
Someone of that caliber is far beyond your available remuneration. People often confuse "years of experience" with the time difference between when a scripter started and the current date. If that were the case, I'd have 10 years of experience
What's of real value is the scripter's total time spent working professionally and developing their craft
A little over a year of dedicated effort has been statistically shown to correlate to "mastery"
Roughly ten thousands hours
To become a captain of a commerical jet airliner, you need a minimum of 1,500 flight hours
So by that rate, you're asking for a Roblox scripter with 20x the experience of a captain, lmfao
100% agree
any one know how to make a movement system like this?
who here is good at scripting?
i need someone to quickly script my gamefor some money
dms
Who pang me
Are you good at scripting?
No
@hoary cedar
can u help me with something pls omg
i been trying so much
theres smth not working in live game, only in studio
help pls
Hello Guys, i need help in my crouching animation (Crouch while walking), it's not looking like the animation I made (i am new to this)
yeah i know, i am using a custom walking animation + what should i set the priority ?
action4 🔥
lemme try it
still same problem 
then it’s a problem in the code
send code
local crawlSpeed = 8
local walkSpeed = 16
local key = "c"
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChild("Humanoid")
local rootPart = character:FindFirstChild("HumanoidRootPart")
local TweenService = game:GetService("TweenService")
local idleAnim
local moveAnim
local isCrouching = false
local crouchCameraOffset = Vector3.new(0, -1, 0)
local normalCameraOffset = Vector3.new(0, 0, 0)
local tweenInfo = TweenInfo.new(0.3, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
local function tweenCameraOffset(targetOffset)
local tween = TweenService:Create(humanoid, tweenInfo, {CameraOffset = targetOffset})
tween:Play()
end
local idleAnimation = Instance.new("Animation")
idleAnimation.AnimationId = "rbxassetid://139411164591008"
local moveAnimation = Instance.new("Animation")
moveAnimation.AnimationId = "rbxassetid://70454074585568"
mouse.KeyDown:Connect(function(k)
if k == key and not isCrouching then
isCrouching = true
humanoid.WalkSpeed = crawlSpeed
tweenCameraOffset(crouchCameraOffset)
if not idleAnim then
idleAnim = humanoid:LoadAnimation(idleAnimation)
end
idleAnim:Play()
end
end)
mouse.KeyUp:Connect(function(k)
if k == key and isCrouching then
isCrouching = false
humanoid.WalkSpeed = walkSpeed
tweenCameraOffset(normalCameraOffset)
if idleAnim then
idleAnim:Stop()
end
if moveAnim then
moveAnim:Stop()
end
end
end)
humanoid.Running:Connect(function(speed)
if isCrouching then
if speed > 0 then
if not moveAnim or not moveAnim.IsPlaying then
if idleAnim then idleAnim:Stop() end
moveAnim = humanoid:LoadAnimation(moveAnimation)
moveAnim:Play()
end
else
if moveAnim then moveAnim:Stop() end
idleAnim = humanoid:LoadAnimation(idleAnimation)
idleAnim:Play()
end
end
end)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local PlayerService = game:GetService("Players")
local DataManager = require(script.DataService.DataManager)
PlayerService.PlayerAdded:Connect(function(player)
local Profile = DataManager.GetProfile(player)
print(Profile)
end)
local DataManager = {}
--// Table to store data
DataManager.Profiles = {}
function DataManager.GetProfile(player)
local profile = DataManager.Profiles[player]
if profile ~= nil then return profile.Data end
end
return DataManager
any reason why im getting nil?
Sorry for the late response, it looks good.
@main tinsel can you check the code and tell me if there is any problem
ture
now the movements not working and the crouch work without problems 🙂
u not storing anything in the table
Lads what is the best way to practice scripting? Like obviously writing yourself is best but I have trouble with what to do. Sure I can search it up but there is a big tendency to just copy it.
I NEED SOMEONE WHO CAN SCRIPT SOME STUFF FOR 15 USD (PAYPAL AND DEADLINE IS ON THE 10TH OF FEBRUARY)
dm me*
bud its feb
oops lol i just fixed it
You mean something like a game?
But I can just look the scripts up and Ctrl+C ,
Ctrl+V.
Not really practice😭
👍
Yeah then how do I figure out how to write the stuff, I haven’t got much experience.
So I got like 1 year experience, know beginner stuff and some advanced.
That’s not the case it seems. I just get stuck on what to even write.
Thank you for the advice🙏
does anybody here need coin system?
yo could someone help me implement a system in this script where if u perform a m1 and ur in a close radius u propell to the target just like in tsb using bodyforce or bodyvelocity? just like in tsb, thanks allot
function roundMod.BeginFlagSystem()
local map = game:GetService('ServerStorage'):WaitForChild('Maps'):WaitForChild('BetaMap')
local flags = map:WaitForChild('Flags')
local flagsT = {
blueFlags = flags:WaitForChild('BlueFlags'),
redFlags = flags:WaitForChild('RedFlags')
}
for i, flag in pairs(flagsT.blueFlags:GetChildren()) do
local att = flag:GetAttribute('Flag')
local flagDetectPart = flag:FindFirstChild('DETECT')
if flagDetectPart then
print(flagDetectPart)
if flagDetectPart.Parent.Name == 'flagBlue' and att == 'FlagOne' then -- check if flag is flagone
local flagOne = flagDetectPart.Parent
print(flagDetectPart.Parent)
local CLICK_DETECTOR = flagDetectPart:FindFirstChild('ClDt')
if not CLICK_DETECTOR then
warn('does not exist')
return
end
print(CLICK_DETECTOR)
CLICK_DETECTOR.MouseClick:Connect(function()
print('Clicked.')
end)
print('reached!')
end
end
end
end
does anyone know why MouseClick wont work?
arent u supposed to use mousebutton1click:connect(function()?
o
ur using a click detector
yeah
is it possible to use multiple textures on an editablemesh
if roblox added the possibility for atlases that would be nice
guys what is the diffrence between using :FireAllClients() and just using normal script ?
no
hollup tryna find a fix for u
what
FireAllClients just fires it on all clients
and normal script just do the same things for all clients
0
Yeah but its just there you can use it to fire events like gui pop ups when triggering something and whatever
the difference is that a normal script overloads the server while fireallclients does it on the client
no
bro didnt open studio before
oh i didn't think about that
no need for using connect function pretty sure try doing it without that
ive got games with millions of visits
lol
`local detector = workspace.eee.ClickDetector
if detector.MouseClick then
print("eee")
end`
?
its printing that when i dont even click it
then go ahead and show them 💔
lets see
oh weird
nice thank you for telling me that
is it possible to play animations w just a keyframe sequence instance or no
really didn't know that before so FireAllClient() is more convenient
it does, imagine spawning tons of vfx on the server vs on each client separately
then the server has to do 30 bajillion calculations
which will bring performance down by 3000%
nice this thing really useful
again can you show me those games of yours
i work for bighit
for what
jesus story
im just now learning how to script, Can someone give me feedback i made this to train my skills
if 1 + 1 > 0.5 then
print("This statement is true")
wait(2)
print("I forgot to say that of course 2 is bigger that 0.5!")
end
if 2 + 3 == 5 or 2 +4 == 4 then
print("One of these statements is true")
end
if 15 + 10 <= 20 or 2 + 18 == 20 then
print("This is for sure true")
else
print("NOTHING IS RIGHT")
end
did you meant bigshit
i can give it a go
to search
do you know pet simulator
bro works with those people in their dreams 💔
you know, it aint cool to lie dog
i could easily flex 2
just because of yo ego....
its vice versa
Does anyone uses upflit rojo version along side with syncback ?
no that wasnt it
it just hadn't loaded in
Is there a good ragdoll tutorial out there?
my dev has 2 scam logs should i keep him on 
scam him
is there any way to pathfind only using specific parts? im looking for something like raycast's raycastparams feature where you can filter what parts you want to be included/excluded
I would recommended a middleman to stay safe
How do I use the repeat method
he didnt even want payment he just seemed really invested in the game and said we can talk about that later
so unless hes trying to steal the game?
but idk
does he have experience
or just a beginner
9 years
his scam logs are basically not finishing on time and the people kicking him off cause of that
so not really actual scams like taking the money and dipping
oh time wasting
not a serious problem then
just keepm practicing
thats just the basic of it but maybe learn how to like change a parts properties for example if yk how to do this i got a task for u. if x == 5 then change a parts colour to yellow if its not 5 then change it to red
yeah he’s also paid for some of the other devs on the game so
i can probably trust him
somebody help my uis doesnt work even when i m1 ;-;
u gotta do input.InputType
not .KeyCode
thanks brotha
yw
make sure to have evidence of everything that happens just in case
if i tp humanoid root part does it tp my character?
whats the best way to have a rng system with luck ?
yes
yo
i wanna make an inventory system
and idrk how to go about it
should i make an inventory folder inside the player instance?
i mean yea i will wanna make a gui for the inventory
but idk if this method is good for storing all the items the player has
Ok I would store the actual weapons in like server storage or replicated storage under some folder
ye
Then use a data store to save which weapons the palyer has
i dont need to use datastore
Then duplicate those weapons into a folder inside the players instance
i dont want the weapons to save
no
ye
alr
i just wanted to know if there is a better more organised way
Like is the player picking up the weapons or do they just spawn with them
Then I would just do what you were thinking have it duplicate the weapon inside a folder in the player instance
and like the pick up function
Well for the pick up I would also link it to the folder in the player instance to check if it has updated
And then just loop through everything and use a like I think it was a uil list
ye im lost
ok ok how much coding do you know
if you haven’t done anything like this before I would just recommend going through other peoples inventory system maybe from YouTube or the toolbox and see how they did it
Np
the label isnt changing on my screen, anyone know why?
Motor1 = mainchar:FindFirstChild("Torso"):FindFirstChild("Left Shoulder"),
Motor2 = targetchar:FindFirstChild("Torso"):FindFirstChild("Right Shoulder")
}
Motors.Motor1.Enabled = false
Motors.Motor2.Enabled = false
local function createBallSocket(motor)
local socket = Instance.new("BallSocketConstraint", motor.Parent)
local attach1 = Instance.new("Attachment", motor.Part0)
local attach2 = Instance.new("Attachment", motor.Part1)
socket.Attachment0 = attach1
socket.Attachment1 = attach2
attach1.CFrame = motor.C0
attach2.CFrame = motor.C1
socket.LimitsEnabled = true
socket.TwistLimitsEnabled = true
socket.UpperAngle = 90
socket.Restitution = 0.2
return socket
end
coroutine.wrap(createBallSocket)(Motors.Motor1)
coroutine.wrap(createBallSocket)(Motors.Motor2)
local MainCharAttachment = Instance.new("Attachment", mainchar:WaitForChild("Left Arm"))
local TargetCharAttachment = Instance.new("Attachment", targetchar:WaitForChild("Right Arm"))
local HandSocket = Instance.new("BallSocketConstraint", mainchar:WaitForChild("Left Arm"))
HandSocket.Attachment0 = MainCharAttachment
HandSocket.Attachment1 = TargetCharAttachment
HandSocket.LimitsEnabled = true
HandSocket.TwistLimitsEnabled = true
HandSocket.UpperAngle = 60``` -- i have this arms ragdoll system, and it doesn't work as expected, its supposed to ragdoll the left arm of player 1 and right arm of player 2, and joint them for a effect, and the code doesn't let them walk and it just messes with the collision as after a time we go into the void due to sliding, i haven't used ballsocketconstraints that much before
youre changing startergui, not playergui
jumpscare
change plr.PlayerGui instead
ballsocket jumpscare
ok ty
Hiii
worked, tysm :D
Can someone help me script
Sure.
bit of a broad question but does anyone know the objective best way to handle gun logic on roblox to ensure the lowest latency possible without leaving the system open to easy cheating methods like sending the server the incorrect mouse->world position, im assuming itd be just to have the client send the position and then have some logic to figure out whether that is possible within their cameras viewport range, but i guess theres no way to mitigate average aimlock scripts?
dm me if you wanna make a game together need scriptter mainly
Anyone wanna test my game im tryna sell: https://www.roblox.com/games/126136629197801/Battlegrounds-test
wow I thought ur name was somethin bad but I was just covering the tech part
Can someone tell me why after purchase the speed multiplier is not granted and the label does not change its name
local button = script.Parent
local player = game.Players.LocalPlayer
local tweenService = game:GetService("TweenService")
local productService = game:GetService("MarketplaceService")
local runService = game:GetService("RunService")
local product2xSpeed = 2840082234
local product4xSpeed = 2840082782
local product8xSpeed = 2840083659
local product16xSpeed = 2840084204
local product32xSpeed = 2840084715
local product64xSpeed = 2840085128
local product128xSpeed = 2840085699
local product256xSpeed = 2840086332
local speedMultiplier = 1
local buttonText = button:FindFirstChildOfClass("TextLabel")
local function updateSpeed()
if speedMultiplier == 1 then
buttonText.Text = "2x Speed"
elseif speedMultiplier == 2 then
buttonText.Text = "4x Speed"
elseif speedMultiplier == 4 then
buttonText.Text = "8x Speed"
elseif speedMultiplier == 8 then
buttonText.Text = "16x Speed"
elseif speedMultiplier == 16 then
buttonText.Text = "32x Speed"
elseif speedMultiplier == 32 then
buttonText.Text = "64x Speed"
elseif speedMultiplier == 64 then
buttonText.Text = "128x Speed"
elseif speedMultiplier == 128 then
buttonText.Text = "256x Speed"
else
buttonText.Text = "Max Speed"
end
end
local function onPurchaseFinished(purchaseId, player)
if purchaseId == product2xSpeed then
speedMultiplier = 2
elseif purchaseId == product4xSpeed then
speedMultiplier = 4
elseif purchaseId == product8xSpeed then
speedMultiplier = 8
elseif purchaseId == product16xSpeed then
speedMultiplier = 16
elseif purchaseId == product32xSpeed then
speedMultiplier = 32
elseif purchaseId == product64xSpeed then
speedMultiplier = 64
elseif purchaseId == product128xSpeed then
speedMultiplier = 128
elseif purchaseId == product256xSpeed then
speedMultiplier = 256
end
updateSpeed()
if player.Character and player.Character:FindFirstChild("Humanoid") then
player.Character.Humanoid.WalkSpeed = 16 * speedMultiplier
end
end
productService.PromptPurchaseFinished:Connect(onPurchaseFinished)
button.MouseButton1Click:Connect(function()
if speedMultiplier == 1 then
productService:PromptProductPurchase(player, product2xSpeed)
elseif speedMultiplier == 2 then
productService:PromptProductPurchase(player, product4xSpeed)
elseif speedMultiplier == 4 then
productService:PromptProductPurchase(player, product8xSpeed)
elseif speedMultiplier == 8 then
productService:PromptProductPurchase(player, product16xSpeed)
elseif speedMultiplier == 16 then
productService:PromptProductPurchase(player, product32xSpeed)
elseif speedMultiplier == 32 then
productService:PromptProductPurchase(player, product64xSpeed)
elseif speedMultiplier == 64 then
productService:PromptProductPurchase(player, product128xSpeed)
elseif speedMultiplier == 128 then
productService:PromptProductPurchase(player, product256xSpeed)
end
end)
updateSpeed()
runService.Heartbeat:Connect(function()
if player.Character and player.Character:FindFirstChild("Humanoid") then
player.Character.Humanoid.WalkSpeed = 16 * speedMultiplier
end
end)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
humanoid.WalkSpeed = 16 * speedMultiplier
end)
How to check if the user has liked the game ? (thumbs up)
wtf is this shit lmfao
guys can someone help me make a third person shooter game?
yeah bro im broke
this aint gofundme, develop it yourself using tutorials and ask for help understanding code here
yeah, it doesn't have tutorials for tps games
https://devforum.roblox.com/t/need-help-on-where-to-start-with-making-a-third-person-gun-system/2457722/7
https://www.youtube.com/watch?v=UsahcBf18jE
https://www.youtube.com/watch?v=yPy4j-hjckI
Honestly I find that hard to answer, the simplest I’ve ever “made” a gun was taking one from free models and lightly editing it 😅😅😅 at least that’s where I started, it would help you understand how these systems work. Apologies if I caused you to be intimidated with gun systems. It sounds complicated, and in a way, it is, but it’s just because o...
In this video, I show you how to create a third person over the shoulder camera in Roblox Studio using scripts (local scripts). I teach you about ContextActionService, RunService, and some CFrame math. Hope you enjoy!
I'm using a new microphone in this video, hope you guys like the better sound quality!
▻Comment any questions down below!
▻Ma...
The game link: https://www.roblox.com/games/13328394381/3rd-Person-FPS-System
Here is the devforum post by Headstackk about rigging and animating weapons: https://devforum.roblox.com/t/how-to-animate-tool-parts-guns-knifes-etc/359484
yeah but im just tryna make it non advanced
but thanks ig.
that's not how TPS systems work
ok thanks.
thank you!
yeah but im trying to make a game for clans
not like deathmacth games but wtv
just get a free model gun and add a round system lol
can you help me out 😊
is anyone here experienced with ballsocket constrains or ragdolls
can someone help me make a soccer/football game like tps street soccer
I would recommend getting into loops and pairs stuff to avoid "repeating yourself"
coming to the problem, are you sure you are not running the updateSpeed() just once?
try doing a "check" with print()
If it prints just once when you buy, there is your problem
it is a bad option
Not when we have 2 investors
Unreliable and not consistent
true
thats a lot of conditions
Holy
i fix the issue
i made handler in server script service
and made a remotevent
and it works now
🙂
anyone have a good way to quickly load Sounds in SoundService?
I'm making dynamic music with different Sound instance chunks, but even when I preload, some Sounds fail to play (probably due to lag)
I can send script if needed, but it's a little big
anyone know sum open source games that are decently made(please link them)
is there a built in way to make a deep copy of a regular table? or do u just have to make it yourself?
dm to join team making game ]
trying to learn lua, i already know python, c and c++ and lua basics but how do i get to the advanced stuff
Best Modules for Scripters?
is anyone here experienced with ragdolls
search for a deep copy function on google
whats something kinda easy to make
i gotta test my skils
And what’s the best Framework to make a game
Like what’s a way i can script a game that makes it advanced smooth and easy to change
Battlegrounds
Okay
Okay
Imma still learn oop
I know it but not fully
Wanna see some stuff i’ve made?
help me out gng
sent u tutorials gng
yeah but i don't need that advanced type
so go to the devforum and search
can use fastcast for the hitbox
nobody takes % if you dont have a prototype and a good concept to show
@simple yew no selling
why would someone take a % if you throw out an idea that may or may not work
it's like an investor lmao
just like you wouldn't go work a job that says they may pay you if the place succeeds
you would only work there if you could guarantee a success
xD
Wdym I made the system
read english you bot
No selling in this server....
you cannot sell the system in the server
y did u guys remove the marketplace
ight why u pressed
coz nobody want your laggy memory leaking ahh battlegrounds system man
chopped shyt if it was a system
❤️
I don't own the server. Make a suggestion in #1138302483500912750
@simple yew benchmark it versus free systems and ill buy it from you
chat why did your mod dm me 1.5 mo later about 3 scammers i reported
i just coded this thing
Fym Laggy memorry havent even tryed that shit
is there plugins that can help me learn coding?
na this aint intellij i wish tho
use youtube
what about it
Yeah, scam reports where going slow for a good while and we got some interns now and hopefully it's going to be better
its fucking awesome
🙏
damn
the scripting, someone modeled the grenade launcher for me
nice gun bro
how can i learn to script better then
its p nice mechs
i want to make fake exploits ong
it reminds me of double shotgun in arsenal @summer aurora
read docs
anti aimbot
read docs
whats that?
its the iron bomber
roblox documentation?
what does it contain where do i find it
look up roblox documentation....
this stuff is genuinely really hard to aim but when it works, it works man
add laser
and a crosshair thats better
you could try recoil crosshair if ur fancy like that shyt
damnnn bro thats goated
you made that?
yeah its my game
W bro, what kinda game is it
movement and fighting, its casual imo lol
its a puzzle game
yeah that too
there's puzzles
mf asked what the game was when bro is literally saying he added a gun to the game
its a fighting game chat
are we serious
gang theres a shit ton of games that have guns
im asking for more details
tdv?
the game is mainly melee based, but recently i've been trying to add ranged weapons
im not trying to but bro wtf question is that
man you coulda asked what kind of fighting ame that is
is anyone experienced in custom ragdolls (not death ragdolls)/ballsocket constrains (tryna fix a annoying bug 💔 )
im interested in the game? idk dude

the dev king
wait so its actually a melee game?
its shifting away from it
melee to shooter game 😭 crazy progression
with a little amount of gamepasses
the thing is, i need to ragdoll a player's left arm with another player's right arm and connect them at the same time
not just a simple ragdoll effect for 1 player
yes but i slide to the void and i cant walk
and i also get flung up to jesus if i rotate my camerat oo much
a LITTLE
send link real quick
so
plus a good portion (like a very huge portion) of the content is free, they're just there to be there trust me lol
so what
what do u need help with
damn?
all that off cosmetics
your probably bagged out ngl
basically a arms ragdoll system where i ragdoll player1's left arm with player2's right arm and connect them
ok, whats the issue
everything works but i cant move and i slide to the void
and if i rotate my camera i get flung up to god
are the bodies massless
and did you disable autorotate and shit
so that the players cannot control local movement
no but autorotate is needed and massless did nothing
literally nothing
no other change
well then you should put the players into third person (forced)
and lock them to no shiftlock first
and see what that does
also are you sure everything is massless? if they are sliding there is a force pulling on them
they are into third person
they should not move at all
I do tho
yeah, but lets say this wasnt a big problem, the big problem is why do i get flung up to god when rotating the camera and why i cant walk
because you have something that is controlling the character bro
im telling u that your player isnt fully detached
are you running your code on the server or on the client for the ragdoll
controlling as in? i dont get what you mean
server
cuz theres nothing controlling player 1
like the camera moving
is actively effecting the character
which it shouldnt
it should be completely detached
make sure you also removed the camerasubject and camera type changed to something else
like follow/scriptagble
