#code-discussion

1 messages Β· Page 107 of 1

gray frost
#

Just get the animator and do this

#

You can play it whenever

green rapids
#

im kinda lost

gray frost
#

And it replicates to all clients automatically

gray frost
green rapids
#

can i pm you my script so u can take a look

gray frost
green rapids
#

i just checked im already loading them

gray frost
green rapids
#

loadAnimations(walkFolder, loadedAnimations.Walk, WALK_ANIM_SPEED)
loadAnimations(sprintFolder, loadedAnimations.Sprint, SPRINT_ANIM_SPEED)

#

heres the 2 lines

#

local function loadAnimations(folder, target, speed)
for _, anim in ipairs(folder:GetChildren()) do
if anim:IsA("Animation") then
local track = animator:LoadAnimation(anim)
track:Play()
track:AdjustWeight(0.01)
track:AdjustSpeed(speed)
target[anim.Name] = track
end
end
end

im loading it here

oak verge
oak verge
plucky oak
green rapids
plucky oak
#

there is genuinely no fucking way

#

10m new visitors

oak verge
green rapids
#

oh

#

so i just have to load them on server THEN manage on client right

#

do i have to load them everytime their character are added

peak jolt
#

no you do everything on the client that's how animations work

#

other guy is yapping

oak verge
green rapids
green rapids
#

i can send it to you

oak verge
somber vault
#

has he considered?

green rapids
#

so i can load the anim in the server and then play then on client side so everyone can see em

somber vault
#

idk if he has even considered tbh

peak jolt
#

oh bruh

#

i am indeed lost

cobalt rock
#

just play them on the server

somber vault
vestal condor
#

how do i make my character's body visible when in 1st person cuz this aint working

RunService.Heartbeat:Connect(function()
    if Walking then
        local CurrentMaterial = getMaterial()
        if CurrentMaterial ~= LastMaterial and LastMaterial then
            Materials[LastMaterial].Playing = false
        end
        local MaterialSound = Materials[CurrentMaterial]
        MaterialSound.PlaybackSpeed = Humanoid.WalkSpeed / 12
        MaterialSound.Playing = true
        LastMaterial = CurrentMaterial
    else
        for _, sound in pairs(Materials:GetChildren()) do
            sound.Playing = false
        end
    end

    if Camera.CameraSubject == Humanoid and Humanoid.Health > 0 then
        if (Camera.CFrame.Position - HumanoidRootPart.Position).Magnitude < 1.5 then
            for _, part in pairs(Character:GetDescendants()) do
                if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
                    part.LocalTransparencyModifier = 0
                end
            end
        else
            for _, part in pairs(Character:GetDescendants()) do
                if part:IsA("BasePart") then
                    part.LocalTransparencyModifier = 1
                end
            end
        end
    end
end)

task.spawn(function()
    while task.wait(1) do
        if UserInputService.MouseIcon ~= "rbxassetid://13792191800" then
            UserInputService.MouseIcon = "rbxassetid://13792191800"
        end
    end
end)
somber vault
#

wtf bro cmon

oak verge
cobalt rock
#

since now you're setting the localtransparencymodifier to 0 whenever the camera is further away

#

I don't think you can load an animation through the server and play it on a client for it to replicate.

#

I think you need to play it on the server too

peak jolt
cobalt rock
#

oh yeah my bad lol

#

it should work at 1.5 though

peak jolt
#

your script will make them invisible if they zoom out though not sure if that's really the goal

vestal condor
#

its a 1st person game they wont be able to

peak jolt
#

then just always set it to 0 don't even check the distancs

cobalt rock
#

just leave out the magnitude checks

green rapids
#

i truly dont want to rewrite my whole animate script server side

oak verge
green rapids
oak verge
#

then play it on the server side

oak verge
#

and yes you can handle weight on server

green rapids
#

alr

peak jolt
#

need to use renderstepped instead of heartbeat because that's when the camera script runs

cinder basalt
peak jolt
#

it will take you less time to press play than for me to double check

vestal condor
#

i already played and it didnt work

peak jolt
#

then why don't you add that information in the first place

vestal condor
#

is it cuz the local script is in starter char scripts

cobalt rock
wide sparrow
#

pmo

glacial osprey
#

guys which api is to use
free ones any tips

cobalt rock
glacial osprey
#

cllg project

vestal condor
peak jolt
#

you still have 1.5 instead of a larger number

wide sparrow
#

bold

#

πŸ’”

peak jolt
#

the camera is physically 1.5 studs above the root part how can it be less than 1.5 away

cinder basalt
vestal condor
cobalt rock
vestal condor
#

larger numbers just do this

glacial osprey
peak jolt
#

how is that not literally exactly what you are trying to do

cobalt rock
vestal condor
peak jolt
#

changing the number does not influence that do you understand the code you have written

cobalt rock
full sundial
#

can someone help me in my game i got a character customisation but my character floats instead of walking cna someone help asap

cobalt rock
#

is it anchored perchance?

full sundial
#

i can move

#

but no animation

#

@cobalt rock

cobalt rock
#

does your custom character have an animate script in it?

full sundial
#

wdym

#

@cobalt rock

cobalt rock
#

every roblox character

#

has an animate script

full sundial
#

can u help me ?

vestal condor
full sundial
#

nah it doesnt

cobalt rock
#

can you add it to the character?

vestal condor
#

thats why

cobalt rock
#

lol

full sundial
cinder basalt
#

anyone can explain me what continue does in a for i,v thing ?

full sundial
#

can u vc?

cobalt rock
# full sundial idk how

Playtest >> workspace >> find your character >> copy the Animate localscript inside it >> exit PlayTest >> paste

vestal condor
# full sundial nah it doesnt

search animate script on roblox toolbox and put it in a folder and make a script where when u make ur character and spawn or whatever it clones it into that new character

full sundial
#

idk what any of that means

cobalt rock
full sundial
#

my firend gave me a character creation

cobalt rock
#

ok fine, add me on roblox

full sundial
#

wdym

#

why*

vestal condor
#

BRO

cobalt rock
#

I can help u in studio lol

#

you're clueless

full sundial
#

can u jsut screenshare

vestal condor
#

holy

full sundial
#

like tell me what to do

cobalt rock
#

can you?

full sundial
#

yh i will

#

u jsut tell me what to do

cobalt rock
#

ye, I don't have a mic

full sundial
#

ok

#

dm

plain marlin
brisk fjord
#

What do yall think about roblox - typescript

cobalt rock
brisk fjord
#

I mean in most cases it is, but tbh i tried typescript and i feel like i can organize my code much better than with regular lua

cobalt rock
cinder basalt
#

Wdym

narrow vault
#

typescript is good dont get me wrong

#

but theres no way u cant organize ur code w regular lua

brisk fjord
#

idk where the reddit speech came from

somber vault
#

in a statemachine should i queue switches that happen in a single frame

spice summit
#

so yes

#

serialize state transitions that happen within a single frame in a state machine

keen lynx
#

yo why isnt my code working ?

yo so why isnt my leaderstats showing pepesob

local Tycoons = game.Workspace:WaitForChild("Tycoons")

local function assignTycoon(player)
for _, Tycoon in Tycoons:GetChildren() do
if Tycoon:GetAttribute("Taken") then continue end
Tycoon:SetAttribute("Taken", true)
Tycoon:SetAttribute("UserId", player.UserId)
return Tycoon
end
return nil
end

game.Players.PlayerAdded:Connect(function(player)

local Tycoon = assignTycoon(player)
if not Tycoon then warn("Could not assign tycoon to"..player.Name) return end

local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player

local cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Value = 120
cash.Parent = leaderstats

end)

narrow vault
worldly sonnet
#
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
UserInputService.MouseIconEnabled = true
local isLocked = true

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    
    if gameProcessed then return end
    
    if input.KeyCode == Enum.KeyCode.Q then
        print('ee')
        isLocked = not isLocked
        
        if isLocked then
            print('locked')
            UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
            Plr.CameraMode = Enum.CameraMode.LockFirstPerson
        else
            print('unlocked')
            UserInputService.MouseBehavior = Enum.MouseBehavior.Default
            Plr.CameraMode = Enum.CameraMode.Classic
        end
        
    end
end)

why wont it unlock the persons cursor

gray mantle
#

and does it print anything

mortal kettle
#

why nobody talks about fusion ui framework?

#

just wondering

gray mantle
#

bc no one wants to venture there

mortal kettle
#

wdym

worldly sonnet
gray mantle
#

idk I feel like most people, especially here

hasty pendant
#

guys has anyone worked with smart bones?

gray mantle
#

they wouldn't venture into open source modules

hasty pendant
#

anyone?

mortal kettle
gray mantle
gray mantle
mortal kettle
gray mantle
#

I use react

mortal kettle
hasty pendant
#

so has anyone worked with smart bones? liek scripting their animations perhaps

gray mantle
gray mantle
mortal kettle
#

react or fusion

gray mantle
#

fusion is simpler, react is more complex

#

one sec

worldly sonnet
mortal kettle
#

fusion

worldly sonnet
#

whats fusion

mortal kettle
gray mantle
glass pumice
#

basically

gray mantle
glass pumice
#

lets u build UIs with dynamic updates

gray mantle
#

react has a larger learning curve but provides more functionality I suppose

#

I'd recommend starting with fusion tbf

glass pumice
#

πŸ’”

mortal kettle
gray mantle
#

how

hasty pendant
#

so no one here has worked with samrt bones

glass pumice
gray mantle
glass pumice
hasty pendant
glass pumice
#

react and typescript isnt beginner friendly stuff

hasty pendant
#

and im looknig to script them for sails of wooden ships, including ropes

gray mantle
#

oh gotchu

glass pumice
#

tho

gray mantle
glass pumice
#

fusion is great

gray mantle
#

it is

#

its semi-enjoyable

#

the docs don't offer a very well articulated explanation though

#

most of it is built on assuming you understand it from minimal explanations of how it should be used

glass pumice
#

gotta restart for docker to complete its installation πŸ’”

#

noooo

gray mantle
#

oh also @mortal kettle if you'll be using fusion I recommend you look into UILabs plugin

rain hound
#

yo would i hire a graphics artist or vfx artist to design kanji

glass pumice
#

type to instance a piracy site into an app

#

no more data being sold

#

yippiee!

mortal kettle
#

if u dont mind me asking

hallow crag
somber vault
#

made the best state machine roblox has ever seen

#

1 year

glass pumice
#

premake ur downfall bro

mortal kettle
hallow crag
#

lmao

#

its not difficult

glass pumice
#

I see a lot of issues with it

#

but the biggest one is probably just that its inefficient

#

are u one of those people that hate on AI as well?

mortal kettle
#

yo chill

#

chill

#

we know ur pro chill

hallow crag
hallow crag
glass pumice
hallow crag
hallow crag
glass pumice
hallow crag
#

πŸ™

glass pumice
#

that was obviously irony

mortal kettle
hallow crag
gray mantle
gray mantle
# mortal kettle why tho

if you are using a library to programmatically make your ui, this plugin lets you preview your UI without having to play test your game in studio

hallow crag
gray mantle
mortal kettle
gray mantle
#

why do u have a problem with it

glass pumice
mortal kettle
#

like dat that one second of testing ur game couldve been put towards codin

glass pumice
#

theres no downside of using fusion

gray mantle
#

theres no downsides to anything to some extent if you use it correctly

brisk fjord
#

and if its not old

mortal kettle
#

cuz when i get good at fusion i should use react?

glass pumice
glass pumice
gray mantle
glass pumice
#

if it works it works

#

use whatever u like

mortal kettle
#

ok kewl

tawdry crane
#

hows it going

#

i think im doing pretty well

mortal kettle
#

straight from hell

hushed cargo
tawdry crane
#

code

glass pumice
patent mirage
south portal
# tawdry crane

I'm new to coding and I might be stupid for asking but is this actually runnable?

near ocean
south portal
#

I was thinking even if it was runnable its probably bad practice

solid rain
#

does Roblox allow datastore key version rollbacks aka backups on their Datastore API?

solid rain
#

So roblox does not offer a solution right

median bramble
#

no i dont think it offers backups/rollbacks by default

#

but it wouldnt be hard to implement rollbacks, or you could just use ds2

solid rain
#

Thats too much work tbh, I'll probably just make a small back up system covering up to a week

near ocean
solid rain
#

Although I have already added a billion checks I still want more protective layers

near ocean
solid rain
#

Yes pretty much but it is hardcoded

near ocean
#

Use ProfileStore wrapper module instead so that you can use seperate session keys for when in studio or testing things so that its stored on a seperate datastore.

local SESSION_KEY = if RunService:IsStudio() then 'studio_test' else 'production'
#

So that theres no risk of data corruption when testing

solid rain
#

Alright

#

I'll put both advices in my notes for now

#

Thanks

true birch
coarse terrace
#

does anyone create a custom admin panel and admin commands for my game specific ill pay you

solid rain
steep mantle
#

guys what do you think is the best to start learning lua by myself

#

i understand lua mostly but i can’t use it

solid rain
#

dm me @coarse terrace

misty gale
#

Lol

hoary cedar
#

With the addition of a cross-communicating Discord bot

vestal pumice
weak radish
untold jetty
#

guys im tryna learn scripting rn i got back into it, got any tips? im trying to learn off toolbox right now and all of the models have advanced scripts which i have no idea what they do, so far throughout the 2 days i've learned scripting about, (sometimes i forget lol) i can code a simple killbrick, i can re-shape, re-color, and change materials of parts, and spawn parts in studio.

hoary cedar
#

Professionally, 4 years on/off

#

I started learning Luau in 2014 though, lol

weak radish
#

Might just put portfolios on every site there is

untold jetty
weak radish
untold jetty
solid rain
#

portfolio on ^kmate πŸ’”

urban coyote
median bramble
#

very much did lol

#

https://www.youtube.com/watch?v=0LiaEDui2vE as referenced by this video

In this tutorial, UristMcSparks guides you through the basic concepts and tools of scripting and coding in ROBLOX with Lua. You'll learn how to write a basic script, define variables, and create functions. These are the foundations to eventually making your own game!

As part of Code.org's global Hour of Code event, we are publishing a series of...

β–Ά Play video
patent mirage
#

How efficent is this, if there are multiple actions?: ```lua
local PlayerActions = {}
PlayerActions.__index = PlayerActions

function PlayerActions.Initialize(config, services, utilities)
local self = setmetatable({}, PlayerActions)
self.config = config
self.services = services
self.utilities = utilities
return self
end

ProximityPrompts = {

["Climb"] = function(player)
    print(player.Name .. " Started Climbing!")
end,

}

function PlayerActions:Start()

local player = self.services.Players.LocalPlayer

-- ProximityPrompts --
local ProximityPromptService = self.services.ProximityPromptService
ProximityPromptService.PromptTriggered:Connect(function(PromptName)
    ProximityPrompts[PromptName.Name](player)
end)


-- UserInputs --

-- --

end

return PlayerActions

hoary cedar
hoary cedar
urban coyote
hoary cedar
#

Services are non-constructable singletons

#

Make it a static class. This will make the use of metatables redundant, @patent mirage

#

I don't agree with dependency-injecting services either

#

Just import what you need. Keeps things clear

median bramble
#

@hoary cedar any chance u could give some feedback on my implementation of like a global shop restock system? nobody else could help yet t_t

#

ill send in a sec

hoary cedar
#

Your code isn't robust, either. It does not handle unrecognized ProximityPrompt protocols

median bramble
#

On startup, a server tries to become the leader using MemoryStore:SetAsync("Leader", JobId, TTL).

If it succeeds, it becomes the leader and handles restock logic.

If it fails, it publishesh its JobId to MessagingService on the topic "ElectionRequest".

The leader listens for these requests and stores the JobIds in an electable table.

When the leader shuts down, it picks a random JobId from the table and sets that as the new leader via SetAsync.

Servers send a "RemoveElectable" message with their JobId when shutting down, so the leader can remove them from the table.

urban coyote
tardy niche
#

Selling a group with-1.1K Members (not looking for clown offers such as "300")

urban coyote
urban coyote
median bramble
median bramble
hoary cedar
#

But if you want to delegate restocking to one server, that's a sufficient design

median bramble
#

ya pretty much one server handles the restock logic and sends the stock to other servers via messagingservice

#

if that server shuts down it picks a new one

hoary cedar
#

However, I think "leader" could be more concise

median bramble
#

ya fair

#

i wouldve thought leader makes sense in the context that it takes "leadership" of the restock logic

#

thanks for the feedback though! very much appreciated

hoary cedar
#

That depends on how you've named your memory-store variable

median bramble
#

im not sure if this system scaled up x1000-2000 wouldnt cause throttling

hoary cedar
true birch
median bramble
#

my initial thought wouldve been that every server fires a getasync memorystore call every few seconds but

#

if i had a high amount of servers a lot of those requests would be dropped

hoary cedar
#

You could combine the stock retrieval operation into the dropped UpdateAsync calls

median bramble
#

i couldve sworn the limit was hard capped at like some hundreds/minuteor something

hoary cedar
urban coyote
hoary cedar
# median bramble ohhh whatt lol

A global shop is difficult considering players would be purchasing and depleting stock often. I'd imagine you're updating the memory-store each time this happens

#

That's where I'd start to worry about throttling/dropped requests

median bramble
hoary cedar
#

Are you sure Grow a Garden uses a universe-wide shop?

#

Not just server-specific?

near ocean
median bramble
hoary cedar
median bramble
#

restock

hoary cedar
#

That's not a global stock system

median bramble
#

wdym

#

im abit confused by the question lo

hoary cedar
#

To me, and from what I believe I experienced, that sounds as if each server has its own stock and restock operation

median bramble
#

ohhh no

#

it restocks every 5 minutes globally i.e every server will have the same fruits and fruit amounts in stock

hoary cedar
#

But each server depletes its stock on its own?

#

Buying items from one server does not deplete the items from another?

serene ether
#

if i used ai like cursor ai would it make my games secruity bad

median bramble
#

im not sure if im explaining this correctly 😭

hoary cedar
#

Per server, you mean

#

Imagine it as multiple markets. Each market gets new stock, but each market loses its stock separately

urban coyote
urban coyote
mossy hound
#

guys im building, doing UI, and scripting small - medium systems for brainrots in steal a brainrot. DM Me.

hoary cedar
#

Last I played that awful game, I'm pretty sure other players depleted the server's stock

median bramble
#

so every player gets the same fruits/fruit amount but the fruit you buy are stored for your player

hoary cedar
#

Each player didn't have their own

urban coyote
median bramble
#

idk if were on the same page lol

#

im sorry if im horrible at explaining

urban coyote
#

If it just needs to restock every 5 minutes, and the stock doesn't need to be synchronized, and it doesn't need CRAZY accuracy, you could just check (os.time() % 5 * 60) == 0 right?

hoary cedar
#

But in any case, @median bramble, we can simplify things greatly. The first server to boot up can post its boot timestamp to a memory-store, then each subsequent server can query that timestamp and sync its restock operation acoordingly

#

There is no need to keep coordinating a restock

median bramble
#

so basically

urban coyote
hoary cedar
median bramble
#

every server will have the same stock every 5 minutes, but players dont deplete the servers/global stock and only for themself

hoary cedar
#

Understand, @median bramble?

urban coyote
median bramble
#

ya

#

just clone the stock for each player

#

thats not the big part im worried about

median bramble
#

its that i want to sync the fruits that are in stock across every server

#

do u get what i mean? or do i just not quite understand ur point πŸ˜…

urban coyote
median bramble
#

ya

urban coyote
median bramble
#

or os.time

urban coyote
median bramble
#

so id still need one server to handle the random stock logic

#

and then would i just pop that into a data store and call it from other servers?

urban coyote
#

What's randomized

#

The amount of fruit restocked?

median bramble
#

the fruit and the amoutn of each fruit in stock

urban coyote
#

I get it now

median bramble
#

did i not mention it before?

#

aaa i might be a bit stupid im sorry

urban coyote
median bramble
#

yea i might be stupid

#

😭

median bramble
#

so i can just use Random.new() with a seed like the current unix time?

urban coyote
#

ya

median bramble
#

omg

urban coyote
#

You can also add like another factor to it, otherwise some genius might just figure out how to predict the amount of seeds you're gonna get next

hoary cedar
#

That's not going to work

median bramble
urban coyote
median bramble
#

actually

urban coyote
#

just use os.time()

median bramble
#

alright

urban coyote
#

and start ticking up the number every second

#

maybe resynchronize it again every now and then

median bramble
#

i mean

hoary cedar
#

The first server to boot is the first server to start the restock countdown. You need to learn that server's uptime, then look at the current time to calculate and sync the restock timer in your server

#

@median bramble

static forum
#

Any scripter wanna collab

median bramble
#

tysm for the help u 2 yall are amazing

static forum
#

I have a game am working on

night drift
#

what should i do after learning the basics of coding lua?

urban coyote
#

What would be the probability of os.time() getting desynchronized by 1 second now that I think about it

hoary cedar
hearty olive
median bramble
median bramble
#

ok ive found a solution on a devforum article

#

someone made a module that gets synced time from google

urban coyote
#

Maybe an HTTP request to a server that

#

yeah

median bramble
#

ya

#

ty for the help ur such a goat

#

im glad i didnt make the overcomplicated mess i was thinking of lolll

hoary cedar
urban coyote
jaunty path
#

would i bypass the limit of datasaving if i put a timer leaderboard? i added some safety precautions like saving every 30s and saving when player leaves, but idk if itll ratelimit

#

any other suggestions i can do to avoid hitting the bar

#

cuz isnt it like 60 writes a min so if theres over 100 kids itll ratelimit i feel like

vagrant sorrel
#

btw, have any of yall done some kind of atomic update/transaction

jaunty path
#

ProfileStore is not designed (and never will be) for in-game leaderboards or any kind of global state.

#

does it matter if i violate that, do you use it for ur leaderboards?

vagrant sorrel
#

not rll sure how it would be since never did

#

but shouldnt be that hard

jaunty path
#

okay thanks

white seal
#

Wsg long talkers

turbid magnet
#

Is anyone here good with soccer physics and generally scripting things like this

vagrant sorrel
#

np, good luck

turbid magnet
#

I can pay

vagrant sorrel
vagrant sorrel
jaunty path
#

im lazy asf so okay

vagrant sorrel
#

lol, good luck

terse sinew
#

If anyone can script a system for me I will make a model for you we can trade

fresh scarab
#

.

crude quarry
#

Anyone know why its saying my function is not a function?

hardy cobalt
crude quarry
hardy cobalt
#

Jkjk

#

I dunno nothing bout scripting except variables lmao

terse sinew
#

I’m making any model for anyone right now in exchange for a 25$ target gift card I’ll do anything like any model

arctic berry
#

how can i make a portfolio for scripting?

old bloom
#

yk how so many people say the dev forum is one of the best ways to learn scripting

errant root
#

Any1 know like a proper cheap dev😭

old bloom
errant root
#

Bro

old bloom
delicate ferry
#

Anyone have the link to the roblox docs?

delicate ferry
faint ivy
delicate ferry
idle summit
#

how much recomended character into module script ?
i comprresed it from 1.8m character to 500k still huge

sweet wasp
#

Hello

#

Who was struggling with the foor

#

Door

feral jetty
#

script.Parent.Touched:Connect(function(Hit)
    if Hit.Name == "Part" and Hit:FindFirstChild("CashValue") then
        CashValue.Value += Hit:FindFirstChild("CashValue").Value
        Hit:destroy()
    end
end)```
#

Would there be a reason why it doesn't destroy the parts

jaunty osprey
#

anyone here know how to script

somber lodge
#

and destroy should be capitalized

feral jetty
#

I fixed it

#

But still not working

#

Telling me this ain't touching?

jaunty osprey
#

you a good scripter?

feral jetty
#

Uhh not really

#

But I might be able to help

jaunty osprey
#

oh ok

#

would you know how to create a certain system?

#

DMS

somber lodge
#

and the hit parameter is being copied

feral jetty
#

while wait(2) do
    local NewPart = Instance.new("Part",DropperPartsFolder)
    NewPart.Position = script.Parent.SpawnPart.Position
    NewPart.Size = Vector3.new(1,1,1)
    
    local CashValue = Instance.new("NumberValue",NewPart)
    CashValue.Value = 1
    CashValue.Name = "CashValue"
end```

This is the script that spawns the parts
shrewd dome
#

are you able to change the lighting for the player only?

coral dune
#

em

somber lodge
#

cause it works on my end

shrewd dome
#

more or so like a really thick atmosphere when theyre below a certain point

feral jetty
unreal axle
#

roact been archived for nearly 2 years, y'all think it's fine to still use it?

feral jetty
desert copper
#

can someone help me on my game rq like we go into a call and i screenshare so u can help me fix something

crude quarry
#

Is group service only if you're looking for specific information about a group? I spent the last like 2 hours looking at the documents understanding none of it only to know there was 2 objects that was what I was looking forGetRoleInGroup() and GetRankInGroup()

vagrant sorrel
unreal axle
#

like?

lost yoke
ionic solstice
#

yo can anyone help me to understand on how a shop system works for example if a player purchases, how to i make it so they own it and they can equip it and use it mid match

crude quarry
#

using remote events and clone items from a storage folder to their inventory

ionic solstice
crude quarry
#

Remote event

ionic solstice
crude quarry
mellow lagoon
#
local Players = game:GetService("Players")
local player = Players.LocalPlayer

Players.PlayerAdded:Connect(function(player)
    wait(0.2)
    local leaderstats = player:WaitForChild("leaderstats")
    local plot1 = workspace.plot1
    local plot2 = workspace.plot2
    print("finding plot")
    if plot1.Istaken.Value == true then
        print("plot 1 taken trying plot 2")
        if plot2.Istaken.Value == true then
            print("plot 2 taken")
            if plot1.Istaken.Value == false then
                print("giving player plot 1")
                player.leaderstats.plot.Value += 1
                print("gave player plot 1")
                if plot2.Istaken.Value == false then
                    print("giving player plot 2")
                    player.leaderstats.plot.Value += 2
                    print("gave player plot 2")
                else
                    print("all plots are taken how tf are you here")
                    print("found plot")
                end
            end
        end
    end
end)

it just stops after finding plot

woeful gate
#

hey guys if theres one old roblox game u loved back in the day and wish had a new version which one would it be?

soft trout
#

why dont games just obfuscate the script that fires their handshake remotes

near ocean
#

just do sanity checks on the server-side

soft trout
#

havent seen anybody decompile luraph

near ocean
# soft trout isnt it like really hard

Theres tools dedicated to it but even if you were to successfully do it, it would make static analysis very difficult. You would need a copy of the code before the obfuscations for later

rugged island
#

Just tell the exploiters mom that they're doing no no stuff on roblox

#

and it's sorted

hearty olive
#

can anyone tell me why this isn't working? if possible ik it says its not apart but I don't understand

lost yoke
#

what is value supposed to be bro

hearty olive
#

I couldn't even tell you

lost yoke
#

wdym u couldnt tell me its ur game bro

hearty olive
lost yoke
#

..?

willow cradle
#

who wanna build a scary obby dm me

true fulcrum
#

I'm about to release a Steal A _____ Game (big expectations) (unique idea) but we need scripter, the game needs some scripts and that's it 😭😭

true fulcrum
somber vault
#

oh shit wait

#

this is scripting Facepalm

cobalt rock
true fulcrum
cobalt rock
#

It's a shit game tbh

#

Idk how it has close to 1M ccu

visual vector
#

made these for someone

#

hunger health and stamina

spark sphinx
#

Can anyone teach me how to make a game?

split gate
# lost yoke ..?

just let bro keep learning he’s gonna figure it out eventually that’s what I did

worn flax
ruby cipher
crude quarry
#

new studio jumpscare

open sparrow
#

and

#

also

#

your script logic for assigning plots is incorrect and will never actually assign a plot if either is not taken

#

you can do

#

if plot 1 is free then take plot 1 if plot 1 is taken then take plot 2 if boath are taking just print smth idk

hallow crag
open sparrow
#

you can just simply do

plot1.Istaken.Value = true
#

and

elseif plot2.Istaken.Value == false then
#

give the player the plot

#

if both are taken

#

then

#

plot2.Istaken.Value = true

hallow crag
#

nah nested looks ugly ash

night drift
#

why isnt this working i am a begginer to scripting and i tried to do a part that makes me faster but the help things where you can press tab didnt pop up so i just guessed ```script.Parent.Touched:Connect(function(SpeedPart)
if SpeedPart.Parent:FindFirstChild("Humanoid") then
SpeedPart.Parent.Humanoid.Walkspeed = 500
end
end)

hallow crag
#

wheres ur script placed and is it a script or localscript

night drift
#

script

hallow crag
#

its WalkSpeed

#

btw

#

not Walkspeed

night drift
#

oh

#

now its working ty

gray marsh
#

anyone know why my checkpoint script not working?

elfin timber
#

you misspeled value twice

oblique epoch
#

dm if u wanna code an incremental game with me (must be good at coding incrementals)

young citrus
elfin timber
gentle stag
gentle stag
feral sage
elfin timber
night drift
#

what should i try coding i almost know the basics but dont know that to do now

feral sage
gentle stag
#

Wdym put other names

elfin timber
gentle stag
elfin timber
young citrus
gentle stag
young citrus
#

why

gentle stag
#

To prove you are

young citrus
#

why do i have to do that

elfin timber
gentle stag
#

If it's real

young citrus
feral sage
#

look at the pics

gentle stag
#

Wdym put other names of an event

feral sage
#

so i have a script called description

elfin timber
feral sage
#

in starterplayerscripts

feral sage
elfin timber
feral sage
gentle stag
#

Are you firing all the clients meaning if someone touched the activation then it will be fired through all the clients that is connected?

feral sage
#

uhh

young citrus
#

why is this even done on client, just do it on server

gentle stag
young citrus
#

inefficient?

feral sage
young citrus
#

doing it on server or client?

feral sage
#

not multiplayer, im doing it on client

night drift
gentle stag
night drift
#

okey

feral sage
#

when i put that name

#

it works

gentle stag
#

What does the output say?

feral sage
#

nothing

gentle stag
#

Throughout?

elfin timber
feral sage
gentle stag
feral sage
#

?

#

what is it

gentle stag
#

Bro

#

Don't u see it

feral sage
#

nope

gentle stag
#

Infinite yield possible

feral sage
#

bro it isnt on that event

gentle stag
#

Wdym

elfin timber
#

would be better

young citrus
#

dont do it

feral sage
#

k

gentle stag
feral sage
#

like i got 30 of em

#

or more

gentle stag
#

You can try fixing the warning

feral sage
#

well idk cuz i aint removing allat

feral sage
gentle stag
#

You should debug

feral sage
#

how

gentle stag
#

Perhaps each line

#

Or where it goes

young citrus
#

bro doesnt know what debug is

#

why are u even scripting

gentle stag
elfin timber
feral sage
young citrus
weak radish
#

a

elfin timber
gentle stag
young citrus
feral sage
young citrus
elfin timber
feral sage
#

i mean yall said its 30

young citrus
#

amazing

feral sage
#

dawg ik yall trolling

elfin timber
#

this is for the lil preview of the placement

gentle stag
#

U blind

hallow crag
# elfin timber

2 repeat statements in a hearbeat connection 😭 😭 😭

weak radish
gentle stag
hallow crag
elfin timber
young citrus
hallow crag
elfin timber
#

this why i asked for someone to check over it

gentle stag
#

Actually you need medical health

#

from coding I meant

hallow crag
#

just use raycasting

elfin timber
hallow crag
#

its also rlly inaccurate

elfin timber
#

but sure

gentle stag
#

Bro

#

'Why scripting when you have many injuries on it'πŸ™πŸ₯€πŸ’”πŸ’”

hallow crag
elfin timber
young citrus
#

yielding in a heartbeat connection is actually crazy

hallow crag
#

use ur brain bro

gentle stag
#

Why do you yield in something unyieldable

elfin timber
#

so what do i use instead

hallow crag
#

dont use repeat at all

#

/ dont yield at all

gentle stag
upper sleet
#

Does anyone know a reason for the IconImageAssetId of the productinfo returned by MarketPlaceService:GetProductInfo() to be 0 instead of the acctuall id?

hallow crag
#

or ur product is incorrect

#

its most likely cause it has no icon

upper sleet
upper sleet
hallow crag
elfin timber
upper sleet
gentle stag
hallow crag
gentle stag
#

-# L

elfin timber
hallow crag
#

a gag copy

gentle stag
#

I wanna code so hard

hallow crag
gentle stag
#

Should be camel

hallow crag
#

yeah camelCase on top

gentle stag
#

I use pascal for services

hallow crag
young citrus
hallow crag
#

and i use snake_case + upper case for constants

gentle stag
#

Who is bro talking to

upper sleet
hallow crag
#

i think he meant to send in dms lol

hallow crag
#

to bad i have vencord

stray burrow
#

guys

#

I can’t fucking publish my game

#

I’ve tried everything

young citrus
#

have u tried clicking on publish?

stray burrow
#

yes bro

young citrus
#

what went wrong

stray burrow
#

IDK

gentle stag
upper sleet
stray burrow
#

I have internet

gentle stag
stray burrow
#

HELP MEEE

#

ROBLOX IS DUM

gentle stag
#

Or restart yourself

stray burrow
#

I already did that

#

it’s not working

gentle stag
#

Hmmm.

young citrus
#

buy a new pc

gentle stag
#

Buy a new pc

stray burrow
#

β€œThis experience is not available 0

sour vine
gentle stag
stray burrow
#

I DID

#

look

gentle stag
#

I suggest posting the bug in devforum

hallow crag
# elfin timber

there u go improved ur code

local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local PlantEvent = ReplicatedStorage.Events.PlantEvent

local Tool = script.Parent
local PlantPlacePart = Instance.new("Part")
PlantPlacePart.Name = "PlantPlacePreview"
PlantPlacePart.Anchored = true
PlantPlacePart.CanCollide = false
PlantPlacePart.Transparency = 0.7
PlantPlacePart.Color = Color3.fromRGB(0, 255, 0)
PlantPlacePart.Size = Vector3.new(2, 0.2, 2)

local Equipped = false
local Conn = nil

Tool.Equipped:Connect(function()
    Equipped = true
    Conn = RunService.Heartbeat:Connect(function()
        if Mouse.Target and Mouse.Target.Name == "Soil" then
            PlantPlacePart.Position = Mouse.Hit.Position + Vector3.new(0, 0.1, 0)
            if not PlantPlacePart.Parent then
                PlantPlacePart.Parent = workspace
            end
        else
            PlantPlacePart:Destroy()
        end
    end)
end)

Tool.Unequipped:Connect(function()
    Equipped = false
    if Conn then
        Conn:Disconnect()
        Conn = nil
    end
    PlantPlacePart:Destroy()
end)

Mouse.Button1Down:Connect(function()
    if not Equipped then return end
    if not Mouse.Target or Mouse.Target.Name ~= "Soil" then return end
    
    PlantEvent:FireServer(Mouse.Hit.Position, Tool.Name)
end)
stray burrow
gentle stag
stray burrow
#

I CANT

gentle stag
#

Go to Roblox place

stray burrow
#

IT WONT LET ME

gentle stag
#

Maybe your Roblox client is not robloxing

sour vine
stray burrow
hallow crag
#

cause ur following a shitty tutorial

#

none read luau docs and api ref

sour vine
# stray burrow

aight check the game settings maybe u have something unset

gentle stag
#

Wrong index cases

stray burrow
#

I already checked that

#

still public

hallow crag
#

BrickColor

#

not brickcolor

gentle stag
#

.BrickColor not brickcolor

#

Global datastore

hallow crag
#

yes create a new datastore

sour vine
#

who ze hek uses BrickColor just use Color3.fromRGB

hallow crag
#

hes following a tutorial

#

tho

#

prob brawl dev

gentle stag
#

Don't listen to that guy who haven't touched grass

hallow crag
#

yh

gentle stag
#

Perhaps yeah

gentle stag
sour vine
#

show output

gentle stag
#

Im pretty sure the refiend code gonna be working

elfin timber
#

wait holdon

hallow crag
#

its cause its tryna destroy it whilst its already destroyed just a add a check in the heartbeat loop

stray burrow
#

guys

#

what game should I do now

gentle stag
#

Check the output

stray burrow
#

ideas plz

young citrus
sour vine
gentle stag
#

That's the problem silly boi

hallow crag
#

profilestore handles server data not global data

gentle stag
hallow crag
#

u have a error

gentle stag
#

Nuh uh That's still an error

hallow crag
#

bro hes new

#

that doesnt matter

stray burrow
#

GIVE ME IDEAS FOR A GAME

gentle stag
stray burrow
gentle stag
#

Debug why

stray burrow
#

that won’t take months

gentle stag
stray burrow
gentle stag
#

"Not a ripoff of Strongest Battlegrounds 100% proof"

stray burrow
#

slaps mogs butt simulator

hoary nova
#

would this be an efficient approach on making a rope that curls? let's say that each line change on this video is a frame
where, when we make a raycast that falls and hits a corner every time, a new raycast (and physical part) would be made and the process repeats itself on the new raycast (and the "gravity" would be shifted towards the angle of the side of the rope that was just hit)

sour vine
#

ohh its cuz u cant put for sigma = 1,10

sour vine
#

do for i = 1,10,1 do

hoary nova
#

sorry if the video is janky btw, i just made it in paint, it was pain(t)ful (😐)

sour vine
#

sigma is defined u cant use that

hallow crag
sour vine
#

instead of "for sigma = 1,10,1 do" put "for i = 1,10,1 do"

hallow crag
#

😭

#

u forgot the do

sour vine
#

bro πŸ˜­πŸ™

stray burrow
#

show me the game

sour vine
#

who told u to put i down

hallow crag
#

try replacing the first line with workspace:WaitForChild("Baseplate")

#

bro show the error

#

r u slow

sour vine
#

bro fkin just put for i = 1,10 do at the top

stray burrow
#

What are you even making bro

sour vine
#

keep "sigma" down

hallow crag
#

bro we said replace brickcolor with BrickColor

#

ages ago

sour vine
#

local sigma = game.Workspace.Baseplate

for i = 1,10,1 do
sigma.brickcolor = BrickColor.new("Toothpaste")
task.wait(2)
sigma.brickcolor = BrickColor.new("Lavender")
task.wait(2)
end

#

put thay

#

that

#

no sht

elfin timber
#

@hallow crag the script u gave me errors with The Parent property of PlantPlacePreview is locked, current parent: NULL, new parent Workspace - Client - LocalScript:29

stray burrow
#

@royal moth show me wtf that script does

elfin timber
#

mb then

stray burrow
#

wtf are you making

hallow crag
hoary nova
gentle stag
#

I suggest watching thedevking series, it's where I firstly learned lol

stray burrow
#

that shit is boring

#

to watch

elfin timber
gentle stag
#

What if make a game for yourself first

#

It aint

#

It's old but not outdated

#

It doesn't need to be, plus you can learn them anytime

hallow crag
# elfin timber yea i tried to fix it with cloning but i might hahev done it wrong even tho it c...
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local PlantEvent = ReplicatedStorage.Events.PlantEvent
local Tool = script.Parent

local PlantPlaceTemplate = Instance.new("Part")
PlantPlaceTemplate.Name = "PlantPlacePreview"
PlantPlaceTemplate.Anchored = true
PlantPlaceTemplate.CanCollide = false
PlantPlaceTemplate.Transparency = 0.7
PlantPlaceTemplate.Color = Color3.fromRGB(0, 255, 0)
PlantPlaceTemplate.Size = Vector3.new(2, 0.2, 2)

local Equipped = false
local CurrentPreview

Tool.Equipped:Connect(function()
    Equipped = true
    RunService.Heartbeat:Connect(function()
        if not Equipped then return end
        if Mouse.Target and Mouse.Target.Name == "Soil" then
            if not CurrentPreview then
                CurrentPreview = PlantPlaceTemplate:Clone()
                CurrentPreview.Parent = workspace
            end
            CurrentPreview.Position = Mouse.Hit.Position + Vector3.new(0, 0.1, 0)
        elseif CurrentPreview then
            CurrentPreview:Destroy()
            CurrentPreview = nil
        end
    end)
end)

Tool.Unequipped:Connect(function()
    Equipped = false
    if CurrentPreview then
        CurrentPreview:Destroy()
        CurrentPreview = nil
    end
end)

Mouse.Button1Down:Connect(function()
    if not Equipped then return end
    if not Mouse.Target or Mouse.Target.Name ~= "Soil" then return end
    PlantEvent:FireServer(Mouse.Hit.Position, Tool.Name)
end)
gentle stag
#

I meant you don't need to learn that

tough garden
#

what about for sigma = 6,7

#

like 6 7

#

the meme

elfin timber
#

well i almost got it.

gentle stag
#

There is clearly something wrong with the code. You're using the same name sigma

elfin timber
tough garden
#

look at this one

#

this joke

gentle stag
#

Those things are helpful in the future

gentle stag
tough garden
#

those who know πŸ₯€

stray burrow
#

gng

hallow crag
#

and u dont know how to fix a basic baseplate color changing script 😭

stray burrow
#

that’s 1 in a million chance

#

you get like 6k$ from 1 million Robux

gentle stag
#

Keep dreaming if you can actually achieve it

hallow crag
stray burrow
#

heard

tough garden
#

6 7

hoary nova
#

you gotta be humble first
i've got dreams of that years ago and i'm still learning and not earning, lol

gentle stag
#

Aight delusional

#

There's a lot for you to learn

hallow crag
gentle stag
#

Nuh uh

tough garden
#

how old ru dawg 😭

gentle stag
#

Why r u on a Roblox platform

tough garden
#

ts so corny

#

12

stray burrow
#

14

hallow crag
#

11

stray burrow
#

10

gentle stag
#

Ragebait

stray burrow
#

67

tough garden
hallow crag
tough garden
hallow crag
#

9

stray burrow
#

9

#

1

gentle stag
#

1

stray burrow
#

Unborn

hallow crag
#

yeah hes ragebaiting

stray burrow
#

a fetus

tough garden
#

no way bro! thats sick!

elfin timber
gentle stag
#

...

stray burrow
hallow crag
elfin timber
gentle stag
elfin timber
#

23 million because im so good

gentle stag
stray burrow
#

I am gonna charge someone 100k for 1 rectangular part

#

and make it say skibidi Fortnite

hallow crag
# elfin timber why does it flicker on the first time
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local PlantEvent = ReplicatedStorage.Events.PlantEvent
local Tool = script.Parent

local PreviewPart = Instance.new("Part")
PreviewPart.Name = "PlantPlacePreview"
PreviewPart.Anchored = true
PreviewPart.CanCollide = false
PreviewPart.Transparency = 0.7
PreviewPart.Color = Color3.fromRGB(0, 255, 0)
PreviewPart.Size = Vector3.new(2, 0.2, 2)

local HeartbeatConn

Tool.Equipped:Connect(function()
    HeartbeatConn = RunService.Heartbeat:Connect(function()
        if Mouse.Target and Mouse.Target.Name == "Soil" then
            if not PreviewPart.Parent then
                PreviewPart.Parent = workspace
            end
            PreviewPart.Position = Mouse.Hit.Position + Vector3.new(0, 0.1, 0)
        else
            PreviewPart.Parent = nil
        end
    end)
end)

Tool.Unequipped:Connect(function()
    if HeartbeatConn then
        HeartbeatConn:Disconnect()
    end
    PreviewPart:Destroy()
end)

Mouse.Button1Down:Connect(function()
    if not Mouse.Target or Mouse.Target.Name ~= "Soil" then return end
    PlantEvent:FireServer(Mouse.Hit.Position, Tool.Name)
end)
hallow crag
hallow crag
#

i just modified his prev code

gentle stag
#

or use Killa gpt

tough garden
hallow crag
stray burrow
elfin timber
#

what 😭

tough garden
#

ya ur 12 bro

hallow crag
stray burrow
#

@gentle stag

elfin timber
#

wtf is pacalcase

tough garden
hallow crag
tough garden
#

camelCase >

elfin timber
gentle stag
#

Learn scripting harder lil bro

stray burrow
#

guys

#

wtf should I make

hallow crag
stray burrow
#

I am decent at building

#

eh at scripting

hallow crag
stray burrow
#

what should I make guys

#

what should I make

hallow crag
#

idk ask gpt

tough garden
#

nah thats dtm

hallow crag
#

java is the worst

gentle stag
#

Bro is a type of a person who thinks he can do "Bro is a type of a person who can buy Roblox by Walmart sigma alpha wolf motivations"

stray burrow
#

chicken

#

dch

tough garden
# stray burrow wtf should I make

βš”οΈ Game Modes to Build
Battle arena with randomized weapons or shrinking zones

Mini-game party hub (like rotating obstacle games, trivia, tag)

Tower defense with enemy waves and upgradable towers

Farming sim (plant, grow, harvest, sell)

Survival game (chop trees, build shelter, avoid monsters)