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: Any Idea how to fix this?

Previous Thread :: Next Thread 
harvest109 is not online. harvest109
Joined: 19 Jun 2011
Total Posts: 869
11 Nov 2013 08:19 AM
I don't get any error's in Studio or Roblox error system, and it dose not seam to run qq

function onPlayerRespawned(Player)
while true do
if Player.Character ~= nil then break end
wait(.1)
end

local Effects = script.Blur:Clone()
Effects.Disabled = false
Effects.Parent = Player.Character

local Face = script.Face:Clone()
Face.Disabled = false
Face.Parent = Player.Character

Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=30344216"
Player.Character.Head:remove()



function onPlayerEntered(Player)
Player.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(Player)
end
end)
end
end



game.Players.PlayerAdded:connect(onPlayerEntered)
Report Abuse
harvest109 is not online. harvest109
Joined: 19 Jun 2011
Total Posts: 869
11 Nov 2013 08:23 AM
Wut
Report Abuse
harvest109 is not online. harvest109
Joined: 19 Jun 2011
Total Posts: 869
11 Nov 2013 08:24 AM
Yes?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
11 Nov 2013 08:27 AM
1. What exactly are you trying to do?
2. Does any of the script work?
Report Abuse
harvest109 is not online. harvest109
Joined: 19 Jun 2011
Total Posts: 869
11 Nov 2013 08:39 AM
Yes it should, and there are 2 other scripts inside of this script that are meant to go to the player, but I don't even get errors if I had a error I could fix this easy..
Report Abuse
harvest109 is not online. harvest109
Joined: 19 Jun 2011
Total Posts: 869
11 Nov 2013 08:49 AM
Good morning?
Report Abuse
harvest109 is not online. harvest109
Joined: 19 Jun 2011
Total Posts: 869
11 Nov 2013 09:02 AM
I guess the good scripters are sleeping...
Report Abuse
travddm is not online. travddm
Joined: 29 Mar 2012
Total Posts: 926
11 Nov 2013 09:29 AM
What are you trying to do with this..?
Report Abuse
travddm is not online. travddm
Joined: 29 Mar 2012
Total Posts: 926
11 Nov 2013 09:35 AM
One thing I see that could be shortened is:

while true do
if Player.Character ~= nil then break end
wait(.1)
end

Can be changed to:

repeat wait(0.01) until Player.Character ~= nil

...
Report Abuse
travddm is not online. travddm
Joined: 29 Mar 2012
Total Posts: 926
11 Nov 2013 09:39 AM
Also, why in heck is the onPlayerEntered function inside the onPlayerRespawned? Doing that means the only way you can call the onPlayerEntered function is after you call the onPlayerRespawned function.. In which the only thing calling it is within itself. Remove the onPlayerEntered function from the onPlayerRespawned...
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