|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|