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: Using Remote Functions/Events to change stats?

Previous Thread :: Next Thread 
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:23 AM
(some locals)
local clicks = plr:WaitForChild("stat")


SCRIPT 1
game.ReplicatedStorage.Remotes.a.1.OnClientEvent:connect(function(eggad)
if plr:WaitForChild("Backpack"):WaitForChild("WhichOn").Value < 1 then
plr:Kick("stop") -- kicks if not on anything
else
clicks.Value = clicks.Value + 1 -- adds to stats
end
end)

SCRIPT 2
game.ReplicatedStorage.Remotes.a.1:FireClient(game.Players.LocalPlayer, 1)

So basically i've been trying to use remote functions / events (mainly events) to change stats inside of my game, the stats on the leaderboard change everytime the remoteevent is called in studio, but when called in an actual game it wont work. I've picked out the main lines of code that I believe are causing the problems, if you can reply with help it'll be greatly appreciated ;D


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:25 AM
Oh gosh the new way of scam botting ._.


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:28 AM
.


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:32 AM
i have to bump like every 2 mins wth


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:34 AM
yeah 2 mins alright


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:37 AM
ding dong thats another 2 minutes gone


Report Abuse
Ben10Tam is not online. Ben10Tam
Joined: 02 Apr 2013
Total Posts: 415
03 Sep 2017 11:39 AM
yaaaa


Looking to hire a gui designer/builder? Contact me on discord at CTahmid#5491!
Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:39 AM
wayat


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:41 AM
tell you what nevermind the scam bots have beaten me ._.


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 11:44 AM
last bump gonna check back in like 1hr


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 01:51 PM
oh hey it looks like the bots stopped


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 02:08 PM
if it helps, the first script is in a server script, and the second one is in a local and they're both located in the StarterGui / PlayerGui


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 02:15 PM
or just another way to do something like this in an FE place 3:


Report Abuse
NetworkEngineer is not online. NetworkEngineer
Joined: 08 Aug 2017
Total Posts: 64
03 Sep 2017 02:16 PM
Wrong, wrong, and wrong. FireClient? Are you using Server to Server or Server to Client? FireClient are for server to only one client, FireServer are for a specific client to server, ########lients are for server to ALL the clients in game.
Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 02:21 PM
I've tried doing :FireServer() instead of :FireClient() before and it had the exact same outcome as doing :FireClient(). How would using :FireServer() help specifically?


Report Abuse
Happ_yy is not online. Happ_yy
Joined: 06 Jan 2012
Total Posts: 9600
03 Sep 2017 02:23 PM
bumping for you!1


Report Abuse
ExtremeBuilder15 is online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
03 Sep 2017 02:24 PM
script 2:

game.ReplicatedStorage.REmotes.a.i.OnServerEvent:connect(function(plr, eggad)


script 1:

game.ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("a"):WaitForChild("1"):FireServer(1)



Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
03 Sep 2017 02:36 PM
Hmm, I replaced the lines with those 2 lines but it still has the same outcome as before, it works on studio but not the actual game. idk if its the placement of the script, the :FireServer() one being in the local and the OnServerEvent one in the Server script both in the player gui, im not sure.


Report Abuse
NetworkEngineer is not online. NetworkEngineer
Joined: 08 Aug 2017
Total Posts: 64
03 Sep 2017 02:38 PM
This is so easy, but for you it's hard. Ask this question in scriptinghelpers. [org], they'll help you there.
Report Abuse
Baseness is not online. Baseness
Joined: 07 Oct 2015
Total Posts: 1001
03 Sep 2017 02:50 PM
I can help you if you do Team Create with me right now.


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
04 Sep 2017 02:48 AM
I might need help again, i'm still stuck ;-;


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
04 Sep 2017 04:21 AM
Ok i'm kinda desperate now cus I can't continue the game unless I do this. 50R$ is on the table if anyone wants it


Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
04 Sep 2017 05:56 AM
Upping that to 250R$ for whoever gives me a solution, i've been trying to fix it for hours and im so damn desperate ._.


Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
04 Sep 2017 05:59 AM
message me all ur scripts on discord

amanda
#0103
Report Abuse
Axtanvic is not online. Axtanvic
Joined: 16 Jul 2015
Total Posts: 549
04 Sep 2017 06:01 AM
@! ! ! Axtanvic ! ! !#9097 cant find you


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