Oh so when 1 player finds the doll, everyone else cant. In that case keep it a server script. Local script would make it so everyone can get a doll while server will only make 1 person get one.
no no i think we’re on the same page i just dont think im explaining it right, each player has to find 4 dolls inorder to open the door but it only opens for the individual player if they have the 4 dolls. if a player has 4 and opens the door, to everyone else to doesnt have dolls it just looks like theyre walking through the door and they cant get in. thats what i want
OHHHHHHH. Ok ya then hmm. maybe make it a local script then add a remote event?
also it still doesnt work even though i changed ‘souls’ to ‘dolls’. the door is a bunch of different parts in a model, should i use get children or something?
what does a remove event look like?
Oh dude. My script only works if its a part. Since a model transparency and stuff cant be altered. If you make it a Union and rename it to Part it should work.
i cannot make it a union since theres other things on it besides parts
In that case there are more models, ungroup everything in the door and thin union it.
there arent any other models, just other unions
Then seperate those unions and make everything a union.
i still cant because there are sounds and also the script and click detectors
… Well uh… take those scripts and sounds out then union the door.
alright but where does the local script go?
In the door.
oh wait im dumb lol kdhfguyfdhghfghfg
i did everything and it still does not work
local part = script.Parent --the door
local requiredDolls = 4 --we eed 4 dolls
local playersService = game:GetService('Players') --Get the player service
local player = playersService:FindFirstChildOfClass('Player') -- find the player clas
function onTouch() --touch the part
if player.leaderstats.Dolls.Value >= requiredDolls then -- if the leaderstats = the required amount of dolls
part.Transparency = 1
part.CanCollide = false
end
end
part.Touched:Connect(onTouch) --connects the funtion
heres the script and the workspace
did you end up seeing my script and workspace screenshot? it’s not working and i still need help
Ok ill edit it as as i can.
hey sorry just checkin in to see if you found a fix