#doesnt work in game

22 messages · Page 1 of 1 (latest)

final vigil
granite badger
#

Can't do shit without your code

#

Should be obvious, considering this is #1020374354867007528

final vigil
#

@granite badger

#

here is script
there is more than one script here:
all my code

local eventq = game:GetService("ReplicatedStorage").Remotes.eventq
game:GetService("Players").PlayerAdded:Connect(function(plr)
    local cooldown = Instance.new("NumberValue")
    cooldown.Value = tick()
    cooldown.Name = "Cooldown"
    cooldown.Parent = plr
end)

eventq.OnServerEvent:Connect(function(player, cooldown)
    if tick() - player.Cooldown.Value > cooldown then
        
        player.Cooldown.Value = tick() 
    end
end)
local UIS = game:GetService("UserInputService")
local hotkey = Enum.KeyCode.Q
local cooldown = 10
local event = game:GetService("ReplicatedStorage").Remotes.eventq
local fp = game.Workspace.FIRE 
local plr = game:GetService("Players").LocalPlayer

UIS.InputBegan:Connect(function(input)
    if input.KeyCode == hotkey then
        if tick() - plr.Cooldown.Value > cooldown then
            local fpl = plr.Character:WaitForChild("HumanoidRootPart").Position

            fp.CFrame = CFrame.new(fpl)
            fp.ParticleEmitter.Enabled = true
            event:FireServer(cooldown)
            local timer = 0
            local lastTime = tick()

            while timer < cooldown do -- 10 for max amount of seconds
                timer += tick()-lastTime
                task.wait()
                fp.CFrame = CFrame.new(fpl)
            end
            fp.CFrame = CFrame.new(1721.725, 2511.404, -1099.142)
            fp.ParticleEmitter.Enabled = false
        end
    end
end)
local player = game:GetService("Players").LocalPlayer
local value = player:WaitForChild("Cooldown")
local gui = script.Parent

local cooldown = 10

while wait(0.3) do
    local last = tick() - value.Value
    if last > cooldown then last = cooldown end
    
    local change = 1 - (last/cooldown)
    gui:TweenSize(UDim2.new(1,0,change,0),"In","Linear", 0.3)
end
torpid comet
#

What're you trying to do, make a block spawn? I don't even see a script to do that

final vigil
#

its in 2nd script

#

its fp.crframe = cframe.new(fpl)

#

fp is the block

#

fpl is the players position

void citrus
#

go ingame

thin loom
#

studio** You are now Level 3! **studio

void citrus
#

press q

#

then press f9 to open console

#

and select server

#

and take a picture

#

of the error

final vigil
void citrus
#

size is - value?

#

the cd bar expanded down wards