#help

6 messages · Page 1 of 1 (latest)

shadow walrus
#

u just explained ur own script
make a Number like lua local Num = 1 if Num == 1 then does nothing elseif Num == 2 then makes the health to 0 endbut u need to make the number increase if player hit the dialoge

#

but do likc```lua
local player = game.Players.LocalPlayer

local function OnDialogChoice(player, choice)
if choice == "Hi" then
print("Local player chose 'Hi'")
elseif choice == "Goodbye" then
if player.Character then
local humanoid = player.Character:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
print("Local player's humanoid has been killed")
end
end
end
end

player.Chatted:Connect(OnDialogChoice)```may look like this
but i dont know bout Dialog that much

shadow walrus
#

Local Script

#

Is it workspace

#

The dialogue

solar lanceBOT
#

studio** You are now Level 2! **studio