So I've been trying to make some sort of mission take place when you click on a dialogbox, the code below is just a test mission i'm trying, but I got the error in the title and I'm not sure how to fix it I'm only new at scripting so
local Miku = game.Workspace.HatsuneMiku.Hair
Miku.DialogChoiceSelected:connect(function(player, choice)
if (choice == Miku.Dialog) then
game.Players.PlayerAdded:Connect(function(plr)
script.Parent.Touched:connect(function(hit)
if hit. Parent:FindFirstChild("Humanoid") then
plr.PlayerGui.missionpassed.Frame.Visible = true
game.Workspace.Sound:Play()
wait(5.8)
plr.PlayerGui.missionpassed.Frame.Visible = false
end
end)
end)
end

8 comments
Thanks, will try rn
I got "Expected identifier, got ")"
Yeah, add the ) at the final, then remove the first )
Hmmm, doesn't seem to work
Hm, do you have discord?
This may come as a surprise but I actually do not
Is there any way you could invite me to a Team Create so i can see whats happening? Rblx Username: SBlankthorn
I've figured out the problem, but thanks for your help