|
I was changing a mesh for a sword and for some reason, the sword was rotated and was flying in the air above my hand can someone help me? |
|
soutenuJoin Date: 2011-12-09 Post Count: 1021 |
you have to set the tool's grip properties to properly make the mesh look like it's being held by the player |
|
|
Toolgrip, or you just forgot to unanchor the tool |
|
|
where do I find the grip properties though |
|
|
|
it works but like whenever the sword lunges it starts to fly in the air again, what do I do? |
|
ininja966Join Date: 2012-02-25 Post Count: 30 |
try to change the lunge script and adjust the grip position to the mesh
#penguinlife |
|
|
I don't see any grip position thing here is the script:
loc######l = script.Parent
loc######dle = Tool.Handle
local Sword = {
DoubleClickMaxTime = 0.########te = 'Idle',
SlashingStartedAt = 0,######ackTicket = 1,#######f#########e####################### if Tool.Parent.Name == 'Backpack' then
return Tool.Parent.Parent
else
return ga################################################ end
e####
f#########e############## if Tool.Parent.Name == 'Backpack' then
return Tool.Parent.Parent.Character
else
return Tool.Parent
end
e####
f#########a###################agger, Time, Damage)
local as### In###########################agged)
as######### Tagger
Ta######################### ga########################ime)
e####
f#########word:Connect()
Handle.Touched:connect(function(Hit)
local MyPlayer = Ge####################### local MyCharacter = Ge############## local MyHumanoid = My######################################
if Hi#####################################nd MyHumanoid and My################# 0 #nd not My########################################hen
local Character = Hit.Parent
local Humanoid = Ch#################################### local Player = ga##############################################
if MyPlayer ~= Player and Humanoid then
if Sword.State == 'Slashing' then
Ta#####################yPlayer, 1,##0########## el######w######ate == 'Lunging' then
Ta###############################,##0### ## ### end
end
end
end)
e####
f#########word:Attack()
local MyPlayer = Ge####################### local MyCharacter = Ge######################yHumanoid = My###########################################f MyHumanoid and My################# 0 #hen
if My######################################= ni###hen
local now = tick()
if Sword.State == 'Slashing' and no########################### Sw########################hen
Sw################## Sw####################
Sw############################### el######word.State == 'Idle' then
Sw################## Sw#################### Sw####################### now
Sw############################### end
end
end
e####
f#########word:Slash(ticket)
Sword.State = 'Slashing'
Ha######################## Sword:Animate'Slash'
wa#########
if Sw##################= ticket then
Sword.State = 'Idle'
end
e####
f#########word:Lunge(ticket)
Sword.State = 'Lunging'
Ha######################## Sw####################
local force = In########################## force.velocity = Ve########################rce.maxForce = Ve##########################rce.Parent = To############################
wa############ool.Grip = CF########################################################a############orce:Destroy()
wa######### Tool.Grip = CF###################################################
Sword.State = 'Idle'
e####
f#########word:Animate(name)
local tag = In######################### tag.Name = ##########
tag.Value = name
tag.Parent = Tool
####
###
######### ##################
Sword:Connect()
####
###
###
####### Sword |
|
|
|
please? ITS VERY URGENT I NEED AN ANSWER |
|
|
well I finally did it it the sword stopped flying in the air but the lunge would stop working. PLEASE |
|
|
|
here is a simple work around the mesh has location data. export both mesh (old sword new sword) from robolox open them in blender and move the new mesh exactly to were the old is then apply location rotation and scale. |
|
|
What do you mean by that? What's blender? |
|
|
I can do that for you if you want for free.
send me a friend request. |
|
|
Can you please tell me it? I can do it myself but thanks for asking :) |
|
|
|
give up
Lua is my moon, Java is my coffee, Pascal is my dad, C++ is my grade, Ruby is my jewelry, php is my site 😎😎😎 |
|
|
That's rude I never give up NOW I JUST NEED AN ANSWER |
|
|
PLEASE ITS VERY URGENT I CANT JUST RESTART ALL OVER AGAIN |
|
|
My offer still stands i can just import the mesh into blender and allign it.
But if you want to do it all by yourself youtube Blender Tutorial for beginners. |
|
|
Ok you can I will resend a friend request and you can fix the mesh |
|
|
Anything else I could try? |
|
|
I tried changing the coordinates in the script and it got even worse and it didn't want to do the lunge animation |
|
|