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 » Scripters
Home Search
 

attempt to index upvalue 'player' (a nil value)

Previous Thread :: Next Thread 
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
17 Jun 2016 09:09 AM
I'm having trouble getting this to work. Did ROBLOX get an update? I used to be able to do this.



local fin = script.Parent

local db = true

local player = game.Players.LocalPlayer

fin.Touched:connect(function(plr)

if db == true then

db = false

local win = game.Workspace.screens.win:clone()

win.Parent = player.PlayerGui

game.Workspace.music.win:Play()

wait(5)

game.Players.LocalPlayer.PlayerGui.win:Destroy()

game.Workspace.music.win:Stop()

game.Workspace.music.win.TimePosition = 0

db = true

end
end)


Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
17 Jun 2016 09:16 AM
Solved*


Report Abuse
John467583 is not online. John467583
Joined: 04 Mar 2010
Total Posts: 116
17 Jun 2016 09:16 AM
did you put this code in a script or localscript? just asking.
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
17 Jun 2016 09:20 AM
I suggest this be put in a localscript.
Report Abuse
MezornoIV is not online. MezornoIV
Joined: 20 Jul 2010
Total Posts: 2276
17 Jun 2016 12:02 PM
I put it in a local script and it doesn't work anymore. Help?


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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