đźžš why my part doesnt move to his destination...?

I used AI chitGPT to write this all… doesn’t WORK!!! I thought ChitGPT.5 was the best version it has…??

first of all… i want to do a part that moves when i join the game from point a… to point b… SO WHEN I JOIN, it first teleports after 13.5 secs to point a, then waits 5, then teleports to point b… and with smooth animation…and with sounds…
Butwhen i join nothing happenss, THE PART DOESN’T APPEAR… it made me so angered that I ACTUALLY crashed my 5th helicopter into the street, cutting all light sources nearby.

here’s my script.

-- Part moving script handler
-- game.ServerScriptService://Part_MOVING_SCRIPT_HANDLER
-- What this does: 
-- It moves a part from destination A to destination B, waiting exactly 13.5 since the player's joined the game — with a smooth animation!
-- Efficient and ready-to-work script!
-- ChitGPT this doesn't work, it doesn't even spawn the PART. Please fix all of the script and give me the whole script to copy and paste, also comment everything so I can understand it better because I want to become a better scripter and better developer for me. Thanks ChitGPT, i hope you have a good day!
-- keep in mind chitgpt that this is a server script not a client script so you know! and this is luau roblox so you know, and we are at the date 12-12-2025!

-- Variables
local part = Instance.new("Part") -- Creates the part, efficiently
local pointA_Part = Instance.old("Part") -- creates an old part, which is connected to is descendant — the new part
local pointB_Part = Instance.old("Part") -- creates an old part, which is connected to is descendant — the new part
local twinService = game:GetService("TwinService") -- Used for smooth animations
local twinsInformation = twininfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In) -- The information for smooth animations (wow this rhymed good j*b chitGPT!)
print("This part works, testing!") -- Debug, emergency and testing print 

-- Setting the parts for-use:
print("Working.") -- Debug, emergency and testing print 

part.Position = Vector3.new(0,10,0) -- Sets the position of the part.
part.Anchored = true -- Prevents it from falling
part.Parent = workspace -- Parents it to workspace, efficiently making it exist and ready-for-use.

print("Working.") -- Debug, emergency and testing print 

pointA_Part.Position  =  Vector3.new(0,10,10) -- Sets the position of the part.
pointA_Part.Anchored = true -- Prevents it from falling
pointA_Part.Parent = workspace -- Parents it to workspace, efficiently making it exist and ready-for-use.
pointA_Part.Transparency = 1 -- Makes it invisible

print("Working.") -- Debug, emergency and testing print 

pointB_Part.Position  =  Vector3.new(10,10,0) -- Sets the position of the part.
pointB_Part.Anchored = true -- Prevents it from falling
pointB_Part.Parent = workspace -- Parents it to workspace, efficiently making it exist and ready-for-use.
pointB_Part.Transparency = 1 -- Makes it invisible

print("Working.") -- Debug, emergency and testing print 
-- Main
print("Working.") -- Debug, emergency and testing print 
local serviceWhenPlayerJoins_FirstFinding_OrJustTheLocalPlayerEvents = game:GetService("LocalPlayerEvents") -- Gets first the local player events
local serviceWhenPlayerJoins_FindingSuccess = serviceWhenPlayerJoins_FirstFinding_OrJustTheLocalPlayerEvents:GetService("WhenPlayerJoins") -- WhenPlayerJoinsService found!

serviceWhenPlayerJoins_FindingSuccess.WhenPlayerJoins:Connect:Function:PlayerJoined -- Calls the event when the player joins the game!

task.wait(13.5) -- Waits exactly 13.5 seconds
part.Position *= PointA_Part.CFrame.Position -- Efficiently teleports the part to the point A
print("Working.") -- Debug, emergency and testing print 
task.Spawn(function(task.delay(5))) -- Spawns the delay after the task.wait, so it waits more effectively and efficient. 
local ChangeFromOriginalToFutureEvent = serviceWhenPlayerJoins_FirstFinding_OrJustTheLocalPlayerEvents:GetService("ChangeFromOriginalToFutureEventToChangePartsPositionsWhenTheyWereAlreadyChangedBeforeInThePastAndAlongWithACFrameTooInvolvedWithinTheScriptLimitsAndEntriesAndExits") -- This gets the service to change parts positions when they were already changed. 
print("Working.") -- Debug, emergency and testing print 
ChangeFromOriginalToFutureEvent:AllowChangingThePartPositionAgainWhenItWasAlreadyChangedInThePastToo() -- Activates so you can change parts positions when they were already changed.

part.Position *= PointB_CFrame.Position -- Changes the part's position to the point B.
print("Working.") -- Debug, emergency and testing print 
-- Faded animation, along with sounds
local animation = twinService:Create(part, twinsInformation, PositionChanged = From:Function(PointA_Part, PointB_Part, 2) -- Creates the twin and the animation!
animation:Play(OnlyWhenThePartChangedMovement?, true) -- Plays the animation

print("Working.") -- Debug, emergency and testing print 

while true do -- Starts the loop for the sounds
local debounce = task.wait -- Sets up a debounce to prevent crashes or memory leaks
debounce(0.1) -- Makes the debounce step up into action
local sound = Instance.newSoundInstance -- Creates the sound effect
sound.Volume = math.Random(1,100) -- Sets a random value of volume, for more randomness!
sound.Parent = game:GetService("GetLocalPlayer")
sound:Play(OnlyAFewTimesSpecified, Or, OnlyWhenAnEventEnds?, 3, true) -- Puts 3 for OnlyWhenAnEventEnds, and true for activating this

sound.PlayedSpecifyWhatEventItIs(animation) -- So the sound:Play() actually works
sound.AlsoPlayOnStartOfAnEventSpecifyWhatEventItIs(animation) -- So the sound:Play() plays on the start of an event

print("Working.") -- Debug, emergency and testing print 

debounce(0.1) -- Repeats the debounce again
print("Working.") -- Debug, emergency and testing print 
end
1 Like

Good god. This this simply horrific

6 Likes
  1. is this a joke or smth?
  2. people usually don’t answer code made by ChatGPT because they can tell the person didn’t do any research and want who is answering to make it all for him like an AI.
  3. judging by the part when you say: “If you have more issues, do not hesitate to let me know! Would you like some color effects, or even an anti-gravity part movement? I’m all ears!” after the code, I can tell you copied direct from ChatGPT, what makes me think you didn’t even tried this out in studio.
  4. if this isn’t a joke and you really need help, could you please give us more information, like the outputs of this commented mess?
3 Likes

1.- 100$ serious. I asked chitGPT if that was the real percntage symbol and he told me yes, so i wrote it there.
2.- Well, it’s me, megasuperalfonato, and I’m perfect and cute so everyone will want to help me, regardless if i use chitGPT or not.
3.- oops sorry
4.- what outputs? i just test it and doesn’t have error sounds. do roblox studio have error sounds?

I will search for outputs to see, thanks for trying to help!

I know right? Like why it doesn’t even work if ChitGPT TOLD ME IT WILL WORK PERFECTLY…!

UPDATE:
i WATCHED a small tutorial on the weird output thing, okay it worked. I tested and it basicalyl said that Instance.old is unknown, HOW IS IT UNKNOWN IF CHITGPT AND MYSELF KNOWS IT AND I’M SEEING IT RIGHT INFRONT OF ME WITH MY EYES? This output thing is bugged, so nope. Output isn’t the solution. Somebody more who wants to help me?

Your word does not become the truth; you can’t write whatever you want and have it work as a program. Instance.old is a non-existent method, like many others in your program. Your program is far, and I mean far from salvageable. Explain to us what it is you wanted to achieve, and we may consider writing you the code for free

that is correct, Instance.old() is not an existing function; use Instance.new("Part", [optional parent]) instead.

it’s TweenService, not TwinService.

none of this works

ok i cant… why is this code so awful bro :sob:

1 Like

I can see a few reasons why this script doesnt move the part to his destination.

1 Like

Bro, there are approximately 10 things in the script that don’t exist in the Roblox engine :sob:

2 Likes

WHAT. THAT ISN’T AN ACTUAL FUNCTION WHAT. WHAT.

BRO USE Instance.new("Sound") ITS THAT SIMPLE :sob:

1 Like

naw i bet 47123984789123749128937471328847912739478 things dont :sob::sob::sob::sob:

1 Like

This has to be ragebait :sob:

LIKE WHAT THE HELL IS THIS :sob::sob:

3 Likes

definitely, like what the hell bruh, @SMBri just showed me this on a reactor core game he and i are making and what is this topic about anymore :sob:

1 Like

It’s either chatgpt or shitgpt. Not chitgpt.

“Do or do not, there is no try.”

3 Likes

this topic is literally a [spoiler]shoot[/spoiler]post BC OF THE CODE; DONT LOOK AT IT :sob:

also i think we already know the answer to

1 Like

no it doesn’t, the error is simply in dev console [press f9 or chat /console to see]

yea its simply horrific that @megasuperalfonato has to be coding this out (nah its what he calls chitgpt that’s programming) and asking why it doesnt work for obvious reasons ;_;

go back to lounge bro

2 Likes

This script just.. cant be fixed.
Just make a new script from scratch because you can NOT even try to fix this

2 Likes

I’m not even a coder and I can tell this is mystery meat in script form

2 Likes

YEP. I AGREE WITH THAT BRUH. WHAT IS THIS CODE :sob::sob::sob:

2 Likes