#anyone help me with the round system

1 messages · Page 1 of 1 (latest)

rough perch
#

im using chat gpt so umm:(

narrow granite
#

if you were to ask chatgpt what everything means as you're going, you would know how to fix things like this

pastel horizon
pastel horizon
#

then the fuck ure saying bruh 🥀

pastel horizon
#

done

narrow granite
pastel horizon
narrow granite
#

if you do it correctly and use humand made resources cuz ai screws up a lot then you can use it

pastel horizon
#

aint nobody doing all that

narrow granite
pastel horizon
#

when i asked gpt how to change the player speed (propmt: How to make player walk faster in Roblox Studio) it told me to change gravity property of the workspace

#

atp just paste css code into roblox 😂

alpine patio
pastel horizon
#

but on god do not let it write scripts

alpine patio
#

but it needs

#

human intervention in a way

#

like you need to understand what its doing

#

to properly correct it and such

pastel horizon
#

thats debugging

alpine patio
#

if you use it like the code co pilot from visual studio then i think its fine

pastel horizon
#

and let me tell you, with ai scripts debugging takes years

alpine patio
#

it does

#

on certain topics that arent covered a lot it takes YEARS

#

like when a module ran twice

#

and the issue was that i ran it on a command bar

pastel horizon
#

and even if the script works, it might end up be just a pile of glued and taped bs

alpine patio
#

and it didnt tell me it was on a different lua env

#

yeah thats why i feel like if you do write a script with it

#

you should ask how it works

pastel horizon
#

you dont

alpine patio
#

but i feel like u should just

#

know how to structure code in the first place

#

and only ask if youre lost

#

about something

pastel horizon
#

no man, the ai is not capable of doing this, not at this point of time

alpine patio
#

then look through several solutions

pastel horizon
#

a simple script for like a .Touched event its okay

#

still itll make a function to literaly only call an existing function

alpine patio
#

youre right abt full scripts ngl

#

its good at giving ideas

#

id say

#

like youre confused how to go abt something so you ask and see what it says

#

and it might give you an idea

pastel horizon
#
local function randomNumber(rangeBegin, rangeEnd)
  math.random(rangeBegin, rangeEnd)
end
alpine patio
#

😭

#

ive never had that

#

to that extent

pastel horizon
#

like let me do it rn

alpine patio
#

im trying to do something like that rn because im in a territory that is not documented by literally anyone

#

aka moon animator's globals

#

so im feeding it very little scripts that DO use it to get an idea of how to do certain things

pastel horizon
#
local part = script.Parent
local clickDetector = part:FindFirstChild("ClickDetector")

-- Function to generate a random color
local function getRandomColor()
    return Color3.new(math.random(), math.random(), math.random())
end

-- Function to change color on click
local function onClick()
    part.Color = getRandomColor()
end

-- Connect the click event
clickDetector.MouseClick:Connect(onClick)
#

like bro

alpine patio
#

because it detects functions for keyframes and such

#

bra

#

is that what it gave you

#

LMAO

pastel horizon
#

YES

alpine patio
#

😭

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

local gui = script.Parent
local circle = gui:WaitForChild("ControlCircle")

RunService.RenderStepped:Connect(function()
    local guiCenter = gui.AbsolutePosition + (gui.AbsoluteSize / 2)
    local circleCenter = circle.AbsolutePosition + (circle.AbsoluteSize / 2)
    local offset = circleCenter - guiCenter

    print("Offset from center:", offset.X, offset.Y)
end)
#

this was just for an idea although

#

wasnt sure how to get how far away an ui is from the center and apply it to a 3d object

#

i feel like if you use chatgpt for coding you should only really use it for learning and ideas

#

its amazing at teaching

alpine patio
#

it does

#

i think

#

might need a mnus but im unsure

pastel horizon
#

should

#
local tool = script.Parent
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local fireEvent = tool:WaitForChild("FireEvent")

local canShoot = true
local fireRate = 0.15 -- Time between shots

tool.Equipped:Connect(function()
    mouse.Button1Down:Connect(function()
        if not canShoot then return end
        canShoot = false
        
        -- Get mouse target
        local origin = player.Character:FindFirstChild("Head").Position
        local direction = (mouse.Hit.Position - origin).Unit * 500

        fireEvent:FireServer(origin, direction)
        
        task.wait(fireRate)
        canShoot = true
    end)
end)
#

another one it gave me

#

this would cause an issue as it keeps connecting the button1down over and over again everytime the tool is euipped

#

and its easily exploitable by players

pastel horizon
#

part of a modern gun system

alpine patio
random valveBOT
#

studio** You are now Level 4! **studio

alpine patio
#

WTF

#

LMAO

#
-- LocalScript in GunTool
local tool = script.Parent
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local event = tool:WaitForChild("RemoteEvent")

local canShoot = true

tool.Equipped:Connect(function()
    mouse.Button1Down:Connect(function()
        if canShoot then
            event:FireServer(mouse.Hit.Position)
        end
    end)
end)
pastel horizon
#

thats even fucking worse

idle cypress
#

idk about you guys but the chatgpt i'm using is flawless and can do anything just fine

rough perch
#

look

random valveBOT
#

studio** You are now Level 6! **studio

rough perch
#

ik how dos the print work

rough perch
#

but some parts of the script learning i just don't understand it

pastel horizon
pastel horizon
rough perch
pastel horizon
pastel horizon
idle cypress
rough perch
#

i just wanted a video that can explane the code meanings and how thay function well without getting confessing

idle cypress
rough perch
#

ok

#

but

#

some of them

idle cypress
#

No

#

A confession is a secret that they tell you

rough perch
#

but

#

the print

#

"yes ik how to use it"

#

some parts of the print like

#

if somthing fails

#

i want it to print that

#

but the script is just confusing

#

idk why

#

and if i know how the script how it works now

#

i will not even understand how it function

#

oh wait

#

i can use --

pastel horizon
rough perch
#

i was watching dat