OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 07:23 AM |
function onButtonClicked() if game.Players:FindFirstChild(script.Parent.Parent.person.Text) then local player = game.Players[script.Parent.Parent.person.Text] player:WaitForDataReady() player:SaveNumber("Bantime", tick()) player:SaveNumber("Days", script.Parent.Parent.days.Text) player:SaveString("Reason", script.Parent.Parent.reason.Text) player:SaveString("Person", script.Parent.Parent.Parent.Parent.Parent.Name) wait(1) player:Remove() end end
script.Parent.MouseButton1Click:connect(onButtonClicked)
No output, used remote error monitoring system to check. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 11 Jul 2013 07:37 AM |
| You don't have WritePlayer permissions |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 11 Jul 2013 07:39 AM |
http://wiki.roblox.com/index.php/User:Blocco/Normal_Identities/Draft
See where it says WritePlayerSecurity? Yeah. You need WritePlayer permissions |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 07:41 AM |
| Because that totally tells me why i can't use the script |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 11 Jul 2013 07:43 AM |
| Like I said, you can't use it because you don't have WritePlayer permissions. Your code isn't allowed to modify any player in any way, shape or form that is deemed harmful by the Roblox client. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
| |
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 07:44 AM |
So i can't save a number to the player or kick the player? Even though i have other scripts and SaveNumber works? legit |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 11 Jul 2013 07:45 AM |
| That is not considered modification of the player. A modification of the player is any change in the Player object itself. Data Persistence is not saved to the player as you would think. It is simply GETed and POSTed from and to a server. |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 07:46 AM |
| Explain which part of the script then is restricted then? |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 11 Jul 2013 07:47 AM |
| `player:Remove()` is restricted, as it attempts to set the Parent of `player`. |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 07:47 AM |
what the hell we can't kick players anymore |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 07:50 AM |
Maybe i shouldve added a questionmark
we can't kick players anymore? |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 07:50 AM |
| player:Remove() can be done, I mean, the admin GUI I'm working on (Scripted with basic lua because it's all I know..) I used that, and you can do it. |
|
|
| Report Abuse |
|
|
blocco
|
  |
| Joined: 14 Aug 2008 |
| Total Posts: 29474 |
|
|
| 11 Jul 2013 07:52 AM |
| Well now someone's got to go test the method |
|
|
| Report Abuse |
|
|
|
| 11 Jul 2013 07:52 AM |
"game.Players[target.Text]:Remove()"
Is basically player:Remove()
I don't see anything wrong here, but there obviously is something wrong. (In OP's script) |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|
|
| 11 Jul 2013 08:07 AM |
| Still saying, removing a player with game.Players.Player:remove() is possible, as it's used for my kick GUI and everything that kicks... |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 08:08 AM |
| Player:Remove() is used in Person299 admin, kohl's admin which still work. |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 11 Jul 2013 08:12 AM |
| I can ASSURE you that it isn't :Remove(). I changed it to a crash script and it still didn't work. |
|
|
| Report Abuse |
|
|