|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 10 Jun 2017 02:46 PM |
sorry its a bit messy, ill repost it cleaner
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|