local des = script.Parent:FindFirstChild('Destination')
local reference = game.Workspace.reference
local rad = math.rad
local rotatAmount = 1
while wait(13) do
des:PivotTo(reference.CFrame + Vector3.new(math.random(-100, 100), math.random(-20, 20) , math.random(-250, 250)))
local newCFrame = des.PrimaryPart.CFrame * CFrame.Angles(-math.random(-45, 45), -math.random(-45, 45), rad(-math.random(-45, 45)))
des:SetPrimaryPartCFrame(newCFrame)
end```
#Attempt to index nil with pivotto???
1 messages · Page 1 of 1 (latest)
maybe des doesnt have a pivot
also dont use wait() instead use task.wait()
Either des doesn't exist or you're trying to use :PivotTo on something that ISN'T a model
nope
as for des not existing
a different script changes the name of things to destination cycling through a list of destinations
well
2
I'm scrapping off a moving platform script I liked
Des is a regular part
no wait that breaks the other script
part.cframe = cframe.new()
or well in ir case
part.cframe = reference.cframe + vector3.new()
oh yeah ur right
it is for parts too i forgot
It shouldn't be
I just tried
but I already changed from pivot
Yeah I'm wrong
k
and try again
No I think they changed it and it was for only models before
yeah
it used to be for models only
where it’d change primarypart cframe
COME ON BABY
WORK
...
"Argument one missing or nil"
?!?!!?!?!?!?!?!?!?!
oh I see
code autocorrect
added a second set of brackets
It says BaseParts and Models
So PivotTo works
Im trying to figure TypeChecker out since 3h why are you crashing out after 5s 😭
alr alr
ok now it says infinite yield possible
I HAVE AN IDEA
SINCE THE DESTINATION CYCLER
CYCLES THROUGH THE LIST
AND CHANGES THE NEXT ONE
TO THE NEXT NUMBER
bro gets 5 diffrent errors in the same script how is that even possible
lol
(I've been scripting for 5 years and this is embarrasing)
it is
I FIGURED IT OUT
--!strict
export type Core = {
DEBUG: boolean,
_VERSION: string,
test : () -> ()
}
local _core : Core = {
DEBUG = false,
_VERSION = "0.1",
test = function() end
}
_core.test = function()
print("working")
end
local core = setmetatable({}, {
__index = _core,
__newindex = function(_, key, newvalue)
if key:match("^_") then
error(`\n{key} is read-only`)
return
end
if typeof(rawget(_core, key)) ~= typeof(newvalue) then
error(`\n{key} assigned wrong type: \nexpected: {typeof(rawget(_core, key))}, \ngot: {typeof(newvalue)}`)
return
end
_core[key] = newvalue
end
})
return core
ts is my progress after like 3 years
??
how tf r u 5 years deep and stuck on output errors
no offense
😭
thats no offense like he legit gotta be stupid or something
chill
if he’s just been freestyling luau without tutorials then that’d make sense but would b dumb of him
so much to learn from even the shortest of tutorials
@solar blade if u wanna learn more u should go indepth with brawldevs series’
and after that just freestyle on ur own and when u think of a cool idea but not 100% sure on how to do it
either ask sum1 smarter in the language or use ai
bro hes stuck on the like basics for 5 years like
don’t let ppl say ai is bad for learning it’s great if u use it to LEARN not code for you
😭 😭
stare at roblox docs until all you can see when you close your eyes is the roblox docs and all you can dream and think about is roblox studio and variables and errors and misery
i woke up today
👍
valid
I think about how things could be coded wehn I play games
based off dr stone
yeah exacrly
bro on god
honestly a good way 2 be more into lua
all i think about is optimisation and modularising script atp
tears of sadness when i see a game like grow a garden with millions active
a game made in a week
💔
most popular game in the world btw
BY FAR
and then games that dedicated years of their lif
life
yo pls check this out
tens of thousands of lines
🥀🥀
literally
alright
I'm stuck on syntaxes man
like
random ah wording
im trying to figure TypeChecking out since 3h
@solar blade whats ur game abt
wym i dont get it
time travel
uh
u get stuck in a facility
and u use a time machine
to solve puzzles and escape
I'm spending sooo many hours on this
@solar blade
what
what don't you get?
it's like
pivot to vs bloody
uh
cframe.new
or
brickcolor vs color
good for you
this script I'm doing rn, the one I needed help with is for a boss AI
like 5 days ago i randomly thought abt making time abilities like rewinding and timestopping with partial effects
so i made them
and polished in everyw ay possible
so im thinking abt making a game where
the person with the most hours has this timelord status where they bave these abilities based around manipulation of time
and every1 else fights him
and whoever kills him is the new one
** You are now Level 7! **
and u can use ur time spent ingame to buy new weapons to fight him
interestin
and of course i’d make it so u can buy time or be the next timelord automatically with robux
🥺
say reeses
can u help me with another thing pretty pleaaaseee
what thing
Cframe is all multiply and add and what not, I wanna go from 0 on angles so I can have random angles from 0 to 45, but if I go from 0, the POSITION also goes from 0.
which breaks the whole thing :(
local newCFrame = oldCFrame * CFrame.Angles()
but
doesn't that just
that's not usually how multiplication works
like
but ok
I trust you
wise man
For CFrames * is like for Vektors +
mb i was lowk on tiktok
yeah
i thought the same thing when i first used .angles
in which applications do you use stone?
what
stone is a programming language ig
it’s a saying
“set in stone” as in it doesn’t move or it’s exact
dats what he meant if ur talkin ab that
how did yall turn Nil to 200 message story
when its like naming problem or whatever
I think he means
local newthingy = a set b
local newthingy = a * b
we fixed that
we just chilling
id be impressed if yall didnt
even tho i once spent i think 200 or 500? i forgot
messages
explaning return
wehn someone asked me abt return i just sent him ts lol https://www.lua.org/pil/4.4.html
erm
ok spamdetection
thanks for deleting that...
but REESES, my buddy pal friend chum amigo homeslice breadslice dawg, you wouldn't mind helping me out with another little script riiiiight?
:3
nvm got it
** You are now Level 13! **
y still need help? @solar blade
Is there any other scripts that is deleting reference