#code-discussion
1 messages · Page 240 of 1
i just changed placement and it worked
wait what so I couldnt add to a existing script?
sorry guys wasted your time
workspace.Script.Source = workspace.Script.Source:gsub("print", "warn")
im a new scripter trying to make a ther floor is lava type of game
Ofc you can, Source ..= "\n-- This is at the end of the script."
Are you trying to make the lava floor grow?
alright
Nah bro sometimes you need a 2nd pair of eyes or in this case 3rd cause I missed it too see
Are you trying to make the lava floor grow?
wait I tried using that with console and it didnt do anything
im going to tackle that next, im going to have to add a timer system so probably 30 seconds. then it rizes to a certain level
rises
What is that while loop for then?
Let me try hold on
wait ima try asking roblox assistant first
idk, i should probably do an for i in range loop
or for y in range in this case
It worked for me, do you have team create on or something?
yeah I do does that matter
What are you trying to do then inside the while loop?
You must make sure no one has the script open in a tab before you do stuff like that
OHHHHH
i was just trying to make it rise to a certain level then come down
Look into tweenservice its much easier for this task in my opinion
It also ensures the level goes up smoothly and not in 0.5s steps
ok. i dont know anything about tween service is there a yt tutorial?
Yeah use tween service
Yes LOTS
You can try reading the head of this page ,its like a 10min read. If you still dont get it look up a video
https://create.roblox.com/docs/reference/engine/classes/TweenService
API Documentation - https://create.roblox.com/docs/reference/engine
Have any questions? Feel free to comment or join my discord community where you can meet other developers and learn or just hang out!
https://discord.gg/f3ZqcDqTq5
Want to support me? Come check out my Patreon for awesome benefits!
Patreon: https://www.patreon.com/user?u=78840...
This one is how I learned
wait @peak jolt is there a way how to detect which player has a script open so incase the script is open and it cant be modified it will warn something like "Username" has "ScriptName" open so it cannot be modified
Ehh this is where it gets really complicated and maybe even impossible unless everyone has your plugin installed but two pointers you can start with are
- https://create.roblox.com/docs/reference/engine/classes/ScriptEditorService
- Look into "Drafts" mode for script collaboration (rather than live sessions), it's disabled by default but turns scripting into a more "checkout-commit" process rather than live edits and your plugin would possibly work with that
is it possible just to check if the script is open then?
For the local player yes absolutely, but i honestly have no idea if you can check it for everyone thats online. You would have to try out the stuff in scripteditorservice with a 2nd pc/2nd guy logged in
yeah thank you
FindScriptDocument tells you if its open locally
ok
I think GetScriptDocuments also works
yeah I need that because the plugin will be used outside of a script anyways
whole point of the plugin is not to script lol
Yes probably but you would have to filter/iterate, if your goal is to make a plugin that edits 1 script like you said then find will automatically correlate "is this LuaSourceContainer in an editor tab or not"
If your goal is to do a mass edit then i guess you could just check for #GetScriptDocuments() > 0 and display an error "please close all tabs before running the plugin"
its only editing one module script thats pretty much a table and adding something so its pretty simple
'''local y = 1
local TweenService = game:GetService("TweenService")
local info = TweenInfo.new(1)
local Goal = {
["Size"] = Vector3.new(2048, 153, 2048)
}
--kills player on contact--
local function Getkilled(hit)
print("hit")
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
script.Parent.Touched:Connect(Getkilled)
--increases the size--
local Tween = TweenService:Create(script.parent, info, Goal)
wait(4)
Tween:Play()
wait how do you do the better notation
use these `
Or even better, you could just open the script using the service, and use GetEditorSource, ScriptDocument and ScriptDocument.CloseAsync, and then your edits would even work in live collaborate in team create with no issues
I know a vscode plugin that formats every file by opening editing saving closing it, your plugin could do the exact same thing
oh
very confusing u think u can take a look at my plugin code rq in dms or here?
local y = 1
local TweenService = game:GetService("TweenService")
local info = TweenInfo.new(1)
local Goal = {
["Size"] = Vector3.new(2048, 153, 2048)
}
--kills player on contact--
local function Getkilled(hit)
print("hit")
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
script.Parent.Touched:Connect(Getkilled)
--increases the size--
local Tween = TweenService:Create(script.parent, info, Goal)
wait(4)
Tween:Play(
I mean sure
does this look good?
alright thanks
how do you adjust the speed?
The "1" in your TweenInfo stands for how many seconds it will take
oh
If you want to go back to a rate-based system (1 stud every 0.5s) you have to calculate a duration
time to add this to my lua notes because i am adding notes to every new thing i learn about
ok i like this now
is there oop in lua?
yeah
Yes kinda but you almost never want to use oop just because you like oop from other languages
You only wanna use it when the opportunity presents itself
@peak jolt can u check dms?
also what is modulescirpts?
module script is an table
its like a function where if you require it you can parse in variables to it and also used for tables
ye true
Its not strictly a table, on-demand function is a good way to describe it
You can return anything
ok
can someone help me with scripting? i made a whole note about it and ik how to use functions and other stuff but when i go scripting i dont know what to add next like please someone help
Keep splitting your task into smaller units until you recognize one/all of the units
well
uhm
if i wanted to make an cutscenes
i learned that u need to use cameratype.scriptable
for camrig
but if its for roblox camera
then its cframe
right?
currentcamera
mb
When you override cframe in a loop you can basically ignore camera type and most other camera properties, you are like hard forcing it anyway
is it not obvious
noob
Google ai said this lol why didnt u look it up?:
In Roblox Lua scripting, for i, v in pairs(table) do is a powerful loop that iterates through all items in a table, assigning the index (position) to i and the value (the actual item/object) to v for each step, allowing you to easily process every element, like changing all parts in a folder or looping through players. You can rename i and v (e.g., for key, value in pairs(...)), but i (index) and v (value) are common conventions for clarity, with v representing the data and i its position or key.
not always it depends on what you return
index, value
oh
so if you loop through 10 items in a folder, i would be the current iteration so lets say third iteration so i = 3. value would be the model
uhm huh
i just literally finished all of the playlist but one always bothered me and it is loops
no wonder i cant understand that shit
Sorry i didnt actually mean loop as in loop, I was referring to this specifically:
game:GetService("RunService").PreRender:Connect(function(dt)
local cam = workspace.CurrentCamera
if cam then cam.CFrame = currentCutsceneCframe end
end)```this is just commonly also called a "loop" cause it runs forever
oh
alright so it ruins the runservice which makes prerender load the game before it runs the cutscenes right?
ruins
runs
No prerender is called every frame it just ensures that the camera is always where the cutscene wants it to be in every single moment no matter what the roblox camera is trying to do instead
You never know when Roblox might decide to terminate your account for “failure to comply with TOS,” just saying.
ohhhhhhhhhhh now i get it
When the cutscene is done you can call Disconnect like
local conn = Runservice...
--wait for cutscene to be over, e.g. task.wait(length), or any kind of event if you have one
conn:Disconnect() --this ensures the camera updates stop afterward
can u help me in dms?
I mean i dont think its gonna be faster
also go like this lua
put these `` 3 of them then type lua then paste ur code
hi
hi
i want my 1st client i did hard work to learn scripting
local TweenService = game:GetService("TweenService")
local info1 = TweenInfo.new(.001)
local info2 = TweenInfo.new(70)
local Goal1 = {
["Size"] = Vector3.new(2048, 154.6, 2048)
}
local Goal2 = {
["Size"] = Vector3.new(2048, 0, 2048)
}
--kills player on contact--
local function Getkilled(hit)
print("hit")
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
script.Parent.Touched:Connect(Getkilled)
--increases the size--
local Tween1 = TweenService:Create(script.parent, info1, Goal1)
local Tween2 = TweenService:Create(script.parent, info2, Goal2)
while true do
task.wait(.5)
Tween1:Play()
Tween2:Play()
task.wait(.25)
end
i made this yesterday, any pointers or suggestions?
if im making a script that teleports a player in front of the target how do i go about making the players HRP rotate to face in front of targets as well? still couldnt figure it out
i tried messing around and why wont the size go to zero?
i actually like the concept. maybe add like a tree falling down, golden trees, yknow the works
you can add like the bush of tree falls in void and the part become anctor = false and wait(0.3) destory()
happy birthday
i will thanks 🙏
😥
why don't we switch to pythonnn
or maybee like cut the tree the falling animation and destroy the part
animations and maybe making shaking look better
iDK
alright i understand that now
any suggestions as to how i could make the shaking better?
is it too stagnant or like robotic
python is a relatively slow program compared to other programming languages.
python slow but good for machine learning
more like 99 nights in the forest maybe
yeah, its useful like even nasa uses it but its lack of ability to directly access the hardware efficently is its weakness
yeah actually. it's also the reason big games aren't made with it despite it's easy syntax
so why roblox not use javascript
cuz javascript fucking sucks
i initially learned python and now im trying to learn lua
java is an actual nightmare
well isn't it a feature rather than a weakness? that ability got deliberately removed for a reason as python is built on C (well idk I'm just rambling here)
java and javascript is difffrent
i mean javascript
the only good language is brainfuck
javascript is main.js and java is class type lanugae
brainfuck : <<<<<<<>>>>>><<<<<<<>>>>>><<<<<>>>>>>
binary is good too, brainfuck better tho
brainfuck created by Urban Müller when he drink vodka
its beneficial since its easy to understand and easy to implement, but its speed is its weakness. It was a sacrifice for the benefit of being able to efficiently use it. Its syntaxes are also what makes python super easy, but yet honestly kind of weird. I had a hard time adjusting to other coding languages for the reason of python.
so why roblox created his own language like rblxScript
if roblox uses brainfuck the roblox studio get banned
local TweenService = game:GetService("TweenService")
local info1 = TweenInfo.new(.001)
local info2 = TweenInfo.new(70)
local Goal1 = {
["Size"] = Vector3.new(2048, 154.6, 2048)
}
local Goal2 = {
["Size"] = Vector3.new(2048, 0, 2048)
}
--kills player on contact--
local function Getkilled(hit)
print("hit")
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
script.Parent.Touched:Connect(Getkilled)
--increases the size--
local Tween1 = TweenService:Create(script.parent, info1, Goal1)
local Tween2 = TweenService:Create(script.parent, info2, Goal2)
while true do
task.wait(.5)
Tween1:Play()
Tween2:Play()
task.wait(.25)
end```
i tried to get the tween2 to be zero but instead it didnt do that
use chatgpt
use:-- Services
local TweenService = game:GetService("TweenService")
local part = script.Parent
-- Tween settings
local expandInfo = TweenInfo.new(
0.3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out
)
local shrinkInfo = TweenInfo.new(
0.5,
Enum.EasingStyle.Sine,
Enum.EasingDirection.In
)
-- Goals
local expandGoal = {
Size = Vector3.new(2048, 154.6, 2048)
}
local shrinkGoal = {
Size = Vector3.new(2048, 0.1, 2048)
}
-- Kill on touch
part.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end)
-- Tweens
local expandTween = TweenService:Create(part, expandInfo, expandGoal)
local shrinkTween = TweenService:Create(part, shrinkInfo, shrinkGoal)
-- Loop
while task.wait(1) do
expandTween:Play()
expandTween.Completed:Wait()
shrinkTween:Play()
shrinkTween.Completed:Wait()
end
You dont need the while loop
you need to check if the first tween is done playing then play the second one
Infinite while true do
This is okay for testing but not good
Better to loop with control.
Can some one please help me with how to make a tool not be picked up when the root part touches but when you click it
Clickdetector
Yea ik but what do I alter in the pick up script
can I see ur code rn
I got it sorted
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local clickDetector = handle:WaitForChild("ClickDetector")
clickDetector.MouseClick:Connect(function(player)
if player.Backpack:FindFirstChild(tool.Name) then
return
end
tool.Parent = player.Backpack
end)
looks good
Ok thx
lua```function addpart()
local part = Instance.new("Part", workspace)
part.Position = Vector3.new{
math.random(-977.8, 1018.2),
154.8,
math.random(-1018.2, 981.8)
}
why isnt the position changing?
you have to call the function
k
local part = Instance.new("Part", workspace)
part.Position = Vector3.new{
math.random(-977.8, 1018.2),
154.8,
math.random(-1018.2, 981.8)
}
part.Size = Vector3.new(132.4, 2, 119.6)
part.Anchored = true
part.CanCollide = true
end
for i = 1, 10 do
addpart()
end```
im trying out math.random
they fly out the map
part.Position = Vector3.new{math.random(-977.8, 1018.2), 154.8, math.random(-1018.2, 981.8)}```
this line
Good job
function addpart()
local part = Instance.new("Part", workspace)
part.Position = Vector3.new(math.random(-977.8, 1018.2), 154.8, math.random(-1018.2, 981.8))
part.Size = Vector3.new(132.4, 2, 119.6)
part.Anchored = true
part.CanCollide = true
end
for i = 1, 10 do
addpart()
end```
also make it look better like this
make the line go out instead down
looks better, easier to read
Lua
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local clickDetector = handle:WaitForChild("ClickDetector")
local canPickup = tool:WaitForChild("CanPickup")
local function updatePickupState()
if handle.Transparency > 0 then
canPickup.Value = false
else
canPickup.Value = true
end
end
updatePickupState()
handle:GetPropertyChangedSignal("Transparency"):Connect(updatePickupState)
clickDetector.MouseClick:Connect(function(player)
if not canPickup.Value then
return
end
if player.Backpack:FindFirstChild(tool.Name) then
return
end
tool.Parent = player.Backpack
end)
Would this work if I want it to be able to be picked up some of the time but not all the time @ashen birch
some bull
How do you paste script like that?
oh
Ok
Lua
local tool = script.Parent
local handle = tool:WaitForChild("Handle")
local clickDetector = handle:WaitForChild("ClickDetector")
local canPickup = tool:WaitForChild("CanPickup")
local function updatePickupState()
if handle.Transparency > 0 then
canPickup.Value = false
else
canPickup.Value = true
end
end
updatePickupState()
handle:GetPropertyChangedSignal("Transparency"):Connect(updatePickupState)
clickDetector.MouseClick:Connect(function(player)
if not canPickup.Value then
return
end
if player.Backpack:FindFirstChild(tool.Name) then
return
end
tool.Parent = player.Backpack
end)
Would that work?
like this
that looks nice, I dont got money though sorry
would definetely hire you if I had the dinero
HAPPY NRE YEAR GUYS
free mate
im trying to regain experience
Or
Print(“happy new year”)
my game is a passion project i am working on
Yes
he just said not asking for money
if you are a good scripter dm me for a comm
let them
i have about 10 mil in my bank account LOOL
anyone ever scraped game links? i need a way to get around 10,000 games indexed
and to sort out the empty ones of course
mapping algorithm
wdym? dms?
Do you only do this kinda style
yo @peak jolt u think u can help me again with my plugin?
What would the script to make ball possesion for a blue lock game need to be like
not the entire script but i have no idea what im doing
hire someone bro or actually learn how to script using brawldevs tutorials
stop being lazy
brawldevs ill look into them its not laziness i just dont know where to begin
ok
i did a good days work
I got a good engine going for my passion project and I feel accomplished
also i make maps scripting is smth i never learned
nice
pipe down 🥶🤫
if someone first script is telekinesis, is that not 10000% a vibe coder...
if that's your current quality you should 100% still be charging rather than just getting your name out there with free work, just sell it for a little less if you want to loop in regaining experience
very cool plugin I made for making items and crafting recipes for my survival game:
https://youtu.be/4lxyMCfQQ64
I saw someone with a script for planting and sweeping at the same time. Is it a paid script, a newly released script, or an update to a script that's being tested?
I mean the sweeper, not the vacuum cleaner.
very cool! i suggest adding an autofill feature so you don't accidently misspell any ingredients.
Like invest in my company or something
this would basically be me giving you money
no
players.playeradded works on local scripts?
no
u can reference the player on a local script tahts probably why you cant anways
ohh ok
lowkey is hard but I might do that later as well as a color picker
the top ui is from a video
yes
but it wont detect your own player
fah
yuh
Hiring or looking for work in channels isn't allowed, see [#rules](#rules message)
counts as misuse
guys how do I remap the backspace button (drops items) to a different key like q without making a new keybind
why do you not want to make a new bind?
idk bc most people know about using q to drop
i don't see why that means you can't make a new bind lol
i don't think it's possible to rebind keys anyway
but you can definitely add a key to the same action
was just wondering because you can rebind the shiftlock key
different systems unfortunately
Well, to achieve that what you need is to understand that whenever you equip the tool, the tool is placed into your character and whenever its not equipped its placed inside the players backpack folder. If you want to drop the tool then you have to put it in the workspace so… Try this script: local tool = script.Parent local actionService =...
ah ok thanks
bro, theres a reason why money doesnt grow on trees...
howd you guys learn to make a combat system?
chat
for a round-based obby game how much would yall pay for a "revive token", aka a free revive so you can keep playing with your team. you only get one per game
u dont evne spell symmetry right stupid idot
i said idot

whats that
i’m the best
ddiscor lore
guys i need help
Correct
You don't need all that
man coming here to brag about his wealth but not share?
can someone give me a roblox scripting tutorial which will make me skilled enough for a quick mm2 copy game
if i do this in parent object
self_.janitor:Destroy()
table.clear(self)
setmetatable(self, nil)
And every component does not have any running connections, nor requires any instances to be destroyed
do i need destroy method for component
function addpart(player)
local part = Instance.new("Part", workspace)
part.Name = "Platform " .. player.Name
part.Position = Vector3.new(math.random(-100, 100), 40, math.random(-100, 100))
part.Size = Vector3.new(20, 1, 20)
part.Anchored = true
part.CanCollide = true
part.BrickColor = BrickColor.new("Smoky grey")
game.Workspace:FindFirstChild(player.Name).Position = part.Position + Vector3.new(0, 3, 0)
end
game.ReplicatedStorage.GameStartingEvent.OnServerEvent:Connect(addpart)
why wont the person be teleported?
is your goal to be skilled at scripting or be skilled at making mm2 games?
i dont want to be skillled
i just need enough to make a game
like this
The game will be like this
4 minute rounds. Traitor, Hero and Civilians
Traitor must eliminate all civilians before 4 minutes
Hero must eliminate traitor to win
Civilians can survive for 4 mins or pickup the gun of hero to kill traitor (if hero dies)
Twist : Better quality, detailed maps and evacuation helicopters will cinematically land on 3 sides of the map for evacuation. Civilians must get to the helis to survive.
@trim bolt
https://www.youtube.com/watch?v=X_b1S7L1iTU there are three parts
Smart Round System Model (That I used in this video): https://www.roblox.com/library/8463990463/FIXED-SMART-ROUND-SYSTEM
PART 2: https://youtu.be/Nl2ajiQ1Yaw
part 3: https://youtu.be/oARr3iLMOp4
Round System with Voting:
https://www.roblox.com/library/8463990463/FIXED-SMART-ROUND-SYSTEM
I will be starting a series of tutorials where I will sh...
But you don’t know anything about it
yeah tbh just watch one of those long ass scripting tutorial series
yeo is it normal to have ur devex pending since the 9th?
is it your first time devexing?
cause first time takes a while otherwise it’s cause they’re on holiday break
first time
i got a tax error thing
cus ian put my full gov
n resubmitted the tax form on the 18th
it’s probably these 3 things that are delaying it for you, (error, first time & holiday break) if it takes too long you can contact them
make sure to contact the dev ex support email not the roblox general support one if you decide to
also if you’re not american it also takes longer for some reason
probs priority since the majority of players are in US
anyone know if its possible to use AlignOrientation from a pivot
is it really true that you dont need to use pairs and ipairs anymore?
yes, but you should because they're more descriptive imo
anyone know what “!native” and “!strict” are?
any other good ways to format prints or yall think this is good?
anyone understand audio api
yes
ipairs can be used to only loop through the numeric keys of a table tho but u shouldnt mix dictionaries and arrays anyway
native will compile functions into machine code before running them and strict will enable strict type checking
not really familiar with it but i think u need to use Wires
the instance
I'm genuinely stuck on making this script and I don't really know what to do
trying to make a script based animation system and genuinely there is just 0 resources out there that help me At All it seems
it's supposed to be reminiscent of those like, old injection script animations if you know what I'm talking about
I can't really find anything to base something like that off of
I kinda have to do this before I do like, a majority of my game so I don't want to keep putting it off
if there is like. some kind of free model that you think might have something similar. or some tutorial that could still apply. Please Tell me
I am looking for anything
I've been trying to reverse engineer that one door script but that hasn't really resulted in literally anything
ykw ok I'm gonna start over from the beginning
starting simple.
what would be the optimal way to move a rig's motor6d via script.
because it feels like there's 12 million options and the 2 games that do this animation system do it in a really specific way that makes me worry if there's a reason for it
and if I fuck up the animation system updating the game could be complete and total hell
I’m trying to learn datastores so I can have something under my belt when I need it
what value would datastores give you in a pinch?
I just use a well tested module from the devforum
profileservice/profilestore
why is profileservice better than datastores
it's just better
wait no
it uses datastores
it's just a datastore handler
makes them easier to use
and a ton of extras like session locking, version rollback
and battle tested code
thx
What if I want to make a system, with a 2D camera that follows 2 different objects and needs them seen all the time. I know, that I can just get a sum of the position of these 2 objects and divide it by 2 for the position of the camera itself, but how do I get a right FoV?
Like a 2D round based game with 2 players
or I could just change the Z Axis of the camera
Depending on the magnitude between an object position and the center of both objects
I think a game I played called together does it by just changing the Z axis
Ye, thanks, but I already came up with that
I think that instead of instantly asking for hints in this server, I should just think a little bit myself
It's still interesting to ask other people about how would they do something
Everyone has an unique style of problem solving
That's cool
i heard that native can be heavy in memory if overused, but it can increase script performance, especially heavy computational ones
thats so cool, how do you do that
(beginner speaking)
I probably should just mess with the way I calculate Z_Ofsset
For it to be more natural
can someone help me understand what's happening here
what is All of this
feels familiar to something I've done in a different engine but I'm not sure
dt is delta time
it's the time that was between 2 frames rendering
ah
I'm a bit confused as to why it's only like a thing here though
tried using a bit of this in my own script and dt is undefined
what
oh yeah to clarify this game is open source
I'm specifically only using it because of the weird animation system that I refuse to not have
I kinda hate to just Copy but like There is no other resource on how to do something like this
and until I get the animation system working I can't do literally anything else
so I'd rather try taking a bit from a open source recreation that's a bit old than sit around banging my head against the wall effectively making no progress whatsoever
it's Butthole and I Hate doing it but like. I want to work on the Video game
and then the chat goes silent and everyone wonders why I take 3 days to make 1 system with no outside help with extremely small game dev experience
I don't really understand what are you trying to accomplish
Its industry standard atp lol
Can you use DataStores if there isn't much player data to even save?
if you want but profile store is just better
session locking which stops data duplication
easy af to set up, once you set it up once you just copy and paste
whole bunch of support easy to wipe, increment or set data
global updates
main reason i use it is 2nd reason
anyone need models looking to build my portfolio
yes thats right
check roblox docs on it
a
i think you meant to send that in #code-help
Yes
are you using a runservice loop?
what do you mean dt is undefined 
is there any opensource module for automating sanitizing user input? im think of creating my own cause im tired of all of the nil check boilerplate
Does anyone know why rojo isnt synced with my VScode?
config issue probably
anyway you could help me fix it?
nah
cool
isnt that just reinventing the wheel?
roblox already shows you the script and the line where it was invoked
with the prints
uhm sure
i dont know why would you care about how your prints look but alr
another thing is that if the print is on the server the link will no longer point to the correct line
so it might even slow you down
sure..
make your log function a metatable with print as its __call and __tostring to your logger prefix
preserves the line
what
Its something that gets called everyframe and to reduce lag there are a bunch of functions built in to reduce it, with the multiplier it looks like some animation for an arm? Attack maybe?
And to reduce the spam there is a throttle.
id focus on more important parts of the game if i were you
very true
Pretty much "I code it to spam then i add code to prevent spam"
i dont know why you would even need one
Whats the best way to fully freeze a character? like their animations also frozen in place?
anchor every part of their character
thats not what i meant
oh wow, that easily?>
thought it would be more than just anchoring lol
thanks
is there anyway to make comments green instead of dark gray
add richtext and text to your output
hi
hi
@nocturne narwhal hello
sup
your a new scripter or smth?
oh i was wondering cause i saw the say hi thing
i mean i wanna start things but everyone needs a experiened one and i wanna work and get experienced but noone taking me they need past wokrs pics but its my first time
oh welp is okay i mean you can try making a game and then you can say thats your experience or you can make mutliple game and say thats mine scripting experience i learned while making those games
good idea
btw
yes?
i am scripter i can help
Anyone need any models trying to expand my portfolio for free
what u can make
p much anything just ask
nah nvm i am not making a game rn
i need some help with my uk bikelife game in london
how can i prevent fireing hit remote event for client side hit dedection gun framework?
any idea
Js validate hit on server
yep i need know how can i validete hit
Or make good anti-cheat on client if u want client reg
i check timestamp
wallbang
fire-rate and more
but player can easly fire hit remote
--// Studio Spy developed by ZitDex
local args = {
[1] = {
["Timestamp"] = 7023.069833899965,
["HitPart"] = game.Workspace.Rig["Right Arm"],
["Action"] = "Hit",
["HitPosition"] = Vector3.new(-22.812450408935547, 3.278933525085449, 13.020713806152344),
["Target"] = game.Workspace.Rig,
["ShotID"] = "4e930913-1a3b-43a3-84f3-1ba10fc7890d",
["WeaponName"] = "Smg",
["HitNormal"] = Vector3.new(0, 0, -1)
},
}
game.ReplicatedStorage.Remotes.WeaponAction:FireServer(unpack(args))```
Js check distance from shot

Shotid 
allready its check
Or js use dynamic remotes names
anyone got any scripting advice?
dontn use modules
me when i wonder why my clients send is 100kb/s
8 + 4 + 3 + 12 + 4 + 36 + 3 + 12 = 82 bytes each call
add remote overhead from client to server
82 + 9 + 5 = 96
now if my firerate is 30hz thats 96 * 30
2880 bytes/sec
wow thats less than what i would have thought
ILL OPTIMIZE SOON
anyone wanna help in a game for fun? i got few friends already helping me make it
ok
guys how much would it cost for someone to make a simple gun system
what kind
I can do it for you
dms
can someone make a game with me, i have all the building done
i just need the scripted bits
ive done gui
this is it
i need the scripted bits, ill do 40% of game revenue( 10% into an investor) so its gonna have guaranteed ccu
anyone?
where did you get all these bytes, i want to look tuff too
dm me what your game is about, i might be interested
check code-help i just wrote it
yo guys
im bouta make like a magic spell typa system where u can cast spells like fireballs and lightning and life steal and shit what do yall think?
needs a bunch of vfx i feel like
review code
function FSM.New<TInput>(initial:State<TInput>|(()->State<TInput>)):FSMType<TInput>
local current = initial
return setmetatable({},{
__call=function(_,inp)
if type(current)=="function" then
local nextState=current(inp)
if type(nextState)=="function" then
current=nextState
end
end
end,
})
end
review
yeah, im just tryna make it as flashy as possible tbf for my portfolio
relatable
sounds cool though
i dont have alot of vfxers out there that can volunteer to make me smth like that
i may just do it without vfx and add them later
there’s a couple of VFX discord servers that have free VFX
best approach probably
i mean i have a vfx pack for free, idk if it has all that tho
ill see rn and ill upd u
gl
ty
Find some free vfx packs and put it together with the 12 principles of animation to make really strong effects
yeah as i said i have on
one
U won't find any good help on making them look good here
They're all just slapping together particles and seeing what sticks
I've already got a magic spell system I've put on ice for various reasons
looking for a ui designer and scripter for a game, dm me
Does anyone know how to script looking for a good scripter will pay
can anyone tell me how to make a auto run system like other battleground
local args = {
[1] = {
[1] = "Fire",
[2] = "3609ab3f-a96b-4105-a984-46a4b6d09a45",
[3] = 1767297833.883417,
[4] = Vector3.new(3.6050148010253906, 4.423828125, -3.163771629333496),
[5] = Vector3.new(-0.5497852563858032, -0.014733200892806053, -0.8351760506629944),
[6] = "Smg",
[7] = {
[1] = {
["direction"] = Vector3.new(-0.5412854552268982, 0.0021265335381031036, -0.8408361673355103),
["hitPos"] = Vector3.new(-321.166259765625, 5.6997480392456055, -507.66546630859375)
}
}
},
}
game.ReplicatedStorage.Remotes.WeaponAction:FireServer(unpack(args))```
is it better rn or not
guys why are there so many games like this that come in in days
painful to see
trash code
😖
stopp😭
making a grab system rn, how can i safely request client ownership of a part without it being abusable?
idk have you tried asking nicely and saying please
magnitude checks, check if the part is already being grabbed by another player
debounces
where can i find the dev ex support email, also im in the us
so idek fr
Is it possible to track words like "fly" in voice chat and also start the command?
No
Yes
i have this weird problem
whenever my animation plays. the hair doesnt stick to my head but when there is no animations playing at all it sticks to my head?
the rig im using is custom made and i think this is a scripting issue since im using a rig that isnt r15 or r6
Why is your hair a motor6d
What joint is it
?
thats crazy
The joint that connects the hair to the character
this what i got
There's no hair
instead of welding two players together to for a dragging sequence on a downed player, should i just
- make the downed guy invisible,
- spawn a dummy with the same avatar,
- make the downed persons camera follow the dummy,
- and then teleport the downed person to wherever they get dropped off at?
or can i just set the guy whos being dragged to have no mass so that theres no weird movement
Yea idk if u or whoever but that rig is all kinds of fucked
Open the upper torso and screenshot that
And also what is in the RootPart property of the humanoid
What in the goddamn
U better ask for a refund if u paid for this in the first place holy 
This the most fucked thing ive seen
Can you make the front face attachment Visible and take a screenshot of what it looks like when you walk (when the hair is incorrect)
Its in the head
Huh
Ok so what you have is two different armatures one with bones and one that roblox resolved with motor6d
And the head is essentially physically where the hair is and its just being deformed back to a normal pose due to the weight influence of the bones
And none of this is how you do this stuff unless I missed a memo
If you got this rig from somewhere and didnt touch it except for the hair and it looks like that then its somehow made to "look" normal for a showcase when its really fucked in practice
Could you try removing the hair completely and just having the attachment visible just to rule out the hair itself being the issue
Theres still a way to fix the hair to be aligned with the visual head but it will fall apart completely if you add combat or anything because raycasts will not be accurate to the mesh. For example you can already see your name gui is also misplaced
To fix the hair you need to manually weld it. Do this by first getting the handle out of the Accessory, you cant do this with Accessories. Create a RigidConstraint in the hair handle, Attachment1 is the attachment in the hair handle, and for Attachment0 you need to do down the bone structure (the thing that starts with "Root" in the root part) until you find the head bone. That's your attachment0. Then put the hair (without accessory) into the character model.
The same fix can be done for the name gui by simply setting its Adornee to the head bone instead of the head.
However, there's nothing you can really do to fix raycasts and collision detection without fixing the rig.
@tribal sparrow
how do i fix the rig
whst help do you need
It may be fixable but like i said if you paid for this rig genuinely you didnt get what you paid for and they should fix it for you
Ah
Im just wondering on how to fix it it's kind of an issue ive never faced before
--packed
local args = {
[1] = buffer.new(buffer: 0x0aa3373e0d9299a4),
}
game.ReplicatedStorage.Remotes.WeaponAction:FireServer(unpack(args))
--unpacked
Raw Buffer: 01 8D 60 36 33 BC 55 DA 41 23 07 7A BF C3 DF 8D 40 E0 55 CD C0 46 7B 03 53 6D 67 24 32 61 38 35 66 33 66 33 2D 34 62 38 37 2D 34 39 34 38 2D 39 35 38 38 2D 38 62 31 64 35 63 31 64 65 30 31 65 01 46 7B
Unpacked Data: table: 0x421f5cc1f2a49d439```
is it good NOW
can someone link me some good forums / docs to start with for learning scripting.
Hey everyone! Can someone help me out? I need a quote in Robux for a vehicle system for my game. DM me I'll send you the full details. Thanks!

lowk only sending a message to farm xp so i can finally send images in media haha
lowk its sooo good idea i write this so u can reply to me and earn more xp also sorry for my bad english hahaha <3<3
your english is just fine im gonna keep typing now im gonna say happy new years
i dont think my english is good thanks for saying "your english is just fine" i become very happy rn
happy new years too!!!!<3
there's no such thing as enough modules 🙏
you're right
see this guy gets it
bloat
stupid
what is the best way to learn scripting btw I alr learned the basics
thedevking
oh ok
is it not a bit too outdated
i guess but if u wanna learn more than the basic i recomend him
toolbox animations but im making my own movement system
brawldev and getting your hands dirty
ok
just find a game you want to make and figure out what you need to learn to script the game
brawldev lowkey bores me so much idk why
he explains everything really simply and in depth so everyone understands. That's why, I also do a lot of skipping when i watch his videos
any scripter for hire rn? dm me plsplspls
thats a good tip if he wants to make a game and do no comissions
well he could do overly specific comission
but other than that
check dms
what do u need
i am a scripter i can script anything
Cool
What’s good Kodan
Wsp
do text boxes have roblox chat filter? or do i have to add a filter to them manually
they have to be added manually
can anyone help me? when i press 1 again to close the sword he teleport to another CFrame and this is the code
if Modelhandle then
usingsword.Value = false
character.Humanoid.WalkSpeed = 0
swordclone.WeldConstrainthandle:Destroy()
Modelhandle:pivotTo(Sheath.swordposatta.WorldCFrame)
local weld = Instance.new("WeldConstraint")
weld.Name = "WeldConstrainthandle"
weld.Parent = swordclone
weld.Part0 = character.Torso
weld.Part1 = swordclone
character.Humanoid.WalkSpeed = 16
end
pretty much the same
you could easily reduce the size of the action type (fire) and gun type (smg) by packing it into a single byte
2 bits for action (so total of 4 different actions) and 6 bits for gun type (total of 64 gun types)
with that you already trim down N dynamic bytes to just a single static byte
fyi each character in a string takes up a byte + vlq (ignoring)
buffers might have some overhead but its negligible
Can someone help me? Theres something that I touched in my workspace that resets the leaderstats but idk what..
ngl i think it's because something in ur tool is not massless
or anchored
too late but ty for respose ( i made new system )
oh wait i didnt look at images
i thought u meant charcater teleport to cframe
nope
the new system about only transparency
two sword the real one in the hand and fake one in sheath when i press they only change the transparency
how do people make those systems where its like
u can stand on the inside of a moving vehicle
and like jump around, not experience visual bugs
i think there is no system about this
Looks similar but i think right looks better
kk
yummers
does anyone know how to make a tutorial system?
fdf
they both are the fucking same
23
anyone know how to fix images not showing? it used to show but now it doesn't for some reason
with projectile replicationerm
okey tysm <3
is there an os clock equivalent that doesnt change if server slows down
how do i learn how to code
documentation, youtube videos
whatever works best for you
what's your use case?
Youtube
timing income generation
every heartbeat i call income generation methods with that timestamp
and in the method it checks if its off cooldown
YouTube
i think people use tick() for cooldowns
https://create.roblox.com/docs/reference/engine/globals/RobloxGlobals#tick
it says tick() can be off by a second tho
am looking for somone who can make a leaderboard i wanna learn how to make leaderboards pls dm me @grand river
@severe merlin
In comparison to actual time,
Not compared to itself, it'll only differ by a few milliseconds depending on your cpu
wdym
tick() is local method?
If the server lags it wont affect the value of tick() when it's called on client
I don't think in general that tick would be substantially affected by lag
honestly i don't know what you mean by slowing down
tick() gets the current time in relation to the unix epoch, which is globally recognized
it can't be affected by server lag
the only way it could be inaccurate in the case of a cooldown is if the code is run late, not due to an issue with the method
It doesn't matter if its off by a second because for cooldowns you find the difference between current tick() and a past tick(). If both are off by a second you are still measuring accurately.
os.clock better
LOL
no
made new boids
attachments only
now optimise it
look out for boids on devforums
eays
easy
any1 ned help with scripting im looking to gain more experience
me definetly
definetly me
u need help with ur game?
yeah im a beginner tho
wait what i need a cooldown thing for server
can i help????
I js want some experience man
no
idk , i need an experienced one 
how if its based off cpu
I will be good i can learn and hlep ofc
ok. script my game fully. if i like it i will pay you
alr what agme isi t
its like blind shot
hmm
any1 needs a beginner scripter to help! I can do it for free i j s want some experiemcen! I can hand my CV over
hmm
almost done with the fireball ability
ahh vfx and the hitbox is the grey part but yeah
hmmmmm
what do yall think
damnn nice do u get paiod
how long u been scripting
no, its just a random project for my port
4-4.5
days month years bananans
i dont have alot of stuff thats why
hmm
w ragebait
years. 2 of those years were when i was 10 and 11 and i knew no shit about scripting
anyone knows about bitwise prmissions systems?
oh u did for 2.5 years and u dont have a good port?
11 and 12*
not a bad port, i just dont have alotof projects on there
ive been scripting for 1 week and alrdy hav e a stacked port
joking lol
hmmm
lol how much months or years
im js watchig brawlde
oh u newly started
hm
What would be considered good port
Nice model
yeah
Send file rq
a portfolio with fancy and clean code and projects
need this for a personal project of mind
10 ass projects is not even close to 1 good and neat project so u have to choose wisely
hmm
whats a good one
son
imcrin

Does the code need to be like sweaty tryhard no life type of scripters or
hmmmmmmmmm
like the one im making it would be amazing with good vfx
no half of the time u dont have to show the code
Neat project like as a whole system or
js show its working and put some epileptic vfx and good ui
bcc
just some mechanics
Problem is ironic I got epilepsy 💔
when lvl 5 frfr
oh mb gng
5
Hahahahhahahaha
u made any robux from ts yet bro u been doing ts for 2.5 yrs
Hell naw 
i started comms like 2 months ago so only like 5k
not bad for a mid port if u ask me
alr ima get back to working cyall
Is there a way to turn a dictionary into an array
You could use for loop and put all elements of the dictionary in array with table.insert ig
yes
im curious why you want to turn it into an array
there's only 1

yes dm me to send u the link
of the grp
Bet
so like
easy indexing
dictionary is easier
anyways you can loop though the values and add them to an array
Fr
this way you will get the 0,1,2 indexing but its pointless
Nice
zues's massage?
wsp
name it trojan downloader
Hey! I dont know how to script, but yet i wanna script smth. How do I make a UI disappear when someone is in a group?
if thats possible
never worked with those stuff
gimme a sec
local groupid = 00000 (put ur group id tho)
game.Players.PlayerAdded:Connect(function(player)
if player:IsInGroup(groupid) then
(ui).Visible = false
else
(ui).Visible = true
end
end)
i think
I already figured it! but thanks for the help any way
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local GROUP_ID = 000000000 - group id here
local ui = script.Parent
if player:IsInGroup(GROUP_ID) then
-- If the parent is a ScreenGui
if ui:IsA("ScreenGui") then
ui.Enabled = false
else
-- Frames, TextLabels, ImageLabels, etc.
ui.Visible = false
end
end
This was the code
oh alr
can soemone explain why we use return statements
for example cause sometimes we wanna stop the code under it from running
thanks
to stop a function from continuing from past the return statement or to give variables calculated from inside the function
tbh i dont get what u just said
can you simplify it
local function getValue(part)
if not part then
return 0
end
return 1
end```
if you put something thats not nil or false into the brackets
it will return 1
because it exists
if it does NOT exist then it returns 0
idrk how else to explain
it just returns
from the function
who here plays deadrails
not me
then dont talk??
Does anyone here?
no
nope
Don't forget to go switch on the printer before running the script or else it won't work
Guys I want help why the ray cast is not detecting the players it's buffering
Looking for people who can help out for free to make a cool fortnite type game
LMFAOOOOO
there comes a time in every devs time they need to ask for help from someone smarter than them, lowk tired as heck rn and i know it has to be something obvious, so I have this code snippet that provides a error "Main is not a valid member of PlayerGui "Players.myusername.PlayerGui", see ive checked and Main is infact "Member" of playergui, anyone got any ideas? Doing this from a regular script in which I assume thats where the issue is originating from.
Players.PlayerAdded:Connect(function(player)
local success, data = pcall(function()
return PackDS:GetAsync(player.UserId)
end)
sp = data or true
player.PlayerGui.Main:WaitForChild("StarterPack").Visible = sp
end)
since code help is full of dumbasses and chat flooders/spammers and shit.
nvm
found the issue lol
mainly to get a value out of my function
so if I have a function
function addTwoNumbers(a, b)
return a + b
end
local result = addTwoNumbers(4, 14)
if result > SOME_CONSTANT then
doSomeFunction()
end
One message removed from a suspended account.
local function math(type, x, y)
local result = nil
if type == "Add" then
result = x + y
elseif type == "Sub"
result = x - y
end
end
local result1 = math("Add", 2, 2)
print(result1)
Output will be 4
Weird question :P, whats better , use camelCase or PascalCase for requiring modules? knit or Knit?
why are you calling playergui from the server
knit is ass
don't use it
fake hype
First of all, you should have never used knit
Anyway, i prefer pascalcase
What should I focus on to be a good scripter
bro
what are you on
Strengthening your basics
Alright thanks
Hey, Im making a fisch/forge style game and i think it has potential. I am solo right now and am trying to find a partner because i am not very good at scripting (i can do literally everything else though). Its not a commision, just lowkey tryna find a friend to do this with. although, youll get up to half of the game earnings. DM me if you want to see the game or want to help
oh 😭
Thx :D
hi.. im using touchstarted, touchmoved and touchended to track thumb hold down position on screen to a variable... then im using viewportpointtoray and passing in the input variable.. this works great when im using touchtapinworld because it gives me the worldpoint.. but when im just getting the input pixels on the screen it is super inaccurate... how would i get the worldpoint in this scenario...
so how would i simulate the worldpoint variable inside touchtapinworld:connect(function(worldpoint)) when im using the input variables in touchstarted, touchedmoved and touchended... that way I can do camera:ViewportPointToRay(input.X, input.Y)'
how do you write an aimbot in lua?
Literally just cframe lookat on the camera
didnt even use return
what 😭
ts lowkey beautiful 🥹
so basically whats happening is i want to make anm auto roll button which auto rolls numbers and i want there to be a cooldown on when the auto roll auto rolls again and its just not working
Hey you all, I want to make a game where you can spawn anything you imagine just by typing a description. The game connects to my external GPU to generate unique 3D models via Local AI Models in realtime and streams them directly into the server. Would that be possible?
yes
make a web server for your gpu
retrun a result that your can process
use EditableMeshes to manifest the item
kinda interested to see how you make that work 🙂
very bare bones explanation on my part
ok so hypothetically if i made a singleplayer game and had most of the game's code run on the client for the sake of no lag can people like straight up exploit and steal the entire game

I already read about that
just not sure how to do that
yeh
everything you can see and change when you press play in studio
is what the client can see
so exploiters
gonna fuck you up
do it on the client but validate stuff on the server
if they want to cheat idc it's single player
the problem is stealing code
and then there's like 50 modded versions of the game
Which part?
If ur worried about the editablemesh part then you need to think of what a mesh is made up of
there is no right point
man ts so annoying
i have been trying since the start of the week to find a fix
nothing works
i wonder how there is no dev forums for this problem
i can't be the only one who has it
c++ embedding lua
time for ww2 style cryptography
i think it runs lua code from c++
0.8 seems to be the best option since it does not affect the movement at all but it makes it snap into the air when going down steep terrain
I mean in the end my gpu server will send a massive code via api to roblox for the 3d asset but ill have to encode it somehow
does roblox read my code like if i have a bunch of modules that are just ASCII art trolling whoever tries to steal my code will i get banned
you're not
you have the same issue?
yeh i ddi but i fixed it
how?
just found the right hip height
that does not seem to work for me
