#What is wrong with my scriptttttt
1 messages · Page 1 of 1 (latest)
** You are now Level 2! **
hi, add some prints to help debug
local dialog = script.Parent
dialog.DialogChoiceSelected:Connect(function(player, dialogChoice)
print("args",player, dialogChoice)
if dialogChoice.Name == "DanceChoice" then
print("line 6 passed (dia' choice)")
local character = player.Character or player.CharacterAdded:Wait()
if character then
print(character)
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
if humanoid then
local animator = humanoid:FindFirstChildWhichIsA("Animator")
print("line 13 passed (animator)")
if animator then
local danceAnimation = Instance.new("Animation")
danceAnimation.AnimationId = "rbxassetid://77896353665529"
local animationTrack = animator:LoadAnimation(danceAnimation)
animationTrack:Play()
end
end
end
end
end)
test it and check output for the prints :D
no prints at all?
nope
well then the script isn't running then :'))