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

SWORD SCRIPT FAILURE?: Need Experienced Help!

Asked by 9 years ago

I Dont Have Any Script To Show, But I Have A Few Questions:

1: Can i have a "Union" in my Sword Model? As ive tried, it wont Wield, just fell of...

2: The "TouchInterest" green thingy, i cant move it into a new handle! Still without it i can make a sword, but is it important? Is it that what does the Damage on hit at Humanoid?

3: Does more than 1 Wield script that has the same script help? ive had models with multible wield scripts, and wondered why....

4: Ive made a Detailed sword i was proud of, but it contained MANY Unions and Groups to keep it in clean shape. The unions cuts the blocks to make them detailed and cool, ive tryed removing all unions, and only have all the block parts named "Part" and the hand part named "Handle". Then, it kinda worked, only that some of the bricks just fell of and would not wield, yes they where inside of eachother, maybe thats why? In my model allot of the bricks that goes trought eachother. Allso, some of the bricks that was going trought other bricks was with the sword as i tried it, so that they go trough eachother cant really be the probblem???

5: As i tried it, and as bad as it looked, did some few blocks/parts/bricks whateve you call it, change place. The "Rings" i had around the Cylinder Handle to make the Sword handle look cool, was all moved one direction, some was farer than the others and some was allmost where their place should have been.

6: allso you can find the model i am complaining about in my profile/models, its named "NEED FIX" and is a picture of a Blue GreatSword. I have rotation problems to, as it is not facing the right way as i equip it. I know how to fix that, but somewhat it messes me up and i am to un-patient to fix it.

7: ive seen Detailed Guns from well made games, so i think Unions should be possible to wield.

-I will reward the answearer with a requested sword model OR the sword model i am working on myself = BLUE MOON GREATSWORD from DARK SOULS 2. You can find the model i am talking about in this Complain at my account, models list. its named "NEED FIX" and is a picture of a blue greatsword. The Model ive shared at my models list in my account is un-Unioned, meaning its not looking good but if someone can fix it and share it back to me by model (or by script here) i would be amazed and happy, if you think you can script Unions to wield and work WITH the sword, Private Message me and ill give you the detailed Model as seen at one of my places named "Models"-

GOD THANK YOU to the one that fixes it :D Im just a Basic scripter, this is to much for me!

0
I Know Its Allot To Read, But Please Take a Moment To Help Me, If Youre Patient And Have Free Time! Reward Can Be Done! BLODSWIPER 15 — 9y

1 answer

Log in to vote
3
Answered by
Tkdriverx 514 Moderation Voter
9 years ago

I think I know the problem. The other parts are falling, while the handle is staying, right? This is because the parts aren't being "told" to stay put, relative to the handle. So, you need to have a welding script still to keep the parts together. Just because they're unions, doesn't mean they don't need extra work still.

EDIT: I got the model and see your 4 welding scripts. You only need one, and it just needs to be changed a little:

local prev 
local parts = script.Parent:GetChildren() 

for i = 1,#parts do 
    if (parts[i]:isA("BasePart")) then -- A UnionOperation is considered a "BasePart"
        if (prev ~= nil)then 
            local weld = Instance.new("Weld") 
            weld.Part0 = prev 
            weld.Part1 = parts[i] 
            weld.C0 = prev.CFrame:inverse() 
            weld.C1 = parts[i].CFrame:inverse() 
            weld.Parent = prev 
        end 
        prev = parts[i] 
    end 
end

-- DO NOT CHANGE ANYTHING! --
-- This script puts a weld in every brick that needs one.--

-- MAKE SURE YOU ONLY HAVE 1 BRICK NAMED [Handle] !!! --

0
This is allmost the complete answear! BLODSWIPER 15 — 9y
0
But, The Sword Wont Swing, eitherhow you answeared my question, so i will accept this, thank you! BLODSWIPER 15 — 9y
Ad

Answer this question