#code-discussion

1 messages · Page 192 of 1

rigid rover
#

no

#

i have big name

strong fog
#

pov : luau skills A1 level

rigid rover
#

ur just a randy so u sont know anybody

frank crow
frank crow
#

nice english

strong fog
#

you asked for help
we gave you a hint how to do it
you literally now being so mean 💀

frank crow
#

this aint math class

#

tf

rigid rover
# frank crow sont

im helping ppl out of kindness in geography class and YOURE BULLYING ME FOR IT

strong fog
#

if you cant do anything by yourself

rigid rover
strong fog
#

scripting is about learning, doing mistakes, improving yourself, studying

frank crow
rigid rover
strong fog
#

not the chatting here for free code

frank crow
snow raft
#

OOP is better in all cases than DOP and FOP or any other technique

random nebula
#

bait

azure granite
#

whats dop and fop

slate lotus
#

fractal perlin noise

#

i'm not too sure if it works correctly

loud cipher
slate lotus
#
function TerrainServiceClient.GenerateNoise(self: TerrainServiceClient, x: number, y: number)
    
    
    local basenoise = math.noise(
        x / self.resolution * self.frequency,
        y / self.resolution * self.frequency
    ) * self.amplitude
    
    
    -- fractal noise
    for step = 0, 6 do
        local noise = math.noise(
            x / self.resolution * self.frequency / 2 ^ step,
            y / self.resolution * self.frequency / 2 ^ step
        ) * self.amplitude * 2 ^ step
        
        basenoise = basenoise + noise
    end
    
    return basenoise
end

last elk
#

Does anyone have any tips for someone just starting out? Im a new scripter looking for help because i cant understand anything.

slate lotus
#

i recommend doing simulator games

#

however, make sure to learn about important stuff

#

such as code readablility and being able to send stuff securely (via client/server)

last elk
#

Thats how bad i am

slate lotus
#

so you don't get viruses

#

read through the code, recreate it and google what stuff means

#

such as 'what does instance.new() mean?`

last elk
#

I know what instance.new means

slate lotus
#

and look at tons of scripting videos

slate lotus
last elk
#

Oh

slate lotus
#

which in short means you rely on tutorials for everything

granite igloo
#

what do u want to make with scripting

last elk
granite igloo
#

no like

#

pick something small then learn towards it

#

do what sav said

last elk
#

Alr

slate lotus
#

don't make massive games at first

#

a simple obby is really good for a beginner

last elk
granite igloo
#

what games do u find fun

last elk
slate lotus
#

pick a simple gun model from the toolbox

#

and read the code

granite igloo
#

lets say a third person gun

#

set that as a goal

slate lotus
#

and then you could learn to make your own gun

granite igloo
#

then google/read toolbox code etc

#

so u dont get bored while doing obbies

last elk
wispy shale
#

guys can somene tell me how to disable the W and S keys permanently in the game?
like just gimme the code for it so i can paste it as a serverscript in playerscriopts

last elk
# wispy shale guys can somene tell me how to disable the W and S keys permanently in the game?...

--[[
This script disables forward/backward movement (W/S keys and equivalents)
and locks the camera to the side of the player's character.
Place this script in StarterPlayerScripts.
--]]

local Players = game:GetService("Players")
local ContextActionService = game:GetService("ContextActionService")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

-- Function to block movement actions
local function blockMovement(actionName, inputState, inputObject)
return Enum.ContextActionResult.Sink -- Prevents default action
end

-- Override default movement actions (works for all input types)
ContextActionService:BindAction("DisableForward", blockMovement, false, Enum.PlayerActions.CharacterForward)
ContextActionService:BindAction("DisableBackward", blockMovement, false, Enum.PlayerActions.CharacterBackward)

-- Function to update camera position to the side of the character
local function updateCamera()
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local humanoidRootPart = character:FindFirstChild("HumanoidRootPart")
if humanoidRootPart then
-- Position camera further to the right side of the character, looking at the character
local offset = Vector3.new(12, 4, 0) -- 12 studs to the right, 4 studs up (further away)
local targetPosition = humanoidRootPart.Position + offset
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new(targetPosition, humanoidRootPart.Position)
end
end

-- Update camera every frame
game:GetService("RunService").RenderStepped:Connect(function()
updateCamera()
end)

-- Also update camera when character respawns
LocalPlayer.CharacterAdded:Connect(function()
task.wait(0.1)
updateCamera()
end)

wispy shale
#

lemme test

#

where to put it

last elk
#

StarterPlayerScripts

#

@slate lotus

#

I got this obby idea

#

You cant use w or s keys

#

And the camera is sideways

#

kinda

#

Like its stuck on the side

slate lotus
#

ohhh, so like a 2d obby?

last elk
#

yeah

slate lotus
#

yea sure, go ahead, i think that's a great idea!

last elk
#

thanks

wispy shale
#

why obby

last elk
#

Because im new

#

Its easier

wispy shale
#

ok

last elk
#

Better to learn

wispy shale
#

ok

coarse garden
#

Does anyone able to make custom quirks, I mean the entire skill VFX, maybe even a little cinematic animation if needed, willing to pay a pretty fair amount of money to get it done as soon as possible. Only issue is you’re gonna have to find a ashura united copied game to make it off of there’s tons of copies if able to do all this please feel free to DM me

vocal tusk
#

guys i cant find a proper workframe for developping can you recommend one simple and organized?

foggy sphinx
verbal coyote
#

Can someone make a roblox game im paying btw robux

gritty badge
#
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")


local skips = {
    {
        skipPart = workspace:WaitForChild("tablic"):WaitForChild("SKIP"),
        productId = 3375272745
    },
    {
        skipPart = workspace:WaitForChild("tablic"):WaitForChild("SKIP2"),
        productId = 3397374911
    },
    {
        skipPart = workspace:WaitForChild("tablic"):WaitForChild("SKIPEND"),
        productId = 3378810876
    }
}


local pendingPurchase = {}

for _, data in skips do
    local prompt = data.skipPart:WaitForChild("ProximityPrompt")
    local hitbox = data.skipPart:WaitForChild("HITBOX")

    prompt.Triggered:Connect(function(player)
        pendingPurchase[player.UserId] = {
            productId = data.productId,
            hitbox = hitbox
        }
        MarketplaceService:PromptProductPurchase(player, data.productId)
    end)
end


MarketplaceService.ProcessReceipt = function(receiptInfo)
    local player = Players:GetPlayerByUserId(receiptInfo.PlayerId)
    if not player then
        return Enum.ProductPurchaseDecision.NotProcessedYet
    end

    local pending = pendingPurchase[receiptInfo.PlayerId]
    if pending and pending.productId == receiptInfo.ProductId then
        -- teleport gracza
        local char = player.Character
        if char and char:FindFirstChild("HumanoidRootPart") then
            char.HumanoidRootPart.CFrame = pending.hitbox.CFrame + Vector3.new(0, 1, 0)
        end

        
        pendingPurchase[receiptInfo.PlayerId] = nil
    end

    return Enum.ProductPurchaseDecision.PurchaseGranted
end



why does it work in roblox studio but not in the game?

foggy sphinx
floral lily
#

hehe

#

i am still learning how to scri[t

#

script

sullen loom
#

Guys i need a scripter fast , cause there is a problem with my game we pay dm me fast pls

floral lily
#

and i made a killbrick by myself

sullen loom
#

Guys i need a scripter fast , cause there is a problem with my game we pay dm me fast pls

fervent belfryBOT
#

@sullen loom

Tag » How to post

How to post

In our marketplace (#marketplace-info), we have 2 different ways of making a post; a hiring and hireable post.
Hiring posts are posts which allows you to seek for developers.
Hireable posts allow people who are hiring to find you.

MarketplaceStaff Hiring post

To make a hiring post, use the command </post:0> in #cmds and fill out the required fields. Remember that the marketplace doesn't accept % if your game hasn't made profit yet!

MarketplaceStaff Hireable post

To make a hireable post, you first need your respective skill role; refer to the command /tag view apps for the application link and guidelines. After you get your role, use the command </post:0> in #cmds and fill out the required fields.

Please check our Marketplace Post Rules before posting.

real hemlock
#

Not here my friend

#

Read that

fervent belfryBOT
#
Tag » apps

How to Apply

If you want to apply for a role in our community, the applications can be found here! It is highly recommended to check out our Application Rules to learn the requirements for these skill roles!

Pending Time

An application for a skill role may take up to 0-48 hours to be read. If pending beyond that time, please create a ticket using /ticket and then selecting the "Application" category in #cmds

Application Tickets

To ensure your ticket is being dealt with maximum efficiency, please link your application in the media section of the ticket. As well as specify which role you are after. Also, if you have any doubts or concerns related to applications, then you may create a ticket.

Application Tickets take 2-3 days and up to 1 week to be resolved.

Still don't know how? Watch this video to find out how!

empty wind
#

Hey guys, is there a way to include only models in overlapparams?

#

like in filtersdescendantinstances

flint tusk
proud idol
#

Models arent physical parts themselves, they only group physical parts

#

So youd either have to include locations you know theres only modules, or perform a check after the raycast if the part hit is indeed inside a model

wispy shale
#

yo guys i just started making my first game wanna see it

keen ingot
#

how does larger games handle leaderboards if there are like 1000 con current players? wont this over send requests?

last elk
#

Can someone help me?

#

local Players = game:GetService("Players")
local ContextActionService = game:GetService("ContextActionService")
local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")

local LocalPlayer = Players.LocalPlayer

local function disableMoveAction(actionName, inputState, inputObject)
return Enum.ContextActionResult.Sink
end

ContextActionService:BindAction("disableForward", disableMoveAction, false, Enum.KeyCode.W)
ContextActionService:BindAction("disableBackward", disableMoveAction, false, Enum.KeyCode.S)

local camera = Workspace.CurrentCamera
local renderSteppedConnection

local function setSideCamera()
local character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")

camera.CameraType = Enum.CameraType.Scriptable

if renderSteppedConnection then
    renderSteppedConnection:Disconnect()
end

renderSteppedConnection = RunService.RenderStepped:Connect(function()
    local sideOffset = Vector3.new(20, 5, 0)
    local camPosition = rootPart.Position + sideOffset
    camera.CFrame = CFrame.new(camPosition, rootPart.Position)
end)

end

if LocalPlayer.Character then
setSideCamera()
end

LocalPlayer.CharacterAdded:Connect(function()
setSideCamera()
end)

#

Why wont this work?

#

The W and S keys still work

floral lily
#

gamble ?

median quail
#

Guys what could make sphere cast return nil? Even when it hits something

teal yacht
#

Spawn System (It is saved when you exit the game)
We show the current stage
Skip and return stage system (The stages you have already completed)
Nuclear Bomb (Kills everyone)
Skip Stage (Pay to skip)
Configuration System
• Remove background music
• Hidden players
• Change sound effects
• Invincibility (Activate gamepass that prevents death to a part like a kill)
Store with gamepass
• Invincibility (Does not die to kills)
• Fusion
• Speed
• Jump
Spectate System
• Explode player
• Slow them down for 30 seconds
• Set Jump for 30 seconds
• Set Speed ​​for 30 seconds
• All these options must be paid for with Robux
Main Game System
• Each stage will have a timer system (from one stage to the next), and the timer will be displayed at the top of the screen. when you finish on the scoreboard of each stage

how much should i charge the guy for this?

lusty barn
lusty barn
#

nothing less than like 20k

#

long list but doesn’t seem bad to me

teal yacht
# lusty barn nothing less than like 20k

I already have all of the systems made by other comissions, i'll try to charge 10k since ik this guy is from my country and devs from my country don't have much robux

lusty barn
#

oh that’s kind

brisk peak
#

Im having trouble wraping my head around how to connect functions to the humanoid as it doesnt exist in studio until the game is run.

#

i know its like findfirstchild and stuff but

#

its still difficult for me

iron kraken
#

altho it will break ur game if the server doesnt actually make the child

brisk peak
#

there would be multiple players

iron kraken
#

in a table

brisk peak
#

Do you have an example

iron kraken
#

what are you coding exactly

brisk peak
#

the most basic might be a killbrick

iron kraken
#

ok

#
script.Parent.Touched:Connect(function(hit)
  if hit.Parent:FindFirstChild("Humanoid") then
    hit.Parent.Humanoid:TakeDamage(100)
  end
end)
iron kraken
#

you mainly want to be accessing stuff through events

#

in this case touched event

brisk peak
#

is it connecting the object that hit it

iron kraken
#

hit is the basepart that touches the part

#

aka script.parent

#

and findfirstchild finds the first child

dense lily
#

how much rbx should i pay someone to script a game like this https://www.roblox.com/games/96114180925459/Lasso-Animals

Roblox

🤠Welcome to Lasso Animals!🤠

Use your lasso to catch animals and bring them back to your plot! Upgrade your lasso and feed your animals treats to unlock mutations! Watch out, people might try to steal your animals!

[How To Lasso]
• Equip your lasso!
• Click on the animal you want to catch!
• Bring them back to your plot!
• Upgrade...

iron kraken
#

so even if you have two humanoids it just finds whichever is the first in the hierarchy

iron kraken
#

altho u shud never really care about that

#

because u shud never have two things of the same name and wanting to find one of the two

#

using findfirstchild

brisk peak
#

so its a script already assigned to each startercharacter?

iron kraken
iron kraken
#

notice it says script.parent

#

script means the script itself and .parent means get the parent of the script itself

brisk peak
#

The player is not the parent of the script tho

#

so i dont understand that part

iron kraken
#

yes but what you caer abut is the character

brisk peak
#

How does it differentiate between jim and joe tho in the game? they both have humanoids

iron kraken
#

when a part triggers the touched event it automatically passes the part that touched it as a parameter which i call hit

iron kraken
#

but if you mean detecting between two characters that both have humanoids it wont differentiate them

#

you would have to make another if statement to check their name

iron kraken
brisk peak
#

but luau is different

#

cuz the perameters and stuff

#

events are diff

iron kraken
#

and following what they do in studio yourself

brisk peak
#

full

iron kraken
iron kraken
#

ok well u shud start practicing making simple things

brisk peak
#

I understand how the syntaxes, functions, and variables and strings work.

#

i can change properties of objects, its literally

#

just the humanoid thing that gets to me

iron kraken
#

humanoid is just an object like everything else

brisk peak
brisk peak
#

its not lua problems, its the roblox engine

#

yk

iron kraken
brisk peak
iron kraken
brisk peak
jovial cairn
#

looking for somethat knows how to make battleground combat system

jovial cairn
brisk peak
#

yk it costs like 300k robux to script a whole gae

jovial cairn
brisk peak
#

you have multiple objects

#

multiple things to deal with

mellow notch
#

I haven't really messed with physics stuff too much but im trying to look for any resources that have the most optimal way of coding a ragdoll system, specifically R6

#

Trying to make one for my project

mellow notch
jovial cairn
#

i just want m1 not block and stuff

mellow notch
#

How much were you looking to pay

jovial cairn
mellow notch
#

I mean that dosent change the amount of work it takes to make one though

#

You should just learn how to script and make your own its fun

jovial cairn
brisk peak
outer falcon
#

At Laser’s Studio, we believe teamwork creates better opportunities for everyone. While we don’t handle coding, building, or asset creation, we provide the platform, structure, and support that help games succeed under our studio name.

When a game is published through Laser’s Studio, it benefits from:

A recognized brand that adds credibility and attracts more players.

Exposure and promotion through our network, helping your game reach a wider audience.

Community trust — players are more likely to try games backed by an established studio name.

Shared responsibility in managing and growing the project.

In return, we ask for a percentage of the game’s revenue. This percentage represents the value of being part of Laser’s Studio, where your work isn’t just another game on Roblox — it’s part of something bigger, with better chances of reaching players and generating success.

You create the game. We give it a home. Together, we share in the rewards.

jovial cairn
paper eagle
#

Is there anyone who can help me fix the voice chat issue in my map?

The main problem is that players' voice chat can be heard from a very long distance in my map, which disturbs other players and removes their privacy. I’ve tried several methods, but none of them have worked so far. Please help me fix this issue.

Please help me

lavish plinth
#

differentiate between jim and joe

remote vigil
#

Hello, I am messaging on here to ask about a problem Im having, currently, I am making a game where the spawner pumps out dummies that walk to the other side, if i want to replace the dummies with models of meshparts like dragons and things that arent humans, how do i do that? aniamtion doesnt need to be included in the models walk as long as it walks like the dummy.

topaz crypt
vale flax
#

if you sacrifice your sanity...

upper oak
granite igloo
proud idol
sour vine
#

and humanoidrootpart

exotic spindle
#

does anybody know the secret behind grab attacks??? welding kills both players once one dies and alignposition/alignorientation lag behind

stone musk
#

yo can someone help me, when I touch the coin, it doesn't make it's transparency to 1. here is my script:

--Variables

local CoinsFolder = game.Workspace.Coins
local Coins = CoinsFolder:GetChildren()
local COIN_DISABLED = false
local Players = game.Players

--Functions

local function onTouched(hit)
    if hit.Parent then
        
        local char = hit.Parent
        local plr = Players:GetPlayerFromCharacter(char)
        local humanoid = char:FindFirstChild("Humanoid")
        if not humanoid then return end
        
        local playerStats = plr.leaderstats
        if not playerStats then return end
        
        local coins = playerStats:FindFirstChild("Coins")
        if not coins then return end
        
        if COIN_DISABLED == false then
            coins.Value = coins.Value + 1
            hit.Transparency = 1
            COIN_DISABLED = true
            wait(5.0)
            hit.Transparency = 0
            COIN_DISABLED = false
        end
    end
end


--Loops

for index, Coin in Coins do
    Coin.Touched:Connect(onTouched)
end
last elk
stone musk
cinder basalt
#

go ask daddy gpt

stone musk
#

gng

#

chatgpt aint gon help me learn

cinder basalt
#

gng it already wrote you code

stone musk
#

no it didnt wth

#

I wrote it by myself

cinder basalt
#

then what taught you to use wait instead of task.wait

stone musk
#

what's the difference?

#

im still beginner

cinder basalt
#

you write surprisingly ai like for a beginner

#

this is so clearly ai man

#

you aint the first one

#

write code yourself and then youll understand why its not working

undone karma
#

Harsh

last elk
#

Im new to scripting.

#

And i use task.wait

#

Not wait

cinder basalt
last elk
#

I have one day experience

stone musk
last elk
cinder basalt
stone musk
#

just tell me bro

last elk
last elk
stone musk
#

what

last elk
last elk
stone musk
#

? nah not rlly, why?

undone karma
# stone musk just tell me bro

Ngl hidden devs is not the place to come for help. It’s full of 13 year olds who criticize instead of getting actually to the point

last elk
stone musk
undone karma
stone musk
#

ohh alr thx bro

undone karma
#

This has happened 2 separate times to me when i posted my GFX and my Builds here, ngl ppl are assholes

last elk
stone musk
last elk
#

There is actually helpful people there that dont criticize.

plucky cobalt
#

Do you guys prefer to use Roblox’s pathfinding algorithm or make A* or Djistkra from scratch? Why? Any case by case basis?

plucky cobalt
random nebula
#

for some things you need custom pathfinding

#

for other things u can get away with roblox but i prefer to make my own

plucky cobalt
#

That makes sense

plucky cobalt
#

For flying entities I’d likely make my own as I’m sure Roblox isn’t too fond of things like that

random nebula
#

why not

#

many people do it

plucky cobalt
#

Idk humanoids can be annoying

#

But maybe I should look into it more

frank crow
#

looking for a scripter partner

foggy sphinx
radiant pulsar
#

how can i script in a shiny variant of a pet?

full bronze
#

does anyone wanna make a game w me i can do the building i just need a scripter (we will split the funds 50/50 but it will depend on how much work we both do) dm me for more details

foggy sphinx
full bronze
#

so i can give more details

frank crow
foggy sphinx
forest portal
#

does someone know how to script a system that lets you control a object as if it was your character instead of controlling the humanoid?
I want players to spawn as a model and they can move that movement and everything as if it was their humanoid

chilly valley
formal acorn
#

guys so i know some stuff on roblox studio yk luau but like i feel i cant do bigger stuff like games or complex stuff if yk waht i mean, can someone help

iron kraken
eternal arch
#

since i know alot off building and stuff and you know alot off coding we chould possibly make games togheter if you whould like that?

dense lily
#

how do i learn scripting

iron kraken
dense lily
iron kraken
iron kraken
# dense lily like what

Next part: http://www.youtube.com/watch?v=6KoZ4zKORoQ&list=PLXX6hhg4CysYf0M-_GtCEOgGlkBfrXsoJ&index=2

Watch this in full screen HD

Note: To put the script in the part, just drag and drop it or cut and paste it into the part.

Got any questions or suggestions for this video? Leave it in the comments. This is my first video so it might be a bit ...

▶ Play video
prisma mason
#

why are we giving the poor soul a 12 year old video

iron kraken
#

it worked for me

iron kraken
#

what does that even mean

prisma mason
#

i read the whole roblox api front to back 8 years ago

#

i assume what i gave you is probably better

dense lily
#

to make a dissapearing part

iron kraken
#

that is def not necessary lol

dense lily
#

on(touch) part freaky and kisses your cheek

iron kraken
#

learn stuff as u need it

prisma mason
#

if you know basic syntax then it's easy

#

have idea, try to do it, fail, google

#

try again, succeed

#

repeat for a few years

cinder basalt
iron kraken
#

the code is still the same

#

the only thing that changed is hopper bins or smthing i remember him talking about

#

but i think that vid is removed or smthing

#

anyways its literally exact same code as today

cinder basalt
iron kraken
#

im lowkey defending this man i dont even know

cinder basalt
#

this so fire

#

omg they used wait instead of task.wait

storm monolith
#

yoo can anyone help me with my car dealership rn you can only buy and spawn one car ad i cant get the others to work ill pay if needed

dense lily
iron kraken
#

y did i click that and it immediately started downloading something

iron kraken
white seal
#

like onlu 18 years old

cinder basalt
white seal
iron kraken
#

i mean all the scripts work in the video except for capitalization

#

altho the scripts r bad

storm monolith
#

yoo can anyone help me with my car dealership rn you can only buy and spawn one car ad i cant get the others to work ill pay if needed

white seal
#

Oh well thsi usally gets blocked

storm monolith
dense lily
#

someone give me a good playlsit ot learn lua

slate marsh
dense lily
slate marsh
#

there is a 2 playlist on his channel 1 for beginner 1 for advanced

#

if u dont have any experience on lua start on beginner playlist

#

then watch advanced one

#

but dont only watch

#

try to make code on studio too

rustic hare
#

Ik the basics and can't even remember it

heady crypt
#

he has a gojo pfp

dense lily
fervent karma
#

can playing animations on the server create fling bugs?

wheat pumice
#

rah

kind hedge
#

Who can script me a sword combat system (model, animations and vfx are already finished), dm me and we can discuss the price!!

cinder basalt
strong fog
tired roost
molten scarab
#

chat who here likes cyberpunk

molten scarab
dawn monolith
#

yo i got a question: how are dupe scripts created for exploits in games?
For example, in Fish, there was a coin dupe a year ago, and also, in pet simulator 99, there were a lot of gem/pet dupes.

and why dont they make system against it tho

maiden wing
maiden wing
#

wooahh woahwoah

#

not too much of that

lunar viper
#

anyone here does scripting and ui by any chance? i pay well

lean ocean
#

by pay well how well

cinder basalt
#

five

#

hundred

#

robux

left apex
slate marsh
#

if I'm not wrong

tired roost
#

bounce

summer phoenix
#

kinda bored icl

tight marlin
#
game.Players.PlayerAdded:Connect(function(plr)
    Data[plr.UserId] = MainDatastore:GetAsync(plr.UserId) or DeepCopy(DefaultData)
    plr.CharacterAdded:Connect(function(char)
        local TotalHp = HealthModule.CalculateHealth(plr)
        print(TotalHp)
        local Health = HealthModule.new(TotalHp, plr)
        Healths[plr.UserId] = Health
        CharacterModule.DrawCharacter(plr)
    end)
    
    for Num, furnace in pairs(Data[plr.UserId].Furnaces) do
        if Data[plr.UserId].Furnaces[Num].Output ~= "" and Data[plr.UserId].Furnaces[Num].Smelting ~= nil then
            print(plr, Data[plr.UserId].Furnaces[Num].Output, Num)
            InvHelper.StartSmelting(plr, Data[plr.UserId].Furnaces[Num].Output, Num, true)
        end
    end
    
    local Jumps = CalculateJumps(plr)
    
    local JumpsValue = Instance.new("IntValue", plr)
    JumpsValue.Name = "MaxJumps"
    JumpsValue.Value = Jumps
    
    
end)```

anyone know why characteradded doesnt fire?
#

also im prolly doing this weird but idk ;-;

fading hull
#

LF scripter for a bleach game its a good one, dm me we got everything but a scripter

tight marlin
#

i think its just connect issues

hollow turtle
#

does anyone know where i can find a in depth video or forum post about creating a roblox studio plugin?

sweet tree
rapid verge
rocky lynx
#

This won’t be funny in a few years when people are posting it calling u a predator

storm marsh
#

looking for someone to make a naruto game with me

gloomy kraken
cinder basalt
#

Theres always a catch

fast lotus
#

I have to work 8 hour shifts

#

I don't have the time

cinder basalt
#

Either games horrid or games stolen

#

Show us the game then

fast lotus
#

bruh

#

I don't want too. For you nope. Somebody dm me 20 minutes before and i send screenshots

cinder basalt
#

Wow

#

Bro getting petty over valid concerns

fast lotus
#

Bro if you asked before saying "ThErEs aLaWays A cAtCh"

#

Some people don't want to work on something anymore so they sell it for a batter future of game that got dust

fast lotus
#

Shes doesn't have a skin

cinder basalt
fast lotus
cinder basalt
#

Ok seriously show that game

fresh beacon
#

Went to 50 average playtime a few days later

#

I didn’t update the game and now the stats are terrible

wary star
#

Holy censor

fresh beacon
fresh beacon
#

You defend a base while fighting waves of enemies

#

I lost around 10x my player count after I didn’t update for a month

smoky dagger
fast lotus
#

dm em

sweet radish
#

how do i change the texture and meshid of an object through a script? i get this error everytime i try: The current thread cannot write 'MeshId' (lacking capability NotAccessible)

chilly canyon
#

Success was already there cuh Why'd you stop

peak jolt
buoyant junco
patent cradle
#

Not allowed.

mossy rover
#

yo im a beginner not that great i made a dash script thoughts?
local userinputService = game:GetService("UserInputService")
local tweenservice = game:GetService("TweenService")
local player = game.Players.LocalPlayer
local dashdistance = 20
local dashtime = 0.25

local function dash()
if not player.Character or not player.Character:WaitForChild("HumanoidRootPart") then return end

local hrp = player.Character.HumanoidRootPart
local forward = hrp.CFrame.LookVector

local tweeninfo = TweenInfo.new(
    
    0.2, 
    Enum.EasingStyle.Linear,
    Enum.EasingDirection.Out
)
local goal = {}
goal.CFrame = hrp.CFrame + (forward * dashdistance)

local tween = tweenservice:Create(hrp, tweeninfo, goal)

tween:Play()

end

userinputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode == Enum.KeyCode.Q then
dash()
end
end)

frank crow
#

Looking for a scripter partner

mossy rover
#

i could be one im not that great

#

still learning yk

mossy rover
frank crow
mossy rover
#

yeah bet

frank crow
#

Alr add me

mossy rover
#

k

frank crow
mossy rover
#

yeah all good

smoky condor
mossy rover
smoky condor
fallen latch
#

if u use Tween

#

then maybe also use a raycast

#

so the player doesnt phase throught walls

lean ocean
#

I wouldnt use tweening in the first place

#

for dashing

fallen latch
#

velocity would be much better

mossy rover
mossy rover
#

but why though?

fallen latch
mossy rover
#

\

#

uhh ok

lean ocean
#

linearvelocity would also feel better

#

tweening is very linear

fallen latch
#

there are the different types of a tween

#

for example there is sine

#

you can fake acceleration with an in

#

then we have InOut

lean ocean
#

yes no shit but with tweening ull also float if u dash of a ledge

fallen latch
#

for a start and a brake

lean ocean
#

and u dont keep momentum

fallen latch
night mauve
#

Anyone know how TSB achieve cutscenes with effects like blacked out everything and only show some effects? I'm thinking viewport frames but stuff in viewport frames are also low quality when rendered

tardy pasture
#

guys is nitro worth it ?

#

when its free ?

slender cradle
#

I saw that in a video once

#

so like a bit of modelling and camera manipulation

night mauve
#

I’ve seen people use viewport frames but I wasn’t so sure

slender cradle
#

well if you want to go ahead

dawn monolith
signal gorge
#

is there a channel for sharing created game/playing games together?

dusk sentinel
#

bro genuinely

#

i dont get how yall can script

#

like whenever i even try to do it

#

it just seems like another language istg\

#

like even learning it is harder than mandarin

lean ocean
#

what do u struggle with

#

remembering the syntax?

#

ngl if u just keep doing it you'll get the hang of it

upper oak
lean ocean
#

everyone does they just give up too fast

#

and don't try hard enough

wheat pumice
#

its usually rollback exploits

night mauve
#

Thanks

hollow panther
#

should i use a statemachine for a round system?

ebon viper
#

someone knows how to fix the coin gui from the tycoon plugin? i tried making my own tycoon from that plugin and remake it, but the problem is when i open the shop or rebirth gui and close it, the coin gui disappears

lunar viper
#

DM me if you do scripting + ui design I pay well

fallen latch
#

In the end we all got on this earth with different abilities

spiral parcel
#

looking for a scripter with around 4 years of experience, paying well hmu if interested

proud idol
#

Syntjax anyone can learn that

#

The hard part is designing the code logic

somber vault
#

Wtf

blissful epoch
#

does anybody know what i am doing wrong? i want to make random spawns but it doesnt work

#
local seedspawnu = math.random(1,3)
if seedspawnu == 1 then
    spawnerNames = {"spawn1", "spawn2"}
elseif seedspawnu == 2 then
    spawnerNames = {"spawn2", "spawn3"}
elseif seedspawnu == 3 then
    spawnerNames = {"spawn4", "spawn5"}
end
local spawners = {}
#

i am begginer so dont hate

proud idol
#

And you can improve it using table indexing instead of yandere sim dev method

somber vault
#

Yandere dev methodpraysob praysob praysob praysob praysob praysob praysob

blissful epoch
#

i have no clue what are you talking about

#

i tried to do it by myself

half rune
#

if then elsing is a bad idea for large scale stuff

austere relic
half rune
#

i mean it works techncially but you will want to die maintaining it

blissful epoch
#

for me it doesnt work

#

it spawns only in 2 spawns

somber vault
#

Bad luck ig

blissful epoch
#

lol

somber vault
#

Try running it 100 times

half rune
blissful epoch
#

4 and 5

austere relic
blissful epoch
#

i think it selects 2 spawns and keeps going

#

without selecting 2 other before spawning

half rune
#

i saw that tongue

blissful epoch
#

p2w

#

he can and i cant

proud idol
#

Do you know what a table is?

blissful epoch
#

not really

half rune
#

i think it like... selects those 2 spawners then sends it back to you in the spawnernames variable

#

based on the seedspawnu

#

im just glancing ehre

proud idol
# blissful epoch not really

okay so let me explain it to you

local seedspawnu = math.random(1,3) --> selects a number randomly from 1 to 3

--> Yandere dev method of comparing values
if seedspawnu == 1 then
    spawnerNames = {"spawn1", "spawn2"} --> sets this table if seedspawn is 1
elseif seedspawnu == 2 then
    spawnerNames = {"spawn2", "spawn3"}--> sets this table if seedspawn is 2
elseif seedspawnu == 3 then
    spawnerNames = {"spawn4", "spawn5"} --> sets this table if seedspawn is 3
end
local spawners = {} --> initializes a blank table
blissful epoch
#

thats what i know bro

proud idol
#

okay well non of this code is related to setting spawners though

blissful epoch
#

i dont know why it selects 2 spawns and keeps going without selecting 2 other random

proud idol
#

you are just changing values

half rune
blissful epoch
#

its like the id of the spawn

half rune
#

if its not being run multiple times after the value changes i think it'd just stay on the initially sellected spawner

proud idol
blissful epoch
#

seedspawnu 1 is for spawn 1 and 2

#

can i just loop it?

proud idol
#

also you are missing setting the seed

#

for math.random

prisma mason
#
local spawnerNames = {"spawn1", "spawn2", "spawn3", "spawn4", "spawn5", ...}
local randomIndex = math.random(#spawnerNames - 1);
local randomSpawns = {spawnerNames[randomIndex], spawnerNames[randomIndex + 1]}
#

three lines, easier to understand

hollow panther
#

i asked ai to review my code and it keeps insisting i use an if statement for the lobby timer and says tick(wait(1)) is unreliable is this true?

proud idol
prisma mason
#

is he not getting n and n+1?

proud idol
#

nope

prisma mason
#

ah it's 1,2 2,3 4,5

proud idol
#

at value 3 is spawner 4 and 5

prisma mason
#

weird

blissful epoch
#

oh wait

#

i did not saw it

prisma mason
#

oh i might be right anyway

#

hooray

proud idol
#
local SpawnerList = {
  {"Spawner1","Spawner2"},
  {"Spawner2","Spawner3"},
  {"Spawner4","Spawner5"},
}

math.randomseed(tick())
local n = math.random(1,#SpawnerList)

local RandomSpawns = SpawnerList[n]
prisma mason
#

naming conventions 😩

sour jetty
#

how to fix the issue where player joins the game when intermission is at its last 2 seconds cause that player doesnt get teleported its like a loading issue but I do use waitforchild and pivotTo

#

I think its cause I test with 3 players in studio like I do the player count 3 and press test and 3 windows pop up and it makes me kinda have ping can that be the issue

proud idol
prisma mason
#

fair enough, more power to u

proud idol
sour jetty
#

bro im asking if its cause I test with 3 players

prisma mason
#

can't ask for coding help without code fella

#

try chatgpt

hollow panther
#
        if #(game.Players:GetPlayers()) >= 6 then
            local gameTimer = 120 + ((#(game.Players:GetPlayers()) - 1) * 24)
            return gameTimer
        else
            local gameTimer = 120 + ((#(game.Players:GetPlayers()) - 1) * 30)
            return gameTimer
        end
    end``` how do i use the gameTimer value elsewhere
#

cause it doesnt show up

proud idol
hollow panther
proud idol
normal jasper
hollow panther
#

i see

normal jasper
#

even though its bad practice if you just testing you can do it

proud idol
hollow panther
#

yea no its for a round system so i need it stable

normal jasper
#

make sure its serversided too

proud idol
#

but the quick n easy one is value instances

hollow panther
#

the problem is i dont know how i would implement like each player like i did in a serverscript

#

game.Players.PlayerAdded:Connect(function(player) lke this thing

proud idol
#

you jsut need to place it somewhere that its easily referenceable

normal jasper
#

ye

#

like replicatedstorage

proud idol
normal jasper
#

you can also just have the client request the time from the server

hollow panther
#

i didnt bother since its like 50 lines

normal jasper
proud idol
proud idol
#

server changes the value, gets replicated for clients

hollow panther
#
game.Players.PlayerAdded:Connect(function(player)
    -- Values
    
    -- Functions
    local function calculateGameTimer()
        if #(game.Players:GetPlayers()) >= 6 then
            local gameTimer = 120 + ((#(game.Players:GetPlayers()) - 1) * 24)
            return gameTimer
        else
            local gameTimer = 120 + ((#(game.Players:GetPlayers()) - 1) * 30)
            return gameTimer
        end
    end

    -- Timer Values
    local LobbyTimer = 60

    -- Variables
    local plr   = player 
    local chr   = plr.Character or plr.CharacterAdded

    print(#(game.Players:GetPlayers()) )
    if #(game.Players:GetPlayers()) >= 3 then
        while tick(wait(1)) do    
            print("LobbyTimer: ", LobbyTimer)

            if #(game.Players:GetPlayers()) <= 3 then
                print("Player left not enough players")
                break
            end

            LobbyTimer -= 1
            print(LobbyTimer)
            if LobbyTimer == 0 then
                calculateGameTimer()
                print("Game is starting")
                -- TODO: REPLACE THIS WITH THE PLAYER CALCULATOR FUNCTION
                print("GameTimer: ", gameTimer)
                --TODO: GameStart
                break
            end
        end
    else
        --TODO: GameNotStart
        print("Not Enough Players")
        wait(2)
        return
    end
end)```
proud idol
#

client display the change

hollow panther
#

icel im ass at coding 🥀

proud idol
#

that you are essentially starting a new countdownevery time a player joins

proud idol
#

thats what you doing lol

hollow panther
#

really

#

fuck

proud idol
#

yeah lmao

#

a) ditch the playeradded event, you dont need it here

#

secondly you need to make it cycle over and over

hollow panther
normal jasper
#

also the function can be defined outside of the playeradd connection, you're also creating a new function each time a player joins

proud idol
#

lemme write you a simple example

hollow panther
#

sure man

normal jasper
hollow panther
#

like i just cant get the hang of it

normal jasper
hollow panther
#

i guess i didnt get the memo

dense lily
#

how should i learn lua

proud idol
# hollow panther like i just cant get the hang of it
local PlayerService = game:GetService("Players")
local Timer = game:GetService("ReplicatedStorage").SomePathToIntValue

while true do
    while #PlayerService:GetPlayers() < 2 then
        print("Not enough players in server!")
        task.wait(1)
    end
    
    local StartRound = true
    
    for i = 60,0,-1 do
        Timer.Value = i
        if #PlayerService:GetPlayers() < 2 then
            StartRound = false
            print("Not enough players in server!")
            break
        end
        print(i)
        task.wait(1)
    end
    
    if not StartRound then
        continue
    end
    
    print("Round start!")
    task.wait()
end
hollow panther
proud idol
#

this is an example of an intermission code behaviour

hollow panther
#

what does that boolean do exactly

proud idol
#

if theres not enough players it throws u back at the start of the infinite loop

#

why si this?

#

because players can leave at any point in the game, and once the timer begins theres no other checks for this

hollow panther
dense lily
#

how did you guys learn coding

hollow panther
#

i mean tbf i dont even know anything

normal jasper
# dense lily how should i learn lua

copy and paste the roblox script docs link to gemini, and use this prompt "seperate the contents of this page into categories from most fundamental to complex, and teach them like im 5, im an aspiring programmer and am seeking to learn"

proud idol
hollow panther
proud idol
#

you are getting up ahead with the game core loop when you cant even do the beggining

#

which is the intermission behaviour

proud idol
#

at least how i did it

normal jasper
# dense lily how did you guys learn coding

you have to finds projects to build and work on using computers, find something simple you want to make then build up from there, since you want learn lua and im assuming its for game dev you can just start on roblox, find something you wanna make learn the fundamentals, then combine what you learn to make it

pearl blaze
#

How often do people use numbools? It's like booleans but instead of true false you use numbers

0 is true and anything above 0 is false

proud idol
hollow panther
#

while #PlayerService:GetPlayers() < 2 then is the then supposed to be do ? or is there somethingg like this

normal jasper
pearl blaze
#

wdym

proud idol
#

but why use truthy values when you can just use booleans

normal jasper
#

if var > 0 then blah else false

proud idol
#

and if you have to comapre number like that

proud idol
#

just have this conditional

normal jasper
#

no point in using numbools

proud idol
#
number < 1
pearl blaze
proud idol
#

only time where i use truthy values in my conditions is to check if a value is valid

pearl blaze
#
if numbool == 0 then it's true
if numbool ~= 0 then it's false

numbool += 1 -- make it false
numbool -= 1 -- make it true
#

it's like bool states but any script can change it without interference

proud idol
#

bools only work with 2 states, on and off

pearl blaze
#

how a 3 state

#

if it's just 2 in theory

proud idol
#

you saying that second script is disabled in those 2 states only implies theres a third state where its enabled

pearl blaze
#

wdym by second script is disabled

#

no scripts get disabled

#

alright let's think this in a fighting mechanic

#

imagine you have a stun right?

#

and there's 2 skills that do stun, but second is longer

#

if you use those 2 skills, stun will go off faster

proud idol
#

thats very different though

pearl blaze
#

I mean in this sense

#

I use this A LOT and I never notice people using the same

#

Literally most of my booleans are numbools, even when I don't need them

normal jasper
#

thats all that matters anyway

pearl blaze
#

Yo wouldn't it be cool to make a metatable that does the same, but you use normal true and false and all numbers happen behind the scene

#

How slower metatables are compared to normal tables?

proud idol
normal jasper
#

right

proud idol
#

like the stun example for example you would just compare whether the stun time u applying is bigger or smaller than the current one

#

if its bigger then you apply stun

pearl blaze
#

Well that's worse

#

More stuff to write, more variables

proud idol
#

checking if a number is specificly a certain value has its use cases

pearl blaze
#

Also many cases are not time related

proud idol
#

but when thinking about states, you either use booleans or numbers

#

booleans for 2 state cases

#

numbers for >2 states

pearl blaze
#

Nah numbools are 2 state cases

#

It's either == 0 (true) or ~= 0 (false), in theory

#

But those states can be overlapped

proud idol
pearl blaze
#

In my theory no

proud idol
#

you get 2 results only yes

pearl blaze
#

Like in theory you always use it like that

#

either ~= or == and += or -=

proud idol
#

but unless you specifically say theres only 2 numbers my value can take

pearl blaze
#

2 states to change and 2 states to check

proud idol
#

it aint 2 state

pearl blaze
#

like the boolean but overlapping

proud idol
#

if my number can be from 1 to 3

#

it aint a 2 state

pearl blaze
#

1 2 3 4 5 all the same state

proud idol
#

its a 3 state

pearl blaze
#

you don't know what theory is?

#

It seems you're not getting the idea

#

It doesn't matter what number

proud idol
#

you are essentially doing a condition statement

#

my number can take multiple values

#

but im only interested if its a certain value

pearl blaze
#

Alright numbools and numbers are different thing

proud idol
#

that still means that the number has a lot more than 2 states

pearl blaze
#

You will defo make your scripting life worse with this mindset

proud idol
#

but youa re just doing a condition to check if its a specified value, which returns a boolean

#

and that has use cases

#

but you are essentially converting a n state number to a 2 state boolean

pearl blaze
#

It doesn't return a boolean... well unless you want to

proud idol
#

if you print 1 == 1

#

it returns true

pearl blaze
#

finally you got it

pearl blaze
#

but when comparing with if operator there's no any booleans behind the scene

proud idol
#

theres no more science to it

random nebula
#

The way if works is it evaluates whether the expressions value is truthy or falsey

proud idol
#

you are like trying sound like albert einstein discovering relative theory on conditionals

pearl blaze
#

eh I'm just crazy abt microscopic difference

#

helps with optimization

proud idol
random nebula
#

Yea but the returned value is truthy

pearl blaze
#

Anyways I think people are never doing this

proud idol
pearl blaze
#

And this is most common mistake to use booleans with this parallel error

#

For newbies

proud idol
#

example

if 1 then

end
random nebula
pearl blaze
dark cedar
#

Since im doing my cooldown checks on the server should I play my animations there? Otherwise the client will keep on playing the animation even if the server doesnt allow the rest of the move to activate, or is there a different way of going about it?

proud idol
random nebula
pearl blaze
#

only if you wanna save inside variable

random nebula
#

Boolean’s are also truthy or falsey

pearl blaze
#

Not talking about luau there

#

Like saving a boolean and then checking is slower than just doing if statement

proud idol
#

have to research that

proud idol
#

other than that broski treating == and ~= operators like discovering perpetual machine motion

pearl blaze
#

alright I'm gonna head out benchmark metatables

pearl blaze
#

Like you use the move on client right?

proud idol
#

because aniamtions played on server can have latency

dark cedar
random nebula
#

Simulate ur animations on server, play them on client

#

You should never be playing animations on server it’s waste of bandwidth

proud idol
#

i see

pearl blaze
proud idol
pearl blaze
#

also what if you wanna play anim on client, but because of server and lag compensation you should stop it

#

it will look ba

random nebula
dark cedar
#

uhm for some reason my cooldown module doesnt say that its on cooldown to the client even if I set it on the server. Weird I honestly dont know why

pearl blaze
random nebula
#

I mean you can use humanoids

pearl blaze
#

Ngl most answer is make ur own stuff, with buffers now it's possible

random nebula
#

Probably never tried it

pearl blaze
#

just saying fuck roblox shit

dark cedar
#

yeah but lets say the exploiters skip over that. They can keep playing the animation and imagine how that looks to the rest of the players

#

am I delulupraysob

pearl blaze
#

exploiter can literally execute ANYTHING

random nebula
#

I made my own animator to overcome animator limitations for my uses

pearl blaze
#

any animation any time?

#

I'm surprised no one does that, why?

#

Oh prob because it's useless and boring

#

But I mean in competitive games to feint some anims?

dark cedar
pearl blaze
#

In theory yes

proud idol
pearl blaze
#

do anims on client

dark cedar
pearl blaze
#

and if exploiter problem are severe just think about it then

proud idol
#

again

#

on multiplayer games the code that runs the behaviour of the game should almost always be on the server

dark cedar
#

yeah it is

pearl blaze
#

what if behaviour can be client sided so it will fire instanly?

#

like shooting

#

it's misleading

proud idol
pearl blaze
#

I mean that can be misleading what you said some people can see this as "do everything on server"

proud idol
#

using client for behaviour leads to smoother experience, but server has to be involved so theres no tampering with

#

i dont eactly know what fps do for the sanity check

#

but ill assume is that they raycast both in client and server

pearl blaze
dark cedar
#

so do I just:

check the cooldowns on the server and client,
let exploiters play the animations over and over again if they want,

pearl blaze
#

you get the time when player shoots

#

get it's ping

#

rewind all positions and simulate the shooting

proud idol
#

then the server checks the error distance from client raycast hit and server raycast hit

dark cedar
#

I am making an action game though, so them playing a random animation could confuse the other player

proud idol
#

if the error is too big then theres probably tampering

pearl blaze
#

nah most games

#

use it as it is

#

because time is quite precise

#

because client timestamps and server gets the ping without anything else, it's kinda precise

dark cedar
pearl blaze
#

ofc exploiters can tamper with it, but whatever player experience is better, you can always limit the ping

proud idol
#

aka in client it seems like u hit

#

but on server it says it misses

pearl blaze
#

nah best practice is one with lag compensation

proud idol
#

thats why u determine the error

dark cedar
#

well I do use Hitbox class which has a boolean value fires to the client if I set it to true

#

and it like checks on both things

pearl blaze
dark cedar
pearl blaze
#

again lag compensation

#

get the ping by making the client send a timestamp and rewind all positions on server

dark cedar
#

it runs a check in heartbeat though

pearl blaze
#

then simulate hitbox

proud idol
#

dude you keep saying lag compesate this but dont really explain how it works lol

#

i know theres multiple methods

#

but yk some context is appreciated

random nebula
#

There’s many kinds of lag comp yes

#

But it’s mainly just two methods, client side and server side

pearl blaze
#
  • Make client send a timestamp
  • Make server get the time it took for remote to pass trough
  • Depending on the time, rewind all player positions
  • Inside rewind do a check
#

You'd prob need to make your own collision or raycast system lol

dark cedar
#

should I just use Chrono

random nebula
dark cedar
#

ok anyway Im getting to a diff topic

#

so I just run cooldown checks on both client and server?

pearl blaze
#

nah bad idea

#

because of ping

#

server can be out of cooldown already when remote gets to the server

#

while client still has cooldown

dark cedar
#

vruh

pearl blaze
#

wait lemme fix ti

dark cedar
#

cant win in roblox studio

pearl blaze
#

yeah dude

#

ur welcome

random nebula
#

Cooldown is easy to predict

pearl blaze
dark cedar
#

so wth do I do 😭

random nebula
#

Vro all you do is send the start time stamp

#

It’s trivial to predict

proud idol
#

i think my more important question is

#

how does it determine the position of the important things to consider on the rewind

dark cedar
proud idol
#

or is that just included in the time stamp lol

pearl blaze
#

Always

#

That's literally what all popular shooters are doing

proud idol
#

when client shoots

pearl blaze
#

Not when it shoots

proud idol
#

it sends a specific time stamp

pearl blaze
#

Always

pearl blaze
#

You could optimize it like not recording it when players are too far away but I doubt it actually may optimize something or anyone doing that

proud idol
pearl blaze
#

What no?

proud idol
#

but lag compeation on server im supposing that server cosntantly records positions in time stamps

pearl blaze
#

Yeha

proud idol
#

when a shot is fired, client sends a time when it happened

#

server evaluates the positions and raycast on that time based upon that information

pearl blaze
#

it doesn't care about the person who shot

#

it only cares about the stuff it shot

dull sphinx
#

how did you all learn luaa? im looking into learning it properly but not sure where to look at

pearl blaze
#

In the moment of rewinding

proud idol
#

theres a section for learning basics of programming with lua

#

then when u learn that, you can start reading roblox api

prisma mason
pearl blaze
dark cedar
# random nebula Yes
function module:OnCooldown(Player: Player, Name: string)
    
    if not Storage[Player] or Storage[Player][Name] == nil then
        module.new(Player, Name)
    end
    
    if tick() - CooldownTimes[Player].startTime > CooldownTimes[Player].duration then
        return false
    end
    return true
end

so I can do checks like this on both the client and server

pearl blaze
#

but again you'll have to make your custom raycast or hitboxing system to do it with raw values

dull sphinx
pearl blaze
#

for it to work

#

so it's kinda complicated for most people

prisma mason
#

important question

dense lily
#

https://www.youtube.com/watch?v=9MUgLaF22Yo&list=PLQ1Qd31Hmi3W_CGDzYOp7enyHlOuO3MtC&index=1 is this playlist good for learning and when i finish what should i do to learn after

This is the first episode and beginning to become a Roblox Scripter/Game Developer! With 3 playlists (Beginner, Advanced, GUI) containing 50+ videos and 30+ hours of content, I will guide you through this journey to start making the games you want to create on Roblox!

DISCORD 📜
Join my Discord Community if you want scripting help, participat...

▶ Play video
pearl blaze
#

Who knew that in roblox the hardest thing inside lag compensation is raycasting

dull sphinx
#

i would say intermediate

prisma mason
#

then you're good to go straight to API

dull sphinx
#

can do everything including oop just not at a high level

prisma mason
#

lua and python are relatively similar

dull sphinx
#

yeah

prisma mason
#

are you a self-learner?

#

like you tinker with stuff by yourself until you figure out?

#

if so, fairly simple: have an idea, try to implement it in roblox, fail, research, try again

#

repeat that loop

hollow panther
#

@proud idol thx dude got the intermission working thanks to you

dull sphinx
#

i learnt python through a book and through lectures

#

im trying to make a game currently but im stuck on keeping a part touched

#

as the touched feature only fires once

prisma mason
#

right

prisma mason
#

so what are you trying to make it do?

#

keep firing as long as you are currently touching the part?

dull sphinx
#

pretty much its a game where u stand on a button and it rolls for a chance of something

proud idol
dull sphinx
#

kinda like an rng game

prisma mason
#

ah a button incremental

dull sphinx
#

kind of

prisma mason
#

so you have a few options

dense lily
#

i could probaly explain what a script does

prisma mason
#

-> constantly raycast from the player downwards, detect a button -> you got your event
-> constantly check around the player for buttons, detect a button -> you got your event

dull sphinx
#

i did it in a previous game with some friends and we used events

proud idol
hollow panther
# proud idol Np

also should i tie the lobby intermission script toa module and call it from there

prisma mason
#

-> make a zone around the button, use GetPartsInPart / GetPartsInBox / Touched

#

mark players that enter in an array

hollow panther
#

would it be more efficient and organised?

prisma mason
#

remove when they leave

dull sphinx
#

i also tried detecting if the humanoidrootpart

#

yeah i could

#

anyway of doing it in a local script to make it easier?

prisma mason
#

of course

#

detect hitboxes on the client (local script)

dull sphinx
#

ah ok thats nice

prisma mason
#

fire a remote to the server when the player wants to "press"

dense lily
dull sphinx
#

i can watch a few vids on hitboxes and should be able to get it

prisma mason
#

on the server, check if the player is actually there (on the button)

#

if so, roll their rng luck

dull sphinx
#

is there a way to make it continuously roll until they hop off?

dense lily
#

or how to change the properties

dull sphinx
#

oh ok nice

prisma mason
#

two ways

dense lily
#

transparency = 1

prisma mason
#

if you need extra help ping me

proud idol
dull sphinx
#

k i will do

#

lemme just send a message so ur in my dm

dense lily
prisma mason
#

ah don't dm me, ping me here

#

so people can correct me if i'm wrong

dull sphinx
#

oooh ok

prisma mason
#

i can be wrong sometimes

dull sphinx
#

k thanks for ur help

#

ill try it when im available

tall sedge
#

need help with this player frame list code. Im trying to scale the cloned frame and position it to the left of the frame, not the center:

local frame = MainFrame:FindFirstChild(tostring(plr.UserId))
if not frame then
frame = FrameTemplate:Clone()
frame.Name = tostring(plr.UserId)
frame.PlayerName.Text = plr.Name
frame.Visible = true
frame.Parent = MainFrame
end

--[[
local uiStroke = frame:FindFirstChild("UIStroke")
if not uiStroke then
    uiStroke = Instance.new("UIStroke")
    uiStroke.Name = "UIStroke"
    uiStroke.Parent = frame
end]]

local UIScale = frame:FindFirstChild("UIScale")
if not UIScale then
    UIScale = Instance.new("UIScale")
    UIScale.Name = "UIScale"
    UIScale.Parent = frame
end

if viewer.UserId == plr.UserId then
    frame.LayoutOrder = 9999
    --uiStroke.Color = Color3.fromRGB(102, 148, 255)
    --uiStroke.Thickness = 2
    UIScale.Scale = 1
else
    frame.LayoutOrder = 0
    --uiStroke.Color = Color3.fromRGB(255, 255, 255)
    --uiStroke.Thickness = 2
    UIScale.Scale = 0.8
end
proud idol
tall sedge
proud idol
tall sedge
proud idol
#

Ui list has properties that changes the alignment

tall sedge
tall sedge
sour jetty
#
game.Players.PlayerAdded:Connect(function(player)
    local character = player.Character or player.CharacterAdded:Wait()
    local characterClone = character:Clone()
    characterClone.Parent = game.Workspace
    local hrp = characterClone:WaitForChild("HumanoidRootPart")
    hrp.Position = Vector3.new(0, 0.5, 0)
end)
``` why does it say attempt to index nil with 'Parent'
tall sedge
sour jetty
#

thanks

#

but why only for character

#

and not for other things like part

tall sedge
#

I believe it’s due to how Roblox handles the Character

sour jetty
#

oh okay

tall sedge
light crown
#

yo can anyone help me with a moving part that goes along with the player on top? Im watching some tutorials that includes AlignOrientation and AlignPosition, I kinda get the idea behind it but for some reason my platform turns right a bit and then execute the actual code and I didn't change the X value whatsoever(in the vector3 I mean)

south comet
tall sedge
south comet