These twitter GUIs work in studio but not in servers. Here's the first script (A script in Workspace, with a "Wait" (remote event))
game.Players.PlayerAdded:connect(function()
shared.TwitterStatus = false
game.Workspace:WaitForChild("Wait"):FireServer()
end)-- this goes into the script inside of workspace
Second script in "Submit" inside of a ScreenGui inside of a frame. (local script)
SCRIPT:
--put this script into a local script in the place of the old one that didnt work
local gear = game.ReplicatedStorage:WaitForChild("GravityCoil")
game.Workspace.Wait.OnServerEvent:connect(function()
shared.TwitterStatus = false -- now that we are using it, it is no longer nil and has a value.
--It is also setting the variable once when the player is added to prevent it from being added again when player respawns
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.Input.Text == 'Alpha!' and shared.TwitterStatus == false then
print("fire")
shared.TwitterStatus = true -- now that it is true, it cannot be ran in this condition again. But as i said before, it can be edited from any script, so u can change it later
gear:Clone().Parent = game.Players.LocalPlayer.Backpack
script.Parent.Parent.Input.Text = ''
script.Parent.Text = 'Success!'
wait(1)
script.Parent.Text = 'Submit'
else
script.Parent.Parent.Input.Text = 'Submit'
script.Parent.Text = 'Invalid Code'
wait(1)
script.Parent.Text = 'Submit'
end
end)
end)--this script will go into a local script in the place of the old one that didnt work

4 comments
Keeps saying "On server event can only be used on a server
Still doesnt help alot, but helps somewhat
Well what question are you trying to get answered
tyyyyy