generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Ughhhh whats wrong with this??

Previous Thread :: Next Thread 
FantasticMrFoxx is not online. FantasticMrFoxx
Joined: 16 Dec 2009
Total Posts: 2445
18 Jul 2011 10:01 PM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
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
FantasticMrFoxx is not online. FantasticMrFoxx
Joined: 16 Dec 2009
Total Posts: 2445
18 Jul 2011 10:05 PM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
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
FantasticMrFoxx is not online. FantasticMrFoxx
Joined: 16 Dec 2009
Total Posts: 2445
18 Jul 2011 10:14 PM
[ Content Deleted ]
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
18 Jul 2011 10:17 PM
Oh ya hold on.
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
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
FantasticMrFoxx is not online. FantasticMrFoxx
Joined: 16 Dec 2009
Total Posts: 2445
18 Jul 2011 10:20 PM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image