Sure, here’s the rest of the code:
local fader = script.Parent.Parent.fade
local lever = game.Workspace["Lever Two Large Metal Pulls 3 (SFX)"]
local walk = game.Workspace["Walking Sounds Concrete Shoes"]
local flicker = game.Workspace["Lightbulb Flicker"]
local monster = game.Workspace["Cave Dweller"]
local lighton = game.Workspace["light power on 1"]
local sniff = game.Workspace.Sniff
local buzz = game.Workspace["Light Bulb Buzz 2 (SFX)"]
local step = game.Workspace.Loud_Step
local creak = game.Workspace["Wood Door Creak Squeak 2 (SFX)"]
task.wait(2.5)
local function typewrite(object,text,length)
for i = 1,#text,1 do
local sound = Instance.new("Sound")
sound.Parent = game.Workspace
sound.SoundId = "rbxassetid://9120300060"
sound.Name = "DialogSound"
sound:Play()
object.Text = string.sub(text,1,i)
wait(length)
end
for i,v in pairs(game.Workspace:GetChildren()) do
if v.Name == "DialogSound" then
v:Destroy()
end
end
end
buzz:Play()
typewrite(script.Parent, "Welcome to your new job.")
task.wait(4.5)
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(1), {TextTransparency = 1}):Play()
task.wait(1.5)
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.2), {TextTransparency = 0}):Play()
typewrite(script.Parent, "Let's wait for your new friend to arrive.")
task.wait(3.5)
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(1), {TextTransparency = 1}):Play()
wait(0.5)
game:GetService("TweenService"):Create(fader, TweenInfo.new(1), {BackgroundTransparency = 1}):Play()
task.wait(1.5)
game:GetService("TweenService"):Create(fader, TweenInfo.new(0.2), {BackgroundTransparency = 0}):Play()
wait(1.2)
if fader.BackgroundTransparency == 0 then
task.wait(2)
creak:Play()
wait(2)
step:Play()
wait(1.3)
step:Play()
wait(1.7)
step:Play()
wait(3)
sniff:Play()
wait(2)
monster:MoveTo(Vector3.new(-55.307, 8.072, -21.427)) -- works
script.Parent.TextTransparency = 0
typewrite(script.Parent, "He's here...")
task.wait(4.5) --line below this, make the texttransparency go from 0.1 to 1
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.2), {TextTransparency = 0.1}):Play()
wait(1)
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(1), {TextTransparency = 1}):Play()
wait(0.6)
game:GetService("TweenService"):Create(fader, TweenInfo.new(0.2), {BackgroundTransparency = 0}):Play()
task.wait(1.5)
game:GetService("TweenService"):Create(fader, TweenInfo.new(1), {BackgroundTransparency = 1}):Play()
script.Parent.TextTransparency = 0
wait(0.1)
typewrite(script.Parent, "Don't be scared. He's friendly.")
wait(4)
script.Parent.TextTransparency = 0
wait(0.1)
typewrite(script.Parent, "You're armed, I assure you that-")
wait(1)
script.Parent.TextTransparency = 1
flicker:Play()
game.Workspace["Military Light"].Light.SpotLight.Enabled = false
game.Workspace["Military Light"].Light.BrickColor = BrickColor.Black()
buzz:pause()
monster:PivotTo(CFrame.new(-55.307, 8.072, -21.427)) -- works -- try adding (number example) to each number
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(1), {TextTransparency = 1}):Play()
wait(1)
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.2), {TextTransparency = 0.1}):Play()
wait(0.1)
typewrite(script.Parent, "....")
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(0.2), {TextTransparency = 0.1}):Play()
wait(1)
game:GetService("TweenService"):Create(script.Parent, TweenInfo.new(1), {TextTransparency = 1}):Play()
walk:Play()
wait(.8)
lever:Play()
wait(2)
lighton:Play()
game.Workspace["Military Light"].Light.SpotLight.Enabled = true
game.Workspace["Military Light"].Light.BrickColor = BrickColor.White()
buzz:Resume()
script.Parent.TextTransparency = 0
typewrite(script.Parent, "Where'd he go...")
end
--(The code isn't finished yet)
A reason I think this is happening is because the Monster is a model, but a model with meshes, as I imported it from blender. If that is the case, how would I be able to move all of the meshes as a whole?
