Hi, just wondering how I make an objective gui similar to undead nations one. I tried alot, but it didn't show anything.
Server Side
game.ReplicatedStorage.ObjectiveChanged.OnServerEvent:Connect(function(A1,A2)
print(A1,A2)
if A2 == "Objective1A" then
for i,v in pairs(game.Players:GetPlayers()) do
v.PlayerGui.Objective.Frame.ObjectiveText = "Great, you've gotten out of the forest. Look for a car."
v.PlayerGui.Objective.beep:Play()
if A2 == "Objective1B" then
v.PlayerGui.Objective.Frame.ObjectiveText = "You've found a car, now go drive off somewhere safe."
v.PlayerGui.Objective.beep:Play()
end
end
end
end)
Objective Changer
local p = script.Parent
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and script.Parent.Completed.Value ~= true then
game.ReplicatedStorage.ObjectiveChanged:FireServer("Objective1A")
script.Parent.Completed = true
end
end)

3 comments
script.Parent.Completed = trueError on line 7 of the second scriptDid not work?
Forgot to say, its local.