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

am i stupid? cause i cant figure this out D:

Asked by 8 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

ok so i dont know whyt but i can figure out why i cant get my portal to close after im done using it or why i cant get animations :l

bin = script.Parent
hold = false
currentColor = 1
firstTime = true


function onButton1Down(mouse)
    if (hold==false) then
        mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
        hold = true
        local part = mouse.Target
        if part~=nil then
            local position = mouse.Hit
            local target = position.p
            script.Parent.BuildSound:Play()
            if firstTime == true then
                firstTime = false
                script.Parent.Teleporters:MoveTo(Vector3.new(math.random(-200,200), 1000, math.random(-200,200)))
                script.Parent.Teleporters.Parent = game.Players.LocalPlayer.Character
            end
            if currentColor == 1 then
                game.Players.LocalPlayer.Character.Teleporters.Red.Position = target
                currentColor = 2
                script.Parent.Open:Play()
            elseif currentColor == 2 then
                game.Players.LocalPlayer.Character.Teleporters.Blue.Position = target
                currentColor = 1
                script.Parent.Open:Play()
            end
        end
    mouse.Icon = "rbxasset://textures\\GunCursor.png"
    hold=false
    end
end


function onSelected(mouse)
    mouse.Icon = "rbxasset://textures\\GunCursor.png"
    mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end


bin.Selected:connect(onSelected)
0
Please edit your post to use Lua formatting. Highlight all of the code, then press the Lua button. BlueTaslem 18071 — 8y
0
Sorry but I cannot answer this since your format is messed up, please fix it. fireboltofdeath 635 — 8y
0
ok ... can you read it now? FinickOdre123 6 — 8y
0
no it's still in chinese Redbullusa 1580 — 8y
0
ugggggggggg ... kk ill just delet the post FinickOdre123 6 — 8y

Answer this question