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

Targeting StarterCharacter part(s), and changing properties?

Asked by 4 years ago

Hi there! I've been working on a sort of digital clock that the player wears on their chest. I've managed to get this to work when it's not on the character. I put the script and NumberValue in StarterCharacterScripts.

Basically what I need is for this to target the individual parts (A-G) of the custom character model, so that the + and - buttons will change the displayed value. I've only got super basic lua knowledge (which is probably obvious looking at the code), and I can't seem to figure out what to do, even after looking online, so any pointers would be very much appreciated!

001local Number = script.Parent.NumberValue
002local A = script.Parent.A
003local B = script.Parent.B
004local C = script.Parent.C
005local D = script.Parent.D
006local E = script.Parent.E
007local F = script.Parent.F
008local G = script.Parent.G
009 
010 
011 
012workspace.ButtonMinus.ClickDetector.MouseClick:Connect(function()
013    Number.Value -= 1
014end)
015 
View all 187 lines...

Answer this question