#animation mixing in
19 messages · Page 1 of 1 (latest)
I dont know how to help with your problem, I'm just recommending to use that if you want people to read your code more easily
use what
photos?
nono, put your code like this
local humanoid = script.Parent.Humanoid
local anim = script.Animation
local dance = humanoid:LoadAnimation(anim)
dance:Play()
local shrug = game.StarterGui.dGui.LocalScript:WaitForChild("shrug")
local shrugPlaying = shrug:Play()
** You are now Level 3! **
so color it
i gotta do ts manually?
just do that but replace the print thing with all of your code
use that instead if you want to
ight
ohhh thanks twin
local gui = script.Parent
local textBox = gui.textBox
local textLabel = textBox.TextLabel
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character.Humanoid
local name = gui.nameOutline.name
local nameOutline = gui.nameOutline
local fetti = game.Workspace.funfettibomb.Humanoid
local option1 = script.Parent.option1
local option2 = script.Parent.option2
local dialogueFolder = game.Workspace.dialogueFolder
local fettiDialogue = dialogueFolder.fettiDialogue.ProximityPrompt
local khelDialogue = dialogueFolder.khelDialogue.ProximityPrompt
local wokenUpAnim = script.wokenUp
local shrugAnim = script.shrug
local wokenUp = fetti:LoadAnimation(wokenUpAnim)
wokenUp.Looped = false
local shrug = fetti:LoadAnimation(shrugAnim)
local talking = false
option1.Visible = false
option2.Visible = false
gui.Enabled = false
textBox.Visible = false
local option1Connection
local option2Connection
local function writeText(text, tTime, waitTime, sound)
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
gui.Enabled = true
textBox.Visible = true
textLabel.Text = text
sound:Play()
for i = 1, #text, 1 do
textLabel.Text = string.sub(text,1,i)
task.wait(tTime)
end
task.wait(waitTime)
end
local function endDialogue()
gui.Enabled = false
textBox.Visible = false
textLabel.Text = ""
humanoid.WalkSpeed = 12
humanoid.JumpPower = 50
if option1Connection then
option1Connection:Disconnect()
option1Connection = nil
end
if option2Connection then
option2Connection:Disconnect()
option2Connection = nil
end
end
local fettiD = fettiDialogue.Triggered:Connect(function()
if talking == false then
talking = true
name.Text = "confetti"
nameOutline.Text = "confetti"
fettiDialogue.Enabled = false
wokenUp:Play()
writeText("... huh?..", 0.08, 4, script.Parent.fettiVoice)
shrug:Play()
writeText("what do you want", 0.08, 2, script.Parent.fettiVoice)
option1.Text = "shop"
option2.Text = "nevermind."
option1.Visible = true
option2.Visible = true
option1Connection = option1.MouseButton1Click:Connect(function()
option1.Visible = false
option2.Visible = false
writeText("closed. now go away", 0.08, 2, script.Parent.fettiVoice)
endDialogue()
fettiDialogue.Enabled = true
talking = false
end)
option2Connection = option2.MouseButton1Click:Connect(function()
option1.Visible = false
option2.Visible = false
endDialogue()
fettiDialogue.Enabled = true
talking = false
end)
end
end)
local khelD = khelDialogue.Triggered:Connect(function()
if talking == false then
talking = true
name.Text = "khel"
nameOutline.Text = "khel"
khelDialogue.Enabled = false
writeText("what do you need :p", 2, 0.08, script.Parent.khelVoice)
option1.Text = "skins"
option2.Text = "nevermind."
option1.Visible = true
option2.Visible = true
option1Connection = option1.MouseButton1Click:Connect(function()
option1.Visible = false
option2.Visible = false
writeText("too early, come back soon", 2, 0.08, script.Parent.khelVoice)
endDialogue()
khelDialogue.Enabled = true
talking = false
end)
option2Connection = option2.MouseButton1Click:Connect(function()
option1.Visible = false
option2.Visible = false
endDialogue()
khelDialogue.Enabled = true
talking = false
end)
end
end)