Since you're so new to coding you can't even figure out how to make a touch block that detects humanoids, I really recommend starting over and learning the fundamentals of Roblox Lua. You will only slow yourself down if you get advanced way too fast.
Anyways, here's a relatively dumbed-down way to "make a help box brick that temporarily turns on a text box".
Before you read the script, create a RemoteEvent named OpenTextBox in ReplicatedStorage.
The LocalScript seen below should be put in >StarterPlayer>StarterCharacterScripts
LOCAL SCRIPT
StarterGui = game:WaitForChild("StarterGui")
screenGui = StarterGui:WaitForChild("ScreenGui")
Double = screenGui:WaitForChild("Double")
openTextBox = game.ReplicatedStorage:WaitForChild("OpenTextBox")
openTexBox.OnClientEvent:Connect(function(openFor)
Double.Visible = true
wait(openFor)
Double.Visible = false
end)
Now you're going to create a Part in the workspace named Help Box
Also, create a new Script inside of the Part you just made.
SCRIPT
helpBox = script.Parent
openTextBox = game.ReplicatedStorage:WaitForChild("OpenTextBox")
helpBox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if game.Players:GetPlayerFromCharacter(hit.Parent) then
openTextBox:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent))
end
end
end)
1 comment
This looks promising