|
AxeHeadsJoin Date: 2016-01-07 Post Count: 1037 |
textbox?
|
|
AxeHeadsJoin Date: 2016-01-07 Post Count: 1037 |
if u use a text box then it should work if a player clicks it and starts typing
|
|
AxonMegaJoin Date: 2014-08-29 Post Count: 2403 |
I think you put the SurfaceGui in StarterGui, and set its adorned to be the block. |
|
|
Make its parent ScreenGui and have a script change its Adornee to the part you want. |
|
AxonMegaJoin Date: 2014-08-29 Post Count: 2403 |
@KeiRoMultiverse
No, my method is better. |
|
|
|
|
|
Lool! Sorry, you're right, Axon, I confused StarterGui with ScreenGui. They all look the same to me. XDXD
And hi, Loyal! |
|
TimeTicksJoin Date: 2011-04-27 Post Count: 27115 |
@Axon he basically said the same exact thing. Calm down.
|
|
AxeHeadsJoin Date: 2016-01-07 Post Count: 1037 |
@time
I think he was pretty calm...
|
|
|
|
Is this the whole script? |
|
|
|
Ok hold on, I got a long answer. |
|
|
If so, there are two problems with it. You see, the script will only run once, and since enteredtext doesn't start out as "artist" then it won't print. You'll need to make an event connected to a function so it checks more often. Also, there are a few more problems.
"game.StarterGui.TextBox.Text"
The text in that will never change.
When a game starts, it adds what's in that to each player's PlayerGui.
"game.Players.LocalPlayer.PlayerGui.TextBox.Text" is what you should be looking for.
So here's how the script should look:
game.Players.LocalPlayer.PlayerGui.TextBox.Changed:connect(function()
enteredtext = game.Players.LocalPlayer.PlayerGui.TextBox.Text
if enteredtext == "artist" then
print("confirmed")
game.Players.LocalPlayer.artist.Adornee = game.Workspace.Part
end
end)
Also, I suggest just keeping the "artist" gui inside of StarterGui too. I don't think it'll work from ServerStorage. It's fine, it wont show up anywhere if it doesn't have an Adornee. |
|
|
Wait, change "game.Players.LocalPlayer.artist.Adornee = game.Workspace.Part" to
game.Players.LocalPlayer.PlayerGui.artist.Adornee = game.Workspace.Part
I'm always leaving something out lol. |
|
|
|