Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a chat regen script?

Asked by 10 years ago

I need a chat regen scrip.That I don't know how to make. Can one tell me how do I it.

2 answers

Log in to vote
3
Answered by
c0des 207 Moderation Voter
10 years ago

I'll answer it for you, one second, let me get on a PC to write it. Here you go:

model = game.Workspace.Thing --Change "Thing" to the model name you want respawned.
backup = model:clone() 

function onChatted(msg, recipient, speaker) 

local source = string.lower(speaker.Name) 
msg = string.lower(msg) 

if (msg == "thing") then --Change "thing" to the keyword you want to respawn the model with.
model = backup:clone() 
model.Parent = game.Workspace 
model:makeJoints() 
end 

end 

function onPlayerEntered(newPlayer) 
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end) 
end 

game.Players.ChildAdded:connect(onPlayerEntered) 
0
ok mrpoliceman2004 20 — 10y
0
Thumbs my answer up, please. Glad I could help. :) c0des 207 — 10y
Ad
Log in to vote
-1
Answered by 10 years ago

I do not understand the question. Do you mean it clears the chat log?

Answer this question