#Local Parts issues

118 messages · Page 1 of 1 (latest)

quaint tiger
#

so i have this checkpoint which is supposed to let the platform (local part created trough a script in StarteGUI) appear and cancollide = true, how can i do this? (i would like to let this trough a boolean variable present in player's data, example: when this boolean value switch from false to true(thanks to the checkpoint) the platform appears)
THANKS TO WHOEVER HELPS ME

upper grove
#

@quaint tiger Lmk

#

if its like that im able to help

#

u just needa give me a few things to work with

#

otherwise I cant make it

quaint tiger
#

the platform appears just for one player

quaint tiger
#

so that is more fast for me to reset it whenever i want

upper grove
quaint tiger
#

u dont need to create the boolean

#

btw here's the elements(there are multiple parts of the platform that i need to work on):
-Baseplate0
-Baseplate1
-Baseplate2
-Baseplate3
-Checkpoint
-Active (boolean)

#

thanks btw

upper grove
#

-Baseplate0
-Baseplate1
-Baseplate2
-Baseplate3

#

this the platform?

quaint tiger
#

yes

upper grove
#

can u make it inside a model

#

better that way

#

to code it

quaint tiger
#

does it work anyway?

#

wow

#

it didn't work when i tried before

#

btw you could call it Baseplate

upper grove
#

Can you also give me the

#

position of the model where its supposed to be after you reach the checkpoint

#

print(BasePlateModel:GetModelCFrame())

#

do that to get the cframe

#

but first place the model in the correct position

quaint tiger
#

initial position: game.ReplicatedStorage.Lvl2.Baseplate
final position: game.Workspace.Lvl2.Individual.Baseplate

#

you mean this?

upper grove
#

run this function

#

to get the position

#

but first place the baseplate model where its supposed to be at

#

after u reach the checkpoint

quaint tiger
#

before u reach the checkpoint

#

the game creates the platform when u join the game

upper grove
#

b4 u reach the checkpoint its in the "void"

#

ur supposed to place the model where its supposed to be after you reach the checkpoint

#

so I can get the cframe

#

of where its supposed to be

#

after u reach the checkpoint

quaint tiger
upper grove
#

in studio

quaint tiger
#

it doesnt work

upper grove
#

does it error

#

/ did u even change the path

#

of the model

quaint tiger
#

i put everything in but it doesnt work

quaint tiger
upper grove
quaint tiger
#

wait

#

now it worked

#

0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1

#

it printed this

upper grove
#

thats weird

#

did u press

#

Play

#

or are u still in server "mode"

quaint tiger
#

170.824524, 36.3404083, 962.441162, 1, 0, 0, 0, 1, 0, 0, 0, 1

#

ok i did it again

#

did it work

#

??

upper grove
#

@quaint tiger can u send me the full path

#

of the uh

#

Baseplate

patent radish
#

What's the issue?

upper grove
#

no need

#

ok

#

@quaint tiger also path to value

patent radish
#

Are you trying to change the position of what now

quaint tiger
sinful cliffBOT
#

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

patent radish
#

confused

upper grove
#

of value

quaint tiger
#

game.Player.LocalPlayer:WaitForChild("Active")

upper grove
# quaint tiger game.Player.LocalPlayer:WaitForChild("Active")

local Val = game:GetService("Players").LocalPlayer:WaitForChild("Active")

Val.GetPropertyChangedSignal("Value"):Connect( function()
if Val.Value == true then
ame.ReplicatedStorage.Lvl2:MoveTo(Vector3.new(170.824524, 36.3404083, 962.441162))
end
end)

#

should work

#

if not lmk

upper grove
#

oh game

#

mb

quaint tiger
#

where should i put this? and what should it be (script or local script)?

upper grove
quaint tiger
#

and where

upper grove
#

StarterPlayer > StarterPlayerScripts

quaint tiger
#

sorry but how can u move something that is in ReplicatedStorage

#

Why didnt u move the one that was in Workspace?

upper grove
#

oh wtf

#

why did I write replicatedstorage

#

yea do workspace

#

oh

#

u sent me the one in replicatedstorage

#

thats why

#

yea just use Workspace then

#

@quaint tiger does it work or nah

quaint tiger
#

no it doesnt, i even tried to put a print("hello") after Val.GetPropertyChangedSignal("Value"):Connect( function() but it doesn't print anything...

upper grove
#
local Val = game:GetService("Players").LocalPlayer:WaitForChild("Active")

while task.wait() do
if Val.Value == true then
game.Workspace.Lvl2:MoveTo(Vector3.new(170.824524, 36.3404083, 962.441162))
end
end```
#

@quaint tiger it work this time?

#

I also forgot to add a check if the Model is already there then it wont call MoveTo

#

but thats not really needed rn if it doesnt work

#

Gonna go off now tho

#

Its midnight

quaint tiger
#

YES

#

THANK YOU

#

I'VE BEEN TRYING TO DO THIS SINCE YESTERDAY