so i really need help! How can i convert the following scripts into "experimental mode"

local erj= game.ReplicatedStorage.Civera
backup=erj:clone()
local dialog = script.Parent
local f18= game.ReplicatedStorage.Volga
backup2 = f18:clone()
dialog.DialogChoiceSelected:connect(function(player, choice)
    -- Check the player has a stats object
    local stats = player:FindFirstChild('leaderstats')
    if not stats then return end
 
    -- And that the stats object contains a gold member
    local Money = stats:FindFirstChild('Money')
    if not Money then return end
 
    if choice == script.Parent.DialogChoice.ChoiceA then
        if Money.Value >= 100 then -- 100 is the amount of gold you need to purchase this weapon
            erj=backup:clone()
	erj.Parent=game.Workspace
	erj:makeJoints()
            Money.Value = Money.Value - 0 -- subtract the amount of gold you need to purchase
        end
    elseif choice == dialog.DialogChoice.ChoiceB then
        if Money.Value >= 150 then
	f18=backup2:clone()
	f18.Parent = workspace
	f18:makeJoints()
            Money.Value = Money.Value - 0
        end
    elseif choice == dialog.DialogChoice.ChoiceC then
        if Money.Value >= 15 then
            game.ReplicatedStorage.Weapon3:Clone().Parent = player.Backpack
            Money.Value = Money.Value - 0
        end
    end
end)
function onButtonClicked()
local x = game.Workspace:FindFirstChild("Home"..script.Parent.Parent.Parent.Parent.Name)
if not (x) then
return
else
if script.Parent.Text == "Lock House Doors" then
script.Parent.Text = "Unlock House Doors"
x.Home.FDoor.CanCollide = true
x.Home.BDoor.CanCollide = true
x.Home.GDoor.CanCollide = true
elseif script.Parent.Text == "Unlock House Doors" then
script.Parent.Text = "Lock House Doors"
x.Home.FDoor.CanCollide = false
x.Home.BDoor.CanCollide = false
x.Home.GDoor.CanCollide = false
end
end
end
script.Parent.MouseButton1Click:connect(onButtonClicked)

function onButtonClicked()
local x = game.Workspace:FindFirstChild("Home"..script.Parent.Parent.Parent.Parent.Name)
if not (x) then
return
else
x.Home:Remove()
x.Name = "Home"
wait(.5)
s = game.Lighting["Home"..script.Parent.Parent.Parent.Parent.Name]
s.Parent = x
s.Name = "Home"
end
end
script.Parent.MouseButton1Click:connect(onButtonClicked)
local debounce = false
function onButtonClicked()
if debounce == false then
debounce = true
script.Parent.Parent.Parent.Parent.Character.Humanoid.Sit = true
local g = Instance.new("BodyGyro")
g.Parent = script.Parent.Parent.Parent.Parent.Character.Torso
wait(1)
g:Remove()
wait(2)
debounce = false
end
end
script.Parent.MouseButton1Click:connect(onButtonClicked)

If ANYONE could help me id be happy

4 comments

0

What is script.Parent.Parent.Parent.Parent?

0

what do you mean? Im in a lot of desperation right now and i just want my game to run again. All the scripts run FINE when experimental mode is turned off

0

This isn't a request site.

0

Please learn to use Remote Events.