-- Create the Light (SpotLight)
local flashlight = Instance.new("SpotLight")
if module.PaidFlashlight then
if MarketService:UserOwnsGamePassAsync(player.UserId, module.GamepassID) then
print("Player has Gamepass!")
for i,v in module.Paid do
flashlight[i] = v
end
else
for i,v in module.Normal do
flashlight[i] = v
end
end
else
for i,v in module.Normal do
flashlight[i] = v
end
end
this is not secure, you should do :UserOwnGamepassAsync in the server along with the if checks cause “exploiters” can just set the PaidFlashlight to false
I’m working making the entire module server-sided with some events in to make it server sided, a complete oversight on my part. Will be fixed soon.
Didn’t see it because who is gonna steal a FLASHLIGHT.
FlashMod V1.1 is now out, the module is now server sided meaning no pesky exploiters can get in.
This does bring a few minor issues listed in the post now, but hopefully it can be fixed soon.
The download link is on the post! Happy Scripting!