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: What's wrong?

Previous Thread :: Next Thread 
OldGoldie is not online. 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 is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
11 Jul 2013 07:37 AM
You don't have WritePlayer permissions
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
11 Jul 2013 07:38 AM
WritePlayer?
Report Abuse
blocco is not online. 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 is not online. 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 is not online. 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 is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
11 Jul 2013 07:43 AM
*potentially harmful
Report Abuse
OldGoldie is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
TalentGoesBy is not online. TalentGoesBy
Joined: 08 Jun 2013
Total Posts: 4775
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 is not online. 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
TalentGoesBy is not online. TalentGoesBy
Joined: 08 Jun 2013
Total Posts: 4775
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 is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
11 Jul 2013 07:54 AM
Sure thing bro, read pm
Report Abuse
TalentGoesBy is not online. TalentGoesBy
Joined: 08 Jun 2013
Total Posts: 4775
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 is not online. 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 is not online. 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
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