#Spawn location doesnt follow spawnblock cframe

1 messages · Page 1 of 1 (latest)

real aurora
#

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?

viral heron
#

I am too lazy to read so I will watch the video

real aurora
#

player falls into spawn instead of appearing in spawn

#

to summarise a bit

viral heron
#

So you mean the player is falling from the spawn instead of spawning on the bottom?

real aurora
#

exactly

#

and this happened when i made a second cylinder on the spawn

viral heron
#

Well that's a issue with the script. It doesnt calculate the position correctly

real aurora
#

there is no spawn script though

#

should i make one?

viral heron
#

There is inside the part

#

Isn't that it

#

or is it the safezone

real aurora
#

the part is unrelated to the spawn in script terms

viral heron
#

ohh wait

#

I know

#

check the origin of the part

real aurora
#

?

viral heron
#

The part

#

"Sheildhitbox"

#

look in propreties

real aurora
#

origin is the same as position

viral heron
#

and what is it on x,z

#

numbers

real aurora
#

64, 236

viral heron
#

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

real aurora
#

the spawn was placed before both cylinders

viral heron
#

I dont see it :p

real aurora
#

it used to spawn on floor just fine

viral heron
#

hm

#

I am trying to replicate your issue 1s

real aurora
#

oh and also

#

the bigger, non-trouble cylinder is from a different collisiongroup

viral heron
#

Can you show a bit of the script

real aurora
#

script is unrelated but sure

viral heron
#

oh

real aurora
#
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)```
viral heron
#

Unreleated but this will spam the remote event

real aurora
#

ik

viral heron
#

I dont really know

#

is there a script

#

that changes it's cancollide

#

after spawning

real aurora
#

nope

opal tapir
#

just fix it

viral heron
#

I might know

#

idk

#

1s

viral heron
#

yeah idk

#

I have no ideea

#

I couldn't replicate the issue

real aurora
#

i plugged several rescued audios that i might used later on a random dummy part and forgot to turn onplaying off

opal tapir
#

um let me think what the issue could be

sterile osprey
#

probably that you arent using recursion functions

#

^^

viral heron
#

Well it could be because of the placement

real aurora
sterile osprey
#

for it to work

sterile osprey
#

nuh uh

real aurora
sterile osprey
#

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

real aurora
sterile osprey
#

send addy

real aurora
#

this is so offtopic

viral heron
#

?

sterile osprey
#

thats so tuff

#

he lives in south africa and i live in estonia

real aurora
#

can we go back to topic please 😭

sterile osprey
opal tapir
sterile osprey
opal tapir
sterile osprey
opal tapir
sterile osprey
opal tapir
#

or turn of like canquery

#

or make the cylinder taller

real aurora
sterile osprey
#

whats the y coord of it

opal tapir
viral heron
#

ngl it could just be a script that is doing this

opal tapir
viral heron
#

I tried to replicate everything you said until now

real aurora
opal tapir
#

i been searching for people with the same issue online

sterile osprey
#

!rank

last knotBOT
real aurora
opal tapir
#

just drop the rbxl file

#

!rank

last knotBOT
real aurora
sterile osprey
#

how am i only 4 levels lower

#

lool

viral heron
sterile osprey
#

im on discord way too much

real aurora
last knotBOT
#

studio** You are now Level 16! **studio

sterile osprey
opal tapir
sterile osprey
#

that is so cool

opal tapir
real aurora
sterile osprey
opal tapir
opal tapir
sterile osprey
#

@real aurora what does this bug have to do with recursion functions

opal tapir
viral heron
#

but yes

opal tapir
real aurora
real aurora
#

also i tried subterranean spawn and it wont work either

real aurora
sterile osprey
sterile osprey
#

oh

opal tapir
real aurora
#

um

opal tapir
#

with dod and oop

sterile osprey
sterile osprey
real aurora
sterile osprey
#

good night

real aurora
#

i thought it would hit 10 mb limit ijbol

#

i didnt know it was so damn light

viral heron
opal tapir
sterile osprey
#

!rank

last knotBOT
sterile osprey
#

in this game

viral heron
#

It was just for a screenshot

sterile osprey
#

sigh

#

make it real

viral heron
#

But I guess you would spawn big rockets

sterile osprey
#

huh

#

🤭 🥹 😇 😇 😆

real aurora
#

how is this related to the spawn madness

opal tapir
#

whats the point of the inside circle

sterile osprey
#

might help

opal tapir
last knotBOT
#

studio** You are now Level 18! **studio

real aurora
viral heron
sterile osprey
opal tapir
sterile osprey
opal tapir
#

you should be watching it

viral heron
#

yes

opal tapir
#

why you sending it here

sterile osprey
viral heron
#

idk

sterile osprey
viral heron
#

I tought it was obvious

#

lol

opal tapir
#

its in the name

sterile osprey
#

huh

crimson compass
#

i dont get this whole oop thing

#

or i do

opal tapir
#

so either

sterile osprey
#

self and metatables and .__ are confusing

viral heron
sterile osprey
#

if i see them i think python not lua

crimson compass
#

i dont even know how i script

viral heron
#

It probably isnt for enyone else here

sterile osprey
#

they look like they dont fit..

sterile osprey
opal tapir
# opal tapir so either

make ur own spawn system
or have the gui go based on distance with like .Magnutuide
@real aurora

opal tapir
crimson compass
#

idk

sterile osprey
#

row row row your boat

#

local self = “Hello world!”

#

self(print!)

opal tapir
sterile osprey
#

?

#

self

#

im learning

opal tapir
#

why is it a string

#

it should be the object ur making

real aurora
#

so um

#

what do we do guys

sterile osprey
#

no its a variable

sterile osprey
crimson compass
real aurora
#

YES AND IT DIDNT WERK

opal tapir
sterile osprey
real aurora
real aurora
real aurora
sterile osprey
#

cus im here

crimson compass
real aurora
#

afaik solutions tend to be phatic imperative sentences not gnomic general sentences

real aurora
opal tapir
viral heron
last knotBOT
#

studio** You are now Level 10! **studio

crimson compass
real aurora
#

which is why i made inner circle in first place

viral heron
opal tapir
#

turn off can touch

opal tapir
real aurora
real aurora
crimson compass
#

delete the cylinder

opal tapir
real aurora
opal tapir
#

wait but you need can touch

viral heron
#

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)
real aurora
opal tapir
#

subtrace the cframes

#

.magnitude

viral heron
opal tapir
real aurora
#

so does this mean its joever

opal tapir
#

omg

#

fine

real aurora
#

theres no real solution to the orignal problem

opal tapir
#

there like a raycast from the spawn location

#

to make sure its vaild

real aurora
#

a what

#

oh wait

sterile osprey
#

its cooked

real aurora
#

how do i access the raycast using idk a script

opal tapir
sterile osprey
#

i might kill it

opal tapir
#

its stuck like that

real aurora
#

NOUGHHH

opal tapir
crimson compass
#

turn off cancollide

opal tapir
sterile osprey
real aurora
crimson compass
#

i spawn on the spawn location

sterile osprey
#

yeah i dont get it

opal tapir
crimson compass
real aurora
opal tapir
#

just do

(spawn.Position - player.Postion).Magnitude

real aurora
# crimson compass

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

crimson compass
real aurora
#

that's the spawn working after turning off cantouch

#

sigh fine lemme learn this magnitude madness

sterile osprey
#

are you winning sons

opal tapir
real aurora
real aurora
opal tapir
sterile osprey
#

why does luau have so much stuff that doesnt fit

real aurora
#

oh is this one of the : connectors?

sterile osprey
crimson compass
#

i still dont get the problemwoe

sterile osprey
#

lua is supposed to only have variables and functions and tables

#

and thats it

opal tapir
opal tapir
#

which is better

real aurora
sterile osprey
opal tapir
crimson compass
real aurora
opal tapir
viral heron
opal tapir
opal tapir
viral heron
#

nah dont worry, I just like using universal solutions ig

opal tapir
#

that or use worldroot:getparts bababa

sterile osprey
#

how are u doin that

opal tapir
sterile osprey
#

why is rhere so much to learn though

crimson compass
#

i spawn on the spawn

real aurora
crimson compass
#

and not ontop of the cylinder

viral heron
sterile osprey
opal tapir
sterile osprey
#

whats a canvas group

#

hows it moving with your mouse

opal tapir
#

you can do .magnitude on vectors

opal tapir
sterile osprey
#

vector pmo too

viral heron
real aurora
#

wait

sterile osprey
viral heron
#

Well I basically make it the frame move and the viewport inside size get subtracted from the movement

real aurora
#

how would the script still be a serverscript wouldnt it need localscript?

real aurora
opal tapir
#

you can just make it a local script

sterile osprey
opal tapir
sterile osprey
#

and if you touch the red you die

viral heron
sterile osprey
#

but i never figured it out

#

and that was 3 years ago..

#

:(

#

and then i quit scripting forever

opal tapir
sterile osprey
opal tapir
real aurora
#

so um new question does the magnitude script work when multiplied to fit respectively multiple safezones

crimson compass
viral heron
# opal tapir wdym universal


runsv.RenderStepped:Connect(function()
    local r=part.CFrame:PointToObjectSpace(lp.Character.HumanoidRootPart.Position)
    local s=part.Size*.5
...
real aurora
#

cutely renames forum post to scripting 2.0

sterile osprey
viral heron
#

You can check the cursor size directly on udim2

sterile osprey
#

why are u checking cursor size

viral heron
#

pos*

#

mb

sterile osprey
#

lol

viral heron
#

I was confused in my own world

#

rn

#

multitasking

sterile osprey
#

whats udim

opal tapir
crimson compass
opal tapir
#

its like vectors for parts but ui

sterile osprey
opal tapir
sterile osprey
opal tapir
#

Vector3 is x,y,z

viral heron
# opal tapir why is this need

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

sterile osprey
opal tapir
viral heron
#

or radius

opal tapir
sterile osprey
#

universe

sterile osprey
opal tapir
opal tapir
#

just like .Position

sterile osprey
#

ah

#

sick

#

why is there a 3 after vector

#

but 2 after udim

crimson compass
#

its the dimension ig

viral heron
#

because of 2 axes

opal tapir
#

x,y,z

sterile osprey
#

not just pos

viral heron
opal tapir
#

theres also Vector2

sterile osprey
opal tapir
#

which is x,y

sterile osprey
#

and ui is 2d

real aurora
#

wait does localscript accept the position of workspace parts or will it pretend not to see them just bc local madness

sterile osprey
#

so it has x y

#

icic

opal tapir
#

offset and scale

sterile osprey
#

no

opal tapir
#

2 of each

opal tapir
sterile osprey
#

offset pmo so much

opal tapir
#

each axis has offset and scale

real aurora
viral heron
#

it helps a lot

sterile osprey
#

sybaba

real aurora
#

i dont want offset propaganda shoved down my throat

sterile osprey
#

ong

opal tapir
sterile osprey
#

holy english

#

how is english your native language

real aurora
opal tapir
real aurora
sterile osprey
#

mocking u

real aurora
#

;-;

opal tapir
#

what issa

sterile osprey
real aurora
#

issa is a contraction from "it's a"

opal tapir
real aurora
#

issa knife

sterile osprey
#

yo what are u on about

#

holy shit

opal tapir
real aurora
#

the joke is its a meaningless sentence

opal tapir
#

bruh

sterile osprey
#

you ruined it by explaining

crimson compass
viral heron
#

offset be like

sterile osprey
#

i wish zyos

#

put itin

real aurora
opal tapir
#

muscle memory

#

or smt

sterile osprey
opal tapir
#

idk it just does

#

like that and they start the same but my muscle memory kicks in and does the wrong one

viral heron
#

I find offset to be more usefull on size than pos

real aurora
#

this forum post

viral heron
#

Oops

viral heron
#

well

#

yeah

opal tapir
real aurora
#

im still confused on how to get workspace parts info on a localscript

opal tapir
crimson compass
#

soon pyro is gonna pull up asking why the fuck this has 500 messages

opal tapir
#

its the same

viral heron
#

group chat

opal tapir
#

without offset it would be 5x hard to make this

real aurora
#

do i do a repeat until or a while do loop for the script?

opal tapir
opal tapir
sterile osprey
real aurora
sterile osprey
opal tapir
viral heron
sterile osprey
#

game:getservice runservice

opal tapir
sterile osprey
#

runservice.heartbeat

real aurora
sterile osprey
#

connect function

real aurora
sterile osprey
opal tapir
sterile osprey
opal tapir
real aurora
opal tapir
#

its for magenta

real aurora
#

can ye say

#

magnetic

#

charismatic

sterile osprey
#

bro what

#

its so cooked

viral heron
sterile osprey
#

!rank

last knotBOT
sterile osprey
opal tapir
#

@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)

opal tapir
opal tapir
#

well trys to

sterile osprey
#

it works so well with lua

#

W heartbeat

opal tapir
#

doesnt have to be on each frame

#

everframe is renderstepped

crimson compass
#

i think i never used heartbeat once

sterile osprey
real aurora
opal tapir
sterile osprey
#

why

sterile osprey
#

scam

viral heron
sterile osprey
#

L heartbeat

#

never using again

opal tapir
opal tapir
sterile osprey
#

task.defer?

real aurora
#

what was heartbeat again

sterile osprey
#

task.delay?

sterile osprey
#

i mean

opal tapir
viral heron
viral heron
sterile osprey
#

cause ive never heard of those

opal tapir
sterile osprey
#

i’m not a beginner!

#

id deadass be a better scripter than optimal if i was smarter and had more knowledge

#

smh

opal tapir
sterile osprey
#

AND IDF UBDERSTAND THAT SHIT

real aurora
#

is homanoidrootpart capitalised as H R P?

sterile osprey
crimson compass
opal tapir
viral heron
sterile osprey
#

no capitalized its HUMANOIDROOTPART

opal tapir
viral heron
#

HumanoidRootPart

opal tapir
sterile osprey
#

humanoid roleplay

#

ewwwww

#

ewwwwwwwwwww

#

good night

real aurora
#

oh here we go

#

local madness back at it

opal tapir
real aurora
#

it refuses to recognise spawn as a part of workspace

opal tapir
# real aurora 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

viral heron
opal tapir
#

how do i turn off ai override

real aurora
opal tapir
#

it wrote that for me idk how it knew
but it never does that

real aurora
#

yayyy

sterile osprey
viral heron
#

What the fuck is the goal there

sterile osprey
viral heron
#

:GetService

sterile osprey
viral heron
sterile osprey
#

but use waitforchild cause . is scary

viral heron
#

Is this supposed to be an insult

sterile osprey
#

??

#

@everyone

opal tapir
viral heron
#

A click detector is used to bind events when a player click the part parented to it

heady valeBOT
#
Luau Compiler Results | Server #77

Requested by: @sterile osprey```ansi
2: Expected identifier when parsing expression, got Unicode character U+201c (did you mean '"'?)

real aurora
#

we upgrading forum post to scripting to general

heady valeBOT
#
Luau Compiler Results | Server #77

Requested by: @sterile osprey```ansi
gn

opal tapir
sterile osprey
#

yuh yuh

real aurora
sterile osprey
#

@real aurora

#

try this

real aurora
#

wym try

sterile osprey
#

local function gn()
print("gn")
end

gn()

opal tapir
sterile osprey
#

i cant go if u dont say it baxk

#

fucking assholes

viral heron
opal tapir
sterile osprey
opal tapir
sterile osprey
#

yo im not going to sleep

#

fuck off

viral heron
#

Lets hope both sides are warm

opal tapir
#

cant find the long side

sterile osprey
#

i got 2hours of sleep

#

plss

opal tapir
sterile osprey
#

BY TALKING TO ME

#

ALL NIGHT

#

STOP TALKIJG TO ME

viral heron
#

Ok bye.

sterile osprey
#

aFUCK

opal tapir
#

bruh

sterile osprey
opal tapir
#

bad night

#

bn

#

bye bye

crimson compass
#

next time invoke a bindableFunction it will yield until you get a responsewhoknows

sterile osprey
#

@crimson compass gn

crimson compass
#

good night

sterile osprey
#

ly

viral heron
#

No dating

crimson compass
real aurora
#

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

crimson compass
#

my sleep shedule is so cooked

sterile osprey
crimson compass
#

went to bed at 4am

sterile osprey
#

i went to sleep at 5am before school on monday

crimson compass
#

me too i slept 7h in the past 2 days and had 20h schoolwoe