#code-discussion

1 messages · Page 83 of 1

shy harness
#

changes your momentum a little bit

#

while on the ground

#

i wonder how it works

queen tapir
#

someone yesterday explained how it exactly works

#

he said a lot of random things that i didnt understand (not a scripter)

shy harness
#

i understand it in concept but not sure how i'd do it

#

it like... tries to pull your current motion towards the direction you're pressing, rather than just accelerating in that direction flat

#

honestly it might just lerp your acceleration vector

#

yeah that would probably work

#

it might even SLERP it

#

slerp my beloved

queen tapir
#

interested in doing the commision? send me a Dm if so

shy harness
#

it wouldn't look good for shopping cart

tropic sonnet
#

Paying 1 bobux yearly looking for computer man interested Contact me

fathom kernel
#

what could POSSIBLY be the reasoning behind this autofill

shy harness
#

😨

elder stirrup
#

Who is lf investors ( i am lf fully done game )

keen vine
#

Guys is Roblox script hard compared to Java and python, I only know those two

#

How long would it take to learn?

icy dew
bold current
#

If you know those 2 languages well enough, it'd be pretty simple to learn Roblox Luau

bold current
# bold current Maybe harder than python but Java is by far harder than Luau due to the syntax a...

Some basic stuff for Luau in case the syntax is new to you:
A = B for defining variables
A:B() for running methods that are within an instance
B = A.Property for accessing properties of an instance
A = {B} for making arrays
C = A[n] for accessing arrays
A = {["Thing"] = B} for making dictionaries (not limited to strings for key values to my knowledge)
C = A["Thing"] for accessing dictionaries

placid matrix
#

ohio guide

#

do not listen to ts kid.

bold current
#

ts bait so bad you should be arrested for this

placid matrix
#

its literally bad bro

#

the dot operator can also be used to access dicts

#

??

#

you can define dicts without [''] either

#

ur showing ohio examples, when u should be defining what each operator does

bold current
#

Do it for me I'm lazy and got other stuff to do

#

Off to work you go minion

placid matrix
#

Sorry I only work for femboys

candid galleon
#

💀

bold current
#

Least goonbrained HD member

mint cloud
somber basin
#

Guys what are your thoughts on doing commisions

static coral
copper apex
#

I came from java as well and learning lua was smooth and luau is pretty much roblox's version of lua

gray escarp
#

whats the difference between findfirstchild and findfirstchildclass

strong fable
#

am prob did not spend 3 hours trying to fix one of the most simplest issues of man kind

static coral
strong fable
zealous crystal
strong fable
blissful musk
strong fable
blissful musk
strong fable
peak sedge
#

i call it nested if statements ryhmes with grug

strong fable
spiral jungle
torpid marlin
#

anyone knows why this is happening.? Only shows this when I'm on studio, and doesnt show on the roblox player.. also, on my friend's studio when they play test it (on studio) doesnt show this, it only shows this to me😭

graceful cargo
graceful cargo
#

its usally because you are running the code too many times in a short interval of time

#

like no wait

torpid marlin
#

yupp yeyses thankuu

ivory sparrow
#

This is like scripting help.. + animation help? I have a first person game, doesnt really show the character, dont know if thats matters. i want a pick up item animation, pretty easy to make. I want to know how to slide the character into position for the animation, and then have it actually play where it shows their arms picking it up and stuff. 1. Would I just tween/lerp the character into position somehow perfectly? 2. will i have to show the first person character for the arms to show up?

torpid marlin
#

tried doing that actually 😓, still no help

ivory kite
ivory sparrow
torpid vigil
#

looking for coders dm me for more info

ivory kite
peak sedge
#

function Die._Split(Playercharacter : Model)
    
    local Torso = Playercharacter:FindFirstChild("Torso") :: BasePart
    local LeftHip = Torso:FindFirstChild("Left Hip")
    local RightHip = Torso:FindFirstChild("Right Hip")
    
    local Humanoid = Playercharacter:FindFirstChild("Humanoid") :: Humanoid
    local Parts = {}
    

    Playercharacter:SetAttribute("DeathTypes", true)
    
    task.delay(0.2, function()
    Humanoid:TakeDamage(10)
    end)

    task.delay(0.4, function()


        local Legs = {
            
            LeftLeg = Playercharacter:FindFirstChild("Left Leg"),
            RighLeg = Playercharacter:FindFirstChild("Right Leg")
            
        }

        RightHip:Destroy()
        LeftHip:Destroy()
        
        
        for _, Leg:BasePart in pairs(Legs) do
            --local Burst = BBExample:Clone()
            --local Weld = Instance.new("WeldConstraint", Leg)
            
            --Burst.Parent = workspace
            --Burst.Position = Leg.Position
            --Burst.CFrame = CFrame.lookAt(Burst.Position, Leg.Position)

            
            
            --Weld.Part0 = Burst
            --Weld.Part1 = Leg
            
            Leg.Anchored = false
            --Leg.AssemblyLinearVelocity = Vector3.new(math.random(-100,100),math.random(100,150),math.random(-100,100))
            table.insert(Parts, Leg)
            Playercharacter:SetAttribute("DeathTypes", false)
        end
        
        --local Burst = BBExample:Clone()
        --local Weld = Instance.new("WeldConstraint", Torso)
        
        --Burst.Parent = workspace
        --Burst.Position = Torso.Position
        --Burst.CFrame = CFrame.lookAt(Burst.Position, Torso.Position)


        
        --Weld.Part0 = Burst
        --Weld.Part1 = Torso
        
    --Torso.AssemblyLinearVelocity = Vector3.new(math.random(-100,100),math.random(100,150),math.random(-100,100))
        table.insert(Parts, Torso)
    end)
    return Parts
end
ivory kite
#

I assume this is for a custom death animation where your character gets split in half

peak sedge
#

ye

ivory kite
#

Are you running this on the server or client?

peak sedge
ivory kite
#

Okay well I advise you separate the code where you damage the player's humanoid and you purely do the death animation code only in there

peak sedge
#

yea it js a mockup

ivory kite
#

You should also do the actual animation for their death on the client because you'll definitely have some sort of issue visually when the character gets split in half

peak sedge
#

no animation

ivory kite
#

Either a delay in replication or it might slow down the server

peak sedge
#

just split

ivory kite
#

You know what I mean

peak sedge
#

no?

ivory kite
#

It should be done on the client regardless for the visuals

#

Unless the limbs are important for something else besides just showing someone got split in half

peak sedge
#

not worried abt that rn

#

the code in general

#

aka is there a better way to split them?

ivory kite
#

Visually I don't know exactly what you're aiming for but you should definitely clean up your code you don't have to have variables for some of these tables

#

Like the legs you can just initiate a table in the actual loop

#

Instead of

local Legs = {
            LeftLeg = Playercharacter:FindFirstChild("Left Leg"),
            RighLeg = Playercharacter:FindFirstChild("Right Leg")
        }

you should probably just do

for _, Leg : BasePart in {
            LeftLeg = Playercharacter:FindFirstChild("Left Leg"),
            RighLeg = Playercharacter:FindFirstChild("Right Leg")
} do
            --local Burst = BBExample:Clone()
            --local Weld = Instance.new("WeldConstraint", Leg)
            
            --Burst.Parent = workspace
            --Burst.Position = Leg.Position
            --Burst.CFrame = CFrame.lookAt(Burst.Position, Leg.Position)

            
            
            --Weld.Part0 = Burst
            --Weld.Part1 = Leg
            
            Leg.Anchored = false
            --Leg.AssemblyLinearVelocity = Vector3.new(math.random(-100,100),math.random(100,150),math.random(-100,100))
            table.insert(Parts, Leg)
            Playercharacter:SetAttribute("DeathTypes", false)
        end
peak sedge
#

mk

ivory kite
#

Other than that it looks like it'll work well

peak sedge
#

is cuk at coding sm

peak sedge
#

i suck

#

i need to restart

#

wait

#

@ivory kite

ivory kite
#

What's up

peak sedge
#

1 sec

#

local module = {}

module.__index = module

function module._Init(Char)
    local self = setmetatable({
        
        Humanoid = Char:FindFirstChild("Humanoid")
        
        
        
    }, module)
    
end

function module:Ex(Char)
    print(self.Humanoid)
end

return module

local module = require(game.ReplicatedStorage.ModuleScript)
local Dummy = workspace.Dummys.Dummy

module._Init(Dummy)

task.wait(1)

module:Ex(Dummy)

it print nil why?

#

@ivory kite

ivory kite
#

You never returned self in the module._Init function

peak sedge
#

oh shi

#

ifg mb

peak sedge
#

im new to doing metatables in modules so like

ivory kite
#

Instead of module._Init(Dummy) it returns a custom class

#

So it should be

#

local newDummy = module._Init(Dummy)

#

and then you call newDummy:Ex()

peak sedge
#

mm

ivory kite
#

_Index is a metamethod that essentially

#

(If you call something)

#

It'll return something if it doesn't exist

#

In this case

#

module.__index = module

peak sedge
#

?

ivory kite
#

Ex is a method of NewDummy

#

You need to call NewDummy:Ex()

peak sedge
#

i might be stupid

#

am i stupid


NewDummy:Ex(NewDummy)

ivory kite
#

In this case I have a "NPC" system

local NPCHandler = require(script.NPCHandler) -- or sumthn
local NPC = NPCHandler.new()

NPC:Ex()
peak sedge
#

NewDummy:Ex()

ivory kite
#

Yes

#

When you run :

#

It's syntax to automatically pass "self"

peak sedge
ivory kite
#

You can either do NewDummy.Ex(NewDummy) or NewDummy:Ex()

peak sedge
#

huh

ivory kite
#
local module = {}
module.__index = module

function module._Init(Char)
    local self = setmetatable({
        Humanoid = Char:FindFirstChild("Humanoid")
    }, module)
   
    return self 
end

function module:Ex()
    print(self.Humanoid)
end

return module

In another script calling the module

local DummySystem = require(script.DummySystem)
local Dummy = script:FindFirstChild("Dummy") -- or whatever

local NewDummy = module._Init(Dummy)
NewDummy:Ex()
#

It'd look something like this

#

Personally I don't like initializing keys in the actual metatable definition

#

I prefer this instead:

function module._Init(Char)
    local self = setmetatable({}, module)

    self.Humanoid = Char:FindFirstChild("Humanoid") 
    
    return self 
end
peak sedge
#

yea i tried thatr before

#

idk why maybe im doing sum wrong i suck at codign anyway

dusky kestrel
#
function class:Unregister() 
    Remove(self) 
    setmetatable(self,nil) 
    table.clear(self) 
    table.freeze(self) 
end

is this gonna save my ass?

ivory kite
#

What is Remove

#

You can just set the metatable of the class to nil

#

Just make sure you clean up the other junk

dusky kestrel
ivory kite
#

Ahh, okay

#

Well you don't need to clear/freeze the table just stop referencing it in the script that called it when you run :Unregister

hollow thicket
#

local rs = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local RP = game:GetService("ReplicatedStorage")

local player = game.Players.LocalPlayer
local camera = workspace.CurrentCamera
local highlight = RP.Object.HoverHighlight
local isMobile = true
local currentTarget = nil
local carrying = false
local range = 12
local carrydistance = 8
local maxCarrydistance = 20
local smoothCamera = .06
local throwboost = 10
local lastVelo = Vector3.new()
local targetpos = nil

rs.RenderStepped:Connect(function(dT)
local ray = Ray.new(camera.CFrame.Position, camera.CFrame.LookVector * range)
local rayParams = RaycastParams.new()
rayParams.FilterDescendantsInstances = {player.Character}
rayParams.FilterType = Enum.RaycastFilterType.Exclude
rayParams.IgnoreWater = true

local result = workspace:Raycast(ray.Origin, ray.Direction, rayParams)

if result then
    Resultmodel = result.Instance
    local position = result.Position
else
end
local model = Resultmodel
if model and model.Parent:IsA("Model") and model.Parent:FindFirstChild("PickUp") then
    if not carrying and model.Parent then
        currentTarget = model.Parent
        highlight.Parent = currentTarget
    end
else
    if not carrying and currentTarget ~= nil then
        currentTarget = nil
        highlight.Parent = nil
    end
end
if carrying and currentTarget~= nil then
    targetpos = camera.CFrame.Position + (camera.CFrame.LookVector * carrydistance)
    local currentCframe = currentTarget.PrimaryPart.CFrame
    local newCframe = currentTarget:Lerp(CFrame.new(targetpos, targetpos + camera.CFrame.LookVector), carrydistance)
    
    currentTarget:SetPrimaryPartCFrame(newCframe)
    currentTarget.PrimaryPart.AssemblyLinearVelocity = Vector3.new(0,0,0)
    
    if (camera.CFrame.Position - currentTarget.PrimaryPart.CFrame.Position).Magnitude > carrydistance then
        DropItem(false)
    end
end 

end)

UIS.InputBegan:Connect(function(input:InputObject, gameProcessedEvent:boolean)
if gameProcessedEvent then return end
if input.UserInputType == Enum.UserInputType.MouseButton1 then
LeftClick()
end
end)

UIS.InputBegan:Connect(function(Input:InputObject, gameProcessedEvent:boolean)
if gameProcessedEvent then return
end
if Input.UserInputType == Enum.UserInputType.MouseButton1 and carrying then
LeftUnclick()
end
end)

UIS.TouchStarted:Connect(function(touchPosition:{any}, gameProcessedEvent:boolean)
if gameProcessedEvent then return
end
LeftClick()
end)

UIS.TouchStarted:Connect(function(touchPosition:{any},gameProcessedEvent:boolean)
if gameProcessedEvent then return
end
if carrying then
LeftUnclick()
end
end)

function LeftClick()
if currentTarget ~= nil then
if currentTarget.ServerOwner.Value ~= nil then
return
end
carrying = true
if currentTarget ~= nil then return end
RP.Remotes.PickUp:FireServer(currentTarget)
for _, d in pairs(currentTarget:GetDescendants()) do
if d:IsA("MeshPart") or d:IsA("Part") then
d.CollisionGroup = "Item"
end
end
end
end

function LeftUnclick()
carrying = false
if currentTarget ~= nil then
DropItem(true)
end
end

function DropItem(AddForce: booleon ?)
local velocity = Vector3.new(0,0,0)
if AddForce then
velocity = (targetpos - currentTarget.PrimaryPart.Position) * throwboost
end
RP.Remotes.DropItem:FireServer(currentTarget, vector)
for _,d in pairs() do
if d:IsA("MeshPart") or d:IsA("Part") then
d.CollisionGroup = "Default"
end
end
carrying = false
end

#

WHY MY SCRIPT NOT WORKING

#

:CCCCCCCCCCCC

spiral jungle
#

Because you didn’t format it

fathom atlas
#

hey i need some help

#

how can i know if one frame is inside another

light oasis
#

can someone help me Im trying to make a block that adds tso my leader stat and it only works when I input my name but it'll only work for me and idk how to fix it, heres the code

local player = game.Players:WaitForChild("Icy_Flaames")
local leaderstats = player:WaitForChild("leaderstats")
local money = leaderstats:WaitForChild("Cash")
local cb = script.Parent

cb.Touched:Connect(function(hit)
    local humanoid = hit.Parent:FindFirstChild("Humanoid")
    
    if humanoid then
        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
        if player then
            money.Value = money.Value + 100
        end
    end
end)```
round pivot
#

how do i import multiple animations at once in moon animator?

round pivot
#

you should do this instead

#
cb.Touched:Connect(function(hit)
    local humanoid = hit.Parent:FindFirstChild("Humanoid")

    local char = humanoid.Parent
    local player = game.Players:GetPlayerFromCharacter(char)
    local leaderstats = player:WaitForChild("leaderstats")
    local money = leaderstats:WaitForChild("Cash")
    local cb = script.Parent

    if humanoid then
        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
        if player then
            money.Value = money.Value + 100
        end
    end
end)
tropic sonnet
#

can smb help me?

light oasis
#

thank you

light oasis
wary star
#

Holy code

shy harness
bleak magnet
#

Anyone knows what is the best source to learn roblox scripting from?

forest nebula
bleak magnet
#

nice

forest nebula
rain osprey
peak sphinx
rain osprey
#

That's the backend node server

#

With ffmpeg and stuff

peak sphinx
#

Yeah but why u getting them

rain osprey
#

Those are just ffmpeg output logs

graceful jackal
#

does any1 know how to script it when i press a character i switch

charred ledge
#

Selling my basketball game MAP it is detailed you can resell as many times

hallow crag
# graceful jackal

clone the new one parent it to workspace teleport it to ur old character destroy ur old character then set your players character to the new character

graceful jackal
#

i know nothing abt the scripting shi 💔

hallow crag
#

clone the character on the server

#

and then do i what i said above

wanton star
#

How much would it cost me to create a jet/plane system similiar to aeolus? Anyone has a rough idea

white nova
#

if you return a moving part position from the client to the server would it be different from the servers position

surreal sky
spiral jungle
#

You need the programmer role

cursive kindle
#

Anybody knows the problem?

#

im trying to shapecast

limpid basalt
#

double check the positioning of the hitbox

spark willow
#

how do you guys handle interactions in your games? Right now I have an interact script that checks if the object the player is looking at has an interactable tag and then it calls events on the object depending on mouse input and if the player is still looking at it

#

I have the events: OnHoverEnter, OnHoverExit, OnSelectEnter, and OnSelectExit

#

I originally planned on just having each object's module script decide what it wants to do with the events but now I'm playing with the idea of having service module scripts just apply some kind of functionality to all objects with certain tags

#

I also have every object set up so that when it spawns in a new instance of it's module script is assigned to it

#

which probably isn't the most efficient way of doing that I should probably just have one script that manages all the instances of the object

modest flame
#

Hi i've got a problem with cloning a tool when specific players joins. It detects and calls the function to create a tool but it doesn't clone or sending a message into console. what could be the cause?

simple forum
#

did you name your tool

silver gale
#

guys im new to scripting i dont know where to start and it seems imposible any tips?

sweet cedar
#

Who wanna make a grow a garden game?

azure jacinth
somber vault
modest flame
somber vault
#

Or if you already know lmk where the code gets stuck

sick saffron
modest flame
#

I've made a lot of changes like returning the tool instead of creating in RS but nothing worked so far, i gave up on it already

sick saffron
#

it could be the case where the backpack hasnt loaded yet

#

maybe you could try do something where the player is fully loaded in

modest flame
#

tried too

sick saffron
#

you tried putting the tool somewhere else other than the backpack?

simple forum
#

I got it

simple forum
#

i forgot that I fixed your code 😭

sick saffron
modest flame
simple forum
#

i didn't include your other functions

#

@modest flame

#

make sure that the script is a script not a local script

#

this should come out

modest flame
#

It is a script in serverscriptservice and the module in replicated storage
also i've changed the script a little bit

#

it clones, but it doesn't want to clone into the backpack

#

Elsewhere it will

still condor
#

If backpack then

#

And print something

#

Small change but cud help a lot

modest flame
#

Good idea but didn't work aswell

still condor
#

Didn't print?

#

Anything

modest flame
#

it does print but doesn't want to clone into backpack

simple forum
#

are you perhaps retrieving the tool right after cloning it into the backpack

modest flame
#

wdym?

#

If you mean by return it is only in the module script to return it into the main script

simple forum
#

maybe try doing a wait()

#

idk

still condor
simple forum
#

put a statement after the clone to see if it clones into the backpack

still condor
#

This is strange ur code looks fine

modest flame
modest flame
#

should work fine but it doesnt bruh

still condor
#

This is where gpt comes in lol

modest flame
#

You may try lol

simple forum
#

chat gpt is pretty bad with codes

still condor
#

This code is so simple

#

That gpt can't mess it up anymore?😭

modest flame
still condor
#

Idk what ur trying to achieve here btw so im just asking

modest flame
#

Achieving fame

#

Just learning tbh

modest flame
#

This damn tool doesn't like me

simple forum
#

just put the tool in replicated storage

modest flame
#

AND FUCK FIXED IT

#

just changed the backpack to StarterGear lol

#

not the 100% solution i wanted but atleast the 90%

simple forum
#

better than nothing

severe dove
#

yo bois does marketplace.processreciept have a product type value as well?

#

like if it was a gamepass or dev product

velvet seal
#

read some doc lol

severe dove
#

chatgpt says it otherwise lol

#

haha

sweet cedar
#

anyone wanna make a gag game

next galleon
open sparrow
sonic mauve
open sparrow
#

arrows

sonic mauve
#

arrows?

#

for what

open sparrow
#

yea

#

for a game

#

i want smth smooth but currently i just have a part that follows the target while shooting arrows

#

i tried with beam but looks ugly with multiple arrows

crude crater
#

how would one go about handling a large number of enemies as I heard using humanoids isn't very efficient

sudden patio
#

whay sky is this

balmy wedge
#

So just try adding it every time the character is added

modest flame
balmy wedge
#

every time the character dies it resets ur backpack

#

this includes ur first spawn

buoyant gale
#

who wanna make a gaem with me?

past hill
#

Yooo ty for that guy that recommended me peasfactory ty!!

copper apex
#

Like for a simple example: I did this with my door service, I have a module called a door service, which then collects the tags of my doors, and depending on what type of door it is, I require one module that handles all the functions of a particular door and I can use the constructor (constructor meaning creating a new instance of a class) and then I can use the functions and methods of that class to apply to every SINGLE object of a particular door.

So if I had 55 single doors around my game, my door service collects all of those doors, and then requires the single door module and gives all the methods and functionality of that one module to all those 55 doors

#

A lot of ppl would say, you go ahead and do roblox OOP with this, but you dont have to

crystal topaz
#

s

#

okay thats it

south roost
#
local enemystun = enemychar:GetAttribute("Stunned")

if enemystun then return end

enemychar:SetAttribute("Stunned",true)
task.delay(0.45,function()
  enemychar:SetAttribute("Stunned",false)
end)

-- dmg/knockback here

can anybody explain why whenever i increase stun time the dmg/knockback like delays so much or sometimes doesnt register so i have to put 0.45 so its reasonable however other enemies can hit me even if they r stunned since its sucha. short time

daring otter
south roost
#

like stops anything below the code from happening

daring otter
#

hmm okay

frozen zodiac
#

oh

astral bay
#
-- found this shit on wiki
    local angle
    local root = (speed^4) - g * (g * d^2 + 2 * h * speed^2)

    if root < 0 then
        -- mouses target isnt viable for trajectory
        angle = math.rad(45)
    else
        local theta = math.atan((speed^2 - math.sqrt(root)) / (g * d))
        angle = theta
    end```
#

how can I make it not arc if I’m looking straight up i want the projectile to fall back down on me instead of arcing frontward

main pelican
#

any modelers or animators wanna make an egg hunt game with me

somber vault
main pelican
somber vault
#

ok

trail locust
#

Ok guys do you use actual physics to make some codes

trail locust
#

Or acceleration

tidal oak
#

Can anyone learn me how to script

proven depot
#

anyone needing help?]

wicked meadow
#

how can i learn lua

#

are yt tutorials okay?

rugged prairie
#

can anyone who program work with me for percent idk where i should be messaging this srry if not here

bleak magnet
#

what is the difference between programming and scripting?

thorny granite
#

why is it visible in the editor, but when I run it is not that visible , idk what other channel i would put this on

bleak magnet
thorny granite
#

chilll

#

gotta do what you gotta do to make some robux

alpine kelp
#

is there a way to stop roblox touch controls from deleting for mobile players when you die

bleak magnet
#

why whenever I touch this it causes a lag spike?

alpine kelp
alpine kelp
bleak magnet
static coral
#

so just copy it and edit it

wet holly
#

what was that

static coral
#

thats crazy

wide socket
#

why do we do
module.__index = module
and local self = setmetatable({}, module) in OOP?

ocean plaza
#

why can't I change .Interactable and .Active through scripts?

ivory kite
ivory kite
#

setting the self metatable to module allows you to inherit the module's functions through __index

carmine surge
ivory kite
# carmine surge

ViewportFrames do not calculate physics like the workspace does.

#

If you want to animate your model you need to put it within a worldmodel in the viewport first

ivory kite
vagrant sorrel
#
-- Option 1
DataHandler.Gold.Get()

-- Option 2
DataHandler.GetGold()

I am making this in order to have a central api, while avoiding or atleast trying to avoid cluttering. Which one of this u think is better and why? So what I am doing is creating a wrapper (DataHandler), in one of the versions I am calling the functions of the modules directly on the wrapper.

On the second, the wrapper is calling each module inside it just giving them a label, such as Gold.

If you don't like either, how do you usually achieve this?

ivory kite
#

Especially in a place where it's super important someone can follow your code without you having to explain it

carmine surge
# carmine surge life saver

even Ai didn't suggest doing a worldmodel though when I was doing other gui it actually told me to do it, but there i also had problem with animation xd

vagrant sorrel
wide socket
ivory kite
ivory kite
#

Finding something you have to continuously create

#

Actually

ivory kite
#

so

Vect3 = {}
Vect3.__index = Vect3
ivory kite
#

It'd be far easier to read if the constructor for the Vect3 and methods of it are under the same table

ivory kite
#

Happy to help!

obtuse vector
#

can i ask how people started to learn code? im wanting to learn but its very overwhelming to start and im not sure where to begin

rigid willow
#

is knit actually extremely bad and frowned upon asking js in case cuz i like it

lean grotto
#

anyone know if there is a way to make my Studio--> rojo --> visual studio code, instead of visual studio code --> rojo --> roblox?

rigid willow
#

literally why

tidal steppe
#

did anyone else start getting this issue randomly even without modifying scripts

honest tapir
#

Greetings devs i need help in scripting in roblox studio

mighty oak
#

hey guys i need help

#

I have a button that I want that if the player clicks it it prompts them to a gamepass

#

Chat GPT is saying I should have a local script in the button to do that AND a server script

#

its saying people can hack if there is just a local script

#

but idk because for the other gamepasses, it didn't say that

#

can someone help me out?

empty mulch
#

Look up any tutorial on game passes. It's not that complex

echo stream
mighty oak
#

@empty mulch

empty mulch
mighty oak
empty mulch
#

I haven't messed with gamepass prompt in a while. What's the local script for?

mighty oak
#

to prompt the gamepass

#

here lemme send it

#

local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")

local player = Players.LocalPlayer
local button = script.Parent

-- Replace this with your actual Developer Product ID
local developerProductId = -----------

button.MouseButton1Click:Connect(function()
MarketplaceService:PromptProductPurchase(player, developerProductId)
end)

empty mulch
#

Is the button a ui or a part

mighty oak
#

ui

pastel breach
#
local killbrick = script.Parent
local button = game.Workspace:WaitForChild("Button")
local damageEnabled = false
local debounce = false

-- Connect Touched once
killbrick.Touched:Connect(function(hit)
    if damageEnabled and not debounce then
        local humanoid = hit.Parent and hit.Parent:FindFirstChild("Humanoid")
        if humanoid then
            debounce = true
            humanoid:TakeDamage(100)
            wait(1)
            debounce = false
        end
    end
end)

-- Toggle damageEnabled when button clicked
button.ClickDetector.MouseClick:Connect(function(player)
    damageEnabled = not damageEnabled
    if damageEnabled then
        print("KillBrick damage ENABLED")
    else
        print("KillBrick damage DISABLED")
    end
end)

is this a good script for 3 days of learning luau?

empty mulch
# mighty oak ui

Use the local script to detect the button click. Fire it to serverscript with player and use the marketplace service there.

empty mulch
empty mulch
# mighty oak alr bet

If it's all in a local script then exploiters can fake purchase it ig 🤷 not too sure about that part

empty mulch
pastel breach
empty mulch
empty mulch
tidal steppe
#

the destroy thing

bold current
#

No, debris is just able to throttle for performance from what I remember

echo stream
#

^ thanks snacker

tidal steppe
#

i know there annoying but the warning is preventing the script from working

bold current
#

Actually hold on did :Destroy() get deprecated or something?

empty mulch
echo stream
#

roblox might do something stupid about it

#

comes down to rng

empty mulch
#

Tf

ivory bronze
empty mulch
#

Destroy is good the way it is

empty mulch
ivory bronze
empty mulch
ashen imp
#

i need help dev with my game idk how to make where the gamepasses when someone buys it it goes to my group and the robux goes to my group

ashen imp
#

but it didnt help

rain osprey
empty mulch
#

Interesting

somber vault
#

Guys i have a quick question, what website have yall used to make your portfolio? Ive got some sites, i just need the best one out of them

empty mulch
static coral
#

you just use httpservice?

#

or is there more to it

empty mulch
glad hatch
#
local function createLeashConstraint(cat, walker)
    if activeLeash then
        activeLeash.Attachment0:Destroy()
        activeLeash.Attachment1:Destroy()
        activeLeash:Destroy()
        activeLeash = nil
    end
    if not (cat and walker) then return end
    local catHrp = cat.Character and cat.Character:FindFirstChild("HumanoidRootPart")
    local walkerHrp = walker.Character and walker.Character:FindFirstChild("HumanoidRootPart")
    if not (catHrp and walkerHrp) then return end

    local catAttachment = Instance.new("Attachment", catHrp)
    local walkerAttachment = Instance.new("Attachment", walkerHrp)

    local rope = Instance.new("RopeConstraint", workspace)
    rope.Attachment0 = catAttachment
    rope.Attachment1 = walkerAttachment
    rope.Length = (catHrp.Position - walkerHrp.Position).Magnitude
    rope.Thickness = 0.2
    rope.Visible = true
    activeLeash = rope
end```

Hey can someone help heres my problem i am having
- the players walking gets choppy
- movement just turns really high ping (not really high ping but like almost like it is)
ivory kite
rain osprey
static coral
shy basin
#

im zooming and flying around once i go first person in my game and the error dissapears if i remove right arm or left arm, how do i fix ?

rain osprey
glad hatch
static coral
ivory kite
#

It's just if you're welding to something that isn't player controlled you should set the network ownership of that thing to the player

#

So it's the player's client that controls its physics

wooden drum
#

Ayo bro any advanced scripters here tryna assist me in a game?

quaint pine
#

who needs help me their scripts want to learn something dm me with ur problems (free)

worthy cosmos
#

R dev products still bugged?

raven sonnet
#

can any 1 that uses roblox-ts here help me with something?

spark willow
#

I should probably have a function that checks all the existing tagged items and loads their modules as well

spark willow
rain osprey
#

thats why i wont release it

spark willow
somber vault
naive temple
#

how to find the account age of a player that is not in game? please help me

tired stag
#

CAN SOMEONE PLS HELP I AM MAKING A SKILL EVERYTHING IS WORKING BUT NOW MY ANIMATIONS STOP WORKING FOR ME

#

i watched a lot of videos and i googled it but i did not find anything helpful

tired stag
#

ok

#

i have a whole group of people working on the game we are not professinal but like i spent an hour on it

#

trying to figure out the animation why is it not working

#

before it worked

naive temple
#

how to find the account age of a player that is not in game? please help me

wide socket
tired stag
#

before it worked in my other places

#

but now i tried in this place and other ones and it does not work

#

my animations or my friends

mint ice
#

Looking for a builder/scripter to help bring my RNG x Dungeon game to life — DM if you're interested, any amount of help means alot!

naive temple
#

its hard to find the account age of a player that is not in my game

#

i can find the name and userid for the player but i cant get the account age

wide socket
fathom atlas
#

i need help chat

naive temple
fathom atlas
#

does :Clone() resize the imagebuttons or what 😭

naive temple
#

dm me please @wide socket

mint ice
wide socket
somber vault
naive temple
wide socket
inland thistle
#

Js ask chatgpt for these kind of things theres prolly a built in function for it

wide socket
#

@naive temple ill try helping u rn

wide socket
# naive temple okay when you are availible

something like this

local id = 3398085422
local plr = game:GetService("HttpService"):GetAsync("https://users.roproxy.com/v1/users/".. id)
print(game:GetService("HttpService"):JSONDecode(plr).created)

should work 😄

#

it will print the date the account was created

naive temple
tribal venture
#

someone pls tell me how to clone a players character into a WorldModel (R6)

naive temple
#

i have to check if AccountAge > 5000

wide socket
#

but thats the best you will get

naive temple
#

okay thanks

#

really thank you so much

wide socket
#

np

weak radish
ashen radish
#

anyone up to help me make a game for free

weak radish
stable urchin
vestal pumice
slender yew
#

is there a way to offset first person camera whilst the player is seated? regular humanoid camera offset doesnt apply idk y

wooden drum
#

Not some dumb rogue like loser game

#

Yeah Im calling all ya bums out making roguelike games

#

Get creative

vestal pumice
#

first person who dosent want to make a front pagecarbon copy 😲

wooden drum
#

Im only a dev cus i was a player who got tired of lame games

#

Im making games to play games

empty mulch
drowsy arrow
#

do yall know if im doing something wrong the i used this leaderstats script but nothing shows in leaderboard ```
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder", player)
leaderstats.Name = "Leaderstats"

    local cash = Instance.new("IntValue", leaderstats)
    cash.Value = "Cash"
    cash.Value = 0

local hasTycoon = Instance.new("BoolValue", player)
hasTycoon.Name = "HasTycoon"
hasTycoon.Value = false

end)```

drowsy arrow
empty mulch
hoary cedar
#

💀

vagrant sorrel
#

do u guys use module loaders?

wise turtle
#

no

raven sonnet
vagrant sorrel
raven sonnet
#

im making entire game made out of module scripts

vagrant sorrel
raven sonnet
#

1 sec

broken talon
#

Anyone here know how I can make a group ranking system in python without using the roblox cookie feature?

vagrant sorrel
# raven sonnet

hmmmm, can u show me your implementation of the module loader?

vagrant sorrel
broken talon
raven sonnet
#

i found in somewhere on youtube

vagrant sorrel
broken talon
vagrant sorrel
vagrant sorrel
#

not sure what the roblox api can achieve

placid matrix
#

calling all femboys.

granite galleon
placid matrix
granite galleon
#

entire codebase ruined

raven sonnet
#

nah theres easy option to change that

vagrant sorrel
granite galleon
#

global find all/replace all for the win

raven sonnet
placid matrix
#

do NOT use this

vagrant sorrel
placid matrix
#

thats extremely bad practice

raven sonnet
#

i will change it anyway

#

just make my own

placid matrix
#

for _, v in next, root:GetChildren() do
  (require)(v)
end
#

Lol theres ur module loader. np.

placid matrix
vagrant sorrel
raven sonnet
placid matrix
#

Is this an ad buddy

#

ur done

vagrant sorrel
placid matrix
vagrant sorrel
#

still, not extremely bad

raven sonnet
#

so il just make it better

#

also i never had issue with it

summer phoenix
#

yo guys can I send a webhook signal from a discord bot to roblox

empty mulch
summer phoenix
#

yea lol i might try code-help

#

alright i regret that

empty mulch
summer phoenix
#

got an answer

glacial juniper
#

guys why would my memory be sooo high

placid matrix
#

😭

#

or ur assets are geniunely shit

glacial juniper
placid matrix
#

luauheap in the console

glacial juniper
placid matrix
#

read

lilac gale
#

i’d help, though i’m not at my pc

#

it shows you the memory each script uses

glacial juniper
placid matrix
glacial juniper
placid matrix
#

bro thats not luaheap

#

luauheap

glacial juniper
placid matrix
#

of ur snapshot\

glacial juniper
placid matrix
#

these are ur issues

glacial juniper
#

for custom inv

placid matrix
#

yoo I do not care

#

thats ur issue buddy, thats whats bloating ur memory

glacial juniper
placid matrix
#

then keep making snapshots??

#

what do u want me to tell u, its ur game

drowsy arrow
#

Is there anyone in here who makes tycoons that can help me

spark turret
drowsy arrow
#

When i load in the game the buttons are there but the items dont disapear like they are spose to

drowsy arrow
spark turret
drowsy arrow
#

wait nvm i think i found my problem

drowsy arrow
# spark turret i can’t fix the code without seeing the code
    for i, v in pairs(buttons:GetChildren())do
        spawn(function()
            if v:FindFirstChild("Button") then
                
                local newObject = purchasedItems:FindFirstChild(v.Object.Value)
                if newObject ~= nil then
                    objects[newObject.Name] = newObject:Clone()
                    newObject:Destroy()
                else
                    v:Destroy()
                end
                
                if v:FindFirstChild("Dependency") then
                    v.Button.Transparency = 1
                    v.Button.CanCollide = false
                    coroutine.resume(coroutine.create(function()
                        if purchasedItems:WaitForChild(v.Dependency.Value) then
                            v.Button.Transparency = 0
                            v.Button.CanCollide = true    
                        end
                    end))
                end
                
                v.Button.Touched:Connect(function(hit)
                    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
                    if values.OwnerValue.Value == player then
                        if v.Button.CnCollide == true then
                            if player:FindFirstChild("leaderstats").Cash.Value >= v. Price.Value then
                                player.leaderstats.Cash.Value -= v.Price.Valu
                                objects[v.Object.Value].Parent = purchasedItems
                                v:Destroy()
                            end
                        end
                    end
                end)
            end
        end)
    end
end```
#

It actually isnt my code it is from a yt video but im sure i did everything right?

shy harness
#

why are people so bad at reducing indents

stable urchin
#

for the lols im gonna clean it a little ```lua
if not buttons then return end
for i, v in pairs(buttons:GetChildren())do
if not v:FindFirstChild("Button") then continue end
spawn(function()
local newObject = purchasedItems:FindFirstChild(v.Object.Value)
if newObject ~= nil then
objects[newObject.Name] = newObject:Clone()
newObject:Destroy()
else
v:Destroy()
end

    if v:FindFirstChild("Dependency") then
        v.Button.Transparency = 1
        v.Button.CanCollide = false
        coroutine.resume(coroutine.create(function()
            if not purchasedItems:WaitForChild(v.Dependency.Value) then return end
            v.Button.Transparency = 0
            v.Button.CanCollide = true
        end))
    end
    
    v.Button.Touched:Connect(function(hit)
        local player = game.Players:GetPlayerFromCharacter(hit.Parent)
        if values.OwnerValue.Value ~= player then return end
        if v.Button.CnCollide ~= true then return end
        if player:FindFirstChild("leaderstats").Cash.Value < v.Price.Value then return end

        player.leaderstats.Cash.Value -= v.Price.Valu
        objects[v.Object.Value].Parent = purchasedItems
        v:Destroy()
    end)
end)

end

#

mind you this is still far from optimal

#

at least the mach cone's reduced

elder sparrow
#

coding pisses me off

#

but i stil do it :/

versed osprey
versed osprey
stable urchin
#

I just mostly finished working on a turret system

elder sparrow
#

yeah the result are good but the process

#

make break hate myself repeat

stable urchin
#

I didn't bat an eye on it for a long time

south prism
elder sparrow
#

yes

#

take the humanoid

#

and up the walkspeed

#

rn he look like an old man

south prism
#

no i just have to change the speed of the sounds and remove the default humanoid sounds

#

its a normal walk speed

#

when do you see an average human walking 10 mph

manic rover
#

why am i adding "and not IsBlocking" here = if Input.UserInputType == Enum.UserInputType.MouseButton1 and not IsBlocking then

south prism
warm heron
#

can any1 help me putting my animations into my actually code so when a players clicks something it plays

rain osprey
hallow linden
#

Me when I'm on an unreasonable expectations competition and my opponent is a hiddendevs hirer

grim remnant
#

Whats the best way to learn coding in 3 months (lua for rblx)?

hallow linden
hallow linden
hallow linden
# grim remnant 5h a day

last thing, do you want the quicker but "probably not too great" way, or the more intricate, surefire way (will prob take longer and be boring)?

placid lark
#

don't know about that

#

five hours of typing in a language you don't understand for 365 days

hallow linden
#

well either way, I'd honestly tell ya to do 2 things, one is optional if you want the quick way out: Look for luau (roblox lua) coding tutorials, anything on yt that you wanna do at that given moment. Also, kinda frowned upon but AI like ChatGPT will help you tons if you make basic, theory questions and read through whatever it gives ya. As a bonus, look at an intro to OOP tutorial on youtube. The concepts there translate to any language that supports it, so take it to heart

hallow linden
grim remnant
#

Alrigjt

grim remnant
#

I’ll read it, take notes then practice

#

If there’s errors i’ll run it through ai

hallow linden
#

What really helps is practice but practice without knowing the basics is not gonna help either

#

the OOP tutorial I mentioned and looking at quick "how to do x in roblox studio" guides are the basics

grim remnant
#

i think for my first project i’ll try a very basic combat system

#

animating isn’t a strong suit for me tho

hallow linden
grim remnant
#

how do i actually make the system then

hallow linden
#

just do something exceedingly basic or print in chat when smth happens

#

it'll look goofy but it will work in the backend

#

which is what matters most for ya

grim remnant
hallow linden
#

so at least smth happens

grim remnant
#

ngl most of scripting i know is in my bio

#

and i don’t even think its correctcryingdead

hallow linden
#

kinda is

#

it ight

grim remnant
#

the only scripting i know is html

grim remnant
ivory kite
# rain osprey

Dude every time I look back at this channel and I see a post you make it crazier every time

#

It looks almost like the actual TV app

rain osprey
#

I'm gonna work on something bigger maybe

#

-# hq audio streaming..?

ivory kite
#

I don't know if that's possible on Roblox's engine

rain osprey
#

Probably is

rapid spruce
#

is this good

verbal otter
#

whats the small script again that hides the default roblox badge pop up in StarterPlayer?

pine lodge
#

Hi chat

shrewd python
#

if I want to clone a tool, where should I place the tool at in workspace?

#

I'm having trouble with the script inside tool being shared with other players

stable verge
versed osprey
#

i was wondering if anyone can help me with my code i cant frigre out out to make the radoll last a few secs

#

local function ragdollCharacter(character)
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid:ChangeState(Enum.HumanoidStateType.Physics)
humanoid.PlatformStand = true
end

for _, desc in ipairs(character:GetDescendants()) do
    if desc:IsA("Motor6D") then
        local socket = Instance.new("BallSocketConstraint")
        local a0 = Instance.new("Attachment")
        local a1 = Instance.new("Attachment")

        local part0 = desc.Part0
        local part1 = desc.Part1
        if part0 and part1 then
            a0.CFrame = desc.C0
            a1.CFrame = desc.C1

            a0.Parent = part0
            a1.Parent = part1

            socket.Attachment0 = a0
            socket.Attachment1 = a1
            socket.Parent = part0
        end

        desc:Destroy()
    end
end

end

spark willow
#

why is selene flagging this?

#

anybody here have experience with using rojo and vs code? I've got selene installed as my linter but I guess it doesn't know about type annotations

#

I'm just going to uninstall selene and use something else

shy harness
#

base lua doesn't have types

#

you need something specifically for luau

north kiln
# spark willow

Get rid of that random bracket at the end of your function.

spark willow
#

which is confusing because the same dev who made that plugin also has made some of the other plugins I have specifically for roblox

#

that's why I made the mistake of installing it

spark willow
north kiln
#

By JohnnyMorganz?

spark willow
#

I think it handles syntax errors so I don't need selene

north kiln
spark willow
#

it is already

north kiln
spark willow
#

how do you guys structure your games? A friend of mine mentioned keeping your project organized in a way that there's only one server side script and one client side script with all your code in modules

#

I guess I see the advantage of having all your code in one file so that everything can be interconnected

#

but why not just have multiple scripts to keep it more readable and then use events or globals for intercommunication

#

while still making use of modules ofc

north kiln
spark willow
#

you can still keep the majority of things in modules but then have separate scripts for managing different types of modules

north kiln
spark willow
#

like you might have a set of modules specifically for weapons and then another set specifically for in world interactions on objects that are static

#

I guess you can have a module for each type of object in the game that manages it's own modules respectively

#

and then have one main script that requires all the managers

north kiln
spark willow
#

actually I get it now

#

soemtimes I just have to talk things out to make sense of things lol

shy harness
#

real

north kiln
#

I have no idea what to make for my scripter application.

spark willow
#

yo uhave to apply for the scripter role?

#

it probably doesn't need to be anything complex just something that encompasses enough features of the engine to show you know what you're doing

north kiln
spark willow
north kiln
spark willow
#

make a car

north kiln
spark willow
#

or make an interaction system for interacting with any kind of interactable item in the workspace

#

has to be flexible enough that it doesn't matter what kind of code is on the other side of the interaction

#

so you'd have to use events probably

#

you could have an interactable manager that goes through all the "interactable" tagged items and makes sure they have the correct events parented to them

#

you migth need to make that first before you can make a car

fluid goblet
#

does anyone know why this codes not working. its supposed to make my sword do damage.

pine lodge
#

I can not do this

#

Brooooo

fluid goblet
# civic garnet skill issue

Oh no, you saying this made me critically depressed. What will I ever do. My life's over now. Because of this i wont be able to get a job or a stable future.

#

😢😭😢😭😢😭😢😭

shy harness
#

lowest tier of ragebait and you fell for it

fickle wedge
#

i need help with this, ok so i want a text label to showcase the leaderstats value but it only works when its changed, i want it to work even if its not changed

#

heres my code

-- Dabloons
dabloons:GetPropertyChangedSignal("Value"):Connect(function()
    dabloonstext.Text = dabloons.Value.. "D$"
end)
fickle wedge
#

i forgot to hold shift😭

gray maple
#

duhh

fickle wedge
#

omg

#

ur so sexy

#

ty

fickle wedge
#

if im making a daily reward should the reward be on a local script or a server script

fickle wedge
fluid galleon
fickle wedge
#

what would be the difference form doing that and using a remote event

fluid galleon
#

you can dude if u use remote even it will be just an extra burden nothing else cuz u have to check from server side or explotiers gonna cook it up

naive temple
#

hello, i want to get a random player on the platform with 5000+ account age. how can i do that?

weak radish
#

Otherwise you're looping through every single players thats ever played roblox

solemn flame
#

How fucked is my code for first time using anything somewhat advanced

shy harness
#

getting repl in the connect function is wild

#

never seen that

#

you should do it at the top

quaint pine
hasty mesa
solemn flame
shy harness
#

oh it’s what i call replicatedstorage

solemn flame
#

Ohh replicated

#

I heard global values were bad on optimization

glacial juniper
#

whats the best way to go about making a plot saving system like grow a garden?

solemn flame
#

So I only put them in categories they were needed in

shy harness
#

mmmmm well it’s getting replicated storage every time you click the button

solemn flame
#

Oh 😭

shy harness
#

that advice is more for like

#

global numbers or things like that

#

stuff like replicated is meant to be global

solemn flame
#

Got it, how's the rest of that several hour hell though?

#

Went off of half reading the roblox luau tutorial

#

(Worth it ngl, I've spent so much time trying anything possible to make everything work I learned a decent bit about said things that'll not be forgotten)

shy harness
#

the decal thing is a little silly but otherwise nothing else stands out as bad to me

solemn flame
#

As in the six decal strings to make a image box?

shy harness
#

yeah xD

solemn flame
#

I swear there's a way to do it better, I just dont know it 😭

shy harness
solemn flame
#

Too lazy if it doesn't bring bad performance, though I do find needing a decal for every cube side unrealistic

#

Anything to do on that?

shy harness
#

hmm idk the decal system very well

#

probably

solemn flame
#

Alrighty then, thanks for the help random person

shy harness
warm heron
#

can anyone help me with coding a animation into a code i want my quick block to happen when F key is pressed

fickle wedge
#

how do i stop my UI from overlapping on open

#

so like lets say i have settings opened and i try to open shop, i want it to close settings than try to open shop

simple forum
#

make setting UI visibility false

#

@fickle wedge

fickle wedge
simple forum
#

Have you started to script it yet?

fickle wedge
simple forum
#

lemme have a look

fickle wedge
simple forum
#

generally, you would just do when your shop open, Setting.Visible = false

simple forum
fickle wedge
#

i have 3 buttons so far

somber vault
simple forum
#

that's better

fickle wedge
#

heres my code if u wanna use it for reference

#
-- Quest UI
Quest.Activated:Connect(function()
    print("Quest")
    
    -- Sound
    UiClick:Play()
    
    QuestScUI.Enabled = not QuestScUI.Enabled
    Blur.Enabled = not Blur.Enabled
    
    -- Sound
    if QuestScUI.Enabled == false then
        UiClick:Stop()
    end

    -- Checks if the tween is playing and cancels it if true
    if currentTween and currentTween.PlaybackState == Enum.PlaybackState.Playing then
        currentTween:Cancel()
        currentTween = nil
    end
    
    --Tween
    currentTween = tweenService:Create(camera, Blur.Enabled and _TweenIn or _TweenOut, 
        {FieldOfView = Blur.Enabled and 60 or 70})
    currentTween:Play()
end)




-- Shop UI
Shop.Activated:Connect(function()
    print("Shop")
    
    -- Sound
    UiClick:Play()

    -- Blur and Shop UI
    ShopScUI.Enabled = not ShopScUI.Enabled
    Blur.Enabled = not Blur.Enabled
    
    if ShopScUI.Enabled == false then
        UiClick:Pause()
    end

    -- Checks if the tween is playing and cancels it if true
    if currentTween and currentTween.PlaybackState == Enum.PlaybackState.Playing then
        currentTween:Cancel()
        currentTween = nil
    end

    --Tween
    currentTween = tweenService:Create(camera, Blur.Enabled and _TweenIn or _TweenOut, 
        {FieldOfView = Blur.Enabled and 60 or 70})
    currentTween:Play()
end)


-- Timer Display

    while true do
        task.wait(0.01)
        time.Text = string.sub (game.Lighting.TimeOfDay,1,5)
         
    end

simple forum
#

if Shop.Actived then
yourUI.Enabled = false

#

or just put it in your shop function

fickle wedge
#

so something like this?

-- Shop UI
Shop.Activated:Connect(function()
    if Shop.Actived  then
        QuestScUI = false
        SettingScUI = false
    end
    
    print("Shop")
simple forum
#

i think so, just test it

fickle wedge
#

i cant open anyhting but shop when its like that

simple forum
#

😭 oh

#

because it's always activated

#

is the shop.Activated meaning to open the Ui

proper edge
#

What do u guys think

simple forum
#

if you use activated it literally means its always activated and that means you can only open your shop

proper edge
#

Should it be placed behind the players

fickle wedge
proper edge
#

Or should the player be inside it

simple forum
#

use .Triggered or .MouseClick1

fickle wedge
#

i do activated since my friend said using activated lets mobile players use it to

simple forum
fickle wedge
#

he knows 100x more things of scripting than me

proper edge
#

thanks 🙂

fickle wedge
#

ty for the help tho

simple forum
#

alright

hollow thicket
#
local rs = game:GetService("RunService")
local RP = game:GetService("ReplicatedStorage")
local UIS = game:GetService("UserInputService")
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local currenttarget = nil
local maxdistance = 25
local function HighLight(object)
   object = RP.Object.HoverHighlight.Adornee
end
rs.Heartbeat:Connect(function()
    local mouseposition = UIS:GetMouseLocation()
    local ray = workspace.CurrentCamera:ViewportPointToRay(mouseposition.x,mouseposition.Y)
    local RaycastParams = RaycastParams.new()
    RaycastParams.FilterType = Enum.RaycastFilterType.Exclude
    RaycastParams.FilterDescendantsInstances = player.Character:GetDescendants()
    local result = workspace:Raycast(ray.Origin ,ray.Direction * maxdistance , RaycastParams)
    if result and result.Instance and result.Instance:GetChildren("PickUp") then
        local target = result.Instance
        HighLight(target)
    else
        local target = nil
        HighLight(nil)
    end
end)```
why it pop  Players.9sojehen3.PlayerScripts.LocalScript:16: attempt to index nil with 'GetDescendants'
#

chat why it not wokring

lofty plinth
#

Could be the fact the player character has yet to load

somber raft
#

guys u here?

#

@plucky karma

hallow crag
#

not the server

somber raft
#

how

hallow crag
#

nvm ur already doing on client

somber raft
#

let me send u a vid

hallow crag
#

might be cause ur anchoring the character

#

just set the players walkspeed and jumppower to 0

#

instead of anchoring

somber raft
#

lets see

daring otter
somber raft
open sparrow
#

i just bought ChatGpt premium give me a hard to do prompt i wanna test the AI

somber raft
#

was it 20$

#

alright make me the saving script for data saving players plot and positiom for each plant @open sparrow

#

and their size

open sparrow
#

hell naw bro

#

i ain't making u the whole grow a garden game

somber raft
#

just prompt it u said uwanted a hard prompt,and u dont need to give me the script rtryr it ur self

open sparrow
#

is that ur promt?

#

i barley understood it, how do u expect the AI to do it

somber raft
#

trust me chat gpt will do it,he helped me a lot

#

he is smart

#

especially 4o

fickle wedge
#

js something apart of my game

#

why isnt my tween service working

#
local TS = game:GetService("TweenService")

local tweenINFO = TweenInfo.new(2)

local tween = TS:Create(script.Parent.UIGradient, tweenINFO, {Offset = Vector2.new(0,5,0)}):Play()
daring otter
fickle wedge
#

oh shoot

#

didnt even realize

#

but i think i figured it out

#

yeah i got it

#

it was one small thing

daring otter
#

no worries, just recommended
happy to hear it got fixed

fickle wedge
#

i swear coding pmo

daring otter
daring otter
livid socket
#

is here anybody 🇨🇿 ? willing to coop in some fun dev ? dms.

quick vapor
#

finding someone who are interested to collaborate me on Punch Button Tower

crystal bridge
#

Hey guys, there are 2 tasks that I need to accomplish (I'm a solo dev that can do everything besides scripting, so I'd like to see if I can learn to do it myself)

Task 1

Enforce 2 second click cooldown: clicks during this cooldown will not reward the player,
Add +1 AuraPower every click,
Scale down / make button slightly more transparent upon click, undo upon click release,
Display AuraPower in the player list
At each AuraPower Milestone have the player Equipped with/display the next level of visual Aura VFX: 10 Aura Power, 50 Aura Power, 250 Aura Power, 1000 Aura Power, 5000 Aura Power, 10,000 Aura Power.

(Each rebirth would give the next line of Aura Visuals for that rebirth level. They are already imported in the game)

Task 2

Rebirth formula: 1000 * (1.7 ^ rebirth count) = rebirth cost,
Display rebirths in the player list,
Set AuraPower to 0,
Increase Stat Point balance by 1,
Trigger rebirth via an UI button
Respawn player infront of a statue/tome

What do you guys think? How easy is it to script this?

astral geyser
crystal bridge
sweet cedar
#

yo anyone wanna make a 3d obby game

#

like thia

narrow vault
# crystal bridge Hey guys, there are 2 tasks that I need to accomplish (I'm a solo dev that can d...

local CanClick = true
local plr = game:GetService("Players").LocalPlayer
local char = plr.Charactrr or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")

local variablesneeded = {

Connections = {}

}


variablesneeded.Connections["Input"] = game:GetService("UserInputService").InputBegan:Connect(function(input, gmp))

if gmp then return end

if input.UserInputType == Enum.UserInputType.MouseButton1 and CanClick then

CanClick = false

plr.leaddrstats.AuraPower.Value += 1

task.wait(2)

CanClick = true

end

end)```
#

this is a example

sweet cedar
#

@crystal bridge

narrow vault
#

i wrote it on mobile so gg

sweet cedar
#

@narrow vault

#

wanna make a game like this for fun?

narrow vault
sweet cedar
#

aww

#

kk

narrow vault
sweet cedar
#

oh nty

#

well if we make it whatever the game makes we split 50 50

#

?

#

@narrow vault

sweet cedar
#

k

narrow vault
#

why would i waste my time on that if theres no pay

crystal topaz
#

guys i have a pet in my game where u hold it but i want you to be able to place it somewhere who can help

somber vault
#

If u want help, with bugs or script, then go to #code-help

shadow cloak
#

ya'll have any recommendations on limiting damage by saveinstance()?

austere drift
#

Yo im a small scripter that want to start commissions but don’t know how and I don’t want to do trash

raven sonnet
#

And in order to get the role u need to apply for it

austere drift
#

Ok

#

How to apply

raven sonnet
#

https://hiddendevs.com/ read the requirements when applying

We're a community of skilled creators. From programmers to graphic designers - we provide a platform to communicate, share, and transact amongst other fellow creators.

austere drift
#

Where

raven sonnet
austere drift
#

Alr

quaint pine
#

why cant i see the script numbers anything my studio is cooked : (

buoyant gale
#

guys who wanna be my dev partner and we make games

gray jay
#

do anyone know where in the playermodule root part rotation is

novel trout
#

copy the code and replace the module or sum

compact shell
#

anyone want to help me make a steampunk building game (where you build a blimp and explore)

crude hamlet
#

hey gooners

fierce karma
#

why do games do hitboxes as boxses or seperate parts instead of the normal rig like left arm right arm or left hand right hand yk what i mean i feel it would make the combat smoother and better

narrow vault
#

which is 225 parts

fierce karma
#

it doesnt exactly need or i to be that though

#

every punch is a connect to the player like the script

#

can detect

#

if lets say its r6

#

if the left arm touches another player

#

it deals damage to that other player

narrow vault
fierce karma
#

how though

#

the hitboxes are usually never accurate in most games

#

even if they are they are abit buggy

#

so doing this can jst prevent many issues

still dew
#

Can someone help me

#

Im tweaking out right now

urban palm
#

can anyone help me with this? i have it set up where if you equip a hat it sets the players "EquippedHat" value to the name of the hat and if the hat is in a players "ownedhats" folder then you can equip it, but if its not then you can't. and for some reason the text on the buttons get stuck on "unequip" even though I either dont have that hat equipped or i have another hat equipped, can anyone help/

#

ill explain more if needed

stuck tartan
#

GUYS I NEEDA PAY A DEV 1500 RBX ILL SCRIPT / DO ANY MODEL FOR 1500 BUT PLEASE NTO COMPLEX AND I NEED RBX UPFRONT QUICKK

urban palm
stuck tartan
urban palm
#

but which dev? scripting?

stuck tartan
#

ui

urban palm
#

oh

final island
#

can anyone help me fix a script that doesnt work properly?

urban palm
#

been blanked 3 seperate times in 3 seperate channels

magic yacht
#

for i = 1, math.huge do

fiery blade
#

who is the best at explaining how to script lua in roblox studio?

#

or i mean how should i learn it

#

tyWHYYYYY sad_hamster

pure smelt
narrow vault
pure smelt
narrow vault
# pure smelt 😦

try to add comments, try to use a table where you have a dictionary called connections so you can store them

#

like

#

variables.Connections["PlayerAdded"] bla bla

#

a skid will probably get here and tell me its useless

#

but its good for practice

#

while its useless to do that for playeradded events in a script that will always remain, its good for practice

#

and spacing out the code 2

pure smelt
#

i see

raven sonnet
#

quick question do u guys think its good approach?

#

the coroutine

narrow vault
raven sonnet
narrow vault
#

i meant

#

task in general

raven sonnet
narrow vault
#

cuz coroutines are kinda worse than task.blabla

raven sonnet
narrow vault
#

imagine u do coroutine.wrap and it errors

narrow vault