Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPC = workspace.NPC
- local TA = NPC.TextActivator
- local player = game:GetService("Players").LocalPlayer
- local hum = player.Character:WaitForChild("Humanoid")
- local npcText = script.Parent.NPCTextFrame.NPCText
- local NPCTF = script.Parent.NPCTextFrame
- local active = false
- TA.Triggered:Connect(function()
- if active == false then
- NPCTF.Visible = true
- hum.WalkSpeed = 0
- local function typewrite(object, text, length)
- for i = 1, #text, 1 do
- object.Text = string.sub(text,1,i)
- wait(length)
- end
- end
- wait(1)
- typewrite(npcText, "Have you notice why I'm here?", .01)
- wait(2)
- typewrite(npcText, "Because creator put me here and he know you gonna look at me.", .01)
- wait(3)
- typewrite(npcText, "...", .03)
- wait(4)
- typewrite(npcText, "I'm just NPC you know.", .01)
- wait(5)
- npcText.Text = " "
- NPCTF.Visible = false
- hum.WalkSpeed = 16
- active = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement