#code-discussion

1 messages · Page 105 of 1

viscid finch
#

Exactly

#

If there's no pay

#

Just make it yourself

#

No need to "work" for someone

#

If they won't pay

night flax
#

fair enough

viscid finch
#

Unless you're planning to make it co own type thing

red stratus
#

Yea or offer % at least

lime gyro
#

Most of codes you write better be from the forum and use a better ai (paid ones )

wide sparrow
#

its not horrible, wouldnt say its the best way but its certainly not the worst, just be aware itll probably get a lot of stuff wrong our outdated.

lime hemlock
#

That is true.

ChatGPT is just trained to search the web, and use those references to build an answer to a prompt. But it's not proven that any of their models can reason. It only simulates it.

So sure, Roblox may have a site for referencing their Luau documentation, but ChatGPT simply can not read & act upon like us humans.

tardy niche
#

chatgpt can change rblx files now

real solar
#

I got a question for any scripters in here how much would it cost me for someone to tutor me for an hour in here in robux or cashapp

real solar
#

alright thank you

cinder vigil
#

is ther anyone who can learn me scripting?

delicate cedar
#

''' 1us '''

#

Hew to box txt

nimble nymph
#

is there a place where i can hire someone to find and fix a small bug for me?

#

for not so big of a price

zinc shard
#

ello can anyone tell me how to learn lua?

next hull
royal linden
#

i need a scripter to help me

#

why does it shake like crazy

somber vault
lucid pendant
#

wild

nocturne solar
#

everyone i have a question

how can you use the time position of a animation track to find what frame of that animation the character is on and use that data to interpret the position of different parts of the body during that frame
kind of a mouthful but i hope it makes sense what im trying to find

lucid pendant
lime gyro
coral prawn
#

What would be good? An explosion that uses just Spherecast for detection and Raycast for line-of-sight or do I simulate fragments? I kind of like the realism of fragment simulation but I'm not sure if it'll be fun.

#

I use FastCast which already works for my firearms, and I'll also be using them for projectiles in the future.

lime gyro
static coral
coral prawn
static coral
#

idk i dont use fastcast

coral prawn
static coral
#

why not just benchmark it yourself?

coral prawn
#

How do I benchmark exactly?

#

Just measure the time it takes for a script to run?

static coral
#

just compare the memory usage and frame time of each option

#

use debug library and dev console

lime gyro
#

so uhhh , I got a weird method
make a sphere that tweens size and detects the hit
and the hit detection should be randomly
while it's about let's say 20 stds , it's a guaranteed hit ,
and after that the more it get big the rarer it is to hit
more like gambling
@coral prawn

#

or magnitude idk

mental shoal
#

yo, im trying to tween items that the player collects, the problem is those same items are tools the player can equip, and tweening a tool is really glitchy, how would u guys do this?

lime gyro
#

one sec ember lily in stock

steep mango
#

im completely new to scripting can someone tell me the most efficient way to learn

somber vault
#

Dont take % unless the guy shows you his transactions page

#

Then decide

#

Jumpscare

somber vault
nocturne solar
#

how come AnimationClipProvider:GetAnimationClipAsync doesnt allow me to use the frame data for each limb, like the local rotations and stuff

next hull
somber vault
#

I dont know

#

If the doc is shit, then good luck

next hull
#

i hate doing animations in code

#

idk why but its always super complicated

#

i remember trying to make a sword swing and failing miserably

somber vault
#

Its not that bad

next hull
#

it was years ago

#

i mean new me would probably have an easier time picking it up

next hull
#

keyword: probably

next hull
#

it looks functional

somber vault
next hull
#

wth who writes like that

somber vault
#

Its normal code unformatted

next hull
#

i received pain just by looking at the image

#

wireless transmission

nocturne solar
paper imp
nocturne solar
#

is there another way to access local rotations of animation raw data

somber vault
somber vault
#

Go into code help for that

paper imp
#

And by the way its a custom suspension system

next hull
#

does it need to slope

paper imp
next hull
#

i can think of a system that would make the car always float horizontally above any object under it

#

but idk how to make it diagonal

paper imp
#

I don't need a system lol i already have one i just need to fix that tiny bug

next hull
#

i uh

#

dont think i can help

paper imp
#

No worries im asking everyone who comes accross this message

next hull
#

are u using raycasts?

paper imp
#

Yes

next hull
#

im assuming ur casting four rays from the four points and having the car suspend based on that

paper imp
#

Yes

next hull
#

i think ur gonna have to use constraints

paper imp
#

By making the car suspend i made a problem where it causes a chain reaction of suspending

next hull
#

cuz idk how to balance the car based on just the info from the raycasts alone ngl

#

hmmmmmmm

#

maybe weld 4 invisible raycasts points that serve only to give an updated position of where each tyre of the car should go, and move the car to those points with constraints?

#

nvm i am not familiar enough with constraints to provide more suggestions

paper imp
#

No problem

next hull
#

but i think u wouldnt be raycasting from the car itself but from some welded suspension points

lavish lodge
#

believe it or not.. Linux is 🤮

paper imp
#

1 second you b rought an idea to my head

next hull
#

Ok I was sleeping and I suddenly had an idea

#

U can set the position of the car to the average y coordinate of the raycasting part positions

next hull
# paper imp Hm

Oh and using the vector between two raycasting parts to find out how to rotate the car

#

or all four lol

#

but I don’t wanna do math rn to figure out how to do that

#

so ima go back to sleep

#

good luck

uncut isle
#

Does anybody know how to make a donation booth just like in Pls Donate? I cant get the passes to display, I think theres a problem with roproxy

nocturne solar
#
local AnimationClipProvider = game:GetService("AnimationClipProvider")

local animationId = "rbxassetid://507771019" -- Example: "Stylish" walk animation

task.spawn(function()
    local success, clip = pcall(function()
        return AnimationClipProvider:GetAnimationClipAsync(animationId)
    end)

    if not success or not clip then
        warn("Failed to get AnimationClip.")
        return
    end

    print("Got AnimationClip:", clip.Name)

    for _, keyframe in clip:GetChildren() do
        if keyframe:IsA("Keyframe") then
            print("Time:", keyframe.Time)

            for _, pose in keyframe:GetChildren() do
                if pose:IsA("Pose") then
                    print("Bone:", pose.Name)
                    print("Position:", pose.CFrame.Position)
                    print("Rotation (lookVector):", pose.CFrame.LookVector)
                end
            end
        end
    end
end)

can someone explain why this only returns the data for the HumanoidRootPart, and no other limb

bright portal
#

Any challenging to script things? Any except AI. I want to improve scripting, and id like to do challenge tasks for own improvement.

bright portal
solemn monolith
#

How do i detect player resetting their character? Not just death but resetting, i know its remote function but maybe someone got ready script?

viscid finch
#

Guys I've been struggling with an animations problem for a while.

Tool that is supposed to play an animation when activated shows this a "sanitized id" error. Need help quick.

viscid finch
#

Make a primitive replica of a popular game

quaint depot
#

Yo guys whats the best way to store skills with datastore?

#

i was thinking about creating numbervalues and then make the script refere to that number value. If the player has that numbervalue the skill will apear in the inventory of the player

wide sparrow
limpid current
#

I want to learn how to script on Roblox. What should I do to get started?

oak verge
# limpid current I want to learn how to script on Roblox. What should I do to get started?

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

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

▶ Play video
regal dagger
#

does anyone need anything scripted? if so, dm me

regal dagger
#

based on the thign needed to be scripted

mint cloud
#

Yabadabadoo

wary vessel
#

guys
how to get skill role
cant find on website

somber vault
regal dagger
#

like the parry system

somber vault
#

50% of the revenue

#

dont got funds

#

entire game

regal dagger
#

sorry nty

somber vault
#

i’m joking

worn flax
regal dagger
#

dm me if u need anything scripted

thick sail
#

Can you script me a game for 50 robux

lost yoke
little crest
lavish lodge
little crest
#

well

#

I appreciate the comfort of Windows but

lavish lodge
#

In what aspect is Linux better than Windows

#

Windows literally tops linux in security..

little crest
#

Linux has distros that have features dedicated per OS

#

For example

#

I want a lightweight distro ?

#

Linux mint / Lubuntu

#

I want security stuff without installing ton of things ?

lavish lodge
#

I don’t care about performance, I don’t have a bad PC
I care about security.

little crest
#

Arch/i forgot the other one

little crest
#

well

#

scary

lavish lodge
#

Windows has better security measures than Linux

little crest
#

prove it 🗿

#

no i mean

lavish lodge
little crest
#

NO I TRUST

lavish lodge
#

Does your distro enforce kernel module signatures?

little crest
#

CALMA

lavish lodge
#

Kernel mode code integrity, not sure if thats a thing

little crest
#

don't forget ur litterally paying a company

#

linux is free

lavish lodge
sand flower
little crest
#

(except some distros but I think that's not the case)

lavish lodge
#

I never paid for any Microsoft product.

little crest
#

where is your key

lavish lodge
#

I don’t have one, don’t need one

little crest
#

well that either mean stolen either mean hacked, so we re back to source

lavish lodge
#

It still tops Linux in security

little crest
#

because it's a paid product

#

let's take an example

lavish lodge
#

So? People who claim that Linux is more secure argue with me about this daily, yet none of them can prove my point wrong.

little crest
#

will your trust more a private software or an open sourced one ? Imo, I wouldn't trust open cuz anyone can do barely anything

#

BUT

little crest
lavish lodge
#

Thanks

little crest
#

btw depends you can litterally enclose urself with linux and with windows... idk

#

not my stuff tbh 🤷‍♂️

lavish lodge
lavish lodge
#

Windows enforces many things and they do it for good reasons

#

Whereas linux doesn’t enforce anything, afaik

little crest
#

maybe

lavish lodge
#

you can literally disable ASLR with root privileges, says enough

little crest
#

dunno what it is

lavish lodge
#

Address space layout randomization

little crest
#

still

#

😂

lavish lodge
#

Uhh, randomizes the memory layout

little crest
#

ok

lavish lodge
#

This is more low level stuff

little crest
#

just something else, what do you think of jojo (that's not a troll its for a friend of mine)

little crest
#

anime

lavish lodge
#

I dont watch Anime

mental shoal
#

guys do weldconstraints break when cloning a model?

little crest
tough dawn
#

this scripter guy needs a humanoid in the custom rig im importing, do i just add it or does it need to automatically go there by roblox

regal dagger
#

dm me if u need a scripter

short wadi
#

im making a editable mesh ocean and if i create the water on client i run into memeory issues after like 5 tiles but if i run it on server i can do as many as i want but its not replicating to client what do i do??

faint schooner
#

Is this a hidden script?

#

If so does anyone know whether or not it is malicious.

proud cairn
cosmic ore
#

try using parallel lua too

snow bramble
#

any ideas on how to make jumping smooth so when i hit ground my speed doesnt get reseted it happens bc walkspeed is 0 but i cant make it other way since i am trying to make bhop type sht

lost yoke
#

not really anything crazy just someones spiteful ig

light zinc
#

Don't know why anyone would format it that way and add magic id's like that

#

besides someone trying to hide something

ruby cipher
#

nvm 💔

#

im so off i didnt read it all

light zinc
#

like wtf would that do

#

I'd honestly just remove that part

ruby cipher
#

prob someone that someone doesnt like

#

dunno

#

its 1 in 10

light zinc
#

don't know anything about the game so I can't really say

faint schooner
#

Thanks for the help

ruby cipher
#

what is it

lusty patrol
#

do local scripts work with module scripts

icy dew
#

Yes

lusty patrol
#

so then why is my code not working

lean falcon
#

if that's what ur trying to do

lusty patrol
lean falcon
#

you also cant access anything serverside

#

rigs?

lusty patrol
#

yea

lean falcon
#

I'm gonna need an explanation

#

of what you're trying to do

lusty patrol
#

i'm tryna make a script where

#

every 5 seconds a rig spawn

#

and i can kill it with a gun

lean falcon
#

yeah you can't do that with a local script

#

that has to be done from the server

lusty patrol
#

god damn it

lean falcon
#

I mean if it works literally all you need to do is put it in a serverscript

lusty patrol
#

ok how do i do this then

lean falcon
#

what code did you use to try to do it with a module/client side?

lusty patrol
#

local module = { righumanoid = game.ReplicatedStorage.Rig.Humanoid}
and then insert it into the local gun script like
modulescript.righumanoid:TakeDamage(30)

icy dew
#

guh

#

gulp

lean falcon
#

uh

#

can you post the actual code?

lusty patrol
#

i'm tryna find another way

urban coyote
lean falcon
#

does your gun work?

lusty patrol
#

it works

lean falcon
#

okay

#

well just make a script in serverscriptservice

#

reference the rig

#

clone it, then make its parent the workspace

lusty patrol
#

how would i make it spawn

lean falcon
#

if you make the clones parent the workspace it will be placed in the workspace

#

so itll appear to players

#

I assume that's what you mean by spawn

lusty patrol
#

well this is my script for spawning in the rig

#

idk if it's bad

lean falcon
#

you don't need the if statement

#

or anything with db

lusty patrol
#

so can i instead do

lean falcon
#

or the wait

lusty patrol
#

while db == true do

lean falcon
#

oh

#

you're trying to spawn it repeatedly

#

yeah

lusty patrol
#

yea

lean falcon
#

you can just say

#

while true do

#

db doesn't really do anything unless you actually want it to stop spawning

#

but it doesn't look like you do

#

so if you get rid of db, make the if a while loop, it should do what you want

#

however

#

this is a script

urban coyote
lean falcon
#

I dont think scripts fire in the workspace

#

that's what they want

lusty patrol
lean falcon
#

or maybe they do

lusty patrol
#

only 1 did

urban coyote
lusty patrol
#

just make it loop?

urban coyote
urban coyote
urban coyote
#

Do you want for them to simply respawn when they die?

lusty patrol
urban coyote
urban coyote
# lusty patrol no?

Alright, well, for a legacy script to execute it needs to be a descendant of ServerScriptService, so first create a script there

lusty patrol
#

waiot

#

i have the rig parented to the workspace

#

nvm i'm stupid

#

it's still in rep storafe

urban coyote
lusty patrol
urban coyote
#

This can be done with the while loop and Roblox's task.wait function

urban coyote
lusty patrol
urban coyote
#

What do you mean by "reference the spawn script"

#

Do you need something that's a child of the spawn script or to modify it?

lusty patrol
lean falcon
#

oops

#

I forgot exactly how to make it repeat

#

until you get the character

urban coyote
#
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rig = ReplicatedStorage.Rig
#

You're trying to refer to the rig right?

lusty patrol
#

yea

coral void
#

Hey guys, i need some help here, is there a way to lock all types of player movement in studio? no jumping no moving so i can control it by script instead?

urban coyote
# lusty patrol yea

Okay, so now inside that infinite loop you created, you have to clone the rig and set the Parent property of it to workspace so that it can interact with the world and be visible

lean falcon
urban coyote
coral void
#

simply make autorunning so players cannot impact movement themselves, also no jumps

lusty patrol
peak jolt
urban coyote
lusty patrol
tender kite
#

peak locals

urban coyote
# lusty patrol do you justw ant me to put this into serverscriptservice?

Eh no, that won't work at all
Asking for help in #code-discussion or #code-help is mostly for someone to guide you rather than give you a script and tell you exact instructions, but you don't seem to be a scripter at all or tried to have learnt before building something
Since you're trying to do something simple anyways, I'll just write one for you, but flg hire a scripter if you try to do anything somewhat advanced

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rig = ReplicatedStorage:WaitForChild("Rig")
local spawn_point = workspace.SpawnLocation.CFrame + Vector3.yAxis * 5 -- change "SpawnLocation" yourself to whatever name "spawntuah" has
while true do
        local rig_clone = rig:Clone()
        rig_clone.Parent = workspace
        rig_clone:PivotTo(spawn_point)
        task.wait(5)
end
urban coyote
coarse terrace
urban coyote
# lusty patrol i'm learning how to script

Luau is extremely simple and written almost as if it was English, so it shouldn't cost much to learn it
You can kind of check what each keyword of the language means and the feature it has at the https://create.roblox.com/docs/luau "Features" section and "Types" section, although skip "Type coercions", "Userdata" and "Type checking" as those are never needed

Luau is the scripting language creators use in Roblox Studio.

midnight wigeon
#

And optimize as well

urban coyote
midnight wigeon
#

Nvm

#

Forget that i said the optimizing part

urban coyote
midnight wigeon
#

It does make autocompletion more accurate

#

Saves a lot of time

#

Like for example when working with humanoids

#

Just tell the code that it’s a humanoid and it autocompletes properties and methods that are only usable on humanoids

tender kite
crimson blaze
lean falcon
frail yarrow
#

Or disabling states

coral void
lilac lark
#

cana nyone

somber vault
#

dreaming of the day when i get a coding buddy where we make stupid shit and eventually hit it big 😢

earnest notch
somber vault
#

what? lmao

earnest notch
#

😭

earnest notch
midnight wigeon
#

Nuh uh

crude quarry
#
for i,v, WorkspaceItems in pairs(workspace:GetChildren()) do
    print(v.Name)
end``` 
I was studying more for I loops for my settings project I was working on and had a question about this code I found on the forms. Is `WorspaceItems` a builtin variable to roblox?
crude quarry
#

The code works as expected and returns everything in the workspace I was just curious if it was

#

Wish roblox had a notifier telling me if a variable is read but never used like VSC that would answer my question

#

So I tried to print workspace items and it produced nil so it's a variable that has no value so idk anymore

eternal ravine
crude quarry
#

ok thanks im being real dumb cuz I cant read it lmao

#

im gonna work on something else

delicate pulsar
#

i wanna make a game kinda like the game Steal a brainrot howw would i do that bc they seem to be making lots pf robux

terse sinew
#

I have a knock and grip system but it’s not working I need someone to go in my studio and see what’s wrong pls

ionic solstice
#

is it a pvp sort of game

terse sinew
#

Yes

ionic solstice
#

ok

crude quarry
#

Do you have to code auto adjusting UI or is that something that can be done without code?

#

it's hard to tell how much of the screen the UI size takes up since studio covers up more than half of it '

spiral girder
#

theres a bunch of ui objects available

#

like UIAspectRatio

#

and UICorner

#

and a bunch of others

#

you shouldnt have to scale ui with code but you can if you want

grave pecan
#

Guys, there’s this weapons system that I got a while back and it’s practically broken now. So basically it’s these Star Wars blasters but when I’m using them/shooting them it isn’t showing for other players. @ me if you can help

hoary cedar
grave pecan
#

I thought so, I recently just came back to the studio

#

I wanted to finish a game for my group but then I realized the blasters weren’t working

grave pecan
hoary cedar
grave pecan
#

Dawg 🫩

grave pecan
#

So why does it still do that?

celest cipher
#

why isnt my admin commands working it prints "argument 1 is missing or nil"

urban coyote
celest cipher
urban coyote
celest cipher
urban coyote
# celest cipher what was it

Remove the part where it says local player = args:match('player="([... and replace the "player" at line 13 with "args"

celest cipher
#

i dont know args, sub, or any of that

urban coyote
celest cipher
urban coyote
urban coyote
celest cipher
#

nvm

urban coyote
crude quarry
#

Im confused what number im trying to index, all I was trying to do was change the surfaceGUI text labels, text

local id = script.Parent.SurfaceGui
script.Parent.RemoteEvent.OnServerEvent:Connect(function(player,age,id)
    print(player.Name)
    id.Name.Text = "Name: ".. player.Name
    id.PFP = "http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=" .. player.Name
end)```
celest cipher
#

do i replace that with args aswell?

urban coyote
earnest sun
#

I'd cus id changes

celest cipher
crude quarry
urban coyote
celest cipher
urban coyote
#

and that is the one I'm telling him to replace

#

What else did you replace?

earnest sun
celest cipher
#

it still erroes

#

argument 1 missing or nil

crude quarry
urban coyote
urban coyote
celest cipher
urban coyote
#

Are you ragebaiting?

crude quarry
celest cipher
#

now its normal

urban coyote
#

I did not tell you to change game.Players:FindFirstChild to game.Players:GetPlayerbyUserId

celest cipher
#

im not ragebaiting

urban coyote
celest cipher
#

my brains fried its 1 am sorry

urban coyote
#

The next part we're now changing is the one that makes it require the whole player="..." part

celest cipher
#

like this now?

#

it doesnt error anymore but it doesnt kick me

urban coyote
urban coyote
crude quarry
urban coyote
#

Possibly the age number

#

maybe you accidentally swapped them around

#

they have to be in order

#

or possibly, you're trying to send the player along which is wrong since that parameter is automatically added

crude quarry
#

i'm not sure myself honestly lol. I'm trying to learn remote events and trouble shooting is confusing when it produces the results I expected

celest cipher
#

like this? @urban coyote

urban coyote
urban coyote
crude quarry
# urban coyote <@687128955928445068> This one's the most likely

so I removed the paramaters that use number IE userids and account age and now it says

Players.TheEastPineDev.Backpack.Tool.Handle.Script:4: attempt to index nil with 'Text'```
So I think you're right in it trying to trigger a paramater with a number but its using a string instead
celest cipher
#

is there like a player:ban thing aswell?

crude quarry
#

question is where is trying to be trigged lmao

celest cipher
crude quarry
#

@urban coyote okay please excuse my stupidity

script.Parent.RemoteEvent.OnServerEvent:Connect(function(player, id)``` It was trying to trigger id in the param
#

thats what was causing the error

#

not sure why it works like that but the error is gone now

celest cipher
bright portal
urban coyote
undone orbit
#

I'm gonna start a simulator game with physics based progression, how much do you guys think would be a fair offer/payment for that

neon compass
#

depends tho how good lol

weak radish
neon compass
undone orbit
#

I was thinking of putting percentage + robux on the base of the game so he can add stuff for updates

undone orbit
neon compass
weak radish
neon compass
#

fr lol

weak radish
#

unless you're talking about 2-5k per task

undone orbit
#

It won't be too complicated, Just a simulator system based on physics (hitting certain objects while ragdolled or such gives reward), and possibly an extra rng system for more content

#

But most likely I'll make different unlockable animations for each time the player hits the walls/targets

weak radish
neon compass
gray frost
#

Stop undervaluing scripting

#

25% is the bare minimum a scripter shouod be earning

#

And if you’re a good scripter you shouod be getting paid way more

#

I get paid 250k robux for commissions

#

If you charge 2k robux for a task

#

Then you suck ngl

hearty pivot
#

Hey, little question here. How can I make things synced across servers? For example: a random lootbox is opened every 5 mins and everyone gets the same things. Thank you in advance.

tardy sentinel
#

test out this script it is so beautiful when this script makes landscapes hallways rooms alleyways its just so cool also make sure to add a Part in the game so it works

formal scroll
somber wadi
#

how do i make so there a leaderstats for cash

somber wadi
hallow crag
#

when they get added

#

and then add a number value

#

named "Cash"

somber wadi
#

k ty i wil try

somber wadi
hallow crag
#

yeah

somber wadi
#

k

hallow crag
#
local players = game:GetService("Players")

local function playerAdded(player)
    local leaderstats = Instance.new("Folder)
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player 
    
    local cashValue = Instance.new("NumberValue")
    cashValue.Name = "Cash"
    cashValue.Value = 0
    cashValue.Parent = leaderstats
end

for _, player in players:GetPlayers() do playerAdded(player) end
players.PlayerAdded:Connect(playerAdded)
#

that should work

#

tf

tardy sentinel
stray dock
#

do you think he wants the entire game scripted for him for 5k

hallow crag
#

3% is also way to low

stray dock
#

yup lmao

half sable
somber wadi
#

that is my script for a part and i wanted to do so if you stand on it you get +1 every second but it kinda doesnt work. Does anyone know a solution?

round spear
#

I think you spelled smth wrong

somber wadi
#

i mean its working but the wait(1) isnt working because it gets way to many +1

#

it gets way more then 1 in 1 second

vale spire
#

try to use debug

somber wadi
#

ok

proper edge
#

add a debounce to the event

somber wadi
#

oh ok

proper edge
somber wadi
#

ok

somber wadi
#

no

somber wadi
hallow crag
#

are u actually creating the leaderstats?

somber wadi
#

ye why?

hallow crag
#

no like check if the leaderstats is being created

somber wadi
#

ye the leaderstats works and everything only the wait() didnt work

#

but i am doing rn what goddessess sugested

proper edge
rain smelt
#

also, task.wait() & debounce

hallow crag
#

send the code i can implement it

somber wadi
rain smelt
somber vault
#

debounce is not gonna do it

somber wadi
#

thats the code rn i tried implementing it

somber wadi
somber vault
proper edge
somber wadi
proper edge
hallow crag
#

in text format

somber wadi
somber vault
#

if you stand still it will fire once

somber wadi
#

oh ok

hallow crag
#

💀

somber wadi
#

local part = script.Parent

part.Touched:Connect(function(hit)
local character = hit.Parent
local player = game.Players:GetPlayerFromCharacter(character)

wait(1)
if player then
    local leaderstats = player:FindFirstChild("leaderstats")
    if leaderstats then
        local cash = leaderstats:FindFirstChild("Cash")
        if cash then
            cash.Value = cash.Value + 1
        end
    end
end

end)

proper edge
#

oh yeah mb

#

touched checks for cframe movement

somber vault
#

@somber wadi You shouldn't use Touched at all, it's not gonna work if you use Touched.

What you can do to get 1 coin every second you are touching the part is a bit more complicated

proper edge
#

use touch and touchended

#

and spawn a function

somber vault
#

nope, that's not gonna do it either

somber wadi
proper edge
hallow crag
# somber wadi i want to add every second a coin but only if player touches the part

    local part = script. Parent
    part.Touched: Connect(function(hit)
        local character = hit.Parent
        local player = game.Players:GetPlayerFromCharacter(character)
        
        if debounces[player] and os.clock() - debounces[player] < 1 then return end
        
        debounces[player] = os.clock()
        
        if player then
            local leaderstats = player:FindFirstChild("leaderstats") 
            if leaderstats then
                local cash = leaderstats:FindFirstChild("Cash") 
                if cash then
                    cash.Value += 1
                end
            end
        end
    end
    
    game.Players.PlayerRemoving:Connect(function(player)
        debounces[player] = nil
    end)```
#

mb for formatting did it in notepad

hallow crag
proper edge
ruby cipher
#

Any1 know how to add VFX to a viewport frame?

somber vault
# somber wadi i want to add every second a coin but only if player touches the part

You create a coroutine, a while loop with a task.wait(1) inside, inside that loop you give the player 1 coin every second, connect a function to runservice.renderstepped or heartbeat, that checks if the player is touching the part or not, you could create a boolean that tells you whether its touching or not, based on that you control the coroutine and yield/resume based on the boolean

hallow crag
proper edge
#

This event only fires as a result of physical movement, so it will not fire if the CFrame property was changed such that the part overlaps another part.

somber vault
hallow crag
proper edge
somber vault
#

depends on runcontext

proper edge
#

script is obv on the server

rain smelt
# somber wadi local part = script.Parent part.Touched:Connect(function(hit) local charact...
local part = script.Parent
local db = true
part.Touched:Connect(function(hit)
    local character = hit.Parent
    local player = game.Players:GetPlayerFromCharacter(character)
    
if not db then return end
db = false
    if player then
        local leaderstats = player:FindFirstChild("leaderstats")
        if leaderstats then
            local cash = leaderstats:FindFirstChild("Coins")
            if cash then
                cash.Value -= 1
            end
        end
    end
end)```


i have coins there, make sure u do cash
somber vault
#

renderstepped can't be used in the server as far as ik

somber wadi
rain smelt
somber vault
rain smelt
proper edge
#

use ZonePlus 🗣️

somber wadi
somber wadi
proper edge
#

1 sec let me check docs

somber wadi
#

k

proper edge
#

you are using Seats right?

hallow crag
# somber wadi i dont understand a word i am to dumb for that
local RunService = game:GetService("RunService")

local touching = {}
local debounces = {}

script.Parent.Touched:Connect(function(hit)
    local character = hit.Parent
    if not character then return end 
    
    local player = Players:GetPlayerFromCharacter(character)
    if not player then return end 
    
    touching[player] = true
    debounces[player] = os.clock()
end)

RunService.Heartbeat:Connect(function()
    for _, player in Players:GetPlayers() do 
        if not touching[player] then continue end 
        if debounces[player] and os.clock() - debounces[player] < 1 then continue end
        
        debounces[player] = os.clock()
        
        local leaderstats = player:FindFirstChild("leaderstats")
        if not leaderstats then continue end 
        
        local cashVal = leaderstats:FindFirstChild("Cash")
        if not cashVal then continue end 
        
        cashVal.Value += 1
    end
end)

Players.PlayerRemoving:Connect(function(player)
    touching[player] = nil
    debounces[Players] = nil
end)```
#

might have errors did it in notepad lol

somber wadi
#

i will ye but rn i use just a part to get script

somber wadi
proper edge
somber wadi
#

ok

proper edge
#

you can listen for Occupant property

rain smelt
hallow crag
#

aswell

hallow crag
proper edge
#

running a for loop in a heartbeat

#

😭🙏

rain smelt
hallow crag
#

its just a example genius

rain smelt
hallow crag
#

with the for loop

proper edge
#

no tf its not 😭

hallow crag
#

task.wait() is the same as RunService.Heartbeat:Wait() r u slow

somber wadi
#

so i have the code for getting 1 cash every second i just dont know how to do so it only works when touching or sitting on a seat

somber vault
#

you need to practice man

hallow crag
proper edge
#

and also runs a for loop every frame

#

on the server at that too

somber vault
#

not at all gng praysob

proper edge
#

fr 😭

somber vault
#

@hallow crag task.wait yields the code for a certain time in seconds passed

#

meanwhile Heartbeat is an event that fires every frame (dont remember the order)

somber vault
#

here's the order

#

after physics simulation

somber wadi
#

so what do ihave to use everyone saids smt else

somber vault
hallow crag
#

i would never do that on the server lmao

proper edge
#

why give that as an example in the first place

#

its bad practice

somber vault
#

its all good

#

juz practice fr

hallow crag
somber vault
#

scripting is a little like maths, the only way to get better is to practice

somber wadi
#

i looked up a website it sais that detects if the player seats

#

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

    -- listen for when the player sits down
    character.Humanoid.Seated:Connect(function(active, seatPart)
        -- active (bool) : true when a player is sitting
        -- seatPart (Instance of Seat or VehicleSeat) : the seat that the player has just sat in or left
        print(string.format("Is %s sitting? %s", player.Name, active and "yes" or "no")
        print("the seat in question : ", seatPart)
    end)
end)

end)

#

would that work?

somber vault
#

yes 👍

#

the comments help too

somber wadi
#

ok

#

but i think that script only asks like if the player is sitting not if he is sitting on a specific seat or?

proper edge
#

but you can check the seatPart's attribute or name using an if statement

somber wadi
#

ok ty for the help

zealous crystal
#

legalize task.wait hate

proper edge
somber wadi
#

ok

proper edge
#

yea but i believe attributes would be better

somber vault
proper edge
#

try implementing it yourself, if you can't then ask more questions here

somber wadi
#

i got it already tyx

proper edge
#

alr alr

somber vault
#

perfect loader

proper edge
#

peak

vale spire
#

can you use 1 remotes event for 2 script or local script?

proper edge
#

what are you trying to do?

vale spire
proper edge
vale spire
hallow crag
slender sky
#

does anyone know how can i make a script that detects any executed script? i tried it but it always failed

proper edge
#

onclientevent can be used any amount of times

vale spire
#

oh ok

#

btw does OOP can reduce lag in a game?

proper edge
#

its more of a 'style' of developing

vale spire
#

oh ok

hallow crag
proper edge
#

theres no reason for there to be a limit

hallow crag
#

im pretty sure if u have more then 2 only 2 of the onclientevents will fire at a time

#

but aight

proper edge
#

works perfectly

hallow crag
#

oh lmao it used to not work

#

crazy

oblique anvil
#
local court = game.Workspace:WaitForChild("RBF Court")
local tween = game:GetService("TweenService")
local ball = court:WaitForChild("Handle")
local plr = game.Players.LocalPlayer
local animation = game.ReplicatedStorage:FindFirstChild("DribbleArm")
local conn
conn = ball.Touched:Connect(function(hit)
    task.wait(0.1)
    if hit:IsDescendantOf(plr.Character) then
        ball.Anchored = true
        ball.CanCollide = false
        local humanoid = plr.Character:FindFirstChild("Humanoid")
        local track = humanoid:LoadAnimation(animation)
        track.Looped = true
        local function bounceLoop()
            while true do
                local o = ball.Position
                local upinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
                local downinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
                local down = tween:Create(ball,downinfo,{Position = o + Vector3.new(0,-2,0)})
                local up = tween:Create(ball,upinfo,{Position = o})
                down:Play()
                down.Completed:Wait()
                up:Play()
                up.Completed:Wait()
            end
        end

        coroutine.wrap(bounceLoop)()
        track:Play()
        conn:Disconnect()
    end
end)

This is the code I use to play the animation for the ball bouncing and the player moving their arms - the animations themselves work on their own but the problem is I think the ball's movement interferes with the player and this causes the player to be pushed in unpredictable ways or even be flipped upside down as the image will show. Image showing My character seems to flipped upside down

I even set cancollide as false so perhaps it wouldn't collide with the player's body - but the problem still prevailed. What is the cause of this issue - all help appreciated.

hallow crag
oblique anvil
#

mb

viral herald
rapid verge
viral herald
#

i remember when i had to add a line of code to prevent .CharacterAdded memory leaks

oblique anvil
#

@rapid verge @hallow crag I fixed it

rapid verge
viral herald
oblique anvil
#

@rapid verge can you help when ur done

viral herald
#

you probably don't even want to touch python at all

hallow crag
#

especially on the server

viral herald
oblique anvil
viral herald
#

or what part was causing the memory leak/event overlap in general but this is what i remember

hallow crag
#

just use task.spawn

oblique anvil
#

Ok

#

But surely that's not what's causing this

viral herald
hallow crag
rapid verge
sonic canyon
#

hi

rapid verge
oblique anvil
#

I made it disconnect after te player toucehed it

sonic canyon
#

oh ok

oblique anvil
sonic canyon
#

sorry

rapid verge
oblique anvil
#

Wait what

hallow crag
oblique anvil
#

Yes because the ball will drop before the game starts but obviously I don;t want it to infterefere with the players' movement

oblique anvil
#

ok

#

I will look at that then

rapid verge
drifting whale
# oblique anvil But surely that's not what's causing this

If it’s not collidable and it’s like a normal tool, I would probably just make it massless, because I think anything connected to a player’s character will affect their movement. I still think it would effect it even if the ball was massless but considerably less

oblique anvil
#

Ok

#

also I didn't make it a tool @drifting whale I just made it a part that welds to the player's hands - does that change anything

drifting whale
#

yes

#

A lot, the center of mass of the player’s character would be modified because you are welding a object to it

#

Also I think if it is a tool then it would not affect the movement of the character.
-# I think

oblique anvil
#

Oh

#

but the problem is

#

If it's a tool you can like disable the tool and that might cause errors in a basketball game

drifting whale
#

Disable?

#

Why would you disable it but either way just try making it massless for now

oblique anvil
#

Ok lemme make the part massless

muted fern
#

Who wanna flex battle with me on robux

#

Amount of robux we have

oblique anvil
#

@drifting whale It didnt fix anything

drifting whale
#

Alright then how do you get and weld the object

oblique anvil
#
local conn
conn = tool.Touched:Connect(function(hit)
    print("Picked up by",tool.Parent)
    local weld = Instance.new("Motor6D")
    local toucher = game.Players:GetPlayerFromCharacter(hit.Parent)
    if toucher then
        weld.Name = "Joint"
        weld.Part0 = hit.Parent.RightHand
        weld.Part1 = tool
        weld.Parent = hit.Parent.RightHand
        tool.Parent = hit.Parent
        end

@drifting whale

drifting whale
#

And did you say it would make the character movement feel weird and it would also make the character somtimes when picking it up flip?

oblique anvil
#

yeah

dark juniper
drifting whale
#

So for the character flipping part, just move the god damn ball to the correct place first and then weld

oblique anvil
#

wait what

#

@drifting whale this is what I mean bruh I'm under the baseplate / court

drifting whale
#

Yeah it’s moving the character to the ball

oblique anvil
drifting whale
#

Yes

#

And put it before welding

oblique anvil
#
local conn
conn = tool.Touched:Connect(function(hit)
    print("Picked up by",tool.Parent)
    local weld = Instance.new("Motor6D")
    local toucher = game.Players:GetPlayerFromCharacter(hit.Parent)
    if toucher then
        tool.Position = hit.Parent.RightHand.Position
        weld.Name = "Joint"
        weld.Part0 = hit.Parent.RightHand
        weld.Part1 = tool
        weld.Parent = hit.Parent.RightHand
        tool.Parent = hit.Parent
        if toucher.Team.Name == "Team Blue" then
            apron.Color = Color3.fromRGB(0,0,197)
            lanepart1.Color = Color3.fromRGB(0,0,197)
            lanepart2.Color = Color3.fromRGB(0,0,197)
            lanepart3.Color = Color3.fromRGB(0,0,197)
            lanepart4.Color = Color3.fromRGB(0,0,197)
            lanepart5.Color = Color3.fromRGB(0,0,197)
            lanepart6.Color = Color3.fromRGB(0,0,197)

like so?

drifting whale
#

I would say so

oblique anvil
#

k

#

@drifting whale some sort of improvement

But now I can;t move at all - because I animated the player's arm to rotate back and forth to recreate the bouncing of the ball it just rotates and the bal disappears again

drifting whale
#

I feel like it’s not unanchored

oblique anvil
#

yeah

#

I made anchored false

#

SO now the player is upright

drifting whale
#

Nice

oblique anvil
#

BUT @drifting whale

drifting whale
#

wut

oblique anvil
#

Now when I walk with the ball, the ball ets further and further away from me, I don't know if that's because it stays at te postiin it was set to

local conn
conn = ball.Touched:Connect(function(hit)
    task.wait(0.1)
    if hit:IsDescendantOf(plr.Character) then
        ball.CanCollide = false
        local humanoid = plr.Character:FindFirstChild("Humanoid")
        local track = humanoid:LoadAnimation(animation)
        track.Looped = true
        local function bounceLoop()
            while true do
                local o = ball.Position
                local upinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
                local downinfo = TweenInfo.new(0.3,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
                local down = tween:Create(ball,downinfo,{Position = ball.Position + Vector3.new(0,-0.75,0)})
                local up = tween:Create(ball,upinfo,{Position = ball.Position + Vector3.new(0,0.75,0)})
                down:Play()
                down.Completed:Wait()
                up:Play()
                up.Completed:Wait()
            end
        end

        task.spawn(function()
            bounceLoop()
        end)
        track:Play()
        conn:Disconnect()
    end
end)

The new code

drifting whale
#

Wait

#

BRO

#

Why are you setting the position in a lop

#

Loop, put it outside the loop

oblique anvil
#

wait what

#

wdym @drifting whale

drifting whale
#

You are setting the position of the ball in the loop

#

Which is wrong, it should be outside the loop before the setting of the welding

#

Wait

#

Wait I am confused what you using local o for

#

And how is it moving away from you if that’s all the code

oblique anvil
#

I meant to remove that

#

I though u just update the ball's positonsince the animation for the ball bouncing is a constant loop so it should follow the player as they move

#

@drifting whale

drifting whale
#

But you have already welded it

#

Wait…

#

Hmmmm. Man now even I am confused

oblique anvil
#

yeah

#

but can't I make it move in a bouncing fashion

drifting whale
#

I would just use a spring

#

And then just force the players to be shiftlocked when holding the ball to minimize the interference from the ball when moving

eternal arch
#

daum yall coders?

drifting whale
#

nah, I am just a hallucinating dumbass

oblique anvil
#

@drifting whale
does 0.13 mean 0.13 seconds

drifting whale
#

Yes

drifting whale
tardy nest
#

is there someone who wants to help coding disasters in my game

#

im more of a builder/modeler

oblique anvil
#

@drifting whale @hasty mist

opal hinge
chilly canyon
ruby cipher
somber vault
bright portal
#

What things that stores information I can get access like Google sheets and?

#

I want to make an store in document, with some information and access it in place.

#

Like the nicknames or numbers.

old bloom
#

Guys when would you say you have a good enough level of scripting to actually create your own game

#

Now obv you won’t know everything but what point did you guys think you had a good level to actually do things

dusky geode
#

if you keep waitng till a certainl evel to make a game you ll never be good

#

you make a game with any knowldge you have

tired schooner
dusky geode
#

give me 50% of ur game now

old bloom
#

Thanks

old bloom
cobalt rock
river iris
#

Anyone know how to make a whip system? Is it animations or how would I make it?

river iris
#

Do you have any idea on how to go forth with it?

cobalt rock
#

animations prob

#

also idk much abt animation but I think u can rig the whip

#

so it's not just a stick

river iris
#

thanks

real latch
#

does any of yall have any like fun projects u did when u were a begginer to learn because my stoopid brain working when i finished thedevkings tutorials

ionic solstice
#

who needs a system scripted

regal storm
#

fellas what free tutorial do i use? brawldev?

ionic solstice
regal storm
#

ty

ionic solstice
#

who wants a sword fighting system for only 2,000 robux

thick sail
ionic solstice
thick sail
ionic solstice
#

ok

#

give me 2 min

pine torrent
ionic solstice
pine torrent
#

Introducing newbies new features roblox added

pine torrent
ionic solstice
#

so does anyone wanna buy it for 2k

#

robux

frail yarrow
#

No its bad

ionic solstice
#

?

frail yarrow
#

what you posted is bad

ionic solstice
#

what could be better

lean falcon
#

whats the objective of what you sent?

frail yarrow
#

Looks like you're using .Touched

ionic solstice
#

i am not using . touched

#

it is a game for destroying opposing teams cubes

frail yarrow
#

Okay so whats your hit detection look like

ionic solstice
#

here is my script

#

its in a module

lean falcon
#

you use region

#

interesting

ionic solstice
#

yea

lean falcon
#

that's kinda makeshift touched though

gritty nexus
#

guys how much would a system that saves all the things the player has (cash, cars, guns, etc) cost? (the cash system is already made)

lean falcon
#

but itll have better detection while inside a part

#

thats pretty hard on processing power though

ionic solstice
#

so should i remove the ystem

pine torrent
#

Maybe 200

gritty nexus
#

I need one

lean falcon
ionic solstice
#

so how much would the system cost at best

gritty nexus
#

what about a shop system

lean falcon
gritty nexus
pine torrent
lean falcon
#

let me look this up to make sure IM right about the performance thing

pine torrent
#

Like how shop is supposed to work

#

How it's supposed to look

#

Ect

gritty nexus
#

well

lean falcon
pine torrent
ionic solstice
lean falcon
#

you could use it but if you have a lot of weapons using that system it might have performance issues

gritty nexus
ionic solstice
#

i only have one weapon

pine torrent
ionic solstice
#

and different baldes

pine torrent
#

It's mainly just

lean falcon
pine torrent
#

How the gui looks

lean falcon
#

or

pine torrent
#

That's it

lean falcon
#

boundinbox I guess

#

still a region check

ionic solstice
lean falcon
gritty nexus
lean falcon
#

you can probably get away with it if thats all you have using something like that

#

but its not ideal

lean falcon
#

from a performance perspective

pine torrent
gritty nexus
ionic solstice
pine torrent
#

But u need an estimate price so idk

lean falcon
pine torrent
#

As i said, it's primarily interface designer requirement, the scripter only makes it functional what isn't hsrd

ionic solstice
#

so it basically does not kill your teammates which is made through attributes and attacks certain objects

pine torrent
#

Actually 3k bcs I'm not poverty buyer

#

Ur system is a nice template for starting group or for simplicity

pine torrent
#

Buyer would wanna see cool effects

#

Something what is eye catching

ionic solstice
pine torrent
#

What about camera fov changing

#

Or damage counter

#

Ect

ionic solstice
#

ah i see

pine torrent
#

And kill cam

ionic solstice
#

thanks

pine torrent
#

Like something what lays in front of eyes

#

Will sell for super high price

#

And what is super easily configurable

ionic solstice
gritty nexus
# pine torrent Hard to understand without reference tbh

TextLabel (Name), ImageLabel (Car Image), IntValue ( so it can connect with the car spec gui <my weird idea> ) the template would duplicate with every car inside the Module script.

the car model would spawn on the showroom and the camera would rotate around it

pine torrent
#

I'm not forcing u

pine torrent
#

Fair price without self valuing

gritty nexus
pine torrent
#

Nothing hard

pine torrent
#

I'd take 2k to make that system

#

The camera spin reminds me of NFSMW

#

I have a made system for it

gritty nexus
#

oo

pine torrent
#

But it's literally for myself

gritty nexus
#

actually

#

do you own beamng drive?

pine torrent
#

What's up

gritty nexus
#

there is a career mode with a hella cool gameplay thing, its cargo boxes which you need to deliver stuff with to random places

pine torrent
pine torrent
#

Shit is buggy asf when it comes to buying modded car

gritty nexus
pine torrent
gritty nexus
#

I dont play career mode with mods*

pine torrent
#

"fatal lua error game paused"

gritty nexus
#

lol

pine torrent
#

Police chases bro

#

They're easiest tasks

gritty nexus
#

time trials tho

marble karma
#

Is 200 robux too much to pay for a script that, after a selected number of seconds, teleports the player to another one of my experiences. Once the player arrives there, if they were teleported from that specific experience, they receive a badge of my choice?

pine torrent
#

And selling dash cam footage is a bless

pine torrent
pine torrent
#

Not hard to script

proper edge
#

like the perfect price imho

pine torrent
marble karma
#

Loll

#

Ty!!

pine torrent
#

I recommend you playing need for speed most wanted 2007

gritty nexus
pine torrent
#

You'll take inspirations from it

#

Or NFS unbound

gritty nexus
#

my game isnt a car game though

pine torrent
#

Sad

gritty nexus
#

check my profile for dc server link

#

there is a link to the game somewhere

#

its called Career (not inpired by Beamng)

pine torrent
#

I'm in hospital

gritty nexus
#

oh shi

gritty nexus
pine torrent
#

Back, shoulders and upper torso