#code-discussion
1 messages Β· Page 2 of 1
Whats the best method to prevent multiple entities from overlapping or occupying the same tile in a grid based movement system.
it seems constraints blatantly ignore behavior
and properties
a lot of people have reported the same thing
i already said that i use a ballsocket constraint, and destroy their shoulder motors
oh my fkcing god so its roblox fucking me over
yeah
xD
another solution that was said was welds but they are apparently not the best either
welds arent good for the job
tried them and they arent as smooth
i mean are ropes worse than constraints
in general
only if roblo xmade ik controls for r6
theres ik controls but only for r15
so ill say how i did it before going to utry and use ropes: i made attachments in the arms of the players where i disabled the motors, then used a ballsocket constraint and settled its attachments(attach0, attach1) as the attachments i created
u can get r6 ik controls in blender
then turned limitsenabled to true and twistlimitsenabled to true
hold on can i just show you the code in dms
the code i have is over 30 lines long but its gonna do a wall code here
guys i jsut watched all episodes of skibidi toilet. my brain will never be the same
Can someone explain why this CFrame script for moving a model isnt working?
local model = script.Parent
local primPart = model.PrimaryPart
local currentCFrame = primPart.CFrame
primPart.CFrame = currentCFrame * CFrame.new(0,25,0)
error:
Workspace.CFrameModel.CFrameModelScript:9: attempt to index nil with 'CFrame' -
use vector.new
Vector3.new(0,25,0)
also
you should need to create a variable for current camera
is the primary part set in the model?
warmcubed
wsg
depends on the context ig
wrong
but vector3 is better
cframe.new nearly never works
infact thats not is purpose
it"s
it's
it simply should be used to refer and objects position
and orientation
@viscid canopy how long you been scripting
?
uhh ion even know
2-3 years?
somewhere around that ballpark
Yea the primary part is set correctly
^
the weld constraint aswell as names are correct too
Capitalize the v
can you send a screenshot of the scriot
to know the context of it
you showed about 5 lines
but there's more correct?
nope
I was just learning about CFrames
Cframe are not meant for moving unless you set one parts crame to another parts cframe
Has anybody EVER used lerp?
you sould use Vector3.new for 3d objects and vector3.new for 2d objects like ui
Yea but i was watching a video and the guy literally has the same script and it works for him
how old is the vid?
roblox may have changed it
send me the vid
@gloomy kiln not really but i heard of it
damn
sent it btw
I think you just cant get a parts CFrame by saying
local cframe = part.CFrame
no
well\
ye
or just do part.Cframe = part.Cframe + Vector.new(0,25,0)
@thick lion how new are you to scripting?
I mustve done something wrong since its not working
Vector3.yAxis * 25
that too
primPart.CFrame = primPart.CFrame + Vector3.new(10,10,10), still says attempt to index nil with CFrame
Vector3.one * 10
that isnt the problem
im just giving tips
actually wait
just use +=???? and primpart is nil
is it on that line?
oh
the bug
i think i figured it out
what is it
retigga primpart is nil
as soon as i take the part outside the model it works
check if it exists first π
pls never code again
can you just use a roblox ame to learn like lua learning idk
@inner dustsend full code
yeah?
full script:
local model = script.Parent
local primPart = model.PrimaryPart
primPart.CFrame = primPart.CFrame + Vector3.new(10,10,10)
(Inside CFrame Model Script)
PrimaryPart is a property too
change part name
and assign it as primary part
or just assign it
oh i have my part named primary part
ye is the part the primary part?
see
prob not bro if he didnt set the primarypart of the model
and .PrimaryPart triggers the property first rather than the child
so if its not set then its nil
yea the part is the primary part
local stuff = 1,2,3 local thing = part.Cframe:lerp(stuff) print(thing) very good lerp lessoon
used a weld constraint for part0
are you tryna change the postion of the model or part?
cuz i can't tell what your set up is
of the primary part (which is supposedly going to change the position of the model or smth)
did you set it as primarypart of the model
retigga change the name of the model child
cuz thats stupid to name it primarypart
just name it root and set it as model primarypart
this is how the guy in the video has it, and it works for him so yeah ofc im gona be confused
weld constraint is in the part btw
just for testing on how cframes work, normally in server script service
wasted 20 minutes of my life on that (or more) so I'm not forgetting it.
what
let's make a game fr
im not a game dev
what are you then?
exploiting

just hit me up if you need help
what was the mobile jump button renamed to my remove jump button doesnt work
π 
hi my old frien
sephora predictor?
i forgot the name
yeah it
specify your shit
fr
no one makes predictors am
javascript & python & webdev boring
@muted crow
it used to exist thats why im asking what it was ranamed to
@muted crow
studio
alright
-- AK-47
local ak47 = Instance.new("Tool", gunsFolder)
ak47.Name = "AK47"
ak47.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
local ak47Handle = Instance.new("Part", ak47)
ak47Handle.Name = "Handle"
ak47Handle.Size = Vector3.new(2, 1, 0.5)
ak47Handle.Material = Enum.Material.Metal
ak47Handle.BrickColor = BrickColor.new("Dark orange")
-- Advanced FPS Game Script for Roblox
-- Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
-- Variables
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local camera = workspace.CurrentCamera
local mouse = player:GetMouse()
-- Map Setup
local map = Instance.new("Model", workspace)
map.Name = "Map"
-- Burj Khalifa
local burjKhalifa = Instance.new("Part", map)
burjKhalifa.Name = "BurjKhalifa"
burjKhalifa.Size = Vector3.new(100, 2000, 100)
burjKhalifa.Position = Vector3.new(0, 1000, 0)
burjKhalifa.Anchored = true
burjKhalifa.Material = Enum.Material.Concrete
-- Guns
local gunsFolder = Instance.new("Folder", ReplicatedStorage)
gunsFolder.Name = "Guns"
-- AK-47
local ak47 = Instance.new("Tool", gunsFolder)
ak47.Name = "AK47"
ak47.Grip = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
local ak47Handle = Instance.new("Part", ak47)
ak47Handle.Name = "Handle"
ak47Handle.Size = Vector3.new(2, 1, 0.5)
ak47Handle.Material = Enum.Material.Metal
ak47Handle.BrickColor = BrickColor.new("Dark orange")
-- Gun Details
local ak47Mesh = Instance.new("SpecialMesh", ak47Handle)
ak47Mesh.MeshType = Enum.MeshType.FileMesh
ak47Mesh.MeshId = "rbxassetid://AK47_MESH_ID"
ak47Mesh.TextureId = "rbxassetid://AK47_TEXTURE_ID"
ak47Mesh.Scale = Vector3.new(1, 1, 1)
is there any mistake ive done?
send less code
and never set parent like that
@silk cargo
oh nah im not helping with chatgpt shit
learn how to code skid
wtf is this
did u tell chatgpt to make u a full fps game or sum π
chatgpt generated code
Hello, kinda is and isnt code related but how do i automatically get the image of a model/tool with or without using a viewport manually cuz I'm tryna make it as a system so when a tool gets added to the custom backpack i made, it will show its image. ive tried using the thumbnail camera but i realised it disappears after you enter the game. so yeah this is the best i can explain it
good question homie, good question
i didnt i saved it in my folder

real
why are u making fun of me π₯Ί
lol
How much would it cost for someone to make me a good website for my group where you can link from my discord bot to your roblox account (Similar to RoWifi or Bloxlink)
hitBox.Touched:Connect(function()
local randomX = math.random(5, 7)
print(randomX)
funnyCheckPoint.Position.X = 5
end)
What have I done wrong, this keeps throwing an error
i need a scripter so badly
shit of vector3 arent mutable bro
you cant just set Position.X
you have to change entire position
i tried that, it worked
ty
used vector3.new()
so i hhvae a slied feature in my game and u can clip thru thin walls anny suggestions to fix i just have so many walls in my game its hard to fix all
did you disable collison for walls??
just disable it for character bro
its a fps viewmodel
what
π΄
How do I know that someone put Backdoor in my game?
You should hire me : )
ill take as low as 10 R$
Look through the server side scripts
I'm Brazilian
where is this?
lol
@rocky crag
hey
is this bad for memory usage i forgot whats a good threshold
or is it more accurate with the graph thing
how do i make it so a player cant use an input, whilst having a stun attribute checked?
i tried adding if stunned == true then return end
though it doesnt seem to work
so basically not being able to m1 when they are stunned
hello, i was just asking how do i model gore/blood when the person dies cause the script doesnt work
show your script and make sure to check that the attribute is actually being set to a true value, easiest way would be to print it before the return
set a parent to it
wait
anybody want a four slot inventory system with the ability to switch around which slotsa have which tools and where as long as you have the image of th item you cna put it in the invenotry slots
alr please give advice on how to make this better btw, this my first combat script
local RP = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
--// Folders //--
local Events = RP.Events
local SFX = RP.SFX
local VFX = RP.VFX
--// Sounds //--
local swingSound = SFX:WaitForChild("Swing")
local hitSound = SFX:WaitForChild("Hit")
--// Events //--
local CombatEvent = Events:WaitForChild("CBEvent")
--// Modules //--
local hitboxModule = require(RP.Modules.MuchachoHitbox)
local combatFramework = require(RP.Modules.CombatFramework)
--// Variables //--
local FIST_DMG = combatFramework.COMBAT_ATTRIBUTES.FIST_DMG
local FIST_CD = combatFramework.COMBAT_ATTRIBUTES.FIST_CD
local STUN_M1_TIME = combatFramework.COMBAT_ATTRIBUTES.M1_STUN_TIME
--// ------- //--
Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
--// Apply Attributes //--
char:SetAttribute("Combo", 1)
char:SetAttribute("Stunned", false)
char:SetAttribute("Blocking", false)
char:SetAttribute("StatusEffect", "N/A")
--// Weapon System //--
char:SetAttribute("currentWeapon", "N/A")
char:SetAttribute("Bleeding", false)
end)
end)
--// Server to Local //--
CombatEvent.OnServerEvent:Connect(function(player)
--// Variables //--
local char = player.Character or player.CharacterAdded:Wait()
--// Attributes //--
local combo = char:GetAttribute("Combo")
--// Sound Handling //--
swingSound:Play()
--// Handling Hitboxes //--
local hitbox = hitboxModule.CreateHitbox()
local params = OverlapParams.new()
params.FilterType = Enum.RaycastFilterType.Exclude
params.FilterDescendantsInstances = {char}
hitbox.Size = Vector3.new(4,4,6)
hitbox.CFrame = char.HumanoidRootPart
hitbox.Offset = CFrame.new(0,0,-2)
hitbox.Visualizer = false
hitbox.OverlapParams = params
hitbox.Touched:Connect(function(hit, hum)
--// Enemy Animations //--
local hitAnimation = RP.Animations.Hit
local hitT = hit.Parent.Humanoid:LoadAnimation(hitAnimation)
hitT:Play()
--// VFX Handler //--
local highlight = VFX:WaitForChild("Highlight")
local clonedHighlight = highlight:Clone()
local hitVFX = VFX:WaitForChild("HitVFX")
local clonedVFX = hitVFX:Clone()
clonedHighlight.Parent = hit.Parent
clonedVFX.Parent = hit.Parent.HumanoidRootPart
clonedVFX.CFrame = hit.Parent.HumanoidRootPart.CFrame - Vector3.new(0,0,-2)
game.Debris:AddItem(clonedVFX, 0.5)
game.Debris:AddItem(clonedHighlight, 0.6)
--// Knockback Handler //--
local BV = Instance.new("BodyVelocity")
BV.P = math.huge
BV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
BV.Velocity = char.HumanoidRootPart.CFrame.LookVector * 9
BV.Parent = hit.Parent.HumanoidRootPart
game.Debris:AddItem(BV, 0.1)
--// Damage Handler //--
hum:TakeDamage(FIST_DMG)
--// Sound Handler //--
swingSound:Stop()
hitSound:Play()
--// Stun Handler //--
hit.Parent:SetAttribute("Stunned", true)
hit.Parent.Humanoid.WalkSpeed = 0
hit.Parent.Humanoid.JumpPower = 0
task.wait(STUN_M1_TIME)
hit.Parent.Humanoid.WalkSpeed = 16
hit.Parent.Humanoid.JumpPower = 50
hit.Parent:SetAttribute("Stunned", false)
end)
task.spawn(function()
hitbox:Start()
char.Humanoid.WalkSpeed = 8
char.Humanoid.JumpPower = 0
task.wait(FIST_CD)
char.Humanoid.WalkSpeed = 16
char.Humanoid.JumpPower = 50
hitbox:Stop()
end)
end)```
and in local i have a uis set up, and before that i had the if stunned == true then return end line
where exactly do you want me to check
idk dawg u asked for the scirpt, theres a stun handler place labelled
How do I know that someone put Backdoor in my game?
u want the local?
yes
check all the scripts in your game
yeah i need to know how its set
local RP = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
--// Folders //--
local Events = RP.Events
local Animations = RP.Animations
--// Events //--
local CombatEvent = Events:WaitForChild("CBEvent")
--// Variables //--
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
--// Attributes //--
local stunned = char:GetAttribute("Stunned")
local combo = char:GetAttribute("Combo")
--// Animations //--
local m1_one = RP.Animations["1"]
local m1_two = RP.Animations["2"]
local m1_three = RP.Animations["3"]
local m1_four = RP.Animations["4"]
--// Enemy Animations //--
local hitAnimation = RP.Animations.Hit
-- // Tracks //-
local m1oneT = char.Humanoid:LoadAnimation(m1_one)
local m1twoT = char.Humanoid:LoadAnimation(m1_two)
local m1threeT = char.Humanoid:LoadAnimation(m1_three)
local m1fourT = char.Humanoid:LoadAnimation(m1_four)
local hitT = char.Humanoid:LoadAnimation(hitAnimation)
local debounce = {}
--// -- //--
uis.InputEnded:Connect(function(input, isTyping)
if isTyping then return end
if stunned == true then return end
if (table.find(debounce, player.UserId)) then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
table.insert(debounce, player.UserId)
combo = combo + 1
if combo == 1 then
m1oneT:Play()
elseif combo == 2 then
m1twoT:Play()
elseif combo == 3 then
m1threeT:Play()
task.wait(0.3)
combo = 0
elseif combo == 0 then
m1fourT:Play()
end
CombatEvent:FireServer("Connected..")
task.wait(0.7)
table.remove(debounce, table.find(debounce, player.UserId))
end
end)```
if it looks dodgy you shouldnt even have any backdoors in your game unless you use free models
hit.Parent:SetAttribute("Stunned", true), check to make sure hitbox is running, if it set print the stunned value of the parent
I use some
whaaaa im dumb
the way you laid out that sentence hurts my brain idk
but is there anything specific?
for your hitbox touched run a print of the set attribute, to check if its setting the player who hit the players attribute or the player who got hit attribute
anybody want a four slot inventory system with the ability to switch around which slots have which tools and where as long as you have the image of the item you can put it in the inventory slots
i mean no just overall avoid free models unless they are trusted
local debounce = {}
--// -- //--
uis.InputEnded:Connect(function(input, isTyping)
if isTyping then return end
if stunned == true then return end
if (table.find(debounce, player.UserId)) then return end
whats the point of storing debounce in a table on the client for one user?
idk i just usually put all my debounces in clients
i never thought of it that way
btw i did the test it prints false sometimes, then ocasionally true
then its probably not correctrly hitting your hitbox
print out the hit.parent
alr
why do i randomly start breakdancing is my walking animation messed up or sm
testing it out on dummys and players
it prints it out correctly
well for some reason it prints it out weirdly
like it takes a couple seconds for the stuff to print
idk why
i did another test, and it does change the attribute to true then back to false
the first block of code is working, but the other 2 arent. Can anyone explain, I'm a little lost
flatButtonReset.Touched:Connect(function()
flatPart.Position = Vector3.new(40.89, 10.669, -110.328)
flatPart.Anchored = true
flatPart.Transparency = 0
end)
--Spherical part is reset
sphericalButtonReset.Touched:Connect(function()
sphericalPart.Size = Vector3.new(10.182, 10.182, 10.182)
print("Expand")
end)
--Cylindrical part is reset
cylindricalButtonReset.Touched:Connect(function()
cylindricalPart.CanCollide = true
print("We're back to normal, sire!")
end)
the problem is making it so the hit player cant hit anymore
the return end thing doesnt work
lol
lol
can i hire anyone to do a very simple shop and inventory system for a thousand robux
i mdae a custom inventory 4 slot system
i also need a shop system beacuse i have tried 8 times and none of mine worked
There are hiring channels for a reason btw
this is what the invetory system looks like
i dont have perms
also nice pfp
π
You don't need perms
"?:
You do /post if I remember correctly
like it says i dont have permision to type in that channel
8b1t if you tell me how exactly you want the shop system tto work and all the details i can try to make it
dm me
i did
Does any one know how to weld a item to a player when it gets touched
For better reference when you get the ball in blue lock rivals and it stays with you at all times
lol
Hey, I donβt really code but is there anyone who knows how to make an idle animation run constantly when you press play in studio?
Lol
lol
Ty
Watch devkings advanced tutorial he has one episode where he explains welding
lol
lol
probably your animation priority
question about for loops:
when should I use inpairs(), ipairs(), or nothing at all? They all appear basically the same to me
also dont rly know fr i use whatever works π€π€
Should be able to search up the difference online, Iβd also suggest Roblox forum as I think this question got asked a couple times
As for in pairs, using nothing instead of 'in pairs' seems to be quicker
thanks lol, I have a bad habit of asking people before google, my bad
Lmao no worries, yeah I just find it easier to google sometimes that way the answers typically always there you just gotta do some searching rather than waiting for it
from a quick search, I've found that nothing works fine, in pairs is for dictionaries, and ipairs is for arrays
-# in case anyone was curious
selling battleground's system: Dm me
on further searching, using nothing works fine, but ipairs/in pairs allow you to make sure you're using a dictionary or array (depending on the type)
game idea set, most maps done. looking for a scripter to finish gameplay for roblox gamejam much be experienced, dm me and have a port. looking for dedicated motivated scripters who can work RIGHT now. or atleast in like a hour
Hey who and how much would it be to script me like stuff for I need like gates that work from one remote I need teleporting I need like deny people accept people setting the location for them blocking roads off with a button stuff like that and some other stuff car spawns etc how much would you guys recommend because itβs my first time also guns and key cards locked doors for certain people master card employe cards stuff like that
@kind cargo just trying to help it seems that u are using an array most perhaps?
the error is related to the children in the gunmodel, idk how to clear it but thats not really the problem present here
ill know how to fix it soon
but the gun model isnt showing up because of the modulesciript 
yes it will stop further operations.
so u have created a module of all gun types?
why? can you explain?
no, there is a seperate mopdule script for each gun that describes the guns stats, but just cuz of the module script it wont even clone the gun properly
You are for hire?
no, the script isnt cloning the gun at all
because one of the if statements are false
and theyre all true
are you looking?
Scripting
Yes I am up.
@severe dove
so yeah
I'll dm you
on of the if statements is true
false
@kind cargo sir u have made a dictionary
it should be in array for
form
yes BUT this is the modulescript i was talking about. the error refers to this:
and idk why its givign me an error if its doing what its intended
ye one sec.
@kind cargo don't use loop
stuff here will take a table
Getchildern returns a table datatype
what do i use instead?
just remove this loop
nd remove get children
use
child:ClearAllChildren
try nd let me know
well the error is gone but the main thing isnt
local rs = game:GetService("ReplicatedStorage")
local player = game:GetService("Players")
--local configModules = rs.RE_Storage:WaitForChild("Modules")
local gunModels = rs.RE_Storage:WaitForChild("GunModels")
local cs = game:GetService("CollectionService")
player.PlayerAdded:Connect(function(plr)
local character = plr.CharacterAppearanceLoaded:Wait()
character.ChildAdded:Connect(function(child)
local toolName = child.Name
local gunModule = require(child:FindFirstChild("RE_GunConfig"))
if child:IsA("Tool") and cs:HasTag(child, "Gun") and gunModule.Type == "Gun" then
print("bro has a gun equipped")
local Checkgun = rs.RE_Storage.GunModels:FindFirstChild(toolName)
local gun = Checkgun:Clone()
for _, v in gun:GetChildren() do
v.Parent = child
end
else
end
if child:IsA("Tool") and cs:HasTag(child, "Grenade") then
print("FRAG OUT!")
print("bro has a grenade equipped")
local Checkgun = rs.RE_Storage.GrenadeModels:FindFirstChild(toolName)
local gun = Checkgun:Clone()
for _, v in gun:GetChildren() do
v.Parent = child
end
end
end)
character.ChildRemoved:Connect(function(child)
if child:IsA("Tool") then
child:ClearAllChildren()
end
end)
end)
Heres the server code
lets go in dms shall we :)?
Yeah sure
if anyone specializes in front-end work hmu asap
bro
this imagnery fucking value keeps appearing in my data
that im setting no fucking where
cool smart bones
ty
local gap = frontPart.CFrame * part.CFrame:Inverse()
petPart.CFrame = frontPart.CFrame * gap
anyone know why the part isn't spawning like it should
why does the damage stack? dont mind my var names
can you show where you defined the variables?
sorry if this is a dumb question but what is the parameter "hit" im trying to acess the player's leaderstats when the player touches a button```local part = script.Parent
local playerService = game:GetService("Players")
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local char = playerService:GetPlayerFromCharacter(hit)
print(char)
end
end)
Does anyone know if runservice causes any type of lag?
The heartbeat feature in particular
if 'hit' your function how can you use it inside ofr himself
sorry im new
Whatever touched the part
So if the players left foot touches the part
Hit is the left foot
will it work he use the function in the function
Hit isnt a function its a parameter
Parameters are just variables
that change everything
so what exactly are function
the way i understood it is that its like a varriable
A function is just a block of code to be ran when its called
A parameter is information to be used in the function
you lost me
Youtube
It doesn't by itself, it's what you use it with
Ok
That's like asking if functions cause lag. It depends on what the function does
What's the best way to learn Lua?
local function()
While true do
print("Hello World!")
end
end
This Will prob crash the game
Cuz It's an Infinite loop
it will timeout cause there's no yield or task.wait()
you know how in math you have f(x), f(x, y, z), x(t) and stuff like that?
Yeah
itβs to denote that the output of the function is parameterized by the value of x (or whatever is in the brackets)
itβs different in programming in the sense that functions donβt have to have an output
but it inherits the notation from math
as a convention
Iβve screenshot that Imma read it tmr
It's code that you can repeatedly execute for example
local function yes()
print("Hello")
end
yes() -- prints "Hello" you can use this function anywhere below the function now and it will execute what's inside the function
quick question: When you lerp something, at what point in the frame should you do it
renderstepped? heartbeat? when?
still depends
anything with camera do it in renderstepp
parts don't really matter that much
I am in the chat of smart people
Hi do some one know how i make a working thing like this
I can no where find a toturial
I think are to new
Hi - anyone free to script a quick obby? 5k robux quick job
Give me 500k take it or leave it
leave
Ok
has anyone here used roblox-ts? how was your experience with it? i was thinking of trying it
the code it produces isnt so great, if you can just use luau then go with it
i see, what do you mean by not great? performance wise?
I haven't used it in a while, but when I did I remember the code wasnt always the most optimised translation
alright, thanks
i use roblox-ts. it's great. i wouldn't worry about performance or the output since you don't interact with output and performance loss is near zero. very rarely (i haven't yet, but others have) you might want to drop into luau for something performance critical (involving collection types).
actually good
ts is so much more of a joy to write with the syntax features imo
yeah i am very comfortable with both languages so dipping into luau should not be an issue, also worrying about performance that much on a high level language doesn't really make sense and i imagined the compilation could not take that much
Just use luau
Itβs useless
oh yeah, i love to write in a more functional style but luau doesn't really support that natively like typescript does, what are some syntax features you like?
go back to prompting ai's tubby. i'm still waiting for my button script i commissioned.
why do you thing its better to use luau?
I gave you the script if you want I can prompt it with two more words and itβll work how you nit picked
you will never prompt it to write a high-quality script for a button that detects when a player is on-top of it with delimitting events. i simply don't see it occuring.
Itβs just superior in basically every way anyone use ts or roblox-ts just trying to act special
mainly classes, consts, and much more robust typechecking than whatever roblox shits out their ass
its really not much but just classes alone sold me
i really cannot be arsed to typecheck and construct metatables everytime i need to build a class
Rage bait used to be believable π
it does have roblox does not support constants, arrow functions, strong type checking and functional style functions by default, those aspect are better than luau
operators for working with nil like ?? and ?. are also great.
^
also ===
the only thing thats more verbose in ts than in luau is how it handles tuples
i see, i never use classes so that wouldn't help me much but i will take that into consideration
oh yeah the elvis operator
never use classes? hold up... mods ban this guy.
yeah but i don't really like/use that feature that much so no problem there, you can't ovveride math operations tho, like Vector3 + Vector3 is not possible
and vector operations are something i do very often
local Players = game:GetService("Players")
local function spawnButtonNearPlayer(character)
local hrp = character:WaitForChild("HumanoidRootPart")
local basePos = hrp.Position
local offset = Vector3.new(math.random(-10, 10), 0, math.random(-10, 10))
local spawnPos = basePos + offset
local button = Instance.new("Part")
button.Size = Vector3.new(4, 1, 4)
button.Anchored = true
button.Position = spawnPos + Vector3.new(0, button.Size.Y / 2, 0)
button.Name = "ButtonPart"
button.Parent = workspace
button.Touched:Connect(function(hit)
local hitChar = hit.Parent
local humanoid = hitChar and hitChar:FindFirstChild("Humanoid")
if humanoid then
print(hitChar.Name .. " pressed the button!")
end
end)
end
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
spawnButtonNearPlayer(character)
end)
end)
(vector/cframe)
cant speak much for that
yeah i like to abstract with functions better π
but considering i touch classes more than i touch my pet on a daily basis
its just so nice
give your pet more pets
get a dog
how long have you been scripting for/when did you switch to robloxts?
years by now
cumulatively 2-3 years?
i was seduced into using roblox-ts by someone here just 2-3 weeks ago
i still do write luau, but thats only for cases where my commissioners dont use roblox-ts themselves
do you have your own project that you're using rbxts for or are you just playing with it rn?
i am working on a project with rbxts atm
nowhere even close to completion tho
yeah fair enough, thanks!
admittedly though rbxts is a chore to set up, but i think ive written code much faster than i ever could with luau
considering how large-scale the project is, id take that all day
next project imma work on will use robloxts 100% even just to try it out, if i don't like it so be it, imma switch back to luau, but i also wanna put typescript developer on my resume
put js on your resume while youre at it
yeah expecially classes i would imagine
literally the same thing
yeah
but i wanna build some "big" projects with it
oh hell naw, imma work for some company or smth
definitely not on roblox
go for it
all my personal projects are terribly small because i'm not talented. π¦
naah, you probably did not put enough time into it, talent can't be learned, but some very untalented people make great works
imma see if i can find roblox ts commissions too while im at it
Lol
Bruh bros name Lol
Lol
what makes it so much faster for you? genuinely curious
i've tried it and i definitely like rbxts but i'm not sure i noticed any difference in productivity
with the compile times, sometimes silent compile errors and a few other typescript quirks i'm not sure it's really worth it for me
i deal with classes really frequently, and having to construct mts everytime i do that is a shit experience
silent compile errorssilent compile errors
i dont use classes or OOP much at all so i didnt have that benefit
i actually did run into that already trying to compile my string lib
wasnt even like an hour in 
yep it can be quite annoying. compiler sometimes just quits or gives errors without really telling you so you have to notice it by opening terminal
definitely threw me off a few times lol
lmao all i got was an invalid utf8 error
and theres no stack trace that i can remember
scanned through the original string luau file like 3 times and saw nothing out of the blue
ive had multiple cases of it not recognizing my types when refactoring stuff. i was looking for the issue but turns out there were no issues, i just had to restart vscode to fix it
yeah
besides nowadays i only use rbxts when circumstances permit
i still main luau for my commissions
i really really like scripting rbxts because of its syntax and a few other things but theres just those few annoying things that make the experience worse
yeah, i do have hope for the new solver and type functions though. they seem really cool
pretty sure my production code doesnt even have any typing unless im expecting another dev to work on it
sadly not that stable at all yet
true
I just made a clicker game in 5 hrs and itβs been public for a month, made 126,435 robux before it died out π€π€π€
Lol
Kinda mid
for 5 hrs thatβs not bad
seeing how I only put 5K on ads, rest was via tags and luck
game name
Zillion percent profit
What happened to the dog on your pfp
Is making like a jump bar difficult?
Like fisch meter throw bar
But instead itβs jump hold bar thingy
its kinda simple if you think about it
Iβm not smart
Iβm like 0 experience
Iβm trying to make one for my game but Iβm not experienced
Should I just look for yt video
True
yeah those are def usually not even that informative, they make it longer js for watch hours
and do you need it so like they jump and theres a ui that shows them how high it jumps at a fixed amount
or the amount they jumped on the ui changes depending on how big of a jump they did (if thats a feature u added)
Btw does anyone here who programs does website development
anyone here good with roblox ts?
roblox this shit?

yo should i try to make a qr code generator in roblox using editable images
Donβt bother creating Roblox games with typescript
Itβs completely useless
Itβs just an ego thing other scripters do
Their is no point
not really my scripter uses it since it's much more organized then lua
..?
but it's kinda hard to find scripter that use ts when tryna hire a 2nd scripter
Just use --!strict if you want typechecking dr
Fr
How is it more organized than luau
He canβt script, he doesnβt know what his saying
π
Theirs no point talking to these monkeys
why is thsi dude mad...
it's what my scritper said and it's his preference and his been doing good and working way faster in ts then lua....
since when does working faster = good programming
he probably just knows typescript better than luau
yea i think
If I have a script that I want to write myself from memory, is it better to divide it into smaller tasks or to memorize the code as a whole and rewrite it?
learn how to code it
not memorize
lmao
if you can code dm to join a team
pay me
free work free work!
code is not memorizing bruh
its just knowing how to code, problem solve, do logic, etc
know how things work
Ok, I will devide it into tasks
that isnt what I told you to
send me the code
LOL
good one bro
im not installing that shit
just show script itself
β οΈ
you can make roblox games with ts?
roblox ts
crazy
U can and theirs no point
Roblox does not natively support typescript
Ur typescript code gets decompiled into lua
Theirs a performance loss
thats crazy
Scripters only do it as a signalling thing
man i really gotta learn how to animate

They try develop an ego from it
Why are u laughing when u canβt even script?
π
U being mad doesn't mean u gotta yap wrongfull info man
Logical?
i have asked front page programmers with years of experince before is switched my game to ts
they all said it's the same
Not gonna argue with a dumbass
sure bud, if ur not skilled enough to do ts, dont get mad at others who do
Is this correct?
if tool.Parent == player.Backpack then
end
Test it
dont argue if you dont even script??
its a waste of time mostly
Typescript is lovely
rn his pretty much arguing agasint vet scripters
Are u vet scriptor
nope
so does being a frontpage developer mean ur good at scripting?
if u ahve 10+ years yes
Then he aint arguing against vet scriptor
U dont know what hes sayingπ
mhm
achievements = experience
Release modded game = good scriptor

Nah just pack it in
I release a obby game without scripting Iβm so pro
yall really gotta chill, em ts guys dont care bout u, yall shouldn't be holding that much hate
That aint a game if no scripting
no ones holding hate
π
why are you looking at it as hate
Is this combat good?
Yall lets do a test define pcalling
yea same here, it's the same
ts an lua tbh
it's all bout prefrences
No
Did u even watch it π
I did
shits clean
he a troll lol
u said it's bad after 2 secs of him posted a 1min vid
smart
π real
Cause its code discussion i see no code so its bad
If u sent it in animation discussion i would say its good
To make that u need to code
But i donβt see the code inly can π§βπ see the animation
we cant tell u if the combat is good without testing it

Combat system
sure the animations and vfx look good but other than that we have no clue
#dev-discussion should give u feedbacks
these guy's want to see the code itself to tell u if it's good or not
understandable
I see no code maybe if u shown the script i would lyk if its good
Ok sir
||copy paste to use in there game sus||
Im not making a game at time moment secondly how can i use it if he doesnt show the whole thing

Make me a combat π
He might use another scripy jn that script i dknt see so no point in using
Why
Pay me
how much
β¬75

75 cen?
Literally has a euro sign
Combat system
Then it will be unefficent game
but will u make me 50 keybinds combat with 75 euro)
Yeah
I actually went an entire year thinking continue works like pass in other languages 
u use ts?
Yeah
the one you make yourself
are you trying to learn, or make smth for your game
learn
look on youtube
oh ok
tbh
.?
oop
did not see it
its a work in progress
aint no way
yeah yesterday i was tired lol
ok
no shit sherlock
bro that flag thing was just for me to train its not going to be in my game but im so stuck on making it work that i dont work on my game XD
is devking good to start luau
dont dring just 2h of sleep
and I get sober again
drink
I see that I've made a masterpiece
outdated shit
robux please
ok this is unrelated to roblox but once I was completing a game project for uni and I was code and drinking I found out I made the character models naked and added NSFW sound effects
yeah lol but still good for beginners
i'd not teach them how to make inefficient code
then go teach him lol
I might pay in obux
lazy
what game you makin'
like what am i supposed to do
uh
1 second
"Hello. I need a scripter for a squid game type game, glass bridge to be exact. I need a couple of things scripted, like the glass bridges, GUI, currency system, reward, gamepasses, and the bar(The higher players move the higher they appear in the bar) and this will most likely be long term. I pay with percentages but if you will be quick there will be possibility in paying with robux!"
so.. and obby?
what's a cashgrab
its main purpose is to make robux
yep
not for fun
ah I see
absolutely
well I don't make cash grabs
So its a very good money opportunity
I make real games
with no intentions of making real money
I dev games for fun and other people find the games fun too
youll die of hunger without money
i only want to code tho i dont wanna do the gui bull ill do the script on the gui but i dont wanna make it myself
the gui i mean coding the gui
OHH
I pay with %
30% from game revenus
But also if you script good
our investor will pay you
DM me
so can i use for damage to other players with a gun a local script?
or a serverscript ?
huh
server script
you can use a remote event
yeah too risky
that too yeah aight sweet tnx
cool
wdymI am not that bro
what do you want
#scripter-hiring here
its still a discussion of coding
yeah but hes hiring dosent he?
Roblox servers are smth else π
matching pic for u and ur friends
bruh
stop bruh
never cook again
i dont know how to cook
https://devforum.roblox.com/t/extreme-latency-on-300-units-10k-ms/3462416 i'd appreciate any type of help
Hello, I am developing an RTS game. The issue I have stumbled is as the unit count increases, so does ping. This is very annoying as the game literally becomes unplayable In the photos below, there are around 500 units. Since I donβt exactly know why this is caused (probably because of the mass amounts of parts moving every second), I donβt kn...
bro send that in code help
thats what happens when you do all the movement on server vro
idk what you thought was gonna happen
yup unfortunately so
that's why lol
so dont do the movement on server
easier said than done
its easily done
not exactly
yes exactly
why not
explain the complication
a lot of stuff attached to other stuff attached to other stuff
i'll try some stuff tho
idk what that means
yeah me too
i just did
On what?
theres no button you're going to press and it fixes everything
you're going to need to actually change stuff
dude
just be quiet
fix ur shit
its ur fault for writing shitty code like that in the first place
it is
i didnt write the shitty code in da first place π
o well have a great day i'll use your advice
oh yeah you wouldnt
im just not experienced enough
js being honest duud!!
your experienced enough its just not your "original" code
bro commissioned a terrible scripter
nah hes good
the code is just not optimized for 500+ units
more like 80 to 100
works perfectly fine for the original use case
hes bad for making server replication based rts
past is past fr
If I like to store variables through tables is this the only way to typecheck them
as far as i know yes
Alright thanks
but i aint a pro with that but from what i was told thats how most ppl do it
u can ask upsibey he taught me it
phenominal
simple but just a test of the simulation
Attempting to make the particles able to form droplets that aren't hollow, but here they form this as attraction is based on distance, how should I overcome this
Essentially made it a gas by accident
particleTypes.AQUA = {
NAME = 'AQUA',
COLOUR = Color3.new(0.2, 0.4, 0.8),
RADIUS = 0.25,
DENSITY = 1,
DRAG = 0.1,
INFLUENCERANGE = 7.5,
INFLUENCE_F = function(self, other, disp)
if other.ParticleType == 'AQUA' then
local vel = disp.Magnitude - math.sqrt(self.Parameters.LastDensity)
self.Parameters.AquaDensity += 1 * disp.Magnitude
return vel
else
if other.Properties.OACTIVE then
return 1, 0
end
return 0
end
end,
BOND_F = function(self, other)
return false
end,
INIT_F = function(self)
self.Parameters.AquaDensity = 0
self.Parameters.LastDensity = 0
end,
RUN_F = function(self)
self.Parameters.LastDensity = self.Parameters.AquaDensity
self.Parameters.AquaDensity = 0
end,
}
using LastDensity ^ (1/3) here instead of sqaure root
root of 6 seems perfect
there is only 1 aqua particle inside the sphere which is still suboptimal
local pps = game:GetService("ProximityPromptService")
local distance = 10
local timeToHold = 0.8
pps.PromptTriggered:Connect(function(pp, plr)
local tool = pp.Parent.Parent
if tool:IsA("Tool") then
tool.Parent = plr.Backpack
pp:Destroy()
end
end)
while wait() do
for i, descendant in pairs(workspace:GetDescendants()) do
if descendant:IsA("Tool") and descendant:FindFirstChild("Handle") and not game.Players:GetPlayerFromCharacter(descendant.Parent) then
if descendant.Handle:FindFirstChild("TouchInterest") then descendant.Handle.TouchInterest:Destroy() end
local pp = descendant.Handle:FindFirstChild("ProximityPrompt")
if not pp then
pp = Instance.new("ProximityPrompt")
pp.MaxActivationDistance = distance
pp.HoldDuration = timeToHold
pp.ObjectText = "Tool"
pp.ActionText = "Pick Up"
pp.Style = "Custom"
pp.Parent = descendant.Handle
end
end
end
end
This script makes the game lag
yo
i seen a game like this
yall think i should make a game like this
when i join the game it seems like he has alot of gamepasses
so i think he makes a decent bit for a game like this
but im so uncreative its insane
i cant even think of something
inspired by his game
this is why im a comission bafoon
which part of the ragdoll should i handle in localscript?
how to fix my walking animation randomly malfunctioning
what animation priority is it?
100 players to swim till the end with ice or iceclies or wtv as obstacles
i dont know how do i check
Question
When you add a sort of reroll system
For example race reroll
Or element reroll
Do you check the account age before doing it to avoid tos
when u create the animation u can change it
u prob have it on core and i belive its because of that your animation is weird
Hello is anyone a programmer?
Lol
bet not you
me
Talk to me in private
i have it set as movement and it doesnt owrk
Watchout for the cloudy weather
weird then idk


