| |
|
|
| 18 Jul 2011 10:04 PM |
When asking about a code: Don't ask others to debug your broken code without giving a hint what sort of problem they should be searching for. Posting a few hundred lines of code, saying "it doesn't work", will get you ignored. Posting a dozen lines of code, saying "after line 7 I was expecting to see (something), but (something else) happened instead" is much more likely to get you a reply.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2011 10:13 PM |
Jk, Sorry fo trolling :3
game.Players.PlayerAdded:connect(function(newPlayer)i
onPlayerEntered(newPlayer) if newPlayer~=nil then if newPlayer.Name == "FantasticMrFoxx" then newPlayer.Chatted:connect(function(msg) onChatted(msg, nil, newPlayer) end) end end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 18 Jul 2011 10:18 PM |
function onPlayerEntered(newPlayer) if newPlayer.Name == "FantasticMrFoxx" then script.Parent.Follow.Value = newPlayer.Name repeat wait() until newPlayer.Character script.Parent.Follow.Disabled = true script.Parent.Humanoid:MoveTo(newPlayer.Character.Torso.Position + Vector3.new(5,0,5), game.Workspace.Base) script.Parent.Humanoid.WalkSpeed = 45 wait(3) game:GetService("Chat"):Chat(script.Parent.Head,"Welcome "..newPlayer.Name.."!", Enum.ChatColor.Green) wait(3) game:GetService("Chat"):Chat(script.Parent.Head,newPlayer.Name..", hai buddeh :D!", Enum.ChatColor.Green) wait(3) game:GetService("Chat"):Chat(script.Parent.Head,newPlayer.Name..", let's go play :)", Enum.ChatColor.Green) wait(3) game:GetService("Chat"):Chat(script.Parent.Head,newPlayer.Name..", I'll follow you I guess", Enum.ChatColor.Green) wait(3) script.Parent.Follow.Disabled = false script.Parent.Humanoid.WalkSpeed = 17 end end function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name) msg = string.lower(msg) if (msg == "bot;ff") then Instance.new("ForceField").Parent = speaker.Character end if (msg == "bot;unff") then speaker.Character:findFirstChild("ForceField"):Remove() end if (msg == "bot;walkspeed;50") then speaker.Character.Humanoid.Walkspeed = 50 end if (msg == "bot;walkspeed;16") then speaker.Character.Humanoid.Walkspeed = 16 end if (msg == "bot;walkspeed;100") then speaker.Character.Humanoid.Walkspeed = 100 end if (msg == "stay") then script.Parent.Following.Disabled = true end if (msg == "come") then script.Parent.Following.Disabled = false end end
game.Players.PlayerAdded:connect(function(newPlayer)i onPlayerEntered(newPlayer) if newPlayer~=nil then if newPlayer.Name == "FantasticMrFoxx" then newPlayer.Chatted:connect(function(msg) onChatted(msg, nil, newPlayer) end) end end end |
|
|
| Report Abuse |
|
|
| |
|