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

my script wont move my welded part?

Asked by 8 years ago
-- project kagune for extreme 
--('')
--  enjoy dont mess witht the CFra

local ff2 = script.Parent.ff2

tool = script.Parent
tool.Equipped:connect(function(mouse) -- this funtion is deprecated so i wont ever use it again 

    mouse.KeyDown:connect(function(key) -- this the function which makes the kagune appear
        if key == "q" then


    local player = game.Players.LocalPlayer 
local hhh = tool.hhh   --these are just the parts
local www = tool.www --these are just the parts
local character = player.Character
local sss = tool.sss --these are just the parts
local qqq = tool.qqq --these are just the parts
local fff = tool.fff --these are just the parts
local ww2 = tool.ww2 --these are just the parts
local ss2 = tool.ss2 --these are just the parts
local qq2 = tool.qq2 --these are just the parts
local ff2 = tool.ff2 --these are just the parts
hhh.Anchored = false
fff.Transparency = 0
hhh.Transparency = 0
www.Transparency = 0
sss.Transparency = 0
qqq.Transparency = 0
ww2.Transparency = 0
ss2.Transparency = 0    
qq2.Transparency = 0    
ff2.Transparency = 0    

local weld = Instance.new("Weld",hhh) -- this is a weld
hhh.Transparency = 0
weld.Part0 = character.Torso
weld.Part1 = hhh
weld.C1 = CFrame.fromEulerAnglesXYZ(-500,-0.5,10) * CFrame.new(0,0.5,-1)
 -- this is the Cframe for the animations
hhh.Anchored = false
-- Its a divider
www.Anchored = false
----------------------------------------------------------------------------------
local W = Instance.new("Weld",www)-- this is a weld
www.Transparency = 0
    W.Part0 = character.Torso
    W.Part1 = www
    W.C1 = CFrame.fromEulerAnglesXYZ(10,-5,0) * CFrame.new(-1.49, -1.30, -0.86) 
    -------------------------------------------------------------------------------
    local eld = Instance.new("Weld",ww2)
    ww2.Transparency = 0
    eld.Part0 = character.Torso
    eld.Part1 = ww2
    eld.C1 = CFrame.fromEulerAnglesXYZ(-10,-5,0) * CFrame.new(1.49, -1.10, -0.86)   
    ----------------------------------------------------------------------------------

    local ws = Instance.new("Weld",sss)-- this is a weld
    sss.Transparency = 0
    ws.Part0 = character.Torso
    ws.Part1 = sss
    ws.C1 = CFrame.fromEulerAnglesXYZ(10,0,0) * CFrame.new(-1.70, -2.40, -0.30)--- dont mess with this this is the tail part
    ----------------------------------------------------------------
    local SW = Instance.new("Weld",ss2)
    ss2.Transparency = 0 
    SW.Part0 = character.Torso
    SW.Part1 = ss2
    SW.C1 = CFrame.fromEulerAnglesXYZ(10,0,0) * CFrame.new(1.70, -2.40, -0.64)
    --------------------------------------------------------------------------
    local qq = Instance.new("Weld",qqq)
    qqq.Transparency = 0
    qq.Part0 = character.Torso
    qq.Part1 = qqq
    qq.C1 = CFrame.fromEulerAnglesXYZ(20,0,0) * CFrame.new(-1.70,-3.50 , 0.78)
----------------------------------------------------------------------------divider 
    local wled2 = Instance.new("Weld",qq2)
    qq2.Transparency = 0
    wled2.Part0 = character.Torso
    wled2.Part1 = qq2
    wled2.C1 = CFrame.fromEulerAnglesXYZ(20,0,0) * CFrame.new(1.70,-3.50 , 0.62)

    local ff = Instance.new("Weld",fff)
    fff.Transparency = 0
    ff.Part0 = character.Torso
    ff.Part1 = fff
    ff.C1 = CFrame.fromEulerAnglesXYZ(30,0,0,0) * CFrame.new(-1.80, -3.60, 1.88)
    ---------------------------------------------------------------------------------
    local ff3 = Instance.new("Weld",ff2)
    ff2.Transparency = 0
    ff3.Part0 = character.Torso
    ff3.Part1 = ff2
    ff3.C1 = CFrame.fromEulerAnglesXYZ(30,0,0,0) * CFrame.new(1.80, -3.60, 1.88)
    -------------------------------------------------------------------------------------
    return ff3
end
    end)

end)
local ffs = ff2:Clone()

function onKeyPress(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.F then
        local ff3 = ff2:Clone()
        ff3.Parent = script.Parent
        local ee = Instance.new("Weld")
        ee.Parent = ff3
        ee.Part0 = game.Players.LocalPlayer.Character.Torso
        ee.Part1 = ff3
        ee.C1 = CFrame.fromEulerAnglesXYZ(10,1,1)
    end
end

game:GetService("UserInputService").InputBegan:connect(onKeyPress)

function onKeyPress(inputObject, gameProcessedEvent)
    if inputObject.KeyCode == Enum.KeyCode.N then
        ff3.Transparency = 1
        local ffs = Instance.new("Part")
        ffs.Parent = script.Parent
        local ee = Instance.new("Weld")
        ee.Parent = ffs
        ee.Part0 = game.Players.LocalPlayer.Character.Torso
        ee.Part1 = ffs
        ee.C1 = CFrame.new(2,1,-10)
    end
end

game:GetService("UserInputService").InputEnded:connect(onKeyPress)


Answer this question