#code-discussion

1 messages · Page 43 of 1

candid kestrel
#

because that literally justy gives u the steps

nimble dawn
#

Learn a little then try applying it to something

candid kestrel
#

on what to do

candid kestrel
nimble dawn
#

I've made a door, a drawer and a window so far

thorn helm
#

i was watching that a couple days ago 😭

nimble dawn
#

Probably going to try making a house with all the stuff

nimble dawn
#

You have to practice and use what you learn on other things

light igloo
#

I went about it a different route

nimble dawn
#

Like if I watch a tutorial I always try to put my own spin on it so I'm doing more than following steps

light igloo
#

I started watching brawldev first

#

finished all his beginners and advanced

nimble dawn
#

Which is why I HATE 🤢 prox prompt

nimble dawn
light igloo
#

started my own project, and just kept going

light igloo
nimble dawn
#

Well well well

light igloo
#

by the time I finished both his beginners and advanced, I knew how to code anything on my mind

#

you just have to practice

candid kestrel
nimble dawn
#

Yea

#

I'm a visual learner so I HAVE to see it work to really understand it

#

And I get overwhelmed when there's not a set structure

light igloo
nimble dawn
#

So learning on my own would end in disaster 😭

light igloo
candid kestrel
#

but i will say, it makes the outcome way better since its pretty good with longevity

light igloo
light igloo
candid kestrel
#

but when i made the same system outside of oop i didnt have any problems

light igloo
candid kestrel
#

and my other scripter had the bright idea to use state managers for the player so im not gonna like tear down the whole thing and restart

heady wyvern
#

u watch these tutorials only to be more confused to end up less confused the more u try

#

how it worked out for me

light igloo
heady wyvern
#

state manager means everything is stored in one place right

#

@light igloo

light igloo
#

yeah a state manager module is like a centralized module for your states

heady wyvern
#

oop states?

#

first time i heared that word so im confused

light igloo
#

Like states in general

#

States your player would be in

heady wyvern
#

oh so like blocking for instance

nimble dawn
#

What are some examples of states

heady wyvern
#

ok i understand

light igloo
#

Yeah like blocking

heady wyvern
#

alive maybe

#

so u have their methods stored in that one module

light igloo
#

I’m creating an fps system rn so something like reloading is a state or sprinting

heady wyvern
#

makes sense yea

nimble dawn
#

Oh

#

So the states are hand made

#

Then stored

#

I thought it was like a service

heady wyvern
#

yea u make them depending on what you want ur players being able to do

light igloo
#

Yeah and you can decide what are you allowed to do and not in that specific state

nimble dawn
#

I see

#

So I'd use states to create endlag?

heady wyvern
#

no

#

like ur character cant run while swimming

#

this just an example

#

or jumping

nimble dawn
#

Does it only apply when in the state or can you stretch it?

ionic eagle
#

lf scripter im broke rn so no pay ig

heady wyvern
#

depends how u want it

#

you control everything

nimble dawn
#

Ohh

heady wyvern
nimble dawn
light igloo
heady wyvern
#

worry about

hardy pilot
heady wyvern
#

variables,scopes,loops,functions,propreties

#

what did iforoget

hardy pilot
#

Worry about threads, they're fun once you get it

light igloo
heady wyvern
#

i forogt yea

light igloo
#

And accessing and utilizing all the Roblox api

#

And also OOP

heady wyvern
#

oop is more

#

advanced

#

functional will do as fine

#

oop could require metatables if u wanna have a more readable approach

light igloo
#

Well yeah but like the first step was lua syntax in general such as variables loops function and tables and all that

#

Then I went to utilizing all the Roblox api

#

Then I went to OOP, that was kinda how I progressed

heady wyvern
#

for my case

#

i made two games before even knowning what oop wsa

light igloo
#

Same tbh, I made 2 projects but never finished them because it got too messy and I was sending remote events and bindable events everywhere before I discovered oop

#

Yo where did you learn how to do ui like that

fossil current
#

im noob how to u open the right side script thing

green glacier
fossil current
#

ty

lofty prism
#

does someone know a good scripting guide?

olive ingot
# lofty prism does someone know a good scripting guide?
olive ingot
#

np

remote bear
lofty prism
lofty prism
remote bear
lofty prism
#

"im just gonna ruin it"

lofty prism
carmine yacht
stuck basalt
remote bear
lofty prism
#

PLEASE DONT

remote bear
stuck basalt
olive ingot
lofty prism
olive ingot
#

?

remote bear
upbeat rock
#

Is there any websites where I can learn Lua interactively? I've been looking at the basics on YouTube and honestly it's the most mundane and boring thing which is a stark contrast to when I learned web development via interactive lessons

upbeat rock
green kraken
#

I had an epiphany. It's a game that will become the next big money maker for roblox. The scripting is hard and challenging though, it has to do with Marketplace, Player created items, and systems like pls donate. If anyone wants to learn more or is interested then dm me.

upbeat rock
green kraken
upbeat rock
#

When you're more into development then message me 😭

#

I'm kind of just learning lua so I can work on a small passion project, I don't have the hardware for game development (my laptop can barely run studio and dies without bloxstrap) so I'm kinda just trying to cram a bit of knowledge so i can get straight to business

eager magnet
green kraken
#

If you have any questions here though if they aren't super revealing I would love to answer them

upbeat rock
#

What is like the main premise

#

Is it just another catalogue avatar game

green kraken
#

No, please donate meets the roblox marketplace meets starving artists

#

Plus an advertisement game

eager magnet
green kraken
upbeat rock
eager magnet
#

?

upbeat rock
#

Can't you sell outfits?

eager magnet
#

what would they be selling?

#

cuz you can't mesh in roblox

green kraken
# eager magnet isnt yours the same?

Nah, You can create your own clothes to sell in the game through painting, or you can take the items uploaded to the roblox marketplace and showcase them in shops for players to buy and look at

upbeat rock
#

I can ask them more about it

green kraken
upbeat rock
#

I don't remember it off the top of my head, but it's basically just for clothing groups right?

green kraken
#

It can be for UGC

candid kestrel
upbeat rock
#

She described it as "Kind of like rate my avatar but not toxic and for clothing and ugc"

green kraken
vernal peak
#

guys what does :GetService mean

#

i keep seeing it in other codes

#

wait nvm

#

i got it

muted quartz
#

Ray cast, hitbox, or animation events?

candid kestrel
#

makes the animation fit the feedback

tawdry terrace
#

local character = player.Character or player:WaitForChild("Character")
if not character then return end

#

does character include models with humanoid

#

so like npcs

proper veldt
#

Is the purchase Id of dev products different for the same dev product, assuming you buy the same one twice?

stable verge
tawdry terrace
#

like every character should have those two inside them

stable verge
tawdry terrace
#

ok

#

👍 kudos

humble plume
#

does anyone have go to useful libraries for simplifing scripts

tired totem
#

anyone tryna be a mod in my server, we looking for devs that can help us improve our roblox game as well! DeLuX CHILL is a laid-back server for meeting new people and making friends. The game we’ve got in the works is similar to Mic Up but with a fresh map and some new mechanics. If you’re up for it

onyx inlet
#

Ill do it for $24.75 an hour

remote bear
golden mauve
#

need to make a system where the user gets to place their building anywhere inside of a certain area. It cant be placed in the same area of another building and it should be able to rotate. Any tips on the easiest way to implement this

native orchid
jovial meadow
#

someone please help me with attaching this weapon to my rig

bleak glade
balmy wedge
safe sail
#

Anyone know how to make a flight system

limpid badge
#

like what?

odd galleon
#

hd admin fly

mint cloud
sand cedar
zealous tartan
#

Hypothetically....
For a character customizer (roleplay game) I am looking for accessory customization (scaling. rotating, moving) WITH visual axes to move it, how complex would this be for a scripter and how much would you reckon is a reasonable price to get this paid for?

sand cedar
#

So I still can't figure out how to make my walkspeed UI display only two digits at a time rather than 16.32932 lol can't get anything to work.

#
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local label = script.Parent

humanoid.Running:Connect(function(speed)
    label.Text = ""..speed
    
end)
mint cloud
#

Math.floor(speed/(10**(Math.floor(Math.log(speed))-1))

sand cedar
mint cloud
#

Did the label change?

sand cedar
#

or I just don't know how to implement it

#

probably that

mint cloud
#

Is the text showing, just the number is wrong?

mint cloud
#

With my suggestion?

sand cedar
mint cloud
#

Lemme tweak it rq with more parentheses

sand cedar
mint cloud
sand cedar
#

💔

mint cloud
#

Still doesn’t show anything?

sand cedar
#

Doesn't move

hoary cedar
mint cloud
#

Either I’m using the wrong syntax or my math skills are trash

hoary cedar
#

Apply it to the number you assign to your TextLabel

mint cloud
sand cedar
mint cloud
#

😭

#

I legit used math.floor in my suggestion I’m actually cooked

hoary cedar
#

Overengineering moment

sand cedar
#

When I say I'm new I mean I'm new 😭

mint cloud
#

This is why i shouldn’t be yapping at 2am

lean ocean
sand cedar
#

I am throwing the towel in for the night

mint cloud
#

@hardy pilot you hear that

#

Gn chat

hoary cedar
sand cedar
hoary cedar
#

It's the difference between

walkSpeedDisplay.Text = walkSpeed

And

walkSpeedDisplay.Text = math.floor(walkSpeed)
#

Take a moment to reflect on your critical thinking skills

hoary cedar
#

As simple as a baking instruction

sand cedar
#

I just started this like two days ago, I don't know shit lol

#

I only ever built and did some modeling

hoary cedar
#

Fair enough

hardy pilot
twilit garden
#

Guys, I need some help, which I can’t figure out. I have block on ”F”, but when I type F on the chat, it uses the block.

hardy pilot
heady wyvern
#

drop one line on top of the script

#

have the second arg then

#

type if arg then return end

hoary cedar
slender olive
#

@tired hamlet yoooooooooooooooooooo

young mirage
#

Am I tripping or is this code like harderroring cause I have stared at this checking forums for like 15 minutes and still dont understand why its broken

#

oh wait hold up

#

Yup nvm

#

its still broken

#

fixed i had to anchor the part cus it needed to be anchored for what reason

#

whatever

#

makes no sense since it had cantouch cancollide off but whatever

silver verge
#

cant tell from this

#

pay someone else to fix it

stuck tartan
silver verge
#

nothing, pokemon brick bronze is js ass

#

tell the dude you dont script

stuck tartan
#

for this simple thing

#

he said its very simple

silver verge
#

its not simple because the codebase is from 2017

#

if you dont script, youre not fixing it

stuck tartan
#

do u script

silver verge
#

i do

stuck tartan
#

do yk how i can fix this

stuck tartan
silver verge
#

its an ass codebase

#

youre not gonna be able to fix it without digging through code written in 2017

#

and you dont script

#

so youre not gonna be able to fix it

stuck tartan
#

aww dang i needa find a scripter

lofty plinth
#

Ur gonna get urself banned 😿

stuck tartan
silver verge
stuck tartan
silver verge
#

then youre fine

lofty plinth
#

Eh not always

#

They go for people with tc access from time 2 time

#

Use an alt if possible

ruby cipher
ruby cipher
#

Stop it

stuck tartan
#

wdym is aman do it for another prozying vadixal y

#

is prozying money right

somber vault
#

hello geeks

vernal peak
#

what does RemoteEvents do? I couldnt understand what it was saying in the roblox script docs

spiral jungle
#

No

scarlet viper
#

@ruby cipher hi

#

Dms pls

golden crown
#

anyone know how to zoom in/out the microprofiler on a touchpad (mac)

spiral jungle
#

Hacks

compact wing
#

looking for a script for a pvp gun game thats can have a lot off succes, we will do 50% 50% on all sell

spiral jungle
#

No

coral oyster
#

anyone knows how to fix it? i'm still able to use shiftlock even this option is disabled

wraith crag
#

Has anyone used viewports without a camera instance? I was testing some things and found out that models still render inside a camera-less viewport as long as they are positioned relative to a 0,0,0 world position and I based part of my item frames ui on it

I have yet to find any mention of this behavior on the devforum or anywhere else

Reason I'm asking is that I'm running into a lot of unexpected behavior, for example: manually copying a model from one viewport into another viewport results into the second viewport displaying the model differently (it basically gets flipped upside down)

I know this is a hacky way to do this but was wondering if anyone tried it before and if I'm just doing something wrong or if it's just not meant to work like this at all

carmine yacht
dark karma
#

Whats the Best blind buy best ever laptop for roblox developers ?

molten creek
#

damn are any good scripters here laugh

agile fulcrum
#

anyone know like a youtube tutorial to make a survival game

azure granite
#

anyone know the easiest way to round something to two decimal places every time

#

who ping me

somber vault
somber vault
azure granite
#

alr

shut sorrel
#

become a solo dev, learn how to do everything yourself, and keep 100% of profits 😎

uncut elk
unreal herald
#

ive rewrote and added handshake lmk! if u wana test
edit: wasnt using those btw just env take overs targeted to awp, now its pretty much any exector

somber vault
unreal herald
#

reason i mention those is that because they have buffers and faster reponse time

somber vault
#

Oh

#

Idrk I js did it

unreal herald
unreal herald
#

learn this frame work if you need anything to understand lmk!

somber vault
#

Hmh okay!

unreal herald
# somber vault Hmh okay!

also dont use netray its DEPRECATED now i forgot i mean its good but you prolly wont need it, its only event based

unreal herald
somber vault
#

Alrighty

unreal herald
# somber vault Alrighty

Shrug i mean u could use packet it has both invoke,fire event and clients for both method (fire client, invokeclient)

somber vault
unreal herald
somber vault
rose harness
#

can any1 help me with a datastore script i hve to msg it to you bc its too long

ruby cipher
somber vault
short notch
#

barely anything works lol

lean ocean
woven igloo
#

holy crap 😭

pure sapphire
#

local pointPart = script.Parent

-- Color
local pointPart = script.Parent
local blue = Color3.fromRGB(0,0,255)
local green = Color3.fromRGB(0,255,0)
local red = Color3.fromRGB(255,0,0)

-- Points value
local smallPoints = 10
local largePoints = 50
local losePoints = 100

-- Referencing our service that will be needed
local Players = game:GetService("Players")

local function givePoints(Player)
local currentColor = pointPart.Color

local playerStats = Player:WaitForChild("leaderstats")
local playerPoints = playerStats:WaitForChild("Points") 

if currentColor == blue then
    playerPoints.Value += smallPoints
elseif currentColor == green then
    playerPoints.Value += largePoints
else  
    playerPoints.Value += losePoints   
end

pointPart:Destroy()

local particle = Instance.new("ParticleEmitter") 

particle.Color = ColorSequence.new(currentColor)

local playerCharacter = Player.Character
particle.Parent = playerCharacter:WaitForChild("Head")

task.wait(5)
particle:Destroy()
end

local function partTouched(otherPart)
local player = Players:GetPlayerFromCharacter(otherPart.Parent)
if player then
givePoints(player)
end
end

pointPart.Touched:Connect(partTouched)

-- Creating a loop for the changing colors
while true do
pointPart.Color = blue
task.wait(1)
pointPart.Color = green
task.wait(1)
pointPart.Color = red
task.wait(1)
end

shut sorrel
maiden cedar
#

yo

maiden lagoon
#

lmao

brave cairn
thick sail
#

Quick question fellas! I've made my own data replication service and this is my setup (PlayerController requires all these child modules once data has been loaded). When handling state updates, should I process everything inside PlayerController or inside each individual child module?

#

For example, as of right now each module is listening to event updates

analog sandal
#

how to fix that error? im working on a local plugin and the toolbar/button doesnt show up

mellow grotto
#

do anybody how to make players walk like thier drunk

junior glen
#

yeah motor 6d

bright ice
brave cairn
jolly harbor
#

How do I optimize .Touched events

bronze depot
#

Does someone know why my group is verified but i aint ?

bright ice
slender salmon
copper jay
#

did they deprecate AnimationPriority?

stuck radish
wintry ore
#

how do i add when you click it go back to hold animation?


local tool = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")


local holdAnimationId = "rbxassetid://79494928146312"
local clickAnimationId = "rbxassetid://108638884066291"

local holdAnimTrack
local clickAnimTrack


local function loadAnimation(animationId)
    local animation = Instance.new("Animation")
    animation.AnimationId = animationId
    return animator:LoadAnimation(animation)
end


local function disableDefaultToolAnimation()
    local animate = character:FindFirstChild("Animate")
    if animate and animate:FindFirstChild("toolnone") then
        animate.toolnone:Destroy()
    end
end

tool.Equipped:Connect(function()
    disableDefaultToolAnimation()

    if not holdAnimTrack then
        holdAnimTrack = loadAnimation(holdAnimationId)
        holdAnimTrack.Priority = Enum.AnimationPriority.Action
    end

    holdAnimTrack:Play()
end)

tool.Activated:Connect(function()
    if not clickAnimTrack then
        clickAnimTrack = loadAnimation(clickAnimationId)
        clickAnimTrack.Priority = Enum.AnimationPriority.Action
    end

    if holdAnimTrack.IsPlaying then
        holdAnimTrack:Stop()
    end

    clickAnimTrack:Play()


    clickAnimTrack.Stopped:Once(function()
        if tool.Parent == character then
            holdAnimTrack:Play()
        end
    end)
end)

tool.Unequipped:Connect(function()
    if holdAnimTrack and holdAnimTrack.IsPlaying then
        holdAnimTrack:Stop()
    end
    if clickAnimTrack and clickAnimTrack.IsPlaying then
        clickAnimTrack:Stop()
    end
end)
sturdy briar
#
tonumber("Five")

😈

latent gust
#

Please stop

rustic inlet
#

No begging use our channels properly

wheat trellis
#

Just find someone to do it for free at that point, ask a friend

onyx inlet
#

print(1 + "1")

junior glen
#

hii

zealous blade
#

do body velocities not work on big objects?

brave cairn
craggy niche
#

i made some money doing a commission for a guy who asked for a small thing in normal chat

copper apex
vernal peak
#

can someone send their portfolio so I can get an example

hardy spindle
craggy niche
hardy spindle
#

But

#

Do that

craggy niche
hardy spindle
#

Fair

unreal herald
vernal peak
#

if I do free commissions to build my portfolio, is that smart or nah

near wing
#

does anyone know how Randomizer gets all of their guns

lethal sapphire
winter forge
#

can someone explain collection service

neon plover
#

basically collection service works by tagging whatever instance you'd like with a specific tag, almost like an attribute

#

however it makes it much easier to access with certain functions like "GetTagged"

#

say for example in my game we use it to control the kill bricks, so that all we have to do is add a tag to the kill brick (using a tag editor plugin) and that will automatically make it a kill brick

#

like here you can see it running each tag for the kill brick, and setting up the touched event for it etc etc

winter forge
#

how can i create a table with it i know how to add tags and loop over a table

#

how do i get the table

neon plover
#

wdym

#

i believe ur looking for the gettagged function which i've given you the exact code up there

winter forge
#

what does :tagged do

neon plover
#

that loops through every single tagged item

winter forge
#

thank you bro

neon plover
#

ofc man 🙂

winter forge
#

i will use it

neon plover
#

yep also

winter forge
#

if you know

#

if you know

neon plover
winter forge
#

can you tell me if

neon plover
#

here this is good

winter forge
#

if i use a touched event and theres constantly other parts touching parts

#

is that gonna effect performance

#

im checking for humanoids

#

but

#

still it triggers when something touches it

#

so

neon plover
#

add a touched cooldown to it

winter forge
#

what do you say to that?

neon plover
#

to prevent it spamming multiple times

#

then you'll be okay

winter forge
#

will it still trigger every second for example

neon plover
#

No you can alter the code so that it cooldowns

winter forge
#

or roblox automatically undoes

winter forge
neon plover
#

so say for us when a player touches a portal it checks if they are on cooldown, if they are then they have to wait 5 seconds before itll fire again

winter forge
#

wait

neon plover
#

plenty of resources online, but your looking for anything to do with "cooldowns" or "debounces"

#

however I don't use the os feature, just task.wait is sufficient

sacred mauve
#

can anyone spare 1k rbx 💔

remote mirage
#

HELLO CHAT how do i check a player's team in a server script?

remote mirage
sacred mauve
#

ask redit

#

if its not on redit its nowhere

winter forge
#

is it not possible in a normal sense

remote mirage
winter forge
#

first get players service game:GetService("Players")

#

then check when someone joins

#

define players service before that tho

#

PLAYERSERVICE = game:GetService("Players")

remote mirage
#
local Collect = game:GetService("CollectionService")
local Players = game:GetService("Players")

for _, part in Collect:GetTagged("Red") do
    part.Touched:Connect(function(hit)
        print("hi")
        wait(10)
    end)
end
#

what i have so far

winter forge
#

PLAYERSERVICE.PlayerAdded:Connect(Function())

#

in the function do it

remote mirage
#

where

winter forge
#

each added player is gonna be added in the argument you put

remote mirage
#

hmm

winter forge
#

if you put player as the argument in the function its gonna be player each added

#

well if you dont even understand i understand because im not good at explaining

#

i might even not know what im doing

#

ask ai maybe?

remote mirage
#

i get the general idea

winter forge
#

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

end) this is something from devforum

#

when a player is added its plyr

#

right?

left crypt
#

@remote mirage what are you trying to do

winter forge
remote mirage
left crypt
#

so u want to make a part which only a certain team can go through?

#

@remote mirage

remote mirage
left crypt
remote mirage
winter forge
#

wait im doing a script on that

remote mirage
#

CHAT I DID IT

left crypt
#

serverside

script.Parent.Touched:Connect(function(hit)
  local Tag = Instance.new("Tag")
  Tag.Name = "Team"
  if game.Players:GetPlayerFromCharacter(hit.Parent) then
    Tag.Value = 1 --Just change it if you want a team name  
    Tag.Parent = hit.Parent
  end
end)

localscript

local Wall = game.Workspace:WaitForChild("Wall")
local LocalPlayer = game:GetService("Players").LocalPlayer

Wall.Touched:Connect(function(hit)
  if game.Players:GetPlayerFromCharacter(hit.Parent) then
      if game.Workspace[tostring(LocalPlayer.Name)].Team.Value == 1 then
          Wall.CanCollide = false
      end
  end
end)
left crypt
left crypt
remote mirage
#

i did this if anyone is curious

local function onTouch(part, hit)
    local player = Players:GetPlayerFromCharacter(hit.Parent)
    if player then
        local team = player.Team
        if player and team.TeamColor == BrickColor.new("Persimmon") then
            print("Player on team " .. team.Name .. " touched the part")
        else
            print("Blue touched")
        end 
    end
    wait(10)
end
remote mirage
winter forge
#

local TeamService = game:GetService("Teams") local Tagser = game:GetService("CollectionService")

local Team1 = TeamService.TeamCollisionTeam

local Team2 = TeamService.TeamUncollide

function tagscript(Added)
workspace.PartYOUCHOOSE.Touched:Connect(function(touchedthingthattoucheditbasically)
if touchedthingthattoucheditbasically == Added then
workspace.PartYOUCHOOSE.CanCollide = false
end
end)
end

Team1.ChildAdded:Connect(tagscript(Added))

#

@remote mirage

#

its not correct there might be errors

remote mirage
#

thanks for trying though

left crypt
winter forge
#

general idea is when a player from that team touches that part it becomes uncollidable

left crypt
remote mirage
winter forge
#

you can change it

remote mirage
#

yuh ik

winter forge
#

use collection servervice

#

the thing is if you do it through a serverscript its not gonna work that good as its gonna be for every player

remote mirage
#

its suppose to be for every player

left crypt
#

do yaall know how much robux i need for a game to blow?

bleak glade
remote mirage
remote mirage
hollow bear
#

you used ai for that i can just tell 🙏

remote mirage
#

not rlly but ok

hollow bear
#

yeah 100%

#

no one but ai codes like that

bleak glade
hollow bear
remote mirage
#

i tried to reduce it with wait but realized i don't care if it's printing

bleak glade
#

just use a debounce method for each player

#

assuming thats on the server

hollow bear
#

the wait would do absolutely nothing

remote mirage
#

yeah thats what i said buddy

hollow bear
#

no you didnt

remote mirage
#

you a hoe fr Facepalm

hollow bear
#

you said you added the wait because it was printing too much

#

except thats just what the ai told you

#

and thats what you went with

remote mirage
#

god you a fan

hollow bear
#

say on god thats not ai

bleak glade
hollow bear
#

i can just tell

craggy niche
#

use grok

hollow bear
#

yeah im not saying its bad or anything but atleast be truthful 🙏

remote mirage
craggy niche
#

anything simple it can code the whole game

#

like cash grabs

craggy niche
#

and sometimes its mid

#

or doesnt work

remote mirage
#

it's a basic ahh script and you trying to tell me its ai 😭

hollow bear
#

but you need actual knowledge to use ai

hollow bear
#

i can TELL

left crypt
remote mirage
#

yeah bro you can TELL

bleak glade
hollow bear
#

it makes so many unnecessary variable and things

#

its just so obvious

#

why try hide it 🥀

bleak glade
#

its better to do if not then return end

hollow bear
dim rock
#

Hey could I get y'alls feedback on implementation? I'm hitting a wall with a physics sim problem and would aprpeciate a different perspective

dim rock
#
dodgeModule.dodgeHandler = function(dodgeType: string, player: Player, humanoid: Humanoid, Character: Model)
    local dodgeSettings = dodgeModule.dodgeSettings[dodgeType]
    local dodgeParallelSettings = dodgeModule.dodgeSettings[dodgeType .. "Parallel"]
    local globalSettings = dodgeModule.dodgeSettings.global
    
    dodgeUpdate:InvokeServer(true)
    
    --Prep Humanoid
    humanoid.AutoRotate = false
        
    --Init main vector
    local LV = Instance.new("LinearVelocity", Character)
    local Att0 = Instance.new("Attachment", Character.HumanoidRootPart)
    LV.Attachment0 = Att0
    LV.RelativeTo = dodgeSettings.RelativeTo
    LV.MaxForce = dodgeSettings.MaxForce
    LV.VectorVelocity = dodgeSettings.VectorVelocity

    
    --Init parallel forces to restirct movement in directions parallel to main vector.
    local LV_1, LV_2 = Instance.new("LinearVelocity", Character), Instance.new("LinearVelocity", Character)
    LV_1.Attachment0, LV_2.Attachment0 = Att0, Att0
    LV_1.RelativeTo, LV_2.RelativeTo = dodgeParallelSettings.RelativeTo, dodgeParallelSettings.RelativeTo
    LV_1.MaxForce, LV_2.MaxForce = dodgeSettings.MaxForce * dodgeParallelSettings.MaxForce, dodgeSettings.MaxForce * dodgeParallelSettings.MaxForce
    LV_1.VectorVelocity, LV_2.VectorVelocity = dodgeParallelSettings.LV1_VectorVelocity, dodgeParallelSettings.LV2_VectorVelocity
    
    --Cleanup
    Debris:AddItem(LV, globalSettings.force_ttl)
    
    LV.Destroying:Connect(function()
        --Clear humanoid state changes
        humanoid.AutoRotate = true
    
        --Destroy parallel instance
        LV_1:Destroy()
        LV_2:Destroy()

        task.wait(globalSettings.cooldown)
        dodgeUpdate:InvokeServer(false)
    end)
end
#

Core code itself is functional

#

issue is the results. Theres two difference force directions based on Hum state (running or midair)

#

the midAir forces dont apply consistently, depending on how long youve been in free-fall

craggy niche
#

how do i make my hitbox deal damage? im making a simple combat system

bleak glade
dim rock
#

im trying to standardize the results of the LinearForces applying in midair but I havent had any success

craggy niche
bleak glade
hollow bear
#

btw i recommend you say this in #code-help @dim rock alot of them are alot smarter then ppl here id say

dim rock
#

Ah I missed the channel

#

Thanks big man

hollow bear
#

all good

left crypt
novel island
#

hey uh
Im going through this old alvinblox video because i wanna learn how to make a projectile, but im not sure how to change its property from just killing you outright to applying velocity to the person hit

craggy niche
novel island
#

hella new to this kinda thing heres what the code looks like currently

winter forge
#

WHAT IS A LOOK VECTO

#

VICTOR

#

????_

remote mirage
#

victor

bleak glade
#

bodyvelocity is also depricated

novel island
novel island
bleak glade
novel island
#

na like
the code doesnt work currently i just am tryna make it work

bleak glade
#

ln 11 lookVector -> LookVector

lone saddle
novel island
bleak glade
novel island
#

uhh last error im getting is

remote mirage
novel island
#

player.Character is the issue

remote mirage
#

and madbukscripts can keep on hating

lone saddle
bleak glade
hollow bear
novel island
#

is it cus im only running it in playtest rather than team test

bleak glade
remote mirage
bleak glade
#

game.Players.localPlayer

local char = player.Character

novel island
novel island
remote mirage
#

everytime ive ever asked ai to code something because i was lazy, it coded exactly like that
it makes so many unnecessary variable and things
its just so obvious
why try hide it 🥀

hollow bear
novel island
hollow bear
#

😭🙏

remote mirage
#

bro.
i can TELL

hollow bear
novel island
bleak glade
#

im not even sure why people hate on AI

#

people who hate on ai are usually bad scripters

remote mirage
novel island
hollow bear
remote mirage
#

im just pasting what madbukscripts was saying to me

remote mirage
hollow bear
#

and now his pride is hurt

remote mirage
#

dumbass

novel island
hollow bear
#

very deeply

#

as you can see

remote mirage
hollow bear
#

its pretty obvious

bleak glade
#

do you guys use trove, janitor, or maid

remote mirage
#

your fatherless

#

i can TELL.

hollow bear
#

yup

remote mirage
novel island
#

now i need to figure out how to make it apply velocity to people on-hit

hollow bear
bleak glade
hollow bear
#

oh nah there is way more 🙏

novel island
bleak glade
novel island
hollow bear
bleak glade
novel island
#

i wanna figure out how to make line 21 apply velocity on-hit
because clearly it didnt work unless it did and i just havent checked properly

hollow bear
novel island
#

cus i kinda just slapped it in there and let jesus take the wheel but it didnt work

hollow bear
#

framework called knit

bleak glade
#

as knit was made by the guy who made rbxutil

hollow bear
#

oh fairs

#

never heard of rbxutil thats all

hollow bear
#

oh yeah those are all in knit

#

yeah

novel island
#

what do those actually do

#

i started coding like 2 days ago

hollow bear
bleak glade
#

modules that do something

novel island
hollow bear
#

youre doing really well icl

#

like genuinely

bleak glade
#

rbxutil doesnt have janitor

novel island
#

im usually an animator but im tryna learn code as fast as i can for a game my friends helping me make

novel island
bleak glade
#

i prefer janitor over trove

hollow bear
hollow bear
bleak glade
#

not a big promise person unless its like js

novel island
hollow bear
#

to get to that point it took alot more time for me

#

fairs

hollow bear
#

(can)

bleak glade
hollow bear
#

oh

novel island
bleak glade
#

i use packets for communcation instead

hollow bear
novel island
hollow bear
#

ohhh

#

i didnt really read it fully mb

novel island
#

the punch is like
my first shit LOL

novel island
bleak glade
novel island
#

whatever the thing is

#

im not sure

hollow bear
#

yeah

#

thats good

bleak glade
#

learn actual things instead of making something

novel island
#

i tend to just find out on the day

bleak glade
#

then apply it

novel island
#

then not doing that next time

bleak glade
#

in 7 days you will use rojo

hollow bear
#

no but in just 2 days thats genuinely really impressive

novel island
hollow bear
novel island
hollow bear
#

just learn how to code dont worry about all the extras for a while

novel island
#

my coder friend told me task.wait was better than wait

novel island
#

so i exclusively use task.wait

hollow bear
#

its quicker

novel island
#

W

hollow bear
#

pretty sure wait() is like 0.087 and task.wait() is like 0.02 ms

#

probably less

#

i kinda forgot

#

its just better tho

bleak glade
hollow bear
#

yeah smth like that

#

task.wait() is just better in all ways basically

bleak glade
#

i usually just use task.delay instead

novel island
hollow bear
#

hmm

bleak glade
#

as i can cancel it and have it not delay the rest of the function

bleak glade
hollow bear
#

yeah

#

depends

#

task.delay is better for functions

#

outside of functions task.wait is better id say

novel island
#

i see

#

im tryna figure out why what i wrote isnt working

bleak glade
#

i want code to run after a second but code also runs after, so it delays

novel island
#

my main issue is tryna get it to interact properly

hollow bear
#

the maxforce already was that

#

oh wait mb it wasnt

#

1 less 0

novel island
#

make it apply that force

#

to the victim hit

hollow bear
#

right yeah ik

novel island
#

mb

bleak glade
hollow bear
#

no its fine its my fault

hollow bear
#

😭

novel island
novel island
bleak glade
#

never have and never will make combat stuff

hollow bear
#

ive genuinely never

novel island
#

do u know how to make it so it ummm
makes them like sit down

hollow bear
novel island
#

🥹

hollow bear
hollow bear
#

you can change the humanoid state

#

to sitting

#

i think

bleak glade
#

yes

novel island
#

or smthn

hollow bear
#

oh wait its even easier

#

Humanoid.Sit = true

#

its a property of the humanoid i think

bleak glade
hollow bear
#

if hit is the leg for example

#

the leg has no humanoid in it

bleak glade
#

you can loop the parent till the parent finds a humanoid

hollow bear
#

yeah theres defo a better way but i forgot

copper jay
hollow bear
#

oh yeah

novel island
hollow bear
#

wait i thought of smth

bleak glade
hollow bear
#

hmm idk maybe

bleak glade
#

if you hit an accessory it will be deeper nested

#

than just one parent

hollow bear
#

exactly

bleak glade
#

thats why i suggested the loop

hollow bear
#

wait ik how

quasi totem
#

/e :Destroy()

hollow bear
#

give sec

bleak glade
#

findfirstancestor

novel island
#

exactly what u said happened

hollow bear
#

define the player service first

#

and then

hollow bear
novel island
quasi totem
#

Game:Getservice

hollow bear
#
local plr = PlayerService:GetPlayerFromCharacter(hit.Parent)
local humanoid = plr.Character.Humanoid
red night
#

Someone hit me up with a Beam slash script

hollow bear
#

looks a little complex but

#

its not i promise

novel island
hollow bear
hollow bear
red night
#

What function makes it a custom rig can be animated

bleak glade
#

yeah always define constants at the top

novel island
hollow bear
#

get rid of the if statement

#

at the top

#

hit.parent child bla bla

novel island
#

ight

hollow bear
#

😭

novel island
#

then i just write ur shit in

hollow bear
#

replace if hit.parent child

#

yeah

novel island
bleak glade
#

either use themes or rojo to become a degen

novel island
#

oh i see

hollow bear
#

of everything

bleak glade
novel island
#

yurr dw i got that

hollow bear
bleak glade
#

not themes

hollow bear
#

light theme

novel island
#

it did that when i removed the if

hollow bear
#

thats what i meant

novel island
#

oh real

hollow bear
#

and then the end at 28

novel island
#

wicked

hollow bear
#

lol

#

does it work maybe 🥺

novel island
#

it did not like line 1

bleak glade
#

so real

copper jay
#

wingding lua

#

goes hard

hollow bear
#

oh mb

bleak glade
#

Players

hollow bear
#

Its just players

quasi totem
hollow bear
#

yeah not player service

#

Players

#

i forgot

#

in the ("Players")

novel island
#

o

#

Players again

#

right?

hollow bear
#

Yeah

#

well

#

yeah

novel island
#

erm

#

it does not like that

bleak glade
#

when the type assertion doesnt work why

hollow bear
novel island
#

wait is it PlayerService or PlayersService

quasi totem
bleak glade
quasi totem
#

But shouldnt really matter

hollow bear
quasi totem
#

Its just a variable

novel island
#

oh right cus its got local behind it

#

so it can be "bragh"

#

wicked

bleak glade
#

i forgot what local means ngl

#

local to the script probably

hollow bear
hollow bear
fossil current
#

how much Robux do u think a game on average could get from 1 million views, a cash grab

bleak glade
hollow bear
#

otherwise every variable would be local

hollow bear
bleak glade
#

also module variables

#

object variables

novel island
hollow bear
#

hm ig

novel island
#

then it says "Attempt to index nil with Character"

bleak glade
#

deep nested hit

#

or the hit just didnt happen i guess

mellow prawn
# novel island

i'd give you a better advice. stop what you're doing go study a bit and get some knowledge of what you're doin cuz you wont go far away with try and error

novel island
quasi totem
#

I learnt from existing scripts.

novel island
#

i know A WAY to get this to work but i dont know how to make it ignore the owner

bleak glade
#

i meant to respond to icedev

mellow prawn
novel island
quasi totem
bleak glade
quasi totem
#

Pretty much

novel island
mellow prawn
quasi totem
novel island
bleak glade
#

never nest more than 3 times or you get executed on the spot

stuck basalt
quasi totem
#

local me = game.Workspace.icedev
local clickdetector = script.Parent.ClickDetector

clickdetector.MouseClick:Connect(function()
me:Destroy()
wait(1)
print("Me Destroyed")
end)

glacial cradle
#

Does anybody know the purpose of streaming enabled? When I use it, it just causes a bunch of module errors and a bunch of script related issues since the object isnt there until rendered.

winter forge
# novel island

YOOO i found the error replace Players to PlayersService you did define PlayersService but not Players alright

#

@novel island

winter forge
glacial cradle
#

I did

#

just leads to stalling scripts

winter forge
#

ask ai

glacial cradle
#

alr

winter forge
#

sure

#

alr

elder fox
#

Bruh where can I find useTimer() and useRem() roact hook in lua

zenith minnow
#

Does anybody know of any good coding tutorials?

glacial cradle
storm nacelle
#

hey i need help seriously i have a weird issue going on where when i load into my game all textlabels uner playergui are invisible (false for visible) i dont know what is causing this, i have not recently done anytthing that couldve done this and i am working solo so it wasnt anyone else. im thinking there has to be a script that is setting all textlabels to false thru get descendants but i never added ant of theat.... can someone please help me figure out why this is happening? is there any way to dug and go back in time???/

thorny wigeon
#

why is my game still broken after i reverted

umbral carbon
#

Are you going to pay them?

vital bear
umbral carbon
#

What game?

vital bear
somber vault
umbral carbon
vital bear
winter forge
#

part = workspace:WaitForChild("Pa1rt")

part.Touched:Connect(function(x)
if x.Parent:FindFirstChild("Humanoid") then
x.Parent = HumanoidObject
HumanoidObject.Character.Health = 0
end
end)

waxen echo
#

First go check your input what is it reading

remote mirage
naive harness
#

Why is _G not used? Is it cause its slow or not secure?

umbral carbon
#

ModuleScript just make it all more organized
I could be wrong, they might have a decent use case

winter forge
#

why is my script not working

umbral carbon
#

@winter forge you fixed it right?

modest karma
#

Or security

#

And its just overall better to use module script or remote events

vital bear
#

Need 1 more dev for video (i got 6/7)

copper jay
#

trying to get this animation to play when the player chats "/drop", this is a localscript that gets placed into the playergui, anyone know why this isn't working (it doesn't even print)

wait(.3)
local Players = game:GetService("Players")

local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local Animator = Humanoid:WaitForChild("Animator")

local MainGui = script.Parent.Parent
local ScrollingGui = script.Parent

local AnimationIDs = require(script:WaitForChild("AnimationIDs"))

local MainAnimationHolder = Instance.new("Animation")
MainAnimationHolder.Parent = Character
MainAnimationHolder.Name = "EmoteAnimation"

local CurrentlyPlayingAnimation = false
local CurrentAnimation = nil

Player.Chatted:Connect(function(msg)
    if msg:sub(1, 5) == "/drop" then --// assetid 127834406270796
        print("found msg for dropping")
        local AnimationID = 127834406270796
        CurrentlyPlayingAnimation = true
        MainAnimationHolder.AnimationId = "rbxassetid://"..AnimationID
        CurrentAnimation = Animator:LoadAnimation(MainAnimationHolder)
        if CurrentAnimation then
            CurrentAnimation.Priority = Enum.AnimationPriority.Action3
            CurrentAnimation:Play(.2)
        end
    end
end)
hollow fable
#

remade robloxs proximity prompt system since its ugly

shell heart
#

nice

worldly heron
#

function updateGui()
    local screenCorners, corners = getScreenBounds(target)

    updateSelectionBox(highlight, screenCorners, false)
    updateSelectionBox(gui.OldContainer, screenCorners, false)
    updateBackgroundFillFrames(screenCorners)
end

workspace.Parent:FindFirstChildOfClass("ReplicatedStorage").Parent:WaitForChild("Run Service"):BindToRenderStep("SelectionUpdate", 10, function(dt)
    updateGui()
end)

is this a good way of scheduiling gui updates?

midnight dock
#

i welded this part to another part and i want to do something like
cannonBarrel.CFrame = cannonBarrel.CFrame * CFrame.Angles(math.rad(-0.5), 0, 0)

heady coyote
#

yo

#

someone need help?

midnight dock
#

me

heady coyote
#

im bored..

heady coyote
midnight dock
#

i want to rotate this part

#

by using
i welded this part to another part and i want to do something like
cannonBarrel.CFrame = cannonBarrel.CFrame * CFrame.Angles(math.rad(-0.5), 0, 0)

#

but when i do this the whole thing rotating

heady coyote
#

try rotating it from the weld
Because when welding it to another part both of the parts that were welded will act as one big part

midnight dock
#

okay

#

so cahnge the weild to like

#

a weild that will let me cahnge orientation

#

like a motor6d

heady coyote
#

try using something like this

weld.C1.CFrame *= CFrame.Angles(math.rad(-0.5), 0, 0)
heady coyote
#

ping me when you get a result

midnight dock
#

that looks better

#

wait

heady coyote
midnight dock
#

it keeps saying

#

Orientation is not a valid member of CFrame

#

cannonBarrel.Motor6D.C1.Orientation = cannonBarrel.CFrame * CFrame.Angles(0, math.rad(0.5), 0)

#

is the roblox stupid

#

does it think c1 is a cframe

heady coyote
#

oh yeah change Orientation to CFrame my bad

midnight dock
#

thats right

#

cause it doesnt matter

#

as long as u use cframeangles

#

and c1 is a cframe

#

just a differnt name

heady coyote
#

so.. did it work out?

midnight dock
#

it works

#

but now it like just flings somewhere idk what going on

heady coyote
midnight dock
#

can i screenshare

#

go to private 2a

#

im just gona show u

#

ion feel like plugging this microphone in

somber vault
glacial cradle
#

Yea

somber vault
glacial cradle
#

And does it only do it server side?

somber vault
#

I mean proberly since its in workspacee.

glacial cradle
#

So it would save memory client side since it’s avoiding server side rendering right

#

But then won’t any client scripts involving using an object fail?

somber vault
somber vault
#

if the script does it on its own maybe

#

but if it is an interaction from the player like holding e on something close then it should be fine

midnight dock
#

by multiplying the c frame

#

while i alread had a position set

gritty grove
#

why so many hackers in this server

midnight dock
#

it just starting multiplying all the axis

#

instead of just that one

midnight dock
heady coyote
gritty grove
plucky seal
#

what is the shortest implementation of fib possible in python

hearty salmon
#

or smthing like that

heady coyote
hearty salmon
#

is that code used in a star glitcher script

heady coyote
#

no

hearty salmon
#

oh alr

heady coyote
#

someone else needs help

cunning olive
#

if u need scripts done for free dm me

vestal summit
#

anyone here know how to add crash physics to f1 car?
I need a script where the cars wheels, rear wing, front wing disjoint when crashed.
the damage should depend on speed/force it crashes
please help

somber vault
#

the whole exploding thing idk you could use c frames for that though