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
 

Re: help please

Previous Thread :: Next Thread 
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
16 Aug 2016 06:12 PM
I am at an loss of whats wrong... When i test it on server test it changes... But when i go into game it doesnt. I DO NOT USE THE SOLO TEST!!! Everytime i try it in the game it says player with UserId=0 is not here. I have a script that marks what id to give the badge to... Please help.


BadgeGiverScript:

event = game.ReplicatedStorage:WaitForChild('RBadgeEvent')
PlayerToAward = game.Workspace.BadgeScreen.Screen.PlayerId.Value
Badge = game:GetService('BadgeService')

event.OnServerEvent:connect (function()
Badge:AwardBadge(PlayerToAward,480538645)
end)


event = game.ReplicatedStorage:WaitForChild('DBadgeEvent')
PlayerToAward = game.Workspace.BadgeScreen.Screen.PlayerId.Value
Badge = game:GetService('BadgeService')

event.OnServerEvent:connect (function()
Badge:AwardBadge(PlayerToAward,480538645)
end)





Script that names who to give:

pcall(function()
script.Parent.FocusLost:connect(function(Typed)
workspace.BadgeScreen.Screen.SurfaceGui.Frame.TextButton.Text = script.Parent.Text
workspace.BadgeScreen.Screen.PlayerId.Value = workspace.BadgeScreen.Screen.SurfaceGui.Frame.TextButton.Text
end)
end)


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
16 Aug 2016 06:27 PM
bump


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
16 Aug 2016 06:50 PM
bump


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
16 Aug 2016 07:54 PM
bump


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
16 Aug 2016 10:14 PM
Bump
Report Abuse
Lua_Basics is not online. Lua_Basics
Joined: 04 Jun 2012
Total Posts: 9977
16 Aug 2016 10:17 PM
game.Players.PlayerAdded:connect(function(plr)
if plr.Name == 'YourName' and player.userId == '12345678' then
--code
end
end)
Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
17 Aug 2016 07:21 AM
thats not how its supposed to work... Someone types a user id in a box and that is the user Id that is supposed to be awarded. Instead it says 0 and idk why


Report Abuse
stephenthefox is not online. stephenthefox
Joined: 11 Mar 2011
Total Posts: 1123
17 Aug 2016 09:17 AM
Bump


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