Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you add a GUI which shows certain values next to a person's name?

Asked by 9 years ago

Im trying to make a RPG game based on the player living in a small town after his home =land is destroyed. My problem is, is that I need a script which can hide objects from players who have touched it AND add somehow, add a point to a GUI near the top of the screen. With also an ingame currency in coins and gems. How do I go about this? Can all who know how to do this, make a script to go with these locals? :


local Step1 = game.Workspace.Step1 local Step2 = game.Workspace.Step2 local Step3 = game.Workspace.Step3 function Step1hit(hit) print("Step1 was Hit!") print ("Something Hit Me!") if hit.Parent:FindFirstChild("Humanoid")then print("A Player Hit Me!") end end Step1.touched:connect(Step1hit)

I have only started the first section, I am expirencing difficulty with scripting as it is my first time trying. And if there is any errors in this set of script, tell me pls. and rewrite it correctly.

Answer this question