#code-discussion

1 messages · Page 130 of 1

crude quarry
#
local trigger = workspace:WaitForChild("barrier")
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
local Permissions = require(game.ReplicatedStorage:WaitForChild('Modules'):WaitForChild('Permissions'))


trigger.Touched:Connect(function(plr)    
    local Humanoid = plr.Parent:FindFirstChildOfClass("Humanoid")
    local Player = Players:GetPlayerFromCharacter(plr.Parent)
    if not Humanoid then return end
    if Permissions.Headquarters(Player) == true then
        local root = plr:FindFirstChild("HumanoidRootPart")
        if not root then return end
        plr.Parent:PivotTo(root.CFrame * CFrame.new(0, 0, 15))
        Humanoid.WalkSpeed = 0
        print("you're on timeout for 5 seconds")
        Player.PlayerGui.WarningGUI.Enabled = true
    end    
    for i = 5, 0, -1 do
        Players.LocalPlayer.PlayerGui.WarningGUI.TextLabel.Text = "You passed the barrier and are on cooldown for "..i.." sec"
        task.wait(1)
        print(i)
        Humanoid.WalkSpeed = 16
        Players.LocalPlayer.PlayerGui.WarningGUI.Enabled = false
    end
end)```
#

You're welcome to take a look

sacred ore
crude quarry
#

Client

#

only thing I can guess is the whole touch function is inside the module scripts function

sacred ore
#

why are you using GetPlayerFromCharacter

crude quarry
#

I need the players playerGUI

sacred ore
#

i mean you can do Players.LocalPLayer

#

you on client side

tulip merlin
#

That script will only run for the Current player interacting with that object

crude quarry
#

oh weird I did do that at the bottom

sacred ore
#

and instead of getting the humanoid like this you can do Player.Character or Player.CharacterAdded:Wait()

tulip merlin
#

If player A and player B touched that part both player A and player B would have that script run separately

sacred ore
#

and then Character.Humanoid

tulip merlin
#

Now you can always do a check to make sure what's touching it IS a player

sacred ore
#

but i think touched should be handle on the client

#

and you should fire an event

#

to the client that touched the part

rough vine
#

💀

severe quarry
#

Guys I need a script, when someone is buying SlapHand gamepass, it gives him the object

#

Mine is working but you need to rejoin multiple times to have it in your inventory

crude quarry
crude quarry
severe quarry
#

No

#

I wish I had my pc with me so I could show u

tulip merlin
#

How I would personally handle it (anyone can let me know if this is also bad practice)

local part = game.Workspace:WaitForChild("Part");
local Players = game:GetService("Players")
local Player = Players.LocalPlayer;
local Character = Player.Character or Player.CharacterAdded:Wait()


part.Touched:Connect(function(hit)
    if not hit.Parent:IsDescendantOf(Character) then
        print("Part touched is not the local player")
        return
    end
    
    -- Do whatever you need now knowing it is the local player touching the part
end)
severe quarry
#

When someone is buying the gamepass, it doesnt give the slapHand instantly, he needs to rejoin multiple times even change server for it to work

tulip merlin
#

This is only important mind you if you have other things that could possibly touch it. Especially other objects in the gamespace as the Touched event will even be triggered by say the baseplate touching the part

crude quarry
#

so weird Players.LocalPlayer prints nothing

#

guess I found my issue

tulip merlin
#

What do you mean it prints nothing? It should be the entire player object

#

UNLESS its not a LocalScript

crude quarry
#

attempt to index nil with 'LocalPlayer'

tulip merlin
#

Then it indeed will be nil or nothing

#

You aren't in a LocalScript

crude quarry
#

I most certinatly am

sacred ore
tulip merlin
#

Should that even matter?

sacred ore
tulip merlin
#

Would LocalPlayer be nil in this context? Is it because the event could fire before LocalPlayer is indexed?

#

I mean I always recommend making a local Player = Players.LocalPlayer variable at the top anyway with all the other variables since its bad practice to keep doing Players.LocalPlayer.whatever

crude quarry
#

It's just weird cuz it runs through everything just fine you can see all the print statements in the output

#

but no actions are actually done

tulip merlin
#

What exactly is happening that you aren't expecting.

#

Is the gui being enabled?

crude quarry
#

player's not being teleported the GUI is not enablwd

tulip merlin
#

Any new errors?

crude quarry
#

No errors but I just realized it's still not printing players.localplayer under the GUI

thorny parcel
#

ts looks weird

tulip merlin
#

As me and blocklotuz has said, try putting Players.LocalPlayer into a variable right after local Players = game:GetService("Players") and use that variable in place of where you normally do Players.LocalPlayer

dense aurora
#

Question

If i was to make a UI to select saved characters (they can only be loaded by the server) and i wanted to store them in viewports. How should i do so?

My idea is to put the characters inside a folder in RepStorage under a folder with the user's id and use .ChildAdded connection but im wondering if this is the best or not

I suppose like Catalog Avatar Creator

tulip merlin
#

No promises it will fix it, but I suspect Players.LocalPlayer just isn't available yet?

crude quarry
#

I found the issue

#

it's the humanoidrootpart not being found

dense aurora
#

did you use
local character = client.Character or client.CharacterAdded:Wait()

tulip merlin
#

Quite frankly they are doing it in a weird way for being in a LocalScript context

azure granite
crude quarry
#

nope I finally got it, it was my own stupidity

dense aurora
crude quarry
#

The module script was looking to see if a function was true about a players team, I was not on that tean hence the function never returned true

tulip merlin
#

I highly recommend following what me and blacklotuz has said though. You have a lot of redundancy and areas to clean up

#

Either way glad you found the issue

crude quarry
tulip merlin
#

Fair enough, but you are only learning bad habits

#

So long as you understand its a bad habit and know to fix it later then whatever ig

crude quarry
#

im sure i'll learn more as I progress

sacred ore
crude quarry
#

cuz im already trying to mix module scripts and local scripts and this is clearly being a bigger pain than I thought

#

Never used modules before im just learning from someone elses reference

tulip merlin
#

Seems like you are just adopting the "I will fix it later and never end up fixing it" attitude

#

It appalls me people will implement something one way knowing they'd be better off doing it another just to say "Ah I will do it later"

crude quarry
#

nah I just dont like learning 15 different things cuz I'll end up forgetting most of it

tulip merlin
#

The issue is, you are neglecting basics

sacred ore
#

but thats just basic organization

tulip merlin
#

Which is what you want to learn

#

Not even basic organization

#

It shows a lack of understanding in basic programming

#

Using variables being one of em

#

He named 2 variables the same thing making use of the fact they are case sensitive to differentiate them, but also there's places he could use variables to get rid of repetition

sacred ore
#

he will understand later

azure granite
#

guys if i wanna save stuff in a player inventory like the fruits in grow a garden, do i need to serialize the parts so the player can hold it

tulip merlin
#

Whatever then, I think its bad idea to reinforce bad habits and shit early on but do you ig

hardy yew
#

how to make a function that declares all variables I need and then I can use them for other functions, guys?

tulip merlin
#

What?

hardy yew
#

like get all IntValue from a player

sacred ore
#

depend if you are in client or serverside

hardy yew
#

I wanna make my code cleaner

crude quarry
tulip merlin
#

Wasn't saying it was the issue, but it did cause an issue

hardy yew
crude quarry
sacred ore
#

I would make a SetStatus script, you get the data and add them as value under a player, then you save the value as new data when the player leave

sacred ore
hardy yew
#

ah alr ty

crude quarry
#
local trigger = workspace:WaitForChild("barrier")
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
local Player = Players.LocalPlayer
local Permissions = require(game.ReplicatedStorage:WaitForChild('Modules'):WaitForChild('Permissions'))
local debounce = false

trigger.Touched:Connect(function(plr)    
    local TPLayer = plr.Parent
    if debounce == true then return end
    debounce = true
    local Humanoid = TPLayer:FindFirstChildOfClass("Humanoid")
    if not Humanoid then return end
    if not Permissions.Headquarters(Player)  then return end
    local root = TPLayer:FindFirstChild("HumanoidRootPart")
    if not root then return end
    TPLayer:PivotTo(root.CFrame * CFrame.new(0, 0, 15))
    Humanoid.WalkSpeed = 0
    Player.PlayerGui.WarningGUI.Enabled = true
    for i = 5, 0, -1 do
        Player.PlayerGui.WarningGUI.TextLabel.Text = "You passed the barrier and are on cooldown for "..i.." sec"
        task.wait(1)
        Humanoid.WalkSpeed = 16
    end
    Player.PlayerGui.WarningGUI.Enabled = false
    debounce = false
end)``` Happy?
azure granite
sacred ore
azure granite
tulip merlin
tulip merlin
#

I also see people use a lot of magic numbers in code

azure granite
tulip merlin
#

I've seen my fair share of

data[0] = 0
data[1] = 0
data[2] = 0
data[3] = 0
azure granite
tulip merlin
sacred ore
azure granite
crude quarry
azure granite
tulip merlin
tulip merlin
#

Anytime you find yourself needing to repeat something, for loop is the goto

sacred ore
tulip merlin
#

I mean personally I think either or would be fine no?

azure granite
tulip merlin
#

Does it really matter if you do it immediately after a function call or after checking if its a person touching it?

tulip merlin
#

It would be stuck true

azure granite
#

ur supposed to put debounce after all the rreturn ends

sacred ore
lost minnow
#

anyone know if it would be possible to have players sing along to music playing in game via voice chat while correcting for delays or is that impossible

tulip merlin
#

Typically its a

local part = game.Workspace:WaitForChild("Part");
local Players = game:GetService("Players")
local Player = Players.LocalPlayer;
local Character = Player.Character or Player.CharacterAdded:Wait()

local debounce = true
part.Touched:Connect(function(hit)
    if debounce then
        debounce = false
        if not hit.Parent:IsDescendantOf(Character) then
            print("Part touched is not the local player")
            return
        end
        print("part touched")
        wait(5)
        debounce = true
    end
end)
#

It's how i do my debounces

marsh sail
#

who can debug a game

sacred ore
jaunty path
#

is it possible to scale a model using a script

marsh sail
#

everything just breaks at a certain extreme and some stuff now working dm and ill send u a copy and the problems\

sacred ore
jaunty path
tulip merlin
#

You guys have a good night

#

I dip now

sacred ore
azure granite
tulip merlin
#

Sorry I was making use of old code but typically you'd set it to true inside that if statement as well

#

Anything that relies on that code being ran must be reset back to its default

#
local part = game.Workspace:WaitForChild("Part");
local Players = game:GetService("Players")
local Player = Players.LocalPlayer;
local Character = Player.Character or Player.CharacterAdded:Wait()

local debounce = true
part.Touched:Connect(function(hit)
    if debounce then
        debounce = false
        if not hit.Parent:IsDescendantOf(Character) then
            print("Part touched is not the local player")
            debounce = true
            return
        end
        print("part touched")
        wait(5)
        debounce = true
    end
end)
azure granite
tulip merlin
#

Could even add a wait() if you want to keep the "prolonged" aspect

#

indeed you could

#

You could do

local part = game.Workspace:WaitForChild("Part");
local Players = game:GetService("Players")
local Player = Players.LocalPlayer;
local Character = Player.Character or Player.CharacterAdded:Wait()

local debounce = true
part.Touched:Connect(function(hit)
    if debounce then
        debounce = false
        if not hit.Parent:IsDescendantOf(Character) then
            print("Part touched is not the local player")
            return
        end
        print("part touched")
        wait(5)
        debounce = true
    else
      debounce = true
    end
end)
``` If you wanted since *going based off this basic example* the `else` will only ever run if debounce is stuck on false
#

Which I assume is what you meant

azure granite
#
local debounce = true
part.Touched:Connect(function(hit)
    if debounce then
        if not hit.Parent:IsDescendantOf(Character) then
            print("Part touched is not the local player")
            return
        end

        debounce = false        

        print("part touched")
        wait(5)
        debounce = true
    end
end)
#

i meant this

tulip merlin
#

Ah yeah that could work as well!

#

Sorry I’m tired ahaha

white dock
#

Does anyone have experience with memory leaks ?

cloud harbor
#

LinearVelocity is the best way to do a dash? i using him but the dash is get slow down when the player is grounded

thorny parcel
#

what happens if i do this?

thorn arch
#

@native?

thorny parcel
#

yea

crude quarry
thorny parcel
granite galleon
nocturne sun
#

guys in my game, the npc is spawning in a random place in the map, the first npc spawns in the designated area, but the second npc after wait(3) spawns in a random place. Why?

winter glade
#

no code?

wintry ore
#

what did i do wrong here (scripting for about 2days)

#
local Teams = game:GetService("Teams")

local Republic12 = script.Parent

if Teams.Republic then Republic12.CanCollide = false
    if Teams.Jailed then Republic12.CanCollide = true
        if Teams.Civilians then Republic12.CanCollide = true
            if Teams.Hostiles then Republic12.CanCollide = true
                if Teams.Choosing then Republic12.CanCollide = true
                end
            end
        end
    end
end ```
crude quarry
pseudo hatch
#

just made my first leaderstat script by myself

#

game.Players.PlayerAdded:Connect(function(player)
local stats = Instance.new("Folder")
stats.Name = "leaderstats"
stats.Parent = player

local coins = Instance.new("IntValue")
coins.Name = "Coins"
coins.Value = 0
coins.Parent = stats

end)

inner tundra
winter glade
inner tundra
#

you didnt exactly mention what part wasnt working 😭

pseudo hatch
#

made it different

#

day 2 of coding btw 😄

winter glade
#

wait() is deprecated and task.wait() is what gets used now

pseudo hatch
#

ohh okay

#

also made this

#

this i needed help with lol

inner tundra
pseudo hatch
#

i just said that i needed help when i was actually making the script

agile fulcrum
#

can someone help me

pseudo hatch
#

with what

agile fulcrum
agile fulcrum
pseudo hatch
#

yea

civic garnet
# pseudo hatch

you should wrap that while true do loop in a task.spawn thread

loud swallow
#

help me this doesnt even output

inner tundra
loud swallow
exotic spindle
#

yo guys

scenic lotus
#

hi

patent gorge
#

hey guys if i want to make all players in a server dance do i have to fire a remote event and send them to all players or can i just do it on server side

patent gorge
# pseudo hatch remote event

theres like a bit of a problem ive done that but my players arent dancing ive used print statements to see if they work or not and the print does go through but the porblem is they dont dance

pseudo hatch
#

did u set a correct animation?

quaint furnace
#

hello, what do i do to mitigate failed datastore save on the roblox end? should i make a loop for it to repeatedly request to setAsync?

storm wing
#

can i get some advice on a game i made or a honest review, its incomplete

storm wing
pseudo hatch
#

Okay

white dock
#

my memory increases alot after 10 hr
where can i check what is causing it

patent gorge
#

i wanted the default dance

pseudo hatch
#

what does your script look like

patent gorge
# pseudo hatch what does your script look like

its a dev product and once the dev product is bought the server will fire a remote event then the remote connects to another where it will make the player dance what script do u want to see

radiant island
#

what should i do with these doors

patent gorge
radiant island
#

how should the be able to be opened

patent gorge
jagged tiger
visual vector
#

anyone intersted in helping me with my game idea ill give a percentage

visual vector
#

?

visual vector
crude quarry
visual vector
#

joe

visual vector
crude quarry
visual vector
#

am poor XD

crude quarry
#

Sucks

#

Code it yourself

fathom atlas
#

why is finding passionate scripters so hard bruv

fleet carbon
tame compass
#

I want to code something, do something in roblox studio

#

but I don't have any ideas

sacred mauve
#

We need a slime racher game guys

#

Would hit hard

small palm
solemn knot
solemn knot
#

why wait for someone to make it when we can 💯

tame compass
solemn knot
#

but not great for moving hitboxes imo

tame compass
#

Okay.

solemn knot
#

for moving hitboxes id just use a raycast

tame compass
#

Same, I guess

solemn knot
#

or shapecast

tame compass
#

I have lack of ideas

loud swallow
tame compass
#

I can't think of something I want to do in Roblox Studio

loud swallow
#

and i fixed my issues already thanks tho

tame compass
#

But I do want to do something

solemn knot
tame compass
#

I need ideas, damn

solemn knot
tame compass
#

about what

solemn knot
#

no idea

#

i get most of my inspiration from twitter

tame compass
#

Uh... how exactly?

weak radish
bitter harbor
#

guys i need help

#

local replicatedStorage = game:GetService("ReplicatedStorage")
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

local fishToPlace = replicatedStorage:WaitForChild("Goldfish") -- the fish model
local placingFish = false

local function startPlacing()
print("Placement mode active")
placingFish = true
end

startPlacing()

for _, tile in pairs(workspace:WaitForChild("GridTiles"):GetChildren()) do
local clickDetector = tile:FindFirstChildOfClass("ClickDetector")
if clickDetector then
clickDetector.MouseClick:Connect(function()
if placingFish and not tile:FindFirstChild("Fish") then
local fishClone = fishToPlace:Clone()
fishClone.Name = "Fish"
fishClone:SetPrimaryPartCFrame(tile.CFrame + Vector3.new(0, 1, 0)) -- places fish on tile
fishClone.Parent = tile

            placingFish = false
            print("Fish placed on tile:", tile.Name)
        else
            warn("Tile already occupied or not in placement mode")
        end
    end)
end

end

#

is this good for placing

#

a fish in an aquarium

static wedge
#

Hiring moderators that are very good and are serious payment is 5-20k (ain't promoting plus no where to hire) DM me fr 🫄

visual vector
#

hey ✋ guys looking for developers ⚒️ for my new game you need to have atleast 5 months of expeariece i dont have funds right now so i can pay with percentage %

static wedge
#

nah

rapid eagle
dusky kestrel
static wedge
#

real

static wedge
visual vector
rapid eagle
digital flint
#

are there any long term scripters here?

static wedge
digital flint
#

no ones gonna do it for just percentage

rapid eagle
static wedge
#

✌️

dusky kestrel
#

And your left with like 3%

rapid eagle
#

i mean they make a lot of money but still the devs is the ones who made the game :epn

#

😔

#

imagine paying 10k$ for 1%

static wedge
#

imagine if ninja got a low taper fade!

#

The meme is still MASSIVE

dusky kestrel
#

Making steal a meme right this second

thick seal
#

how do i make an export type thats a folder with the tag "CustomFolder"?

dusky kestrel
#

Free money!!!

dusky kestrel
#

Man I need sleep

digital flint
dusky kestrel
digital flint
#

u need money for advertising once the game is released otherwise it gets no players like my game

static wedge
#

Hiring moderators that are serious and are good payment is 5-20k (ain't promoting plus no where else to hire mods)DM me fr✌️🫄

static wedge
strange fern
#

can someone help me i made a script for players outfits but it turns their skin color black idfk why

dusky kestrel
rapid eagle
static wedge
digital flint
dusky kestrel
static wedge
#

what was u thinking

digital flint
#

who are you to assume my game isn't good???

rapid eagle
digital flint
#

execute bitfracture NOW

static wedge
digital flint
static wedge
digital flint
#

i need that robux!

rapid eagle
dusky kestrel
#

I never played it

static wedge
digital flint
#

banned for harrassment

dusky kestrel
#

Rip

rapid eagle
static wedge
#

rip rest in peace juice world fr

#

Woah

#

Rude

rapid eagle
#

you could stop being aggressive and instead say there game is bad and tell them what to improve

static wedge
#

Cr

dusky kestrel
#

Though I can’t lie, if your game is made mostly by either Ai or YouTube videos and didn’t bother to even learn it

#

Then ima just be rude

#

Since people actually put effort into their work

somber thunder
#

any scripter wanna work on a game whit me?

#

all profit will be split

#

and il pay for advertisment

dusky kestrel
#

Hire me fr

static wedge
#

Dm

dusky kestrel
#

I’m serious

hushed basin
#

20k what robux per day?

static wedge
#

per week

hushed basin
#

too good to be true

tame compass
somber vault
slate thicket
#

Hello, why my getChildren() doesnt give me the Gate1? i dont know why

lone marsh
#

that 5k-20k range is a bit too huge mate

slate thicket
lofty plinth
slate thicket
uneven turtle
#

You can use a for loop to have access to each item

weak radish
slate thicket
weak radish
slate thicket
#

i thought it because the folder doesnt exist when the getchildren

slate thicket
weak radish
uneven turtle
#

Oh it returns an empty table. Are you sure that Gate1 exists when calling GetChildren()?

slate thicket
slate thicket
spiral jungle
#

Does the gate part fall into the void and die

weak radish
slate thicket
weak radish
#

most likely reason

slate thicket
#

i dont think its fall into void

spiral jungle
#

Then it’s probably just not loaded yet

weak radish
weak radish
slate thicket
spiral jungle
#

Where

slate thicket
weak radish
weak radish
spiral jungle
#

How’s he doing a wait for child

uneven turtle
#

Look in the explorer if the part is in the folder while in-game

weak radish
#

oh no don't tell me it's because they don't know how to use it

slate thicket
#

its appear {}

uneven turtle
#

Then try to use GetChildren again

#

In the command bar

weak radish
fathom atlas
slate thicket
spiral jungle
#

Amazing

slate thicket
#

i donno how to sending without image

weak radish
spiral jungle
#

Wait for child on the folder doesn’t mean the children of the folder are loaded

uneven turtle
#

Try to add a wait of a few secs to check

slate thicket
fathom atlas
slate thicket
weak radish
uneven turtle
#

Parts shouldn’t need waitForChild tho… Especially on the server…

uneven turtle
slate thicket
#

iam on client script

weak radish
#

what?

weak radish
uneven turtle
slate thicket
uneven turtle
slate thicket
uneven turtle
#

As someone previously said, wait for the folder is not a guarantee

#

Add a task.wait of a few seconds

#

At the top of the script

slate thicket
#

still appear {}

uneven turtle
#

That’s why a loading system is goated

gusty solar
slate thicket
#

should i try while #gatesFolder:getchildren == 0?

gusty solar
#

it's literally the fucking same

uneven turtle
slate thicket
uneven turtle
slate thicket
uneven turtle
#

It takes time to load stuff

#

Especially if your game has loads of parts

slate thicket
#

yea, the problem solved

#

its appear the gate

uneven turtle
#

Perfect. Will you add a loading system in your game?

#

That would be the best

#

Waiting for everything to load.

slate thicket
#

wow

#

i dont think so..

slate thicket
uneven turtle
slate thicket
uneven turtle
# slate thicket but task.wait(2)....

Yeah but that’s the only option. Things on the server replicate to the client so it takes time. The best thing would be to add a loading system using ContentProvider. If you don’t want a loading system rn due to loading times, you need to stick to waits in your LocalScripts…

minor cloak
#

yo guys

#

do yall need somebody to make you something for free

#

i wanna work on some games for practice

uneven turtle
slate thicket
uneven turtle
uneven turtle
minor cloak
#

and how to improve and such

#

so nah id decline

slate thicket
uneven turtle
steel silo
#

i need sm1 to make a game wit fr Tower defense game or suggestions dm me

lost turtle
#

yooo

spring oxide
#

bruh

#

why i cant post gifs

#

):

minor cloak
visual vector
#

can we work on it together

visual vector
minor cloak
visual vector
#

do i know you ? wdym am horrible

minor cloak
#

add me to the game 🙂

#

i learnt about it yesterday haha

visual vector
#

i can put you in a basplate cause people like destroyin mmy stufff

minor cloak
#

yeah

#

you can just copy the script

#

ig

#

wait actually

#

make a copy of your game

#

and send it to me

#

ill send it back with the shop added

visual vector
#

wdym

minor cloak
#

send a duplicate file of the game

visual vector
#

idk how i feel about that

minor cloak
#

okay so how do you want me to do it

#

i wont ruin anythin dw

#

i can code it to you

#

and tell you where to put the scripts

#

but itll take more time yk

visual vector
#

ill put you into a basplate dm

minor cloak
#

if you want we can even make games together

#

im looking for a teamate haha

drowsy totem
#

I need scripters you will get 30% revenue and robux or PayPal payment depending on contribution please dm

molten creek
#

30 WHOLE PERCENT LET'S GO

tired fulcrum
eternal apex
dark cedar
ancient orchid
#

if u want it

eternal apex
ancient orchid
#

alr

#

v

#

anyone wanna workl on a game toegther i got an fir idea

arctic void
#

What type of weld or thing would I use to follow the player but without copying the orientation

rapid eagle
#

i am so bored

arctic void
rapid eagle
arctic void
#

do you mean welding to hrp?

normal pumice
#

I just got the scripting role

haughty shadow
#

how can i import an overhead ui

fresh sphinx
#

can anyone teach me how to make a plot system

dusk pagoda
#

guys how long did it take you to be pro at coding/modeling?

thorn arch
#

Probably around a year to 1.5 years for coding

#

A few months for modelling

dusk pagoda
#

the first 3 days I couldn't model a thing without a tutorial

dusk pagoda
thorn arch
#

It was on and off

#

So

#

Luau is very simple

#

You can master the basics in 1-2 weeks

dusk pagoda
dusk pagoda
haughty shadow
#

how to fix this

inner tundra
#

what is that 😭

thorn arch
#

vector:create??

#

Also why are you hardcoding all the raycasts?

somber vault
#

@thorn arch its to compare performance to a single blockcast

#

to cover the same araea

oblique trout
thorn arch
somber vault
#

are things like AI interactions or scripting overall in a retail tycoon like game hard to do

thorn arch
#

you can use a loop

somber vault
#

i copy pasted

scenic lotus
somber vault
#

join in mine

#

c:

#

@fleet nebula if u wanna join my game or wanna learn more just dm me smth that willr emind me abt this

thorn arch
cosmic spade
#

Yo how long does it take to learn how to script I got a game idea but I have 0 ideas on how to script

somber vault
#

i have a team of devs

#

lmao

scenic lotus
cosmic spade
scenic lotus
#

If complex mechanic then not enough

cosmic spade
#

It's a simple game really you js buy and deliver milk to customers

#

And I want to add a feature where the longer you take to deliver smth the less money you will earn

scenic lotus
#

So like after reaching a certain time, if not delivery, will earn 0 cash around that or have least delivery money cap

cosmic spade
#

So it's simple like Grow a garden but it has a few more things that make it more complex

#

Simple to understand but not Simple enough to be called slop or have a reason to be hated on

scenic lotus
#

should be like
example: the milk price is 100 and the price drop rate is 1, so it would takes 100 seconds before reaching 0 start from 100, 99, 98, . . .(but make it won't go below 0)

cosmic spade
scenic lotus
#

I see

#

It's not hard to do

minor cloak
#

should take you like 3 weeks

#

if you never saw a script

runic oxide
#

you can store start time and when player delivers get the time taken and reduce it

scenic lotus
#

just takes sometime

minor cloak
#

btw

#

if its with a vehicle it will take a lot longer

#

vehicle

cosmic spade
minor cloak
#

wtf did i write

scenic lotus
#

Vehicle is not easy to make tho

cosmic spade
#

Oh well I have the whole summer to work on it

scenic lotus
#

delivery customer and timer are much easier

minor cloak
#

and i can make a tool shop

#

with security

#

like remote functions

runic oxide
#

you can use opensource libraries for vehicle

#

Achassis one of them

cosmic spade
#

Alr yall have any tutorials I cld watch to learn the basics

minor cloak
#

best tutorials

cosmic spade
#

Bet

minor cloak
#

i am currently watching it and im learning so fast

#

watch the begineer when you finish

#

do the advanced

#

it teaches you ai and more of that too

trim wind
#

Can anyone teach me how to code as I know the basics but have no clue how to code

tender moon
#

i need a scripter

fresh sphinx
minor cloak
#

bro istg math became so easy to me

#

it takes me 3 minutes to solve the question and 30 mins to write it

junior temple
tender moon
#

bruh

junior temple
tender moon
#

i alr got someone

#

so no worries

#

but thank you for responding

regal pasture
#

yall how do I make datastores that transfer information from an experience to a place?

junior temple
regal pasture
#

ok thx

#

cuz rlly im working on this game with a friend and I don't have any idea on what I'm doing

#

ima be real

junior temple
#

lol, just practice every now and then and you'll get better over time

green cliff
#

yo guys, im trying to figure out something that has to with ragdolls, if there is anyone who is seasoned with them PLS DM

jaunty vine
#

would this anticheat work?

a local script in serverscriptservice with a script copying it to workspace constantly and deleting the previous one. the local script detects changes to playergui, health, hitboxes, speed and jump

#

it does that to avoid exploits bypassing by simply deleting anticheat local script

#

since this would work 100%, it would perm ip ban when detected

#

can an experienced dev tell me if this is possible

thorn arch
thorn arch
jaunty vine
jaunty vine
thorn arch
jaunty vine
#

if they use dex explorer, they can discover fe bypasses for the game

thorn arch
thorn arch
thorn arch
jaunty vine
thorn arch
jaunty vine
#

every heatbeat:

  • check if walkspeed not 16
  • check if jumppower not 50
  • check it local hitboxes are accurate
    if true:
  • ip ban
thorn arch
#

Or flyhacks

jaunty vine
#

any change made with exploits is local

#

so local scripts know

#

i know that for a fact

thorn arch
#

You don't need to change walkspeed to do a fly hack

#

Or a speed hack

jaunty vine
#

fly hack would be something else

thorn arch
#

That's pretty obvious

somber folio
#

who can help me script shops for my roblox game?

jaunty vine
#

just tell me if this would work

thorn arch
jaunty vine
thorn arch
#

No

jaunty vine
#

it changes the humanoid walkspeed??

thorn arch
#

You can do speedhack with cframes

#

Which will not be detected by your script

jaunty vine
#

ok. but what i’m saying is would it work for the simple stuff

thorn arch
#

What simple stuff

jaunty vine
thorn arch
#

No one uses that

jaunty vine
#

but just would the idea of replacing the local script constantly work?

thorn arch
#

Before it runs

jaunty vine
thorn arch
#

Every time it's added

jaunty vine
thorn arch
jaunty vine
thorn arch
#

What needs a response

jaunty vine
thorn arch
#

From what

#

The client?

jaunty vine
thorn arch
#

So you will invoke on client?

jaunty vine
#

client events, i know it can be faked

thorn arch
#

Or on server?

jaunty vine
thorn arch
#

Since remotes can be spoofed

jaunty vine
jaunty vine
#

but it adds an extra layer

thorn arch
#

It can still be spoofed

jaunty vine
#

it just adds an extra layer

#

one sec

runic kraken
#
    local highlight = script.Parent.Parent.Highlight
    highlight.Enabled = true
end)

script.Parent.PromptHidden:Connect(function()
    local highlight = script.Parent.Parent.Highlight
    highlight.Enabled = false
end)``` any reason this wont work?
clever shale
#

I need help, i made this script but its not working at all. I then after sometime of trying to figure it out asked chatgpt and it just told me to ensure that ive one everything that i did (basically saying i did it right). It doesnt kick the player, thanks in advance

celest cipher
solemn knot
solemn knot
scenic lotus
runic kraken
#

like it doesnt get turned enabled

clever shale
clever shale
scenic lotus
#

one of it have to fire

solemn knot
# clever shale wdym

on the first script you have kicksent.actived:connect() and same for the second one

coarse wraith
clever shale
scenic lotus
#

kickEvent:FireServer()

elfin timber
#

how do people handle vireportframes?
Do you make a camera whatever you call it in studio for each thing you wanna capture
or do you just script a camera

somber vault
#

y all how would I make a serverside footstep sounds system?

solemn knot
coarse wraith
coarse wraith
#

not bindable

solemn knot
#

on the client script do kickevent:FireServer()

solemn knot
#

not KickEvent.Activated:Connect()

solemn knot
clever shale
clever shale
solemn knot
solemn knot
runic kraken
coarse wraith
solemn knot
# runic kraken yes

set the variable out of both function's scope first so you dont have to define it each time it runs

celest cipher
solemn knot
celest cipher
clever shale
celest cipher
#

some place where some kids find devs

#

😭

solemn knot
clever shale
coarse wraith
coarse wraith
#

like print("Server:"..targetPlayer)

solemn knot
#

that'd be in the client

#

lemme write what would be in the server

solemn knot
runic kraken
#

litreally none

#

ignore the rescaler ones

clever shale
solemn knot
#

never for it was a local script

runic kraken
#

exact same

solemn knot
#

@runic kraken instead enabling and disabling an existing highlight, make it so when the prompt is shown it creates a new highlight and when its hidden it destroys that highlight

#

thats how i would do it

runic kraken
#

i did it before

#

ill try again

#
local highlight = nil

script.Parent.PromptShown:Connect(function()
    highlight = Instance.new("Highlight")
    highlight.Parent = script.Parent.Parent
end)

script.Parent.PromptHidden:Connect(function()
    highlight:Destroy()
    highlight = nil
end)
#

doesnt work for some reason

#

no errors

timid dawn
#

@everyone hiring scripters

solemn knot
#

instead of writing " local Hightlight = nil" just write " local highlight"

#

that will initialize the variable

runic kraken
#

nope

solemn knot
#

weird

#

give me a moment ill try it out

coarse wraith
#

:kick can only be called on the server

solemn knot
#

thats for the server

#

wait i forgot sum

coarse wraith
solemn knot
#

yeah

#

it should work now

somber folio
#

can somebody help me with a code for my shops?

obsidian glacier
#

Yo I can help

somber folio
#

i got my shop done

obsidian glacier
#

I can make u a animation if you want for free

somber folio
#

i need help with my auras and donations

solemn knot
obsidian glacier
somber folio
#

and opening a donation ara

#

area

obsidian glacier
#

I can make for free

somber folio
runic kraken
solemn knot
#

you could use the promptservice in a script in the starterplayerscript that's what i did

#

but if you do that its gonna work on every single prompt

#

so lmk if thats not what you're lookin for

#

dont mind the mutationdata and billboard variable btw i just ripped ts out of my own code lol

solemn knot
muted nymph
#

guys my game has a backdoor and some random guy gave himself admin. Does anyone know how i could find where theyre getting in?

runic kraken
solemn knot
runic kraken
solemn knot
#

yw

clever shale
#

@solemn knot it errors and says

solemn knot
#

then it means that targetplayer is nil

clever shale
#

I put my own name tho

solemn knot
#

hol on

#

before the variable put "print(PlrWhoSent,Targetplayer)"

#

for troubleshooting purposes

#

then show me the result

clever shale
#

I didnt even like run it tho

solemn knot
#

huh

clever shale
#

like shouldnt this function only be called when i put a player name and press send

solemn knot
#

i see

solemn knot
clever shale
#

lemme see if i made any mistakes

solemn knot
#

check your code and make sure there isnt any other kickEvent:FireServer()

clever shale
solemn knot
#

nah

#

wait

#

actually

clever shale
#

idk if this is something that might mess it up, but for some reason my server script is acting weird

solemn knot
#

KickName

#

i forgot about that

clever shale
solemn knot
clever shale
solemn knot
#

it should be KickEvent.OnServerEvent(KickServer)

clever shale
#

btw am i able to get kicked in roblox studio or do i need to publish and test in roblox?

solemn knot
#

also on the client its kickEvent:FireServer(KickName)

solemn knot
clever shale
#

Ill try it

solemn knot
clever shale
solemn knot
#

oh

#

am duumbb

#

i forgot :connect

#

oops

#

its KickEvent.OnServerEvent:Connect(KickServer)

#

how did i forget

clever shale
#

I THINK IT WORKS

solemn knot
#

it should yeah

clever shale
#

It like freezes my character in roblox studio, but i assume that means im getting kicked

#

ill try publish and test it

clever shale
solemn knot
#

yw

glacial kestrel
#

trying to make papers please but for retroslop avatars

#

how should I handle the character creation

#

first idea was randomly generating one and then assigning slop points depending on the items it’s wearing

#

I’m concerned on how it’ll look

#

any alternatives?

loud swallow
#

can someone help me, im using tween+ and it sends my npc -340282346638528859811704183484516925440 studs away

glacial kestrel
#

getting avatars from people

#

but then how would I assign points

celest cipher
loud swallow
# celest cipher

slow down or speed up the initial audio file and use it in slowed down or sped up version

#

so uh you can speed it up by 5 and use 0.2 speed in studio

umbral elbow
#

what is the point of tables?

#

like what is tables used for

loud swallow
umbral elbow
#

ik you store data

umbral elbow
loud swallow
#

ok ok

umbral elbow
#

but how would you use it to your benefit in your game

loud swallow
#

you can iterate over them

#

and pack them

umbral elbow
loud swallow
#

you can get tables length and stuff which is also usefull

umbral elbow
#

and then refer to them whenever you want

celest cipher
loud swallow
umbral elbow
loud swallow
umbral elbow
loud swallow
#

i think so

umbral elbow
#

why would yt tutorials teach both?

loud swallow
#

those are just different types of table

umbral elbow
#

I just had 42 grams of protein

loud swallow
#

but for me its the same

#

they do the same

umbral elbow
loud swallow
#

arrays - indices and dictionary anything

umbral elbow
#

mkay

cosmic spade
#

yo im trying to make a script for when a player touches a part the word hello is print but it aint working

#

cld any1 help

peak jolt
#

or "if player then" if that doesnt confuse you

cosmic spade
#

ok

bitter harbor
#

GUYSSSS

bitter harbor
#

@cosmic spade

#

replace hit with touch

#

want me to make you a script

cosmic spade
#

alr ima try it

bitter harbor
#

or just correct yours

#

@cosmic spade

cosmic spade
#

i apreciate it but i want to learn it on my own

bitter harbor
#

i can teach you

cosmic spade
#

really? you mean for free?

bitter harbor
#

yes

#

ofc

#

@cosmic spade

#

you are new to scripting?

#

part name pls

cosmic spade
#

yh i js started tdy

somber thunder
#

any scriptor wanna create a game togheter?

cosmic spade
vivid acorn
bitter harbor
#

remove the first local

#

remove everything

#

we start from the begining

vivid acorn
somber thunder
# vivid acorn what type game?

its just a cash grab game that is low quality simple and fun to play beceause otnother game has it and its been played a lot but i cant say all to much

bitter harbor
bitter harbor
inner tundra
bitter harbor
#

@cosmic spade delete everything we start from the begining

cosmic spade
#

ok

bitter harbor
#

example

#

local brick = game.workspace.touchpart

#

you put it?

#

@cosmic spade

inner tundra
#

he is thinking vro

#

he is remaking the wheel in his brain

cosmic spade
#

yeah

bitter harbor
#

2

cosmic spade
somber folio
#

can some one help me script my game

#

i only need 2 things

bitter harbor
bitter harbor
umbral elbow
#

Do this

cosmic spade
umbral elbow
#

It will work

bitter harbor
#

BROOOO

inner tundra
#

delete now 😡

bitter harbor
#

LET HIM LEARN STEP BY STEP

umbral elbow
#

ah

#

I see

cosmic spade
#

Das not how you teach someone lol

umbral elbow
#

i didnt know we were teaching

bitter harbor
#

local brick

#

space

cosmic spade
#

Alr

umbral elbow
#

anyway you should instead just make the brick a variable and do

brick.Touched
umbral elbow
#

Touched is an event so you add a connect

cosmic spade
#

Anyways yeah what next

umbral elbow
#

brick.Touched:Connect
bitter harbor
bitter harbor
umbral elbow
#

Everytime you type an event you add a connect

#

And put function

bitter harbor
umbral elbow
bitter harbor
#

and what made it function

umbral elbow
#
brick.Touched:Connect(function(hit)
inner tundra
#

peak

bitter harbor
umbral elbow
#

you add the hit in the parenthesis to name your function

bitter harbor
#

(function(otherpart)

cosmic spade
#

Give it a second

umbral elbow
#

but keep in mind when the function ends you can no longer use the function

bitter harbor
#

now if statements

cosmic spade
bitter harbor
#

now

#

if PartIsTouched == false then
PartIsTouched = true

bitter harbor
cosmic spade
#

what

bitter harbor
#

brick.Touched:Connect(function(otherpart)

cosmic spade
#

Alr

bitter harbor
#

Did you put this ?

if PartIsTouched == false then
PartIsTouched = true

cosmic spade
#

Done

#

Yes

bitter harbor
#

alright

#

so now

cosmic spade
bitter harbor
#

done?

cosmic spade
#

Yeah

bitter harbor
#

now so that it doesn’t send a lot of messages

#

we will add

#

task.wait (1)

#

you can put any number you want

cosmic spade
#

Alr done

bitter harbor
#

print(“hello”)

cosmic spade
#

Done

bitter harbor
#

it works test it

cosmic spade
#

Ok gimme a min

#

Nth...

bitter harbor
#

@cosmic spade

cosmic spade
#

Hmmm

bitter harbor
#

it doesn’t work?

cosmic spade
#

No

bitter harbor
#

it works?

cosmic spade
#

No

bitter harbor
#

bruh

#

send me ss

#

screenshot the script

cosmic spade
#

Gimme a sec to ss it

bitter harbor
#

add

#

partIsTouched = false

simple axle
#

I am guessing that he wrote "touch" instead of " touched".

cosmic spade
bitter harbor