#code-discussion
1 messages · Page 12 of 1
mb

lol
I am trying to make a 2 player obby, how do I go about making the little chamber thing that most games have, where one person becomes one morph, and the other becomes the other morph?
i was making a script and was wondering whats the most amount of variables yall have used before
make a trigger zone when touched check if they are player 1 or two then assign the morphs
i would make a party module script
Why went i clone my car it doesnt work and it stays in the car
I'm missing a few scripts from the cloned car as well
ive been debugging for 11 hours now, god give me mercy
I dont get it
is the joke like that does nothing or
someone pmo(put me on) fr(for real)
💔
holy ai code
LOOL
only ai would explain what clone does bro 💔
can you help me? can I hire you?
ello guys
Keep asking chat gpt, you’ll eventually get your answer some day..
i made a replicator with a friend and i'm not sure if there is anything else it needs, i would not mind some critisism
when you call GetName it fires an inbuild event that sends the data back to all players
im making this unboxing system, using a scrollframe and stuff but for some reason whenever i check how much it would take for it to reach the very end and then implement it to the code, it quad tweens but then randomly pauses 60% the way to the end, idk what to do or why its happening. can someone help?
how do you create a vercel app
Anyone know how i can make custom cars using the roblox racing car template?
like im tryna add a Quickroll gamepass button which rolls 2x the speed of normal roll system, but it keeps breaking all the roll system when i trioed addding it? any help?
What does your current code look like
use a speed variable, if they own the gamepass double the speed variable, then on your tweens divide the normal time for the tween to finish by the speed variable
how hard would it be to code a entire fishing system like fisch
quite a bit of work
i see
Delete the frame, replace with othet
Hello everyone, quick question pls. How do you make mimic the fill of playing in a single player game inside roblox?
Like have a map but with just you in it
wdym fill
I dont think its allowed in this server to explain
hey guys so i have a huge of points to check in my game so im using a recursive function but i dont want to check the places i already checked so what's the best way to avoid that
I create it by programming, pass it to github and pass it to vercel
Alr, I’ll try that out when I’m on pc ty
yo
GET OTU OF MY HEADDD
That was hilarious
How much monies
unachor that bihh
guys
-- For this to save you must go to Game Settings, Security, and enable Acess to API Services --
local DataStoreService = game:GetService("DataStoreService")
local DataStore = DataStoreService:GetDataStore("TimeStats")
game.Players.PlayerAdded:Connect(function(Player)
local Leaderstats = Instance.new("Folder")
Leaderstats.Name = "leaderstats"
Leaderstats.Parent = Player
local Cash = Instance.new("IntValue")
Cash.Name = "Cash"
Cash.Value = 0
Cash.Parent = Leaderstats
local Data = DataStore:GetAsync(Player.UserId)
if Data then
Cash.Value = Data
end
coroutine.resume(coroutine.create(function()
while true do
wait(300) -- Time until cash given.
Cash.Value = Cash.Value + 100 -- Cash amount given.
end
end))
end)
game.Players.PlayerRemoving:Connect(function(Player)
DataStore:SetAsync(Player.UserId, Player.leaderstats.Cash.Value)
end)```
why does this not show up
after i press tab
doesnt show leaderstats?
copy pasted ur entire script and it works
hm
do u know anything that might make it not work
its for my game
datastores, but i didnt use them and it showed leaderstats. maybe u have disabled the leaderboard?
can you show me in a screenshare
sure
private call
bro WHY
can someone give me smth to code?
gun dealer
uhm.. elaborate gun dealer? (am an overthinker so it can be a shop dealer and such)
man in an alleyway where u can purchase guns from
.waitforchild?
if u do a . it means you first gotta add the self which is the instance you are trying to wait, but in that case if you REALLY want to place the . and not : use the character and then the name
no my issue is why does it index nil with Waitforchild
do player.Character or player.CharacterAdded:Wait()
no shit
local Player = game:GetService("Players").LocalPlayer
local Char = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Char:WaitForChild("Humanoid")
what do we say?
gg youre a king
im blushing
characteradded sucks
toString(DashDirection)
uhh how do i exactly use it
BF:Invoke(tostring(DashDirection))
The error is on line 19
86
idk but tostring will fix it since its checking as a string
who can help me with a scripting problem dm
print DashDirection
show us line 19
This ain't the right script dawg
ye looks like it
oh wait dash script?
this script line 19
wrong script
bro i showed you both
The script is InputHandler.Dash.Dash
You forgot .new
since Vector3 is basically a table lol
works?
yepö
Well you getting paid
sure whats the pay
who could help me with a scripting problem in dm
nobody is going to dm you for your problem
just send it here
or #code-help but here's cool too
lol
I do percent but i got contracts
n games gon be real goodio
I'll do % if mines 2x higher than yours
no i’m saying im hired
2 games
my brain remembered the blue ig
lol
and I thought you were the same person
bro people need to work together more for free tho
like people could make a good game with 0 funds and get investor
it’s just yall need that chemistry
and need to be actually experienced
or it turns into a disaster
yg i got animation spoofer how do i open it
u don’t
how do i use it then
💀
💀
yea long time
i learned tho
i want learn modeling too but i doubt i’ll be able to
i aint stealing it bro its a free anim from yt
it’s prob the animation instance
from some open source thing
looking for scripters and developers for my game 75% commision
place only the surface cells
Use greedy meshing
wdym 75% commision
let me know if there’s anything i should fix, i’m working on the map after i make sure the gamepass looks appealing and everything works good
75 percent of what i make from the game
any opinions?
Ermm-
How do i do commissions
.
need some help with this, why when I put this custom r15 character into StarterPlayer it doesn't change the players normal r15? I'm pretty sure I did the joints correctly
def not removing the percent on game release 🔥
anyone is a ugc uploaders?
How would you ensure that devs don’t remove percentage?
u can't, work with trusted devs 
chat am i cooking or what

use wait() instead of task.wait()
bro what
i thought task.wait was better
thats what people have told me
task.wait() is better if you dont want your game to be susceptible to lag
ah ok, but they perform the same thing right?
yeah, just that task.wait() doesnt care if your lagging or not
check if touched exists
why does changing a parts velocity make it act as conveyor?
Part.AssemblyLinearVelocity = Vector3.new(100, 0, 0)
use button.touched
because your using vector3
yes why does it make it a conveyor its an anchored part
position I mean
part.AssemblyLinearVelocity = Vector3.new(10, 0, 0)
use this
isnt it kind of a bug then
because its anchored
nothing should happen
it doesnt move
@silk tartan did it wkrk
where
I assume its some kinda bug where the game still applies velocity to touching unanchored parts even though the part itself is anchored
it moves the player on top of it
in the scrkpt
do button.touched instead of making value
the door just doesnt do anything
Idk why anchoring doesnt force tbe velocity to 0
value exists
But this is how it is
i have it
yeah thats what i would expect
don't do if gate then
just do
gate transparency = 0.5 gate. can collide = false
because it's already in a function
anyone knows how to change the image button by expanding it on all 4 sides using TweenService?
i tried to change it using size but it keeps expanding only on the positive axis of x and y
anchor it 0.5,0.5
uhh how do you anchor?
does it matter
Properties anchor point
set the anchor point it’s one of the first properties
Yooooo thats so cool
i thought you needed to change the position too to match with the size 💀
thanks @rare bronze and @charred shore
np
np
Use this instead
local wall = script.Parent
for i = 0, 1, 0.25 do
wall.Transparency = i
task.wait(1)
if wall.Transparency == 1 then
wall.CanCollide = false
else
wall.CanCollide = true
end
end
Yo,this ain't gonna be Abt Roblox Luau but if you can help me I could rly use it,so basically I'm very new in css and html and I made a basic code redeeming website,but when I center the div all of the buttons and text inputs get messed up,how do I fix it?
use tweenservice
please never code again
local door = script.Parent
door.Material = Enum.Material.Wood
local openAngle = 90
local openSpeed = 2
local isOpen = false
local function openDoor ()
if isOpen then return end
isOpen = true
for i = 0, openAngle, openSpeed do
door .CFrame = door .CFrame * CFrame.Angles (0, math.rad (i) , 0)
end
end
door . Touched : Connect ( function (hit)
local character = hit.Parent
local humanoid = character = hit.Parent
if humanoid then
openDoor ()
end
end)
am i cooking chat or what?
my script for a game, i wanna see if i have any mistakes done before i create it
No
I'm going to create ragdoll for my fighting game soon, I want it to be in the same vain as jiujitsu shenanigans as it allows for some accurate collisions while doing things like welding the head to an enemy players hand. I also want it to be smooth visually on both the player client and other players client, anyone have any pointers or know anything that I should know before starting?
Part cache and greedy meshing would help here
why isnt this working -> trying to add a 2x speed gamepass where the roll speed is 2x faster than normal roll if the player owns the gamepass
print debug to see if it gets past the return
In the game jam event are we allowed to use certain frameworks like ProfileService or Warp?
HasGamePass is not a valid member of Player "Players.wonking123" - Server - ServerScript:244
10:05:09.068 Stack Begin - Studio
10:05:09.069 Script 'ServerScriptService.ServerScript', Line 244 - function regularRoll - Studio - ServerScript:244
10:05:09.069 Script 'ServerScriptService.ServerScript', Line 364 - Studio - ServerScript:364
10:05:09.069 Stack End - Studio
10:05:10.901 Roll button clicked! - Client - Roll Click Sound:10
this is the output, the roll button is clicking but the visuals rnt shoiwing
ur trying to check if the player has a gamepass using the player instance rather than using the correct service
yea
chat gpt ahh hallucinated code
i told you the answer yesterday
your code is weirdly setup for a roll system
youre handling speed on the server?
ill just show you my code...
handle it on the client by checking if they own a gamepass value, then like i said divide your tweens by that value
because its pasted!!!
Every time I open a new game in Studios I got a strange Dubble Jump system in my game and i cant remove. Can anyone say what it is or how I can remove it?
Hey uhhh since you all are like a scripers is it there a way to like have the dummy to play my animation that ive like made?
Beacuse im like making it to just get the skill role
show me your code for it
Oh im like a animator actually
ok
Not a scripter
use an animation controller, then have animations in it
Ok thanks
ply the animations based on an event
Ok then
Thank you for the help
learn how to code
local wall = script.Parent
for i = 0, 1, 0.25 do
wall.Transparency = i
task.wait(1)
wall.CanCollide = i < 1
end```
you can also localize task.wait but its just extra work
i actually wont
im new to developing and i am making a dco game and i only really just started getting into roblox studio around 6-ish days ago, does anyone know how to code this sort of thing because i honestly have no idea how to and it would be much help
wait so ive seen people use the "i" in coding, but idk what it is or what it does
index
ok and what does it do
so if i did i = 1, 100, it would print all the numbers between 1 and 100?
ok i see
how do i check if the player clicks in a local script, not on a button or anything, just left mouse button click anywhere on the screen
local mouse = player:GetMouse()
mouse.Button1Down
or
what if i want it to do decimals
userInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then
return
end
if input.UserInputType.Name == "MouseButton1" then
--placeholder
end
end)
then add increment
chat
✅
bro what
make a stage folder and set each one to the name so 1,2,3, etc and the arrow just iterates the stage value of the player either +1 or -1 depending on the arrow
module.playerInventory[player.UserId] = {
Apple = {Name = 'Apple', Amount = 5, Type = 'Food'}
}```
Anyone got any ideas on what else to put inside the table
I'm also adding Equipped but only for weapons
I literally didnt ask. If you wanted to explain a better way of writing that code you should have done that from the start instead of trying to be funny.
And I am already learning how to code, you should learn manners.
maybe health? like the hp regen the apple gives?
definitely won't 🤑
he already left
I am not going to be a CS major
💀
😭
whats ur skillzz
I can code more basic stuff
I cannot code something that involves a significant portion of tables
such as a very advanced inventory
I am not talking ab simple tables
well I am but I am not
In this video I cover the change that CIG has made to player inventory and how to quickly navigate it. Enjoy!
▶New to Star Citizen? Use this referral code to receive 5,000 in game currency once you signup instantly. https://robertsspaceindustries.com/enlist?referral=STAR-ZJ5V-F7PL
▶Interested in North American Industrial Org? Check mine out se...
I want to recreate this
I don't have the skills unfortunately
Fair, I recently came to learn LUAU after knowing web development.
Its a bit different
yeah video games development is way harder than web development
cap
not cap
games development is easier
How is web development harder
video games development is harder than web dev even worst if the game is multiplayer
💀
What part of web dev is harder
thanks rain 
you're welcome
loser
D1 rider
unreal loser
Does anyone know how to create a character selection?
Backend
And working with databases
Not fun
yeah ive made one before
like this?
YESSSSSS
DMM
im not a scripter but im curious; how do scripters showcase themselves? obviously they don't show the raw code for people who don't even understand
i use youtube to showcase things ive made rather than the actual code as non scripters wouldnt understand and unlikely to hire you
spoilable = true lol
I need someone who knows how to select a character for my game, if you know and can help me you can become a sub owen for my game
i do youtube vids of my code working
i want to make a script that makes it so once
coins(leaderstats value is over 0 the gate open)
local mainGame = game.Workspace:WaitForChild("MainGame")
local gates = mainGame:WaitForChild("Gates")
local gatem = mainGame.Gates.Stage2
local function opengate()
gatem.CanCollide = false
gatem.Transparency = 0.6
end
#heres the problem idk how to do this properly#
local leaderstats = game.Players.PlayerAdded.leaderstats
local points = player.leaderstats:WaitForChild("coins")
if points > 0 then
opengate()
end
ask gpt
points.Value
youre also referencing leaderstats wrong
game.Players.LocalPlayer.leaderstats
just the current epoch time pus the time of a day?
os.time() + 86400
nah like convert 2025, feb, 28th to epoch
local codes = {
["destrodevs"] = {
Reward = {
--[[
Leaderstats dependent on your game
]]
},
expires = {
Year = 2025,
Month = 2,
Day = 28,
}
}
}
oh i see what you mean
tryna make it easier to create codes
so you want to find the expire time in epoch
why is my chat disappearing?
Is it disabled
no 💔
theres another issue with that cuz of leap years
Did you mess with core guis
u cant put a constant value on the days in a year
try this local mainGame = game.Workspace:WaitForChild("MainGame")
local gates = mainGame:WaitForChild("Gates")
local gatem = mainGame.Gates.Stage2
local function opengate()
gatem.CanCollide = false
gatem.Transparency = 0.6
end
-- This function will check a player's coins
local function checkCoins(player)
-- Wait for leaderstats and coins to be created
local leaderstats = player:WaitForChild("leaderstats")
local coins = leaderstats:WaitForChild("coins")
-- Check initial value
if coins.Value > 0 then
opengate()
end
-- Connect to value changes
coins.Changed:Connect(function(newValue)
if newValue > 0 then
opengate()
end
end)
end
-- Connect to PlayerAdded to handle new players joining
game.Players.PlayerAdded:Connect(function(player)
checkCoins(player)
end)
-- Optional: Check existing players when script starts
for _, player in ipairs(game.Players:GetPlayers()) do
checkCoins(player)
end
leap years are divisible by 4
do % 4 to find a leap year
why does finding the day matter, epoch is constant
i rather have the code set in a date format instead of having to find the epoch time for the correct date
it would just save me alot of time when creating codes
which is a minor part of the game
local codes = {
["destrodevs"] = {
Reward = {
},
expires = {
Year = 2025,
Month = 2,
Day = 28,
}
}
}
local function getExpireEpoch(codesTable, code)
local expiryDate = codesTable[code].expires
if expiryDate.Year % 4 == 0 then
expiryDate.Day = 29
else
expiryDate.Day = 28
end
local dateTable = {
year = expiryDate.Year,
month = expiryDate.Month,
day = expiryDate.Day,
}
return os.time(dateTable)
end
try that
i dont think that works for leap years
or just use os.date
yeah i did it wrong so it will always be day 28 or 29 but you get the idea
it dont need any math
i was just over thinking it
v0["Convert_Time"] = function(ExpiresTable)
return os.time({
year = ExpiresTable.Year,
month = ExpiresTable.Month,
day = ExpiresTable.Day,
hour = 0,
min = 0,
sec = 0
})
end
do item welds get destroyed when a player dies?
because i have this drop items on death scripts and every time the player dies the to the handle welded parts fly away from the handle and the welds are gone:
player.CharacterAdded:Connect(function(char)
char.HumanoidRootPart.CFrame = room.spawnpoint.CFrame + Vector3.new(0,3,0)
local humanoid = char:WaitForChild("Humanoid")
humanoid.Died:Connect(function()
-- Drop all items
for i, v in pairs(player.Backpack:GetChildren()) do
if v:FindFirstChild("Handle") then
v.Parent = game.Workspace.Dropped
v.Handle.CFrame = char.HumanoidRootPart.CFrame
v.Handle.CanCollide = true
for i, d in ipairs(v:GetDescendants()) do
if d:IsA("MeshPart") then
d.CanCollide = true
end
end
end
end
-- Drop equipped tool
if char:FindFirstChildWhichIsA("Tool") and char:FindFirstChildWhichIsA("Tool"):FindFirstChild("Handle") then
local tool = char:FindFirstChildWhichIsA("Tool")
tool.Parent = game.Workspace.Dropped
tool.Handle.CFrame = char.HumanoidRootPart.CFrame
tool.Handle.CanCollide = true
for i, d in ipairs(tool:GetDescendants()) do
if d:IsA("MeshPart") then
d.CanCollide = true
end
end
end
end)
end)
please ping when responding, thanks
hm true
this happens when im holding the weapon
oh okay
alr i will do it like this, thanks
does anyone know any tips on how i can start scripting?
just do it
okay thanks!
roblox documentation is the best source for learning
lol
to me thats where i learned
yeah true i would suggest watching a tutorial and trying to do the same thing without looking at the video
atp youre remembering the code they wrote and not what it does
If anyone uses my Require Autocomplete plugin, I pushed an update to it today. It now supports require-by-string if you prefix with two "::" now. And many QoL improvements.
looks like I don't have permission to post there
is there anyway i can apply humanoid description via client side?
Humanoid::ApplyDescription() can only be called by the backend server
im trying to market it like blade ball has it where it shows YOUR avatar on a NPC
local function setRig(Rig, UserId)
task.spawn(function()
local EmptyDesc = Instance.new("HumanoidDescription")
local PlayerDesc = players:GetHumanoidDescriptionFromUserId(UserId)
local RigHumanoid = Rig:FindFirstChild("Humanoid")
RigHumanoid:ApplyDescription(EmptyDesc)
task.wait()
RigHumanoid:ApplyDescription(PlayerDesc)
end)
end
YOU need to get YOUR information and go to JOBS.COM because CODING is NOT for YOU
Where you guys all learn to code im tryna learn
Looking for people with a good pc to help a 1k member server.
internet
can someone tell me how the hell to check if a player selected the UserDialog in a DialogChoice
local dialog = script.Parent
dialog.DialogChoiceSelected:Connect(function(player, choice)
print(player.Name .. " selected: " .. choice.Name)
if choice.Name == "UserDialog" then
print(player.Name .. " selected the UserDialog!")
-- Add your custom logic here
end
end)
How do I fix this? The person thats blocking my spike is correctly doing it, but the ball is already past his body before it registers to move a different direction so it ends up hitting the net. How do I fix this?
1+1=2 solve equation
guy is splash effects in water a scripting or terrain job? (like physics, for example rain drops falling onto the water then a splash appears)
scripting
is python easier to code discord bots than java
can someone help me with coding the Classification using a spectral index. I’ve already coded the calculation of a spectralindex (im using ndvi and ndmi)
Bro I quit scripting for 5 months to learn website development and I've already lost some of my juice😭
I would say so python took me a week to learn meanwhile CSS HTML and JavaScript took me months
``game.Players.PlayerAdded:Connect(function(PLR)
local leaderstat = Instance.new("Folder")
leaderstat.Name = "leaderstats"
leaderstat.Parent = PLR
local Deaths = Instance.new("IntValue")
local Gold = Instance.new("IntValue")
Deaths.Name = "Kills"
Deaths.Value = 0
Deaths.Parent = leaderstat
Gold.Name = "Gold"
Gold.Value = 0
Gold.Parent = leaderstat
end)
local Cl = game.ReplicatedStorage.ClassicSwordShop
local Fallensword = game.StarterPack.FallenSword
Cl.OnServerInvoke = function(player)
local PLR = player
local leaderstats = PLR.leaderstats
local Deaths = leaderstats.Deaths
local purchaseSuccesful = false
if Deaths.Value >= 0 then
local cloneSW = Fallensword:Clone()
cloneSW.Parent = PLR.Backpack
purchaseSuccesful = true
else
print("Purchase notwork!!!!")
end
return purchaseSuccesful
end``
Its a shop script its not working ):
put the sword in serverstorage or replicatedstorage
Ik i just put it in starter pack for some reason
ok
can someone test this for me its supposed to grant you a badge and a ugc item when you get 100 kills
Ai 
How do I make a code that gives +1 JumpPower every second and saves?
Is anyone really good at building and scripting in here ?
I’m making this new game and I’m gonna promote it on my yt
It will def go viral I just need ppl to help make the game
what makes you think that
am I crazy or is this for literally nothing
Comments, layout, useless or unusable code ect...
why is there another PlayerAdded event?
check out my sigma website https://calebwithoutagirlfriend.vercel.app/
nice
lol
is it the same performance to make two runservice.heartbeat connections as one connection with the same logic combined?
or if not how much slower is two
can you guys like tell me the current user count, cuz idk if its working
to me says 1
Need a full time scripter, will pay 1k a week (hopefully) must be able to complete every task for payment
neglectable performance lose
this took too much and still doesnt work
Can someone make a datastore for my game rq? It should be pretty simple
WHO IS A SCRIPTER
Is constant Raycasting on the server heavy(Performance wise)? Like for spamming sniper bullets?
im a discord bot scripter
no roblox scripter
alr unc
found a bug on ur website lol
if u refresh the website it adds a visitor and stacks
ow
does anyone know how to make animated ascii objects
does data save globally through different places within an experience? If so, is it just a matter of setting up the leaderstat again in the new place or what i’m so lost
Yes
Someone help me fix
local prox = script.Parent.Buttonmodel.Button.ProximityPrompt
local spawnZone = script.Parent.SpawnPlatform
local firegui = script.Parent.FireGui
local function spawnCoins()
local newCoin = Instance.new("Part")
newCoin.Size = Vector3.new(2, 2, 2)
newCoin.BrickColor = BrickColor.new("Yellow flip/flop")
newCoin.Material = Enum.Material.Neon
local x = math.random(-spawnZone.Size.X / 2, spawnZone.Size.X / 2)
local y = 5
local z = math.random(-spawnZone.Size.Z / 2, spawnZone.Size.Z / 2)
newCoin.CFrame = CFrame.new(spawnZone.Position + Vector3.new(x, y, z))
newCoin.Parent = game.Workspace
newCoin.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
game.Debris:AddItem(newCoin)
end
end)
end
prox.Triggered:Connect(function(plr)
firegui:FireClient(plr)
while task.wait(1) do
spawnCoins()
end
end)
A place under an experience will always share the same DataStores. All you’ll be doing is loading if you need to use data and save if needed
when i try to print profile.Data.Kills, it returns nil```
--//Servies
local profileService = require(game.ReplicatedStorage.Modules.ProfileService)
local profileTemplate = {
Kills = 0,
}
local profileStore = profileService.GetProfileStore(
"PlayerData",
profileTemplate
)
local profiles = {}
local function saveData(player)
local profile = profiles[player]
profile.Data.Kills = player.leaderstats.Kills.Value
end
local function playerAdded(player)
local profile = profileStore:LoadProfileAsync("Player_" .. player.UserId)
profile:AddUserId(player.UserId)
profile:Reconcile()
profile:ListenToRelease(function()
profiles[player] = nil
player:Kick()
end)
if player:IsDescendantOf(game.Players) == true then
profiles[player] = profile
local leaderstats = Instance.new('Folder', player)
leaderstats.Name = "leaderstats"
local Kills = Instance.new("IntValue", leaderstats)
Kills.Name = "Kills"
Kills.Value = profile.Data.Kills
saveData(player)
else
profile:Release()
end
print(profile.Data.Kills)
end
for i, player in ipairs(game.Players:GetPlayers()) do
task.spawn(playerAdded, player)
end
game.Players.PlayerRemoving:Connect(function(player)
local profile = profiles[player]
if profile ~= nil then
saveData(player)
profile:Release()
end
end)
game.Players.PlayerAdded:Connect(playerAdded)
I am
Everything but cutscenes cause I don’t know how to do them yet
well how much have u been scripting
Long or much?
same idk
Those are two different things
bro tell me the 2
I’ve been scripting for 4 years very consistently
noice
well im hiring u for my friend
but firstly
are you experianced with battlegrounds?
Yeah
bros asking for portfolio w/o any payment implied 😭
why does my developer product work in local testing but not in team test?
we talked in dm also im hiring her for my friend so idk about the payment they will talk about it
wordddddddddddd
wat
@sacred wagon @sacred wagon hey
NONO I ON ON ON ON O
what
is it possible to register a key press that wasnt pressed?
for example make a player hold shift for one second
what what
hi
... hi
only reason is my run button wont work until the player presses shift first
is there anyway to display on the server a player's capture (via capture service)?
what
Okie
IsKeyDown()
i will look into it thank you
can i dm you if i have an issue? sorry im trying to learn
yes yes ^^
My dms closed, but you can for ping the issue here
Technically you’re trying to do a holdable keybind right?
okay thank you, can i maybe just send the part of the code thats having an issue? no errors pop up
well
i was trying to spoof a shift hold for one second
cause my gui run button only works after the player runs with shift
()_()
but you cant run w shift on mobile and thats the problem, it only happens in this game and it works in others and im not too sure whats happening cause theres no errors in my console
so in mobile the issue it’s happening only?
yeah
Are you using InputBegan / InputEnded on the holdable button?
I guess this is an event for buttons as well
input.KeyCode = RunKey
if input.KeyCode == RunKey then
if Stamina >= 0 then
Player.Character.Humanoid.WalkSpeed = SprintSpeed
end
end
end)
UIS.InputEnded:Connect(function(input, process)
input.KeyCode = RunKey
if input.KeyCode == RunKey then
Player.Character.Humanoid.WalkSpeed = WalkSpeed
end
end)```
Or I might be crazy rn
That’s for Keyboard
For mobile you can also use ContextAction instead maybe because you can make a button linked to the action function
Or either a normal button anyways
local WalkSpeed = 12 --How fast the player will go when not sprinting (16 is the default speed in roblox)
local RunKey = Enum.KeyCode.LeftShift -- The key you press to sprint
local StaminaEnabled = true --If true, stamina will be enabled. If false stamina will be disabled.
local MaxStamina = 7 --Max stamina
local StaminaDrain = 1 --How much stamina the player will lose per second while sprint
local SprintSpeed = 22 --How fast the player will go while sprinting
local StaminaRegen = 0.5 --How much stamina the player will gain per second while not sprint
local Player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local TextLabel = script.Parent.Stamina
local RunButton = script.Parent.RunButton
TextLabel.Text = MaxStamina
local Stamina = tonumber(TextLabel.Text)
TextLabel.Visible = StaminaEnabled
TextLabel:GetPropertyChangedSignal("Text"):Connect(function()
Stamina = tonumber(TextLabel.Text)
end)
if UIS.TouchEnabled then
RunButton.Visible = true
end
UIS.InputBegan:Connect(function(input, process)
input.KeyCode = RunKey
if input.KeyCode == RunKey then
if Stamina >= 0 then
Player.Character.Humanoid.WalkSpeed = SprintSpeed
end
end
end)
UIS.InputEnded:Connect(function(input, process)
input.KeyCode = RunKey
if input.KeyCode == RunKey then
Player.Character.Humanoid.WalkSpeed = WalkSpeed
end
end)
RunButton.MouseButton1Click:Connect(function()
if Player.Character.Humanoid.WalkSpeed == WalkSpeed and Stamina >= 0 then
Player.Character.Humanoid.WalkSpeed = SprintSpeed
elseif Player.Character.Humanoid.WalkSpeed == SprintSpeed then
Player.Character.Humanoid.WalkSpeed = WalkSpeed
end
end)```
wait(0.5)
if Player.Character.Humanoid.WalkSpeed == SprintSpeed and StaminaEnabled then
local Stamina = tonumber(TextLabel.Text)
TextLabel.Text = tostring(TextLabel.Text - StaminaDrain)
if Stamina <= StaminaDrain + 1 then
Player.Character.Humanoid.WalkSpeed = WalkSpeed
end
elseif Player.Character.Humanoid.WalkSpeed == WalkSpeed and StaminaEnabled then
local Stamina = tonumber(TextLabel.Text)
if Stamina <= MaxStamina - 0.5 then
TextLabel.Text = tostring(TextLabel.Text + StaminaRegen)
end
end
end```
thats the code @light niche
i just wanna see if anything pops out to you
as whats causing the issue
I’m on mobile now, a bit hard to see
ill check that out though, might help me fix this
Can you check for InputBegan and InputEnded on a Button?
Because its inherently from engine GuiButton
But maybe it doesn’t work as I’m thinking on
touch started and touch ended
i should swap to that?
swap for what
i dont know this issue is really confusing me lol i do very simple scripts not much with players
def not mobile
ok trying to read from chat to see what the problem is
you got sprinting to work on pc and now you're typing to make it work on mobile?
yes
the mobile button only works after the shift key is detected though
thats the issue cause people on mobile arent gonna be able to use shift to run first
but then after you use shift
the run button works just find
i can send you a streamable link in dms
df
but im not allowed here
sure
okay tysm sorry
do you mean shift on the mobile keyboard?
no like
because lmao
im using the roblox studio mobile emulator
ooo
got it
did you try publishing your game
and playing it on your phone
emulator lowkey sucks on mobile
yes
he has a button
Use InputBegan on button
i dmed u the vid @ruby iron
kk
RunButton.MouseButton1Click:Connect(function()
if Player.Character.Humanoid.WalkSpeed == WalkSpeed and Stamina >= 0 then
Player.Character.Humanoid.WalkSpeed = SprintSpeed
elseif Player.Character.Humanoid.WalkSpeed == SprintSpeed then
Player.Character.Humanoid.WalkSpeed = WalkSpeed
end
end)
oh wait
is that it?
were you not doing that
ive also had two people ik try on theirs too
It doesn’t work for holdable
And also doesn’t work on mobile
Should be Activated
well im not trying to do holdable i want it to be a press
are you making a hold to run button or a toggable run button
Oh mb
togglable
it presses
and it runs out of stamina
and then regens
then u press again
try doing .Activated instead of MouseButton1Click
okay hold up
oh wait
you can't do this
like have both the UIS.InputBegan and the RunButton.MouseButton1Click connection
because they will fire at the same time
like when you tap on mobile on the button, it will also fire the InputBegan connection
okay so i cant have a run script for both mobile and keyboard?
but on pc there's no ui so it doesn't fire
you can
but if it's on mobile, dont connect the InputBegan connection
like check the players device
or use
ContextActionService
local ContextActionService = game:GetService("ContextActionService")
local UIS = game:GetService("UserInputService")
local WalkSpeed = 12 --How fast the player will go when not sprinting (16 is the default speed in roblox)
local RunKey = Enum.KeyCode.LeftShift -- The key you press to sprint
local StaminaEnabled = true --If true, stamina will be enabled. If false stamina will be disabled.
local MaxStamina = 7 --Max stamina
local StaminaDrain = 1 --How much stamina the player will lose per second while sprint
local SprintSpeed = 22 --How fast the player will go while sprinting
local StaminaRegen = 0.5 --How much stamina the player will gain per second while not sprint
local Player = game.Players.LocalPlayer
local TextLabel = script.Parent.Stamina
local RunButton = script.Parent.RunButton
TextLabel.Text = MaxStamina
local Stamina = tonumber(TextLabel.Text)
TextLabel.Visible = StaminaEnabled
TextLabel:GetPropertyChangedSignal("Text"):Connect(function()
Stamina = tonumber(TextLabel.Text)
end)
if UIS.TouchEnabled then
RunButton.Visible = true
end
local function runButton(actionName, inputState, inputObject)
if actionName == "run" then
if inputState == Enum.UserInputState.Begin then
if Player.Character.Humanoid.WalkSpeed == WalkSpeed and Stamina >= 0 then
Player.Character.Humanoid.WalkSpeed = SprintSpeed
elseif Player.Character.Humanoid.WalkSpeed == SprintSpeed then
Player.Character.Humanoid.WalkSpeed = WalkSpeed
end
end
end
end
ContextActionService:BindAction("run", runButton, true, RunKey)
i think this might work
haven't even ran the code tho so lmk
there's going to be a different button tho
and its not going to look like the one you have but that's ok because you can change it later
but press on that one to test
and it still does the gui?
it's supposed to create a mobile gui yeah
shift to run is gone tho
wait let me see i have to join on my phone
for the button
it removed the other functions in the script
omg wait
RunButton.MouseButton1Click:Connect(function()
if Player.Character.Humanoid.WalkSpeed == WalkSpeed and Stamina >= 0 then
Player.Character.Humanoid.WalkSpeed = SprintSpeed
elseif Player.Character.Humanoid.WalkSpeed == SprintSpeed then
Player.Character.Humanoid.WalkSpeed = WalkSpeed
end
end)
i don't think this ever runs
because your default speed is 16 when you spawn in
and it's checking if the players walkspeed is 12 so it fails the first if statement and then sprint speed is 22 so it fails the second too
bro just change your walkspeed from local WalkSpeed = 12 to local WalkSpeed = 16
and it will work 😭
that sucks tho highkey wanted them to be slow
it worked after you clicked shift because shift actually set it to 12
is there a workaround?
yeah
make the default 12 instead of 16
did it work
yeah sometimes its stupid lol
cause there wasnt anything wrong with the damn script
on StarterPlayer there is a CharacterWalkSpeed property
you can just set that to 12
like, StarterPlayer in the explorer tab
^^ this does not work if you have a StarterCharacter in the StarterPlayer
I'm working on an unboxing system but one of the main issues I'm experiencing is the scrollframe, whenever I tween to the end via a server script, it doesn't go all the way to the end, I thought this may be due to my scrollframe properties and my suspicion is that its caused by the fact that changing the size of my client window affects the end of canvas position, example:
https://cdn.discordapp.com/attachments/737841854875435129/1342022680685056086/Project_A_-_Roblox_Studio_2025-02-19_22-38-04.mp4?ex=67b8c844&is=67b776c4&hm=98799d32d28c8aeac6f30c49c7173a72729d49854a52daf6219d86c26d51c7b4&
--
What should I do to stop that from happening so I can make my unboxing system?
worked perfect thank you so much
use a UIAspectRatioConstraint
is it just me or does everyone stop getting A’s in math during middle school
What is the best way to check the players devices, like if they are mobile etc
iirc there isn't a way.
there's not really a way buuut you could use something like this
local UIS = game:GetService("UserUnputService")
local isMobile = UIS.KeyboardEnabled
I figured alr
how could I calculate how long a drop would travel on an conveyor depending on its assemblylinearvelocity
guys, to handle big number of "zombies" should I render them all on the client?
for example:
local NPCs = {
npc = {
position = vector3.zero
rotation = vector3.zero
}
}
Yes
There is no objective better way
You could use a part and a custom controller in place od zombies
And add all the other parts on the client
okay, thanks
nothing runs from line 11 down, how do i fix it?
Check the output
there's nothing
how do I code a wind script like this in my roblox game?
Trail
can you please elaborate if you have the time. I am very new to coding so I have no idea what that is
Trail on attachment
does anyone have a devforum post about Snapshot Interpolation? i'm trying to make a football system and i think this is the way to go about doing it
so to add an effect on a part?
Something like that
Snapshot interpolation?
So just recording movements?
alright thank you, I found a tutorial on youtube explaining it
running physics on the server and on the client i think
Thats just how physics already work
Do you mean rollback netcode or something like that
yeah
You calculate ball physics
And replicate them yourself
Then you let players do the same while waiting for the next replication job or whatever youd call it
i used pcall for storing the questes for 24hrs is that a bad data store to use pcall
make projects
make games
best way 2 learn
is it worth it making a module library on your code or just use something like knit or some other framework/libraries ?
I don't think anyone ever stops learning scripting as an active dev, and sneakypete learned it all?

i think it's almost impossible to learn it all,ot atleast to remember it without re-looking on dev forum
i'm tryna organize my code but i have no idea if i should just stick with modules and remotes or try something else
based
but is a framework needed in most cases or its just opcional
depends what you call a framework
like knit
guys im new to scripting and i kinda forgot how to get a ui elements position.. 😬
local frame = [frame dir]
local framepos = frame.Position
or if u mean UDim2.new(0,5,0,5)
how do I make a gui like this?
wym
like from a localscript in imagelabel/
create a gui library for that
okok
thankyou
what do i put before udim? frame.position.udim?
ik but i kinda forgot how to use it
oh
if u want to set a pos to something udim2 u just say frame.position = UDim2.new(0,5,0,5) this will set it to the center of the screen
sec
can u paste it here
yah
im too lazy to type it
local framebg = script.Parent
local originalpos = framebg.Position == UDim2.new(0, 0, 0.41, 0)
local moving = true
framebg.Position = UDim2.new(0, 0, 0.41, 0)
wait(2)
while moving do
framebg.Position += UDim2.new(0.02, 0, 0, 0)
wait(0.02)
end
wait(0.7)
moving = false
do i put moving = false higher up?
before the while true
local framebg = script.Parent
local moving = true
framebg.Position = UDim2.new(0, 0, 0.41, 0)
wait(2)
while moving do
framebg.Position += UDim2.new(0.02, 0, 0, 0)
wait(0.02)
end
wait(0.7)
moving = false
but it keeps moving
yes
nope its easier
i tried devforum
its impossible to navigate
most tutorials are 5 years old and just dont work in general
local framebg = script.Parent
local tweenService = game:GetService("TweenService")
local goal = {}
goal.Position = UDim2.new(1, 0, 0.41, 0)
local tweenInfo = TweenInfo.new(2)
local tween = tweenService:Create(framebg, tweenInfo, goal)
tween:Play()
hello everyone, question pls, for some reason my module scrip seems to run slower then when i just use the code inside a local script
show?
uhh how do you make the text becomes code agian
` 3 times i think
```lua
code
```
local module = {
expand = function(button,sizeDif)
---Control variables
local tweenService = game:GetService("TweenService")
local allowClick = true
---Tweening
local tweenInfo = TweenInfo.new(
0.5, --time
Enum.EasingStyle.Exponential, --Easing style
Enum.EasingDirection.Out,
0,
false,
0
)
local propertiesIn ={
["BackgroundColor3"] = Color3.fromRGB(180,180,180),
["Size"] = UDim2.new(0,button.Size.X.Offset + sizeDif,0,button.Size.Y.Offset + sizeDif),
}
---Activation
tweenService:Create(button,tweenInfo,propertiesIn):Play()
if allowClick then
allowClick = false
tweenService:Create(button,tweenInfo,propertiesIn):Play()
allowClick = true
end
end
}
return module
this is one of the functions inside the module
yeah and whats wrong w it
it gets abit choppy
my method of activation is just this
im not sure why it isnt as smooth as when i just insert the code inside the mouse enter function
local tweenInfo = TweenInfo.new(
0.5, --time
Enum.EasingStyle.Exponential, --Easing style
Enum.EasingDirection.Out,
0,
false,
0
)
local tweenService = game:GetService("TweenService")
local module = {
expand = function(button,sizeDif)
---Control variables
local allowClick = true
---Tweening
local propertiesIn ={
["BackgroundColor3"] = Color3.fromRGB(180,180,180),
["Size"] = UDim2.new(0,button.Size.X.Offset + sizeDif,0,button.Size.Y.Offset + sizeDif),
}
---Activation
tweenService:Create(button,tweenInfo,propertiesIn):Play()
if allowClick then
allowClick = false
tweenService:Create(button,tweenInfo,propertiesIn):Play()
allowClick = true
end
end
}
return module
probably wont change shit
but test this
doesnt set it many times
huh you can put local outside of module?
yeah?
nah its okay
iik whyy
its because its firing expand many times
and not only once
its trying to tween the same thing alot of times
ohhhh
that makes alot of sense
huh doesnt mouse enter only account for once instance tho?
uhhh can you elaborate more pls
guys should i learn scripting?
i've been coding since 2019, still shit at it
but should i?
i mean if u want to start developing in roblox or any other engine yes
even if ure a builder/ui designer
yea but i cant ssit still and type super long things so i dont think its gone be it i will be stuck at moddeling
okay thanks!
how to know when player cliks esc or windows on pc to know if he is afk. Is there any functions for this?
Im not sure if this works but an idea would be to make a duplication of an object that scales with UI and make it to not scale with UI
And compare the two together
That way if the player were to change the screen in anyway, it would do the comparison
User input service
Use window focused event
Typically used for when the user has the window active or minimized
UIS.WindowFocused and UIS.WindowFocusReleased
I'm currently making a require script (require(0000000).load("username")). However, I've ran into an issue. When using animations, they won't work in every game due to Roblox's permission thing for animations. How would I make animations work in every game that I run the require script in?
u dont
motor6d
Depends on who owns the animation
I own it.
I think it should work if you own the animation and use it across different games that you own too
Is it the sanitized ID issue
Alright, how about group games?
E.G. games that my friends own
Oh they would have to own the animation
You can upload the animation as under the group so the group owns the animation as well
how to detect clicks on home button?
But then it'd be a different asset ID, which requires me to update the module which defeats the whole purpose of a require script
I don’t think there’s another way around it animations have to be under ownership to be used without getting a sanitized ID error
You can tell your friend to spoof the animation and upload it as their own and edit the module script to use that animation
Which would take about a minute
I think it was mouse1clicked
Assuming it’s a image or text button
homeButton.Mouse1Clicked:connect()
um guys why my roblox studio says no internet connection but i am connected to the internet
Reinstall or restart your PC
ok ill try
What name better Attack on Titan : Surge or Attack on Titan : Shadow Fall
surge
Both basic
Which one tho im going for basic
only thing that id allow ai to replace is scripting
That'll work. However, it won't work if I don't have studio permissions. I thought about maybe converting the animation into tweens or lerps? How would I do that?
How come when I switch the network ownership to the player, my raycast result returns nil and the shadow freezes? Funny enough it works again whenever it touches the ground?
function moveShadow(Part)
local Shadow = Part.Shadow
local ray_origin = Part.Position
local raycast_params = RaycastParams.new()
raycast_params.FilterType = Enum.RaycastFilterType.Include
raycast_params.FilterDescendantsInstances = CourtSurfaces
local raycast_result = workspace:Raycast(ray_origin, Vector3.yAxis * -1000, raycast_params)
if raycast_result then
Shadow.Position = raycast_result.Position
end
end
check the network owner ship
you should be replaced for that shit take
the part might not be fully replicated to the server
wdym
i have visualizers on
for the network ownership
in the video
if thats what you mean
raycast happens on server
im doing mine on the client tho
you when you were typing that out
check the parts position
me when i see shit like that
local ray_origin = Part.Position + Vector3.new(0, 1, 0) @steep eagle
you
this did nothing
@steep eagle raycastparams might be over filtering
i dont think so
oh wait
i think it has to do with something related to the switch of ownership
are u using render stepped
oh
this weird asf
Part:SetNetworkOwner(game.Players.LocalPlayer)
task.wait(0.1)
game:GetService("RunService").RenderStepped:Connect(function()
moveShadow(Part)
end)
?
that wouldnt work tho
u only change the network ownership on the server
i do moveshadow() on the client
edited it
i already do
do :SetNetworkOwner(game.Players.LocalPlayer)
why does my developer product work in local testing but not in team test or roblox?
show the script
ok
local _, OnScreen = checkingCamera:WorldToScreenPoint(newPlayerDetector.Position)
if OnScreen then
if #checkingCamera:GetPartsObscuringTarget({checkingCamera.CFrame.Position,newPlayerDetector.Position},{newPlayerDetector}) == 0 then
-- its on screen and its not obstructed
skipWaiting = true
end
end```
if i have this will this work on the server?
no
thx but if you know a way to do it on the server pls tell me
create a remote event in reictaed storage called(you'll see in the script
-- Client-side script
local remote = game.ReplicatedStorage:WaitForChild("VisibilityRemote")
local checkingCamera = workspace.CurrentCamera
local newPlayerDetector = workspace.NewPlayerDetector
local function checkVisibility()
local _, OnScreen = checkingCamera:WorldToScreenPoint(newPlayerDetector.Position)
local isObstructed = #checkingCamera:GetPartsObscuringTarget({checkingCamera.CFrame.Position, newPlayerDetector.Position}, {newPlayerDetector}) > 0
remote:FireServer(OnScreen, isObstructed)
end
checkVisibility()
-- Server-side script
local remote = game.ReplicatedStorage:WaitForChild("VisibilityRemote")
remote.OnServerEvent:Connect(function(player, OnScreen, isObstructed)
if OnScreen and not isObstructed then
-- do something based on visibility
end
end)
Tysm but, the camera is created in the script (I forgot to mention that sorry) and if I did it this way then it will be easy for exploiters to lag the game
is there any good public anti cheat for noclip/flying/ aimbot any of these?
Hello, its me again, question pls
after you have disconnected an event, how do you reconnect it?
u cant u need to create anotehr one
@spiral ice dms
if u dont understand anything just get some random one
Looking for people with good computers, need help with something for a 1k server dm me
uhh my brain is being dumb rn can someone help pls
local function connection()
rescale.expand(button,2.5)
end
local enter = button.MouseEnter:Connect(connection)
if enter then
enter:Disconnect()
enter = button.MouseEnter:Connect(connection)
end
Is that a good way to use tween or nah? 🤔
im trying to use another function from another module script but it turns out it causes memory leakage
so im trying to disconnect and reconnect it
the script above won't solve anything
althought ive never done this before so its abit confusing to me
do you have a connection inside a connection?
or a loop that connects events
i dont think so?
theres only a module script and a local script that is connected rn
send both scripts
local button = script.Parent
local rescale = require(button.Parent:WaitForChild("ReScale"))
local function connection()
rescale.expand(button,2.5)
end
local function disconnect()
rescale.shrink(button,2.5)
end
local function clicked()
rescale.clicked(button,2.5)
end
local enter = button.MouseEnter:Connect(connection)
if enter then
enter:Disconnect()
enter = button.MouseEnter:Connect(connection)
end
local leaves = button.MouseLeave:Connect(disconnect)
if leaves then
leaves:Disconnect()
leaves = button.MouseLeave:Connect(disconnect)
end
local click = button.MouseButton1Click:Connect(clicked)
if click then
click:Disconnect()
click = button.MouseButton1Click:Connect(clicked)
end
local tweenService = game:GetService("TweenService")
---Tweening infos
local tweenInfo = TweenInfo.new(
0.5, --time
Enum.EasingStyle.Exponential, --Easing style
Enum.EasingDirection.Out,
0,
false,
0
)
local tweenInfoOther = TweenInfo.new(
0.08,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
0,
true,
0
)
local module = {
expand = function(button,sizeDif)
---Control variables
local allowClick = true
---Tweening
local propertiesIn ={
["BackgroundColor3"] = Color3.fromRGB(180,180,180),
["Size"] = UDim2.new(0,button.Size.X.Offset + sizeDif,0,button.Size.Y.Offset + sizeDif),
}
---Activation
tweenService:Create(button,tweenInfo,propertiesIn):Play()
if allowClick then
allowClick = false
tweenService:Create(button,tweenInfo,propertiesIn):Play()
allowClick = true
end
end,
}
return module
this is the local script
and this is the module script
the module script has several functions inside of it
but they are rather simular so i cropped it out for convinience
Does anyone know how to create a character selection?
Yo is it impossible to send a players profile picture thru a discord webhook wihtout using a proxy?
im a bit new to scripting sorry
do you guys have any tips to get better at scripting? im working on an easy tycoon game to get better, and i try to understand code when i can..

alr thnx
watt
If you can’t people can always point you in the right direction
Yes it is
but theyre hard to understand
^hasnt made anything
You’ve never made anything stop
🍿 🧋
don’t work on passion shit you aren’t ready for that yet
chill
a nice tip is instead of looking for an entire tutorial about a mechanic you want to implement try to look for the things behind that mechanic (e.g a gun system look up stuff about raycasts)
thats kinda true lol

