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

So, I am trying to make this script work in game. Help?

Asked by 8 years ago

So, is there any other way to make the script work? I put the script in StarterPack, and it is a script, not a local script. Is there any other way besides disabling FilteringEnabled? I am really confused. And I heard about RemoteEvents and RemoveFunctions, could someone also give me the link to that page? Or tell me what those objects do?(Oh and did you know Lua is an object based programming language?)

Player = game.Players.LocalPlayer
Character = Player.Character
Torso = Character.Torso
Mouse = Player:GetMouse()
hold = false


Mouse.Button1Down:connect(function()  
    if hold == false then
       hold = true
        while hold == true do
           wait(0.00001)
            Player.Character.Humanoid.WalkSpeed = Player.Character.Humanoid.WalkSpeed +1
                wait(0.1)
                local Brick = Instance.new("Part", Character) --Changed Player to Character                Brick.Anchored = true
                Brick.Position = Torso.Position + Vector3.new(5,0, 0)
                Brick.BrickColor = BrickColor.new("New Yeller")
                Brick.Size = Vector3.new(3,5,4)  
                Brick.Anchored = true
                Brick.Transparency = 0.5
                Brick.Reflectance = 0.4
                game.Debris:AddItem(Brick,1)
                Brick.TopSurface = 0
                Brick.BottomSurface = 0
                Brick.CanCollide = false
                local smoke = Instance.new("Smoke", Brick)
                smoke.Opacity = 0.3
                smoke.RiseVelocity = 0.4
                smoke.Size = 0.5
                smoke.Color = Color3.new(226,226,36)
                smoke.Enabled = true
                local fire = Instance.new("Fire", Brick)
                fire.Enabled = true
                fire.Heat = 10
                fire.Color = Color3.new(255,173,0)
                fire.SecondaryColor = Color3.new(255,0,0)
                fire.Size = 15

        end

    end





end)
Mouse.Button1Up:connect(function()
    if hold == true then
        hold = false
        Player.Character.Humanoid.WalkSpeed = 16
    end
end)
0
Too many questions within a question. What do you need help with? PreciseLogic 271 — 8y
0
Just making this work in-game. Something about FilteringEnabled. tyler46783 0 — 8y

Answer this question