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
#Local Parts issues
118 messages · Page 1 of 1 (latest)
So basically am I understanding this correct:
Player Touches Checkpoint > Platform Appears infront of the Player on the Client?
@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
yes
the platform appears just for one player
thank u but could u make it work trough a boolean present in player's datas please?
so that is more fast for me to reset it whenever i want
Do you wanna actually save it or purely on the client / just for the lobby ur in
just for the lobby the player's in
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
yes
does it work anyway?
wow
it didn't work when i tried before
btw you could call it Baseplate
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
initial position: game.ReplicatedStorage.Lvl2.Baseplate
final position: game.Workspace.Lvl2.Individual.Baseplate
you mean this?
no
run this function
to get the position
but first place the baseplate model where its supposed to be at
after u reach the checkpoint
the platform is already there
before u reach the checkpoint
the game creates the platform when u join the game
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
where should i run this?
it doesnt work
i put everything in but it doesnt work
yes is did
can u send a picture
170.824524, 36.3404083, 962.441162, 1, 0, 0, 0, 1, 0, 0, 0, 1
ok i did it again
did it work
??
What's the issue?
this
I already got it
no need
ok
@quaint tiger also path to value
Are you trying to change the position of what now
of nothing
** You are now Level 4! **
confused
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
who is ame?
oh
game
where should i put this? and what should it be (script or local script)?
local, since you only want it to happen on the client for the plr
and where
sorry but how can u move something that is in ReplicatedStorage
Why didnt u move the one that was in Workspace?
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
no it doesnt, i even tried to put a print("hello") after Val.GetPropertyChangedSignal("Value"):Connect( function() but it doesn't print anything...
then just do
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