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: why wont this button work?

Previous Thread :: Next Thread 
kjake43607 is not online. kjake43607
Joined: 11 Apr 2011
Total Posts: 1100
10 Jun 2017 02:25 PM
Literally i tried everything, i even made everything that the buttons function does compatible with fe, still nothing! although some how i still believe it is something to do with fe because it works fine in studio and not in game, also its in a local script so that's not the problem.

all i want to happen is when u press the button a value in server changes and a text changes. is this so hard?!
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
10 Jun 2017 02:27 PM
just use a remote event and fire it to the server and then have the server connect to the event and change the value
although you should almost never be changing data from the client
Report Abuse
kjake43607 is not online. kjake43607
Joined: 11 Apr 2011
Total Posts: 1100
10 Jun 2017 02:32 PM
the intvalue is in the workspace(server), thats the value i want to be chaning. basically the button when pressed is supposed to trigger a remote event, that then connects with a script that changes a the intvalues value. and also replaces the #### ## the text button with something new. so technically in the local script there is nothing telling the server to do anything. all it does is trigger the event. but still fe still will F*** it all up. from a local script do you say FireServer or FireClients. cause thats all i can think of that i have done wrong
Report Abuse
kjake43607 is not online. kjake43607
Joined: 11 Apr 2011
Total Posts: 1100
10 Jun 2017 02:41 PM
local lol = game.Players.LocalPlayer:WaitForChild("info"):WaitForChild("AFK").Value
if lol == false then

game.ReplicatedStorage.Folder.True:FireServer(game.Players.LocalPlayer.Name)
lol = true
elseif lol == true then
game.ReplicatedStorage.Folder.False:FireServer(game.Players.LocalPlayer.Name)
lol = false
end

script.Parent.MouseButton1Click:connect(function()
if lol == false then
game.ReplicatedStorage.Folder.False:FireServer(game.Players.LocalPlayer)
lol = true
elseif lol == true then
game.ReplicatedStorage.Folder.True:FireServer(game.Players.LocalPlayer)
lol = false
end
end)
tell me what is not fe proof in this!
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
10 Jun 2017 02:44 PM
??????????

also i cant read whats in that ugly code but


local afk = afkValueThing.Value
button.MouseButton1Down:connect(function()
afk = not afk
event:FireServer(afk)
end)




event.OnServerEvent:connect(function(player,isafk)
player.afkValueThing.Value = isafk
end)
Report Abuse
kjake43607 is not online. kjake43607
Joined: 11 Apr 2011
Total Posts: 1100
10 Jun 2017 02:46 PM
sorry its a bit messy, ill repost it cleaner
Report Abuse
kjake43607 is not online. kjake43607
Joined: 11 Apr 2011
Total Posts: 1100
10 Jun 2017 02:47 PM

local lol = game.Players.LocalPlayer:WaitForChild("info"):WaitForChild("AFK").Value

if lol == false then

game.ReplicatedStorage.Folder.True:FireServer(game.Players.LocalPlayer.Name)
lol = true

elseif lol == true then

game.ReplicatedStorage.Folder.False:FireServer(game.Players.LocalPlayer.Name)
lol = false

end

script.Parent.MouseButton1Click:connect(function()

if lol == false then

game.ReplicatedStorage.Folder.False:FireServer(game.Players.LocalPlayer)
lol = true

elseif lol == true then

game.ReplicatedStorage.Folder.True:FireServer(game.Players.LocalPlayer)
lol = false

end

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