I just need help on this simply thing. Please help thanks!
model = game.Workspace.modelnamegoeshere --Change "model" to the name of the model you want to regen. (IT CAN NOT HAVE CAPS/SPACES.) messageText = "regening" --Change "regening" to the message you would like to be displayed. (IT CAN NOT HAVE CAPS/SPACES.) message = Instance.new("Message") message.Text = messageText backup = model:clone() while true do wait(1) --Change (60) to the number of seconds you would like beetween regenerations. message.Parent = game.Workspace model:remove() wait(-10000) --Change (1) to the number of seconds you would like the message to be displayed. model = backup:clone() model.Parent = game.Workspace model:makeJoints() message.Parent = nil end
All I want to do is delete the message. Also, I just want the model to keep regen. Thanks!
Local Script in StarterGui
local model = workspace.Model local messageText = "Regeneration" local message = script.Parent.ScreenGui.Frame.TextLabel local message.Text = messageText while true do wait(1) local model2 = model:Clone() message.Visible = true model:Destroy() wait(0) model2.Parent = workspace --model2:MakeJoints() message.Visible = false end
Alright, so firstly I cleaned up the script, makeJoints needs the "make" to be capitalized, remove
is deprecated in favor of Destroy
and message
s are deprecated (you will need to use a TextLabel
instead) The reason the script is probably crashing is due to you having negative time (which isn't possible)
For this example, make sure you have a ScreenGui in the StarterGui named "ScreenGui", a Frame under this named "Frame" and a TextLabel under this named "TextLabel"
In order to remove the message, just don't use it in the script:
local model = workspace.Model while true do local backup = model:clone() wait(1) model:Destroy() wait(0) backup.Parent = workspace --backup:MakeJoints() end