Hello!
I’m working on a small fun creation but it’s always coming into issues that if I change one thing or add another an issue occurs elsewhere.
Here is the code for a typewriting script, the issue is on line 31 because I would like to add more typewriting text and also add more movement disabling.
ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local TypeWriter = require(ReplicatedStorage:WaitForChild(‘TypeWriter’))
local ContextActionService = game:GetService(“ContextActionService”)
local PlayerModule = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild(“PlayerModule”))
local Controls = PlayerModule:GetControls()
PlayerModule:GetCameras(false)
Controls:Enable(false)
TypeWriter.typeWrite(script.Parent, “Hello, My name is Canxiety”)
wait(1)
TypeWriter.typeWrite(script.Parent, “I am an AI created by Goldon1sky”)
wait(1)
script.Parent.TextColor3 = Color3.new(0,0,0)
TypeWriter.typeWrite(script.Parent, “Please move to the highlighted area.”)
Controls:Enable(true)
wait(1)
script.parent.Transparency = 1
game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(function()
local example = ‘Hello this is a test!’
script.Parent.Transparency = 0
for i=1, #example do
script.Parent.Text = string.sub(example, 1, i)
wait()
end
end)
Here is a video (The Movement unlocked and locked thing I also want to add and it’s in another local script and so far has been mostly working but doesn’t work with line 31 since its a remote event and I don’t know how to make it display the text at the same time as typewriting text)
robloxapp-20210821-1736162.wmv (2.2 MB)
I want this GUI to be working smoothly before I add more and I would appreciate in-depth help because i don’t usually code and i only know some minor basics.
