Create an Admin / VIP Only Room - Udon / VRChat SDK3.0

  Рет қаралды 12,950

PlayerBush001

PlayerBush001

Күн бұрын

How to cycle through an array: • How to Call All Object...
Here's a tutorial on how to create an Admin/Vip Room that only admins and/or Vips can enter. This does require you to add them to a list when building the world, and it is case Sensitive so do keep that in mind.
This same method can also be used for those of you wanting to make anything that is exclusive to a particular player/s, by doing something else on the second arrow on the block node; using the bool to check if they are on the list or not.
So hopefully this is helpful. As always, if you have any questions, feel free to ask in the comments bellow! ^^
Come join the discord! / discord
Wanna help support me in making more vrchat stuff? Support me on patreon! (I'm grateful for any support ^^') / playerbush001
#VRChat #Udon #SDK3

Пікірлер: 111
@PlayerBush001
@PlayerBush001 2 жыл бұрын
A bunch of people have ask about how to do the admin door with a teleport instead, so here's a rough video explaining how: kzbin.info/www/bejne/pGKQk5logNOZi5Y
@Vanilla2103
@Vanilla2103 2 жыл бұрын
Thank you that helps alot 😁
@crusadershichen
@crusadershichen 2 жыл бұрын
cant you just use the same code as you did in your "teleport player on touch" video? instead of a door, use a cube or any other object?
@PlayerBush001
@PlayerBush001 2 жыл бұрын
@@crusadershichen your not far off, but that code doesn't check to see whether or not your an admin before teleporting you. That being said, all I did in the follow-up tutorial was replace the animator node with a 'playerApi, teleportTo' node found in that tutorial
@bobhawkey3783
@bobhawkey3783 2 жыл бұрын
These tutorials are great. Thank you for doing them. I've been using Cyan Trigger to do this stuff because I suck at Udon. You should definitely be packing these up as prefabs for those of us who are too dumb or lazy to learn Udon. I fully admit to being both! Cheers.
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Glad your enjoying the tutorials! The best way to get better at udon is to do more of it, so I hope my channel can help people understand how to use it better ^^
@MovieFactory
@MovieFactory 2 жыл бұрын
you already helped me with something similar on discord. this was extremly helpful
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Glad I could help ^^
@rockthestar100
@rockthestar100 Жыл бұрын
Whitelisting Players with this function is also a possibility by setting 2 separate Udon Behaviors with the Events as > OnPlayerJoin + OnPlayerRespawn > and setting a transform to teleport them to a "whitelisted area"
@PlayerBush001
@PlayerBush001 Жыл бұрын
or alternatively you could do this with just the start event, by getting it to move the spawn location obj and tell the player to respawn with 'playerApi, respawn (networking, get localPlayer)' that being said, while there are some definite use cases for a script like that, a script like that often is only useful for excluding others from a world. If you just don't want anyone but friends joining, Vrchat's world privacy settings are usually plenty good enough for that; and if you're worried about someone bypassing that with hacks, this script will do nothing to stop hackers from flying through walls, or just teleporting to ya Either way, nice one adapting the script ^^
@alwaysyouramanda
@alwaysyouramanda Жыл бұрын
😍 this is the best!
@PlayerBush001
@PlayerBush001 Жыл бұрын
Thanks! Glad you liked it ^^
@necatron73
@necatron73 Жыл бұрын
Any chance you could do a "If banned or non admin enters the world" trigger sound but only the admin can hear it. And the sound can be toggled on and off.
@PlayerBush001
@PlayerBush001 Жыл бұрын
This is something I don't really want to explain much on my channel, due to all the pettyness i've seen on the platform. That being said, there are many good uses, like in a club and the likes. It would take a bunch to explain this via text however, so here's a mockup/ untested version of the script, that you can copy and paste into a blank udon graph: application/vnd.unity.graphview.elements AO1cW48TRxb+K8jPU1ZdT1Uh8cAtEZtVEoXAywqN6kq8GDtre5JFwC/bh/1J+xf2a3uudo2nmYzBAwMIYU/bXX3O+S7nVDf/+89/3w/+COOjMrj/j/eDejQe/xje4sXgZZiNQhyXw+fv5ovy9tF0Oi5hMjgYHI0yfhyc1tbrzHRNiuHfmXlnCkuaKyVVSaEkHPz7dD5ajKaTwf33g38P7jNrNQ0dKemENAeDd4P7gqQaCsc9d5IrvPvxYDCZ5vLi2ZM51jTAl5z9eXUwqOPpn8c/e7U68mW3/Ply/UeT0eLdT/GfJS1eri7q/WA0mS/CJJVnTwb3Ob58vpiNJq+PfzwYfDy4zsdWQRk+X755cO/tPE1n41E8uPeyzOa43gd6yLvfB/ceH40XR7PyYFKOFrMwPrj381Ecj9IP5d2v0zdl8iBaG0wyJLzShTv/YTR/mN+OJn9tYcfputmVfRfG8/J1rmsXiZxMJ1jVq25dl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XDUd0THJgLRYnTtfFiHKmQdgsHBrXeQ1tUbqQsMDQIatJu7VMTko9NVOnbut2K670z41sD5yOxjoYomEQVSsxseMSSw6nplVPknHvVNK3db5SPvZCmhcp3cnwvZyilydknmfaGwOS40bWoBFne8VjZdbN0B8EkILdKNkUJNaFovisOhLdUVTn1wlU1q7H1++FXwBh0J65w6lyXR9otaCFIyH1NA4a86I7mSLSpmV3G48N32riK7Xk0I3RnTjaXpztlWTrfTgWTBrQI+VNWfOCwJ+qoQzNDyI1h4seq8hR3vi4f66/xdCrVwQfM/QcA6uQ0Y7/tu2ddx32xKRqjg0wZbZjP4oYImcV2bAytbapIu/mTHw5zUgV0pQr+tu3fQjG0+2rAyqQMpEt8/mNg1qEMqHoDQrNUacTmS0BRWng6NVXHG8SJu39kYoYV7eFFmd6kZ0iaH3zEyiioI3JuDDt1WD2n6tR5iagAFhcSuQuG6n/TgpjoZeWiDFcOOMV+5W09hO98WvoLE+Zdi4a9GZJlYs34qVNQz0bCN7WcqvkMdcylTwC3YMnlZXlAW8mGBJapG0LsU2ESO4RhnC/aLJOZcabobeGm+k0E5vKMzAJFmcMJlVXjjTXlQWKqqhRlXQRSv056LBYn1U8Jay2NM/ymRx+NNkNSj62xSO+sw095nQtD2ZX58Geb98dtJaYwAYb9RWzPQqiqtuLmsSdJ8KaF4SmaF0pnu4+oSdBVps4TiB1gFhrW81O/d6Uvb6FPDq4/8B
@LuvKayArt
@LuvKayArt 2 жыл бұрын
If you're able to, do you think that you could create a tutorial on making objects or characters follow the player (kind of like an NPC?) It's totally okay if you're unable to!! It's just a silly suggestion 💕
@PlayerBush001
@PlayerBush001 2 жыл бұрын
That is a little hard of a question to answer/ cover in a tutorial. The problem being, is that there needs to be a few things gotten right for it to work. First, you need to know where the player is (actually cover that in my next tutorial). Then you need to know the distance you want the NPC to keep, which isn't hard, but just is another part of complexity. The next bit though, is getting it to follow you around the world.. Now, if it was a flying npc and one that you don't mind clipping though walls, you could just do a position lerp to the player and leave it at that, but that wouldn't work if you wanted them to walk to you. To do that, I can think of two ways. First is what some avatars have, where it's just a spring joint that pulls the character towards you, with a damping effect to avoid it from going flying. The second and more natural look, would be to use a nav mesh and ai, to figure out the best path to get to the player. This is something I personally haven't delved into, but there is a really good talk on TLX about this in relation to vrchat, that I would recommend checking out if your interested (kzbin.info/www/bejne/roe7iYZtfb1qhck). I also remember a blog post by vowgan talking about his NPC system he made for booth worlds, but I can't remember where I saw it, so I can't link it
@greykenny
@greykenny Жыл бұрын
thank you soo much!!!
@zoey_wicker
@zoey_wicker 2 жыл бұрын
Question: When it allows you into the room, is it Client sided or Server sided?
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Client side. To make it networked, you would need to send a custom event, or change a synced variable
@akira8813
@akira8813 Жыл бұрын
@@PlayerBush001 Is there a chance you could create a short video on how to convert this to a Networked Button?
@tonynattawat3460
@tonynattawat3460 Жыл бұрын
Hey this tutorial is amazing! May I ask how many admin names can we fill in the list? is 10000 names possible?
@PlayerBush001
@PlayerBush001 Жыл бұрын
Thanks! Glad you liked the tutorial ^^ As for the limitations of this method, I wouldn't use this for more than 500 or so players. I don't know where the theoretical limit is, but just from a practical standpoint I would want to automate the process for that many players. I would be more inclined to do it as a large string; with each name being separated with a line break. Then I would go through each name, checking character by character as that should be faster, and if one is wrong just skip to the next name. Also would make it much easier and faster to add new people to the list However, a much easier method (albeit less secure) would be to instead use a keypad and password. There is always the problem of the password being leaked, but it would be wayyy easier to do. I believe there are even some prefabs for this very thing...
@ReersTheEpic
@ReersTheEpic Жыл бұрын
is there a way to make the script user id based instead of username based?
@PlayerBush001
@PlayerBush001 Жыл бұрын
There is, but the player's id changes based on when you joined the instance of the world, making it completely unusable for a baked in method as shown here. You would instead need to make the playerID list mid-game, for it to be of any use. To do this with Id, you would want to replace the string array with an int array. Then set you will need to fill the int array with your player id's that you want to be admin. Then, when cycling thorough the list, we want to replace the string compare node with an int equals node; and instead of using 'playerapi, get display name', we want to use 'playerapi, get playerID' node instead. Hope that helps ^^
@Dan-yl2ov
@Dan-yl2ov 2 жыл бұрын
Hi thanks for the awesome tutorial, do you think you can create this in U sharp it would be very helpful
@PlayerBush001
@PlayerBush001 2 жыл бұрын
tbh, udon# videos don't gauge much interest or views; mainly because people who use it often learn through c#, from people that are much more knowledgeable about best coding practices. Also, while they are similar, the restrictions of graph (combined with 'event, onVariableChanged' being a pain to explain in sharp) means covering both methods in a single video is a bit restrictive, so I don't really want to do that either. I would much rather teach how to covert between the two, as it's not too hard once you break it down. Then I can just focus on udon graph, which is what the majority of newcomers want to see (that may or may not be something I'm slowly working on getting ready...)
@PatricksGS
@PatricksGS 2 жыл бұрын
How would I be able to add multiple names to the Admin list?
@PlayerBush001
@PlayerBush001 2 жыл бұрын
The admin string array has a 'size' value, seen in the inspector. If you increase this size, you get more slots
@killmothegamer793
@killmothegamer793 2 жыл бұрын
Does this work with a tp udon block code because I can seem to figure out a way to make it
@PlayerBush001
@PlayerBush001 2 жыл бұрын
If you know how to make it with an normal interact button, all you need to do to do the admin check, is put that bit of code after the 'true' arrow on the second branch node. Then that bit of code will only run for those that are admin. In my case, I toggled on an object and told the animator to play the 'door open' animation. I could put anything there, like telling an audio source to play or something, and it would only run if the person clicking on the door is admin. Hope I understood your question right..
@UntoldBeenHavin
@UntoldBeenHavin 2 жыл бұрын
can you do this without animations like you can just press the button and it teleport u to the vip room
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Yup. Grab the true arrow from the bottom branch node, and instead of plugging it into a 'gameObject, set active' node, plug it into a 'playerApi. Teleport to' (networking. Local player) node. If you need some reference for how to use that node, have a look at my tutorial on how to teleport a player: kzbin.info/www/bejne/kJTalXSdj96qerM
@UntoldBeenHavin
@UntoldBeenHavin 2 жыл бұрын
@@PlayerBush001 do I have to still do the anim step
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Nope ^^
@UntoldBeenHavin
@UntoldBeenHavin 2 жыл бұрын
@@PlayerBush001 its not working for me i feel like i did something wrong do you think you can join a discord call with me for a few mins please
@PlayerBush001
@PlayerBush001 2 жыл бұрын
If your in the official vrchat discord, if you post an image of your code in 'udon-questions' and @me, I'll take a look
@greykenny
@greykenny 2 жыл бұрын
Hello could you make a tutorial about transition and then reset everything from the beginning in the world? Maybe a tutorial about triggers a voice range to far by the time I go into specific place like stage etc
@PlayerBush001
@PlayerBush001 2 жыл бұрын
the process of resetting everything in a world really depends on what you have in your world that your resetting. Usually this means having a custom event on a bunch of scripts, that reset them to their default. Then the 'reset world' button calls all those events. Unfortunately, that isn't really that easy to do as a tutorial. If you just want to respawn all items, look at my tutorial on respawning any global object kzbin.info/www/bejne/pmfZpX-Vd7eAe9E, and in the comments there is a link to how to make it respawn a bunch of objects. As for the making a stage like environment, I don't really have a tutorial on it, but apparently this prefab has helped others so perhaps this is all you need: booth.pm/ja/items/3470862 Hope that helps ^^
@Vanilla2103
@Vanilla2103 2 жыл бұрын
If i wanted to set it so the player (if admin) is teleported to the admin room and have room toggle on how would i go about doing this. Tutorial possible?
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Your not the first to ask.. So here's a rough video explaining how: kzbin.info/www/bejne/pGKQk5logNOZi5Y
@Youngee3000
@Youngee3000 Жыл бұрын
the door wont do anything in vrchat. im logged in to the right account, I put my display name, and it wont let me in anyway. im using your teleport method. I also used this method and it wont work :(
@PlayerBush001
@PlayerBush001 Жыл бұрын
Okay, first thing to check, is whether or not you are being treated as a non-admin, or the script is broken. Where I added the teleport if admin, create the same for non-admin too (the false from the bool), but get it to teleport to a different location. If you get teleported to the non-admin location, then we know that that is the problem. Also as a sanity check, check that other non admins aren't getting sent to the admin location, by asking a friend to try or something. Once you know that it just isn't seeing you as an admin, this will narrow down what is wrong. The biggest thing to check is that you haven't got any rouge spaces or have things that are capitilsed differently. Also, if your using a non vrchat account, make sure it has the string of numbers at the end, as that is part or your display name. If rhst doesn't work, then perhaps your coding is wrong. One thing I could think of is perhaps you forgot to set the bool to be true if it finds you an admin. Other than that, I recommend asking on the vrchat discord under their 'udon questions' channel for more help, as there you can post pictures of your code. Hope they helps ^^
@Youngee3000
@Youngee3000 Жыл бұрын
@@PlayerBush001 I finally got it! Thank You so much :)
@kobakiju
@kobakiju Жыл бұрын
Is there a way that you can populate adminNames from an external URL?
@PlayerBush001
@PlayerBush001 Жыл бұрын
Unfortunately, you can only use external urls to get videos. Anything else is against TOS, and udon will try it's hardest to stop you. That being said, you don't have to re-upload the world to update a list. It's a little advanced, but there is an asset that "Allows you to encode text into images and then read it in VRChat. Uses Avatar Thumbnail Images to store and load images. Works on both PC and Quest." (github.com/Miner28/AvatarImageReader), and this is used by many of the bigger creators to keep patreon lists and the likes up to date. Also seen it used to do seasonal events like christmas and whatnot, without having to update the world (pretty sure black cat does this). It does require you to make an avatar for it instead of being an url (though the avatar can be super basic like a cube) but it's a good workaround Hope that helps ^^
@zoey_wicker
@zoey_wicker 2 жыл бұрын
Suggestion: Could you do a count up timer with a reset button? I'm planning to add a music festival to my world and a timer would be perfect for DJs!
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Thanks for the suggestion! I like to make vids that will bleed into others, and unfortunately I don't know if I can do so with a counter (delays normally use 'SendCustomEventDelayedBySeconds'). I'll add it to my ideas list, but no promises
@taco_boi
@taco_boi Жыл бұрын
I have a question, is there a way to do it with a playerID instead of display name?
@PlayerBush001
@PlayerBush001 Жыл бұрын
nope, as playerID is relative to the world, not a players account. A player's Id is just a counter that goes up by 1 for every player that joins a world. The person who first enters the world gets a player ID of 0, the next player gets an id of 1, etc. One good use of playerID is to sync playerApi variables; as they can't be synced. Basically, you can get a player's id with 'playerApi, get PlayerID', and then set a synced int to have that value. Then when others see that int change, you can put it through a 'playerApi, get player from ID' node, and get the playerApi out again. Hope that clears it up ^^
@taco_boi
@taco_boi Жыл бұрын
@@PlayerBush001 Yeah, that helps, but what does it mean by "display name"? Because my name has weird characters and I put it in and it didn't work.
@PlayerBush001
@PlayerBush001 Жыл бұрын
@@taco_boi display name is the name that vrchat displays to all users. I'll be honest, I've yet to test it with any players with special characters, but if you could give me your vrchat name, i could run a test and see
@taco_boi
@taco_boi Жыл бұрын
@@PlayerBush001 Okay, it's: ᴋe̸l. You might need me for the test though lmao.
@taco_boi
@taco_boi Жыл бұрын
nvm I got it, I forgot to set active when you ARE admin my bad😅
@DaRealApleJuus
@DaRealApleJuus Жыл бұрын
im not getting the public ones, all it says is text placement and i don't know how to fix it please help
@PlayerBush001
@PlayerBush001 Жыл бұрын
In the graph, go to the variables tab (or side bar as it is now) and hit the little dropdown menu, and checkmark 'public'. Do that for all variables that need to be public. Also, as only changing this setting won't cause it to auto compile, you will need to go to the top right, and click on the 'compile' button Hope that helps ^^
@zoey_wicker
@zoey_wicker 2 жыл бұрын
how do you make it only flash green or red?
@PlayerBush001
@PlayerBush001 2 жыл бұрын
You would just wouldn't animate the door moving part. To make the door change colour; on the object itself, if you scroll to the bottom of the inspector, there is a dropdown for the material that is currently on the object. You can animate the colour there, and that will allow you to animate the colour of the object (or other material properties).
@zoey_wicker
@zoey_wicker 2 жыл бұрын
@@PlayerBush001 Awesome thanks so much
@ChristianPerspective77
@ChristianPerspective77 6 ай бұрын
Kia Ora. Is there a way to create an object where only admin can walk through it but it will block anyone else? Like a stage blocker?
@PlayerBush001
@PlayerBush001 6 ай бұрын
sure. I use an animation in this tutorial, but an animation can be more than just moving an object, so you could just use a different animation. So, instead of the animation making the door turn, you can make it (or multiple child objects) disappear or something. You can also change the 'event, interact' node in the script with an 'event, start' node; and then it will do the check if you are an admin when the game beings; instead of when you click the object Hope that helps ^^
@Ghostie290
@Ghostie290 Жыл бұрын
Hello I absolutely love your tutorial. I was wondering if you could make a video showing how to make and admin teleport door. So instead of hiding and unhiding a room it just teleports you to the place you want if you are admin. I have a hard time picking up things so explaining over a video and seeing it visually would be so helpful!
@PlayerBush001
@PlayerBush001 Жыл бұрын
See pinned comment ^^
@Ghostie290
@Ghostie290 Жыл бұрын
Ohhhh I just figured it out thank youu!! Your videos are also and very helpful and easy to follow. I appreciate all your uploads thank youuu!@@PlayerBush001
@Ghostie290
@Ghostie290 Жыл бұрын
@@PlayerBush001 Can I put the players Display name or does it have to be there original Username?
@PlayerBush001
@PlayerBush001 Жыл бұрын
@@Ghostie290 it has to be their display name, which is the name every player sees. Would be a bit of a security problem otherwise
@Ghostie290
@Ghostie290 Жыл бұрын
@@PlayerBush001 alright thank you!
@SpyroDragon
@SpyroDragon 2 ай бұрын
do a tut on how to load strings from a text file
@PlayerBush001
@PlayerBush001 2 ай бұрын
@@SpyroDragon VowganVR made a really good tutorial covering that. I recommend watching their video ^^
@lrfvrchat
@lrfvrchat 2 жыл бұрын
Where's the Block node if I may ask?- Nevermind thanks!
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Haha, np! ^^
@normioffi
@normioffi 3 ай бұрын
How to make it work with group roles? I think it's not possible right??
@PlayerBush001
@PlayerBush001 3 ай бұрын
I... Don't think so? That information would need to be exposed in udon, and I cant remember any call backs being provided. I also haven't had a need for it, so I am unsure. Perhaps ask on the official discord, or request it as a feature on the canny
@jakedothings
@jakedothings 2 жыл бұрын
can it work to getter with the object follow player
@PlayerBush001
@PlayerBush001 2 жыл бұрын
yes, you can, but it might be more difficult than you'd like. If you just want it to follow a particular admin that hits a button, you can just create a button that, instead of getting it to play an animation, you can instead change the owner of the follower object to follow you instead (if you are an admin, and you click the button). Check out my teleport version of this script, to see what's need for the admin check part of the code: kzbin.info/www/bejne/pGKQk5logNOZi5Y However, I get the feeling that you are instead after an object to follow every player that is an admin. That is... a bit more of a pain, and really would be it's own video. In essence, you need to see if the new player that joined the world (onPlayerJoin) is an admin, and if so, tell an object pool to spawn in a new object; and change that object's owner to be the new player. Then, when a player leaves (onPlayerLeft), check if they they were the owner of any of the objects in the object pool, and get it to return the object to the object pool, if so. As for the objects in the object pool, they would just need to be an object with the second version of the player follower script (aka, the networked version shown last). That being said, there really isn't a good tutorial out right now on object pools, other than a brief example in one of vowgan's videos (the one I used to figure it out), so it may be best to ask for some help on the official vrchat discord's 'udon-questions' channel, to get some picture help Hope that helps ^^
@jakedothings
@jakedothings 2 жыл бұрын
thx i maybe weird to say but if you have a patron i wood most likely want to subscribe to it it will help most people and maybe you as well in all the words i like your work and i need some help trying to make a game with no codes is really out there
@PlayerBush001
@PlayerBush001 2 жыл бұрын
I don't currently monetise anything I do, mainly as I want to focus on making good content in a sustainable way (aka, no burnout or anything), before getting any money involved. I plan to look into possible monetisation stuff once I can monetise this channel. But until then, I'm just going to focus on learning to make cool and interesting stuff ^^
@andresca1985
@andresca1985 9 ай бұрын
amazong!, now... what if are some special players... some players... around 4 or 5 can access that private room... how can be?
@PlayerBush001
@PlayerBush001 9 ай бұрын
If you add more names to the array, then they will also be able to enter the vip door. Or, are you asking how to let some of your friends (who are not vip) enter the room if you are vip? That would be harder, but do-able
@andresca1985
@andresca1985 9 ай бұрын
@@PlayerBush001 wow master, so fast answer.. thanks so much... ok. my idea is. what if i press a code to be like admin and invite friends that private room, is the same room, but different code, then is the same room, but different group, then that room will be other same room. that is possible? like duplied.. because i am using other code
@PlayerBush001
@PlayerBush001 9 ай бұрын
@@andresca1985 possible, yes, but a little hard to explain via text. Basically, you want to have a button that when clicked, makes you the owner of the button. Have a synced bool on the button called 'occupied' and make it true when the owner is in the room. When that bool changes to true, toggle on an input box, where people can type into. Then inside the room, have anothee input box, that when the owner types into, sets a synced string. If a player types into the outside box the same as the synced string, make the button activate able. If not, deny them access. So yea, a little hard to explain, but hopefully that shows where to start looking ^^'
@andresca1985
@andresca1985 9 ай бұрын
@@PlayerBush001 yes, you can do videotuto jajaj
@ftkirito6304
@ftkirito6304 8 ай бұрын
How might i do this so its only pickupable by admins?
@PlayerBush001
@PlayerBush001 8 ай бұрын
Create a public pickup variable call 'target pickup'. Then, looking at the graph, delete everything coming out of the second arrow of the block node; and replace it with a 'pickup, pickupable' node. On this new node, plug our public variable into the instance slot, and our 'is admin' variable into the value slot. Now the script will make whatever our pickup object is, only work for those that are an admin. If you want to make the script disable/enable multiple pickups, use a pickup[ ], and follow my video on how to call multiple objects in an array Hope that helps ^^
@ftkirito6304
@ftkirito6304 8 ай бұрын
thanks @@PlayerBush001
@yoihadtochangethisitsstill2634
@yoihadtochangethisitsstill2634 6 ай бұрын
How would I make it so I could use Github Gist for the admin list?
@PlayerBush001
@PlayerBush001 6 ай бұрын
Vowgan did a video showing basically this. I would recommend watching his video ^^
@yoihadtochangethisitsstill2634
@yoihadtochangethisitsstill2634 6 ай бұрын
@@PlayerBush001 Do you know how to connect Patreon to GitHub gist or pastebin so it would automatically update the list? I wanted to incorporate members only door in my world.
@PlayerBush001
@PlayerBush001 6 ай бұрын
@@yoihadtochangethisitsstill2634 if you learn how, I would love to know. I currently do it manually myself
@roxythefallenangel6804
@roxythefallenangel6804 2 жыл бұрын
Nvm i found it (bush did the bool stuff change?)
@PlayerBush001
@PlayerBush001 2 жыл бұрын
Cool ^^
@Youngee3000
@Youngee3000 Жыл бұрын
something else i wanna say is when a person is not an admin, he cant play the animation again.
@PlayerBush001
@PlayerBush001 Жыл бұрын
your animator is likely set up, so that it can never loop back to the start of the animation. All this code says is to fire a trigger, which allows for a transition to happen. If it's waiting for that trigger to play a transition, then nothing will happen
@Youngee3000
@Youngee3000 Жыл бұрын
@@PlayerBush001Thank you.
@sergent_granite
@sergent_granite Жыл бұрын
in udonsharp ?
@PlayerBush001
@PlayerBush001 Жыл бұрын
udon graph works the exact same as udon#, it just looks different. Here's the conversion, with a couple of really minor improvements with the extra flexibility of sharp [SerializeField] private string[] playerNames; [SerializeField] private GameObject adminRoomObj; [SerializeField] private Animator anim; public override void Interact() { bool isAdmin = false; for (int i = 0; i < playerNames.Length; i++) { if (playerNames[i] == Networking.LocalPlayer.displayName) { isAdmin = true; } } adminRoomObj.SetActive(isAdmin); if (isAdmin) { anim.SetTrigger("isAdmin"); } else { anim.SetTrigger("isntAdmin"); } }
@Nesper_z
@Nesper_z 2 жыл бұрын
Whats the gMe
@PlayerBush001
@PlayerBush001 2 жыл бұрын
This is for vrchat, a social vr platform where you can make small games and experiences, and share them with the community. Has a desktop mode too
@Nesper_z
@Nesper_z 2 жыл бұрын
@@PlayerBush001 sign me up
@cadendavis3781
@cadendavis3781 2 жыл бұрын
Did everything exactly the same twice and still didn't work, disappointing.
@PlayerBush001
@PlayerBush001 2 жыл бұрын
I recommend looking at my video 'how to debug your code' to get a better idea of how exactly it is failing. Could be a wrong node, could be a wrong name, could be something not linked up right. Need to know more about how it's not working to help
@cadendavis3781
@cadendavis3781 2 жыл бұрын
@@PlayerBush001 Is it possible to create an admin only teleport button?
@PlayerBush001
@PlayerBush001 2 жыл бұрын
@@cadendavis3781 see pinned comment ^^
@cadendavis3781
@cadendavis3781 2 жыл бұрын
@@PlayerBush001 That actually works, thank you so much!
Create an Automatic Door - Udon / VRChat SDK3.0
17:00
PlayerBush001
Рет қаралды 7 М.
How to Make Object Follow a Player - Udon / VRChat SDK3.0
6:08
PlayerBush001
Рет қаралды 13 М.
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 10 МЛН
Who’s the Real Dad Doll Squid? Can You Guess in 60 Seconds? | Roblox 3D
00:34
"كان عليّ أكل بقايا الطعام قبل هذا اليوم 🥹"
00:40
Holly Wolly Bow Arabic
Рет қаралды 4,7 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 32 МЛН
Simple Clickable Door - Udon / VRChat Scripting SDK3.0
13:16
PlayerBush001
Рет қаралды 2,8 М.
How to Optimize your VRChat World INSTANTLY
6:34
Dorktoast
Рет қаралды 13 М.
I Built a Robot that Plays FPS Games
21:23
Basically Homeless
Рет қаралды 518 М.
The Weirdest Create Mod Addon
9:35
Dejojotheawsome
Рет қаралды 564 М.
How to make a Multi Key Door - Udon / VRChat SDK3.0
23:31
PlayerBush001
Рет қаралды 1,6 М.
Create a Skybox Switcher Button - Udon/ VRChat SDK3.0
5:41
PlayerBush001
Рет қаралды 10 М.
I Made a Fake Warning to Scare Roblox Players
16:31
ByteBlox
Рет қаралды 1,5 МЛН
Hmmm... wtf...
8:16
Phoenix SC
Рет қаралды 685 М.
How to Teleport a Player - Udon / VRChat SDK3.0
4:02
PlayerBush001
Рет қаралды 34 М.
TF2 MEMES V47
15:48
Beter
Рет қаралды 954 М.
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 10 МЛН