How to instance basewrap in game

Hi devs, do you guys know how to put a basewrap in game? To avoid exploiters copying your map and stuff? Exemple of the error message i need when an exploiter click to open a map that he download where a local script put basewrap in game :

aa665a17d30c00f11974d53e07fa816e701b2f9a

1 Like

If you see this message, you can interact with it to prevent it from being lost…

1 Like

Oh my bad I read it completely wrong, let me have a look.

3 Likes

Alr , hope you will find the solution to it

1 Like

All I’m seeing is creating some invisible part but I’m not convinced.

2 Likes

Ye that the point. Actually idk how to put a basewrap in the game cause when i make an instance of it , it does show the error but it doesn’t put the basewrap on the game so…

Found something from AI, will send it here regardless as it could help. No harm in doing so.

local function createBaseWrap(Size, map) -- your map should be a model/folder
    local baseWrap = Instance.new("Part")
    baseWrap.Size = Vector3.new(Size.X + 10, Size.Y + 10, Size.Z + 10) -- Adjust the size as needed
    baseWrap.Position = map.Position
    baseWrap.Transparency = 1 
    baseWrap.Anchored = true
    baseWrap.CanCollide = false
    baseWrap.Parent = map.Parent
end

local map = workspace:WaitForChild("YourMapNameGoesHere")
createBaseWrap(map)

Don’t know if this will work, have not tested.

You don’t even make a basewrap on this script , for sure it won’t work

As I said, got nothing for it. Sorry I couldnt help

1 Like

Its ok , i just hope someone will find the solution