Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can anyone check my script is wrote correctly?

Asked by 5 years ago

Rebirth Gui [local script]

local stats = game.Players.LocalPlayer.leaderstats
script.Parent.MouseButton1Click:connect(function()
    if stats.LifeFormFound.Value >= 10 then
        game.Players.LocalPlayer.leaderstats.LifeFormFound.Value = 0
        game.Players.LocalPlayer.leaderstats.Rebirth.Value = game.Players.LocalPlayer.leaderstats.Rebirth.Value +1          
    else
        game.Players.LocalPlayer.leaderstats.LifeFormFound.Value = game.Players.LocalPlayer.leaderstats.LifeFormFound.Value
        game.Players.LocalPlayer.PlayerGui.RebirthFail.Frame.Visible = true
        wait(3)
        game.Players.LocalPlayer.PlayerGui.RebirthFail.Frame.Visible = false
    end
end)

Text Button Gui

script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.Frame.Visible = true
end)

Text Button Gui

script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.Visible = false
end)

Text Button Gui

script.Parent.MouseButton1Click:Connect(function(Player)
        if game.Players.LocalPlayer.leaderstats.LifeFormFound.Value >= 2000 then  
         game.Players.LocalPlayer.Character.LowerTorso.CFrame = CFrame.new(workspace.Point.Position)
        game.Players.LocalPlayer.PlayerGui.TestGui.Frame.Visible = true
        wait(3)
        game.Players.LocalPlayer.PlayerGui.TestGui.Frame.Visible = false
        else game.Players.LocalPlayer.PlayerGui.TestGui2.Frame.Visible = true
        wait(3)
        game.Players.LocalPlayer.PlayerGui.TestGui2.Frame.Visible = false
        end
        end)

Brick OnTouch Script

local Part = script.Parent

Part.Touched:connect(function(HIT)
    local H = HIT.Parent:FindFirstChild("Humanoid")
    if H then
        local Player = game.Players:GetPlayerFromCharacter(HIT.Parent)
        Player.PlayerGui.ScreenGuiDirtBlock.Frame.Visible = true
wait(0.5)
Player.PlayerGui.ScreenGuiDirtBlock.Frame.Visible = false
    end
end)
0
Looks right, do you have any errors? seith14 206 — 5y
0
I want it to work on FE on sooo, can you tell me how to do it? RainbowBeastYT 85 — 5y
0
Transforming a game (or really just a section) can be a time consuming and challenging process. It's much more efficent if you were to learn it and then start creating your game already with FE enabled. ZappleOfficial 35 — 5y

Answer this question