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: Usefulness of RemoteFunctions

Previous Thread :: Next Thread 
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
07 Oct 2013 06:41 PM
    local RequestKick = Instance.new("RemoteFunction");

    function RequestKick.OnServerInvoke(player)
        player:Kick()
    end

    RequestKick.Name = "RequestKick";
    RequestKick.Parent = Game:GetService("ReplicatedStorage");

Now you go.
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
07 Oct 2013 06:42 PM
How did this pass the security test!?
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
07 Oct 2013 06:50 PM
@Absurdism
"player:Kick()"
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
07 Oct 2013 06:53 PM
Couple the first snippet (server-sided script) with the following (client-sided localscript):

    local RequestKick = Game:GetService("ReplicatedStorage"):WaitForChild("RequestKick");
    
    local player = game.Players.LocalPlayer;
    local character = player.Character or player.CharacterAdded:wait();
    local humanoid = character:WaitForChild("Humanoid");
    humanoid.Jumping:connect(function() RequestKick:InvokeServer() end)

no jumping for you
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
07 Oct 2013 07:02 PM
http://www.roblox.com/Dont-Jump-place?id=131937665

no jumping for you
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
07 Oct 2013 07:20 PM
@blocco

Defeated.
Report Abuse
pokemaster179 is not online. pokemaster179
Joined: 29 Sep 2013
Total Posts: 96
07 Oct 2013 08:00 PM
Hah Lol 'twas an easy challenge :o
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
08 Oct 2013 07:20 AM
Get out poke.
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
08 Oct 2013 02:57 PM
omg we can do this!!!!!

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