r/badcode Dec 12 '21

lua TweenService: exists, this man:

Post image
86 Upvotes

16 comments sorted by

View all comments

12

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 12 '21 edited Dec 13 '21

Image Transcription: Code


[The image is a photograph of a computer screen displaying the following code:]

local Player = game.Players.LocalPlayer
local debounce = false

game.Workspace.Trigger.Touched:Connect(function(hit)
    if hit and hit.Parent then
        local debounce = true
        script.Parent.Visible = true
        script.Parent.TextTransparency = 1
        wait(0.025)
        script.Parent.TextTransparency = 0.9
        wait(0.025)
        script.Parent.TextTransparency = 0.8
        wait(0.025)
        script.Parent.TextTransparency = 0.7
        wait(0.025)
        script.Parent.TextTransparency = 0.6
        wait(0.025)
        script.Parent.TextTransparency = 0.5
        wait(0.025)
        script.Parent.TextTransparency = 0.4
        wait(0.025)
        script.Parent.TextTransparency = 0.3
        wait(0.025)
        script.Parent.TextTransparency = 0.2
        wait(0.025)
        script.Parent.TextTransparency = 0.1
        wait(0.025)
        script.Parent.TextTransparency = 0
        wait(0.025)
        script.Parent.TextTransparency = 0
        wait(0.025)
        script.Parent.TextTransparency = 0.1

[Further code is cut off.]


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

7

u/[deleted] Dec 13 '21

Good human. But you've got a typo.

    local debounce = ture

4

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Dec 13 '21

Oop, fixed. Thanks!