I need help! I made forms:
VIP Name:<input type="text" /> <br />
Startup Msg: <input type="text" /> <br />
<input type="button" value="SUBMIT" />
Now, when I click SUBMIT, It will generate a code replacing the FORM1 with the VIP name form, and replacing FORM2 with the Startup Msg Form:
vip = game.Players.FORM1
msg = "FORM2" -- Leave this in the " " 's
local i = Instance.new("Message")
i.Text = msg
i.Parent = game.Workspace
function onChatted(msg, recipient, speaker)
l = msg.lower()
if msg == "hello" then
local m = Instance.new("Message")
m.Text = "Hello!"
m.Parent = game.Workspace
wait(6)
m:remove()
end
if msg == "reset" then
vip.Character:BreakJoints()
end
if msg == "exit" then
vip:remove()
end
end
vip.Chatted:connect(onChatted)
Help!!! Generating a code... *Not what you think*
Started by Bannana97, Jan 23 2009 01:33 PM
2 replies to this topic
#1
Posted 23 January 2009 - 01:33 PM
|
|
|
#2
Posted 02 February 2009 - 11:09 AM
I did not understand this actually... but you want to first access FORM1 and then access FORM2 with the same code?
#3
Posted 02 February 2009 - 11:54 AM
You mean you just want to access the values of the two textboxes from your JavaScript code?
For example, instead of this:
You have this:
And so on.
For example, instead of this:
vip = game.Players.FORM1
You have this:
vip = NameOfForm.NameOfTextBox.value;
And so on.


Sign In
Create Account

Back to top









