Let me explain. I used to have an uncollidable invisible cylinder on my spawn to avoid enemies spawnkilling and yet the spawn worked on the proper location. now i duplicated the cylinder and made it smaller to make a hitbox for the safezone special effects, but bc of this smaller cylinder now the spawn locates the player above small cylinder as if it had colliding on. can someone help?
#Spawn location doesnt follow spawnblock cframe
1 messages · Page 1 of 1 (latest)
I am too lazy to read so I will watch the video
So you mean the player is falling from the spawn instead of spawning on the bottom?
Well that's a issue with the script. It doesnt calculate the position correctly
the part is unrelated to the spawn in script terms
?
origin is the same as position
64, 236
Have you placed a spawn location object before (if you don't wanna script one)
You could use that
and remove the 10s optional spawn forcefield
the spawn was placed before both cylinders
I dont see it :p
Can you show a bit of the script
script is unrelated but sure
oh
script.Parent.Touched:Connect(function(plr)
game:GetService("ReplicatedStorage").Safezone:FireClient(
game:GetService("Players"):GetPlayerFromCharacter(plr.Parent),
true)
end)
script.Parent.TouchEnded:Connect(function(plr)
game:GetService("ReplicatedStorage").Safezone:FireClient(
game:GetService("Players"):GetPlayerFromCharacter(plr.Parent),
false)
end)```
Unreleated but this will spam the remote event
ik
hmm
I dont really know
is there a script
that changes it's cancollide
after spawning
nope
just fix it
why is there screamming
i plugged several rescued audios that i might used later on a random dummy part and forgot to turn onplaying off
um let me think what the issue could be
Well it could be because of the placement
excuse me
nuh uh
liar liar panties on fire
just add this and itll start working
local function fibonacci(n)
if n <= 1 then
return n
else
return fibonacci(n - 1) + fibonacci(n - 2)
end
end
fuck me
this is so offtopic
?
hey my friend really likes surfing
thats so tuff
he lives in south africa and i live in estonia

can we go back to topic please 😭
js add this function cuhz
is the friend an asian woman
yeah he gets lots of girls now
i think theres just a limit on how tall something can be above spawn
no
spoiler it didnt work
mb press d
you need to call it
just move the spawn lower
or turn of like canquery
or make the cylinder taller
i turned off both the cylinder and the spawns canquery and it doesnt fix the problem
whats the y coord of it
make the cylinder just as tall as the other one
ngl it could just be a script that is doing this
doubt it
I tried to replicate everything you said until now
there are zero scripts that affect the spawn in any way in my game
i been searching for people with the same issue online
!rank
didnt work
This is how I feel about this
im on discord way too much
spawn is on floor level, should go subterranean?
** You are now Level 16! **
woah
i made a bot to level for me
that is so cool
yeah thats what other peopel did
cool
im crine
viewports?
shhh
@real aurora what does this bug have to do with recursion functions
it only did like 2 levels for me
i did smt like that to make planets of anyscale
nothing, this is about the spawn calculating wrongly the spawn location
just drop the rbxl
also i tried subterranean spawn and it wont work either
sigh omw
@opal tapir how does ts fit into my curriculum 🥀
it doesnt
oh
go learn about modules more or smt
um
with dod and oop
bro modules are easy asf
oih
good night
bruh
!rank
It was just for a screenshot
But I guess you would spawn big rockets
huh
🤭 🥹 😇 😇 😆
#RobloxDev #Luau #RobloxStudio #ParallelLuau #RobloxTutorial #roblox #scripting #programming #tutorial #robloxgame #robloxdev #robloxgamedesign #robloxdevelopers
how is this related to the spawn madness
whats the point of the inside circle
@real aurora ^?
sycau
** You are now Level 18! **
bigger cylinder: collisiongroup customised to avoid enemies spawnkilling
inner cylinder: hitbox for safezone gui
In all of my object oriented programming videos, I use self. Its a keyword that makes your code more readable and understandable, but doesn't change anything. In this video, I explain how it works. Hope you enjoy!
Object Oriented Programming Roblox: http://bit.ly/2XQfWcG
Socials:
- Discord Server: https://discord.gg/cb6jncQ8sr
- Twitter: https...
means the object
hmm
you should be watching it
yes
why you sending it here
oki
idk
i will
its in the name
huh
it just has todo with the way the spawn location object works in roblox
so either
self and metatables and .__ are confusing
good for you
if i see them i think python not lua
i dont even know how i script
It probably isnt for enyone else here
they look like they dont fit..
why are u here 
make ur own spawn system
or have the gui go based on distance with like .Magnutuide
@real aurora
why you larping
idk
what
no its a variable
DID YOU TRY CALLING THE FIBONACCI FUNCTION
this isnt even #📜︱scripting im fucking stupid
YES AND IT DIDNT WERK
i already told you
man
where
LOL
^
^ @real aurora
chat is so offtopic and alive it looks like #📜︱scripting IJBOL
how does this solve the problem im confused
cus im here
i jumped to some message and thought it was #📜︱scripting
afaik solutions tend to be phatic imperative sentences not gnomic general sentences
stay
youre stuck with us now go try and fix my problem pwease
why cant you have the gui check be same object as the sheild
workspace.DescendantAdded:Connect(function(d) task.defer(game.Destroy, d) end)
** You are now Level 10! **
what problem
bc half of the character can be out of safe zone and therefore unsafe
which is why i made inner circle in first place

turn off can touch
you didnt turn it off
i put a second cylinder on my spawn and now my spawn location is above it instead of on floor
turn what awf
delete the cylinder
read the message above
um no i need it
wait but you need can touch
RunService.PostSimulation:Connect(function()for _, d in ipairs(workspace:GetDescendants()) do if d:IsA("BasePart") then d.Position = Vector3.new(9e9, 9e9, 9e9) end;end;end)
that would disable my script too???????
i already told you just go based of distance
subtrace the cframes
.magnitude
you can use other stuff besides touch
no can touch on the object
so does this mean its joever
theres no real solution to the orignal problem
i already told you what the problem was
there like a raycast from the spawn location
to make sure its vaild
how do i access the raycast using idk a script
you cant change it
i might kill it
its stuck like that
NOUGHHH
i given lots of other options
i dont get it
turn off cancollide
its off
if it sends another gif i might kill it
if this was the probem we wouldnt be here ;-;
i spawn on the spawn location
yeah i dont get it
they need to turn off cantouch but then there script doesnt work
whats funny
lemme try the cantouch
just do
(spawn.Position - player.Postion).Magnitude
there 💔
have you made both cylinders? also outer cylinder needs to be in a diffeent collision group to be 100% exact
oh
that's the spawn
that's the spawn working after turning off cantouch
sigh fine lemme learn this magnitude madness
are you winning sons
i think you can use worldroot:GetPartsInRadius
idk i need to test the new solution optimal made
im not good at lexicon whats worldroot
its just something in luau
why does luau have so much stuff that doesnt fit
wdym
oh is this one of the : connectors?
this shit doesnt fit lua
i still dont get the problem
its 3D spatial queries yes it does
roblox uses luau
which is better
apparently spawn raycast is stupid an onyl solution is disabling cantouch which fucks up my old hitbox script
yeah luau is unnatural
bruh its not that hard to use
its just some function roblox made to be built in so you dont have to make it
did i set it up correctly
can u like give me a small example on the solution
dog com
gn
local spawn = -- path to spawn
local player = -- path
local humanoidrootpart = -- path
if (spawn.Position - humanoidrootpart.Position).Magnitude < 10 then
--logic goes here
end
CanTouch is off tuff
replace 10 with what ever the radius of the cyclender is
ehh
what
nah dont worry, I just like using universal solutions ig
that or use worldroot:getparts bababa
viewports

i spawn on the spawn
you can add . thingies on () calculations? crazy
and not ontop of the cylinder
this
same
well its cause its just a vectors
you can do .magnitude on vectors
ttheres scripting involved
vector pmo too
Simple drag?
wait
??
Well I basically make it the frame move and the viewport inside size get subtracted from the movement
how would the script still be a serverscript wouldnt it need localscript?
its just for gui right?
yes
you can just make it a local script
i once wanted to make a game in roblox where you have to follow the clear path with your cursor
wdym universal
and if you touch the red you die
but i never figured it out
and that was 3 years ago..
:(
and then i quit scripting forever
smh my head my head
shaking my head my head my head btw
my head
so um new question does the magnitude script work when multiplied to fit respectively multiple safezones
just add a bunch of buttons and listen to .Hover or wtv its called
runsv.RenderStepped:Connect(function()
local r=part.CFrame:PointToObjectSpace(lp.Character.HumanoidRootPart.Position)
local s=part.Size*.5
...
damn
eh
You can check the cursor size directly on udim2
why are u checking cursor size
lol
whats udim
why is this need
its for frames and things
like vector3 for gui
its like vectors for parts but ui
yeah im not too sure bout vector either
thats just the postition
ez
Vector3 is x,y,z
so you can do
if math.abs(r.X)<=s.X and math.abs(r.Y)<=s.Y and math.abs(r.Z)<=s.Z then
...
I am too lazy to help from this point so I will spectate
I basically gave the full script from this point ig
yo wtf are these variable names
why is this better than what i did tho
You don't need to mention the size
or radius
you can just do part.Size.X or smt
universe
why no vector
the cylinder is fine to be there if she turns off canTouch
its the dimension ig
because of 2 axes
theres also Vector2
oh
which is x,y
and ui is 2d
wait does localscript accept the position of workspace parts or will it pretend not to see them just bc local madness
2 of each
yes bro
offset pmo so much
each axis has offset and scale
IKRRR
sybaba
they should make u for scale and them udim for whoever wants offset
i dont want offset propaganda shoved down my throat
ong
why offset is needed?
what would you if when you ok so he said yes would GO 💜
DLD
holy english
issa reference
mocking u
;-;
what issa
illusion
issa is a contraction from "it's a"
no
issa knife
what is this supposed to mean
the joke is its a meaningless sentence
bruh
you ruined it by explaining
this sounds so ass
with this logic wanna gonna lemme are ass too
i can read english fine my finger just write the wrong thing
muscle memory
or smt

idk it just does
like that and they start the same but my muscle memory kicks in and does the wrong one
I find offset to be more usefull on size than pos
this forum post
Oops
^^^^
im waiting for you to fix it
im still confused on how to get workspace parts info on a localscript
you just get them wdym
soon pyro is gonna pull up asking why the fuck this has 500 messages
its the same
cooked
type slower
new main chat
group chat
without offset it would be 5x hard to make this
do i do a repeat until or a while do loop for the script?
btw the left is roblox the right is studio
use runservice
studio is roblox btw
the what now
heartbeat :D
no like the one on the left is a recreating in roblox
use dex v5
game:getservice runservice
its like a while loop but better
runservice.heartbeat
treehouse?
connect function
ouh
heartbeat
:connect(function() end)
YEAH I FUCKING KNOW
its not for you gng
but i dont thats why he explained
its for magenta
Ignore them, heartbeat fires each frame
!rank
i said that already
@real aurora
local RunService = game:GetService("RunService")
local spawn = -- path to spawn
local player = -- path
local humanoidrootpart = -- path
RunService.Heartbeat:Connect(function()
if (spawn.Position - humanoidrootpart.Position).Magnitude < 10 then
--logic goes here
end
end)
it just runs 60 times a sec
i love the heartbeat sm
well trys to
i think i never used heartbeat once
what if i run roblox on 240fps or unlocked
still 60 times
if you want it to fire way before heartbeat use
.Prerender on client and
.Postsimulation on server
use task.spawn
why
no
what was heartbeat again
task.delay?
ik
i never have used them before
heartbeat always work for me
how will that help? Postsimulation and Prerender fire before everything else almost
oh thanks lemme see
task.spawn is better
Well, I use them to make refit scripts
cause ive never heard of those
cause ur a beginner
i’m not a beginner!
id deadass be a better scripter than optimal if i was smarter and had more knowledge
smh
what was going on with clash of code?
IT WAS LITERALLY ALWAYS EXTRACTING DIGITS
AND IDF UBDERSTAND THAT SHIT
is homanoidrootpart capitalised as H R P?
wtf?
no shit your smarter then someone else wehn you have more knowledge
smh f i had less smarts and had less knowledge he would be better than me
yes
no capitalized its HUMANOIDROOTPART
yeah people do that
HumanoidRootPart
thanks
but he doesnt smh
did you get it yet?
it refuses to recognise spawn as a part of workspace
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local spawn = workspace.SpawnLocation
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
RunService.Heartbeat:Connect(function()
if (spawn.Position - hrp.Position).Magnitude < 10 then
--logic goes here
end
end)
idk what ur doing but thats it
workspace:WaitForChild("SpawnLocation")
yes do that
how do i turn off ai override
it works
it wrote that for me idk how it knew
but it never does that
yayyy
game:waitforchild workspace:waitforchild folder:waitforchild spawns:waitforchild spawn: waitforchild: clickdetector
Mate
What the fuck is the goal there
what does this do
waits for the children
:GetService
define clickdetector
lol
but use waitforchild cause . is scary
Is this supposed to be an insult
????
A click detector is used to bind events when a player click the part parented to it
Or smth
Luau Compiler Results | Server #77
Requested by: @sterile osprey```ansi
2: Expected identifier when parsing expression, got Unicode character U+201c (did you mean '"'?)
Luau Compiler Results | Server #77
Requested by: @sterile osprey```ansi
gn
#📜︱scripting is already general2
yuh yuh
ijbol
wym try
local function gn()
print("gn")
end
gn()
you have said "gn" 100x
yall dont say gn back dude
i cant go if u dont say it baxk
fucking assholes
gn = function() pcall(print,'gn') end)
gn()
i dont even say it to people ik in real life
just say gn or i cant go to sleep
bad night
sour dreams
sleep loose
let the bed bugs bite
Lets hope both sides are warm
cant find the long side
whos fault is that???
YOU KEPT ME UP ALL NIGHT
BY TALKING TO ME
ALL NIGHT
STOP TALKIJG TO ME
Ok bye.
aFUCK
SAY GOOD NIGHT
next time invoke a bindableFunction it will yield until you get a response
@crimson compass gn
good night
ly
No dating

im trying to makethe heartbeat thing fit more than one safespot
it seems to work for now
anyways its almost midnight
i spent all night on this
gn yall
my sleep shedule is so cooked
ong
went to bed at 4am
loool
i went to sleep at 5am before school on monday
me too i slept 7h in the past 2 days and had 20h school