Here's the script:
local b = game.Workspace.jj
local db = false
function check(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if not db then
if human then
db = true
human.WalkSpeed = 0
game.Workspace.Board2.SurfaceGui.TextBox.Text = ("Wrong!")
wait(3)
player:LoadCharacter()
game.Workspace.Board2.SurfaceGui.TextBox.Text = ("Click the most expensive hat in this room.")
end
end
end
b.ClickDetector:connect(check)
Basically, I want it that if I click the block(jj) then it will freeze my character, proceed to change the text and finally, re-spawn me. Any suggestions?
