Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = 1
- function talk(dio,Quest,max)
- dio.Enabled = true
- if Quest.Text == max[x] then
- if x<#max then
- x = x + 1
- Quest.Text = max[x]
- else
- dio.Enabled = false
- end
- end
- end
- function Reset(xx,ff)
- x = 1
- xx.Text = ff
- end
- game:GetService("ReplicatedStorage").GameEvents.QuestText.OnClientEvent:Connect(function(plr,Quest)
- local Dio = script.Parent.Dialogue
- local Chat = Dio.Chat
- local Continue = Dio.TextButton
- local DC = game.Players.LocalPlayer.PlrData["Damage Capability"]
- Dio.Enabled = true
- if Quest == nil then
- local msgs = {"Hey!","Hello "..game.Players.LocalPlayer.Name,"Welcome to "..game.Name,"We have been experiencing trouble lately.","We need a true hero who can go travel to lands and defeat the great...","...And mighty","Evil BadGuy...","Seriously, we do not know his name!","The thing is, only a true hero can defeat him.","...","YOU!","YOU THINK YOU CAN BEAT HIM?!?!?!","Do you see those muscles of yours?","What makes you think you can beat a practical GOD","Fine I must have some respect","Train your Damage Capability...","Look kid, if you would like to gain my respect","Then reach your Damage Capability to 10.","LOL! Can you even do a push up?","Quest: Reach your damage capability to 10"}
- local Quest = "Reach your Damage Capability to 10"
- Continue.MouseButton1Click:Connect(function()
- if DC.Value < 10 then
- talk(Dio,Chat,msgs)
- else
- game:GetService("ReplicatedStorage").GameEvents.ImproveStats:FireServer("Quest")
- print("Trained")
- print("Do action")
- x = 1
- Chat.Text = msgs[#msgs]
- Continue.MouseButton1Click:Connect(function()
- talk(Dio,Chat,{msgs[#msgs],"Good Job!","Well I guess you are a little better than what I espected.","But your still a NOOB!","Talk to me again if you would like a harder challenge."})
- end)
- print("Complete")
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement