So I asked about this the first time, But I am not sure on where I should add it.
I have a part, when the user touch's the part on want it to print on the text label which user touched the part.
script.Parent.Touched:connect(function(Touch)
script.Parent.Transparency = 0.8
wait(0.4)
script.Parent.CanCollide = false
wait(0.4)
game.Workspace.CRFT_Factory1.ClaimTycoon.MainPart.SurfaceGui.TextLabel.Text = "LegomasterNiko's Factory"
wait(0.4)
end)
--Touch.Parent.Name--I don't know where I should put this.
Thanks for reading. |