|
| 22 Dec 2012 08:59 PM |
The .Chatted event does not seem to working properly...it says added then when i say the command nothing happens. any help?
function m(text) local m = Instance.new("Message",workspace) m.Text = text wait(3) m:Destroy() end
game.Players.PlayerAdded:connect(function(p) m("added") p.Chatted:connect(function(m) M("chatted") if string.lower(m) == string.lower("tele") then m("Aproived") local NextPos = Workspace:FindFirstChild("TeleScript") c.CFrame = NextPos.CFrame m("teleported") ff = Instance.new("ForceField",c) wait(5) m("ff made") if ff ~= nil then ff:Destroy() m("ff ate") end end end) end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2012 09:04 PM |
| I changed the "M" to "m" but still nothing |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:07 PM |
Your function and Chatted parameter have the same variable.
¤ † KMXD† ¤ |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:08 PM |
Updated but still broken:
function m(text) local m = Instance.new("Message",workspace) m.Text = text wait(3) m:Destroy() end
game.Players.PlayerAdded:connect(function(p) m("added") p.Chatted:connect(function(m) m("chatted") if string.lower(m) == string.lower("tele") then m("Aproived") local NextPos = Workspace:FindFirstChild("TeleScript") c.Torso.CFrame = NextPos.CFrame m("teleported") ff = Instance.new("ForceField",c) wait(5) m("ff made") if ff ~= nil then ff:Destroy() m("ff ate") end end end) end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2012 09:14 PM |
Okay now i get up to the "aproved" when i say the command...what else is wrong
function m(text) local m = Instance.new("Message",workspace) m.Text = text wait(3) m:Destroy() end
game.Players.PlayerAdded:connect(function(p) m("added") p.Chatted:connect(function(msg) m("chatted") if string.lower(msg) == string.lower("tele") then m("Aproived") local NextPos = Workspace:FindFirstChild("TeleScript") c.Torso.CFrame = NextPos.CFrame m("teleported") ff = Instance.new("ForceField",c) wait(5) m("ff made") if ff ~= nil then ff:Destroy() m("ff ate") end end end) end) |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:16 PM |
| I'm not sure you are teleporting anyone to anywhere... |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Dec 2012 09:27 PM |
| lol...i forgot do define "c" |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:29 PM |
c.Torso.CFrame = NextPos.CFrame
I'm assuming that NextPos is a script, and CFrame would need a Vector3 value. |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:30 PM |
Please run your script and use output.
Go through trial and error. |
|
|
| Report Abuse |
|
|
xXGrekXx
|
  |
| Joined: 09 Nov 2012 |
| Total Posts: 124 |
|
| |
|
|
| 22 Dec 2012 09:32 PM |
NextPos is a variable pointing to a brick...i name things wierd...anyways i fixed it
function m(text) local m = Instance.new("Message",workspace) m.Text = text wait(3) m:Destroy() end
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) m("added") p.Chatted:connect(function(msg) m("chatted") if string.lower(msg) == string.lower("tele") then m("Aproived") local NextPos = Workspace:FindFirstChild("TeleScript") c:MoveTo(NextPos.Position,NextPos) m("teleported") ff = Instance.new("ForceField",c) wait(5) m("ff made") if ff ~= nil then ff:Destroy() m("ff ate") end end end) end) end) |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:36 PM |
@grek
Awesome for a command. If you knew how to script ( and I recommend it ) you could make even better. |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:37 PM |
| and i can not use output and run it in play solo because you cant chat...and start server/player lags my computer too much. |
|
|
| Report Abuse |
|
|
|
| 22 Dec 2012 09:38 PM |
| I would be able to make it more complex and carry out more functions but this suits my needs very well. |
|
|
| Report Abuse |
|
|