Introduction
Hello everyone! I was trying to make an Open Sourced Map Testing, like Flood Escape 2: Community Maps (FE2:CM), where you could load maps via IDs (When whitelisted).
Problem
When I tried to load a current existing map, it said HTTP 404: Requested Asset was not found
on console. I was having a hard time understanding it.
Evidences and Resources
Here are some resources and evidences that might help you!
Image: StarterGUI library
Script: InputScript
local TextInput = script.Parent -- Gets TextInput
local ID = script.Parent.Parent.InsertButton.ID -- Gets ID
TextInput.InputEnded:Connect(function(Ended) -- If user done typing
if Ended then -- If user done typing
ID.Value = TextInput.Text -- Change text
end
end)
Script: InsertScript
-- Variables --
local InsertService = game:GetService("InsertService") -- Gets InsertService
local Button = script.Parent -- Gets button
local ID = script.Parent.ID.Value
-- Function --
Button.MouseButton1Click:Connect(function() -- If Clicked
local Map = InsertService:LoadAsset(ID) -- Insert map
Map.Parent = workspace -- Put it in workspace
end)
Hope this will help you work on solving my issue! Thanks!