Local hum = hit.Parent:FindFirstChild("Humanoid") If hit.Parent:FindFirstChild("Humanoid") ~= nil then Local door = workspace:FindFirstChild("NAME OF DOOR HERE") Local DoorEvent = ReplicatedStorage:WaitForChild("DoorEvent") Here is the door script: local ReplicatedStorage = game:GetService("ReplicatedStorage") Now, insert a regular script inside of ServerScriptService ("Just for exploit prevention) A TextLabel within the ScreenGui (customize to your liking).A "RemoteEvent" inside of ReplicatedStorage (Name it: DoorEvent).I will provide the open source code and I will explain (if you want) If you want to change UI for all Clients, you would use something called A RemoteEvent more on that later ![]() When working with Graphical User Interface on Roblox, make sure you are coding Guis with a LocalScript so it is Client-Side. Well, there are some problems here but I am willing to help you! I'll show you how to properly animate text and efficiently!įirst off you probably tried scripting the UI from a Server-Side script. Thanks for your answers, I never coded in lua If hit.Parent:FindFirstChild("Humanoid") then The code of the door : :connect(function(hit) The starter gui for text label :GetPropert圜hangedSignal("Value"):Connect:(function()) But when I script in lua nothing happend when I touch the door :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |