So, I’m trying to make a remote ID that randomizes whenever a tool is clicked and another value is set to the ID then the ID gets transferred to the remote event which then checks if the ID is the same as the other ID value. I’m not good at this kind of stuff so this could be completely useless.
Module Script
local module = {}
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
function module.Develop()
local HttpService = game:GetService("HttpService")
local ID = HttpService:GenerateGUID(false)
script.Parent.DevelopID.Value = ID
ReplicatedStorage.Remotes.Develop:FireServer(ID)
end
return module
Normal Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerStorage = game:GetService("ServerStorage")
local debounce = false
ReplicatedStorage.Remotes.Develop.OnServerEvent:Connect(function(plr,ID)
if not debounce then
debounce = true
local char = plr.Character
print(ID)
if ID == char.Dev.DevelopID.Value then
print("ID is correct")
else
print("ID is not correct")
end
debounce = false
end
end)
It keeps returning ID is not correct.