#my rake is dumb and my sword doesnt working

191 messages · Page 1 of 1 (latest)

halcyon crown
#

I added the shock part to the torso of the rake.

paper brook
#

Do you use pathfinding for the rake ?

halcyon crown
#

no

paper brook
#

That why he is dumb

halcyon crown
#

It works fine in other games but

#

Even though there is no pathfinding

paper brook
#

I really recommend to use pathfinding

#

You can find some tutorials on youtube and it is not hard to script

vivid canopy
#

god is the awnser

#

find god

paper brook
halcyon crown
#

what about crucible?

halcyon crown
snow blaze
#

my ears

halcyon crown
#

bro help me

gloomy dagger
halcyon crown
#

who

wanton umbraBOT
#

studio** You are now Level 5! **studio

halcyon crown
#

@gloomy dagger

gloomy dagger
#

the code no hicherachy

halcyon crown
#

uh

#

what should i do @gloomy dagger

vivid canopy
#

real

gloomy dagger
halcyon crown
gloomy dagger
halcyon crown
#

ok

#

while true do
wait(5)
script.Parent.Enabled = false
end

#

local o = script.Parent.Handle.Crucible.Blade
local i = script.Parent.Handle.Crucible.Outline
local e = script.Parent.Handle.Crucible.Outline2
local u = script.Parent.Handle.Crucible.Outline3
local p1 = script.Parent.Handle.Crucible.Blade.X1.ParticleEmitter
local p2 = script.Parent.Handle.Crucible.Blade.X2.ParticleEmitter
local p3 = script.Parent.Handle.Crucible.Blade.X3.ParticleEmitter
local p4 = script.Parent.Handle.Crucible.Blade.X4.ParticleEmitter
local p = script.Parent.Handle.Crucible.Blade.Particle2
local b1 = script.Parent.Handle.Crucible.Beam1
local b2 = script.Parent.Handle.Crucible.Beam2
local walkspeed = game.Players

script.Parent.Equipped:Connect(function()
script.Parent.Handle:WaitForChild("ChargingSound"):Play()
script.Parent.Parent.InventoryEnabler.Disabled = true
script.Parent.Parent.InventoryDisabler.Disabled = false
--wait(2.2)
script.Parent.Handle:WaitForChild("UnsheathSound"):Play()
wait(2.0)
script.Parent.Parent.InventoryEnabler.Disabled = false
script.Parent.Parent.InventoryDisabler.Disabled = true
script.Parent.Handle.musica.Volume = 2
--script.Parent.Handle.start:Play()
--script.Parent.Handle.musica:Play()
script.Parent.Handle.Idle:Play()
o.Transparency = 0
i.Transparency = 0
e.Transparency = 0
u.Transparency = 0
b1.Beam.Enabled = true
b2.Beam.Enabled = true
p.Enabled = true
p1.Enabled = true
p2.Enabled = true
p3.Enabled = true
p4.Enabled = true
script.Parent.Handle.LightHandle.Transparency = 0
script.Parent.Handle.Crucible.Blade.PointLight.Enabled = true
end)

script.Parent.Unequipped:Connect(function()
script.Parent.Handle.musica.Volume = 0
script.Parent.Handle.Idle:Stop()
script.Parent.Handle.Crucible.Blade.PointLight.Enabled = false
o.Transparency = 1
i.Transparency = 1
e.Transparency = 1
u.Transparency = 1
script.Parent.Handle.LightHandle.Transparency = 1
b1.Beam.Enabled = false
b2.Beam.Enabled = false
p.Enabled = false
p1.Enabled = false
p2.Enabled = false
p3.Enabled = false
p4.Enabled = false
script.Parent.Handle.Unequip:Play()
end)

#

repeat wait() until script.Parent.Parent:FindFirstChild("Humanoid")

local tool = script.Parent
local Player = tool.Parent
local Hum = Player:WaitForChild("Humanoid")
local Idle = Hum:LoadAnimation(tool.Idle)
local Swing = Hum:LoadAnimation(tool.Attack)
local Equip = Hum:LoadAnimation(tool.Equip)
local Debounce = false

tool.Equipped:Connect(function(v)
Idle:Play()
Idle:AdjustSpeed(0.75)
Equip:Play()
Equip:AdjustSpeed(0.25)
end)

tool.Unequipped:Connect(function(v)
Idle:Stop()
Equip:Stop()
end)

tool.Activated:Connect(function(v)
if Player.Stamina.Value >= 10 and not Debounce then
Debounce = true
tool.Handle.SwingSound:Play()
Player.UseStamina.Value = true
Player.Stamina.Value -= 4
wait(0.01)
Player.UseStamina.Value = false
spawn(function()
task.wait(1.5)
Debounce=false
end)
spawn(function()
tool.ShockPart.Damage.Disabled = false
task.wait(0.5)
tool.ShockPart.Damage.Disabled = true
end)
Swing:Play()
end
end)

halcyon crown
#

i send @gloomy dagger

dry zealot
#

6 people in this

#

so what exactly is the problem

#

-# i do not have the skills of scripting but maybe basic errors

halcyon crown
#

hello

halcyon crown
#

@dry zealot you can read messages

dry zealot
#

the sword isnt working or smth

#

rake doesnt chase??

halcyon crown
#

It's very confusing because I don't know either.

dry zealot
#

theres a bunch of errors here

#

sound and anim assets dont load, some parts are missplaced

#

idk i cant help rlly whoknows

halcyon crown
#

uh

#

ok

gloomy dagger
#

But I need u to send it as a code block

halcyon crown
gloomy dagger
#
Code here
halcyon crown
#

...lua
code here
...

#

uh

#

wait

gloomy dagger
#

`

halcyon crown
#

'''lua
code here
'''

gloomy dagger
#

`

halcyon crown
#
code here
#

oh

#

ok

#
while true do
    wait(5)
    script.Parent.Enabled = false
end
#
local o = script.Parent.Handle.Crucible.Blade 
local i = script.Parent.Handle.Crucible.Outline
local e = script.Parent.Handle.Crucible.Outline2
local u = script.Parent.Handle.Crucible.Outline3
local p1 = script.Parent.Handle.Crucible.Blade.X1.ParticleEmitter
local p2 = script.Parent.Handle.Crucible.Blade.X2.ParticleEmitter
local p3 = script.Parent.Handle.Crucible.Blade.X3.ParticleEmitter
local p4 = script.Parent.Handle.Crucible.Blade.X4.ParticleEmitter
local p = script.Parent.Handle.Crucible.Blade.Particle2
local b1 = script.Parent.Handle.Crucible.Beam1
local b2 = script.Parent.Handle.Crucible.Beam2
local walkspeed = game.Players

script.Parent.Equipped:Connect(function()
    script.Parent.Handle:WaitForChild("ChargingSound"):Play()
    script.Parent.Parent.InventoryEnabler.Disabled = true
    script.Parent.Parent.InventoryDisabler.Disabled = false
    --wait(2.2)
    script.Parent.Handle:WaitForChild("UnsheathSound"):Play()
    wait(2.0)
    script.Parent.Parent.InventoryEnabler.Disabled = false
    script.Parent.Parent.InventoryDisabler.Disabled = true
    script.Parent.Handle.musica.Volume = 2
    --script.Parent.Handle.start:Play()
    --script.Parent.Handle.musica:Play()
    script.Parent.Handle.Idle:Play()
    o.Transparency = 0
    i.Transparency = 0
    e.Transparency = 0
    u.Transparency = 0
    b1.Beam.Enabled = true
    b2.Beam.Enabled = true
    p.Enabled = true
    p1.Enabled = true
    p2.Enabled = true
    p3.Enabled = true
    p4.Enabled = true
    script.Parent.Handle.LightHandle.Transparency = 0
    script.Parent.Handle.Crucible.Blade.PointLight.Enabled = true
end)

script.Parent.Unequipped:Connect(function()
    script.Parent.Handle.musica.Volume = 0
    script.Parent.Handle.Idle:Stop()
    script.Parent.Handle.Crucible.Blade.PointLight.Enabled = false
    o.Transparency = 1
    i.Transparency = 1
    e.Transparency = 1
    u.Transparency = 1
    script.Parent.Handle.LightHandle.Transparency = 1
    b1.Beam.Enabled = false
    b2.Beam.Enabled = false
    p.Enabled = false
    p1.Enabled = false
    p2.Enabled = false
    p3.Enabled = false
    p4.Enabled = false
    script.Parent.Handle.Unequip:Play()
end)
halcyon crown
#
repeat wait() until script.Parent.Parent:FindFirstChild("Humanoid")

local tool = script.Parent
local Player = tool.Parent
local Hum = Player:WaitForChild("Humanoid")
local Idle = Hum:LoadAnimation(tool.Idle)
local Swing = Hum:LoadAnimation(tool.Attack)
local Equip = Hum:LoadAnimation(tool.Equip)
local Debounce = false

tool.Equipped:Connect(function(v)
    Idle:Play()
    Idle:AdjustSpeed(0.75)
    Equip:Play()
    Equip:AdjustSpeed(0.25)
end)

tool.Unequipped:Connect(function(v)
    Idle:Stop()
    Equip:Stop()
end)

tool.Activated:Connect(function(v)
    if Player.Stamina.Value >= 10 and not Debounce then
        Debounce = true
        tool.Handle.SwingSound:Play()
        Player.UseStamina.Value = true
        Player.Stamina.Value -= 4
        wait(0.01)
        Player.UseStamina.Value = false
        spawn(function()
            task.wait(1.5)
            Debounce=false
        end)
        spawn(function()
            tool.ShockPart.Damage.Disabled = false
            task.wait(0.5)
            tool.ShockPart.Damage.Disabled = true
        end)
        Swing:Play()
    end
end)

wanton umbraBOT
#

studio** You are now Level 13! **studio

halcyon crown
#

wait

halcyon crown
halcyon crown
gloomy dagger
#

I don't get why ur disabling a particle emitter every 5 seconds

#

U don't need to

gloomy dagger
#

Particleemitters

#

Can be used when disabled

#
ParticleEmitter:Emit(Amount)
halcyon crown
#

What amount should I do?

#

If you want, you can come to the studio when you are available.

gloomy dagger
#

The amount you wish

#

U can download a plugin that could help you out

halcyon crown
gloomy dagger
#
halcyon crown
#

What is the reason for not being able to hit the rake?

gloomy dagger
#

With the crucible?

halcyon crown
#

yes

#

I can't damage him

#

you can see on video

gloomy dagger
halcyon crown
gloomy dagger
#

U need to detect

#

If you're hitting the rake

#

Then damage it's humanoid

#

Or whatever defines its health

halcyon crown
#

can i send a new video?

gloomy dagger
#

You need to make hitboxes

#

Sure

halcyon crown
#

uh

#

wait

#

uh

wanton umbraBOT
#

studio** You are now Level 6! **studio

halcyon crown
#

I found something

#

i found shockpart

#

I took it from the crucible, adjusted it according to the stun stick and put it inside the stun stick.

#

@gloomy dagger

gloomy dagger
#

when not equipped

#

ur sword is inside ur backpack

halcyon crown
gloomy dagger
#

game.Players.urusername.Backpack

#

when equipped its inside ur character

#

you have to check if its inside ur character before

#

running the part

halcyon crown
gloomy dagger
#

i did

halcyon crown
#

can you come to the studio

gloomy dagger
#

no

#

check if the crucible is inside the character before running the script

halcyon crown
#

ohh

#

i solved it

#

thank you so much @gloomy dagger

gloomy dagger
halcyon crown
#

The shock part was in the rake, not in the sword.

gloomy dagger
#

alright

#

mark as solved

halcyon crown
gloomy dagger
halcyon crown
#
local DamageValue = 400000
local RandomSound = math.random(1, 3)

workspace.Rake:findFirstChild("Monster"):TakeDamage(DamageValue)
script.Parent.Parent.ShockSound:Play()
workspace.Rake.Monster:LoadAnimation(script.Animation):Play()    
script.Parent.Parent.Deflect:Play()
local Clone = script.Script:Clone()
Clone.Parent = workspace.Rake
Clone.Disabled = false
if RandomSound == 1 then
    workspace.Rake:FindFirstChild("Head").Rake_Pain1:Play()
elseif RandomSound == 2 then
    workspace.Rake:FindFirstChild("Head").Rake_Pain2:Play()
elseif RandomSound == 3 then
    workspace.Rake:FindFirstChild("Head").Rake_Pain3:Play()
end
script.Disabled = true
#

There is a problem in this code

gloomy dagger
#

findFirstChild to

#

FindFirstChild

halcyon crown
#

wait

#

There is no such thing as FindFirstChild

gloomy dagger
#
workspace.Rake:WaitForChild("Monster"):TakeDamage(DamageValue) or workspace.Rake:FindFirstChild("Monster"):TakeDamage(DamageValue)
gloomy dagger
#

replace it with

#
workspace.Rake:FindFirstChild("Monster"):TakeDamage(DamageValue)
#

line 4

halcyon crown
#

ok

#

Once I damage the rake, I cannot damage it again.

#

and stun doesnt work

#
local Debounce = false

function OnTouched(Part) 
    if Part.Parent ~= nil then
        if Debounce == false and Part.Parent:findFirstChild("Monster") ~= nil and workspace.Rake.BloodHour.BloodHour.Value == false then
            Debounce = true
            local S = math.random(1, 3)
            if S == 1 or S == 2 then
                script.Stun.Disabled = false
            else
                script.Block.Disabled = false
            end
        end
    end 
end 

script.Parent.Touched:connect(OnTouched)
#

damage script

halcyon crown
#

@gloomy dagger

gloomy dagger
#

sec

halcyon crown
halcyon crown
#

@gloomy dagger

gloomy dagger
#

kinda

halcyon crown
#

can you help me

halcyon crown
#

@gloomy dagger

gloomy dagger
#
if Debounce == false and Part.Parent:FindFirstChild("Monster") ~= nil and workspace.Rake.BloodHour.BloodHour.Value == false then
#

@halcyon crown

halcyon crown
#

where do i write this code

#

@gloomy dagger

gloomy dagger
#
local Debounce = false

function OnTouched(Part) 
    if Part.Parent ~= nil then
        if Debounce == false and Part.Parent:findFirstChild("Monster") ~= nil and workspace.Rake.BloodHour.BloodHour.Value == false then --replace here
            Debounce = true
            local S = math.random(1, 3)
            if S == 1 or S == 2 then
                script.Stun.Disabled = false
            else
                script.Block.Disabled = false
            end
        end
    end 
end 

script.Parent.Touched:connect(OnTouched)
halcyon crown
#

Will I change location?

#

ohh

#

okayy

#

ShockSound is not a valid member of Part "Workspace.mertingogogogogogogo.CrucibleSword.ShockPart

#

Can only tween objects in the workspace

#

errors

halcyon crown
#

@gloomy dagger

gloomy dagger
#

is block part of ur character?

halcyon crown
#

character?

#

my character?

#

@gloomy dagger

#

oh

#

i understand...

#

bro

#

wait

halcyon crown
halcyon crown
#

yess

#

i solved all

#

working!

gloomy dagger
#

ok