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

R-15 Problems with changing the mesh?

Asked by 8 years ago

I asked this question before, but no one replied to it so I'm asking it again! Why does this not work with changing the R-15 body meshes? and what do I need to change to make it work?

01victim = script.Parent.Parent.Parent.Parent.Parent.Character
02 
03function kill()
04 
05    script.Parent.Parent:Destroy()
06 
07--Character Meshes
08LeftFoot = victim.LeftFoot
10 
11LeftHand = victim.LeftHand
13 
14LeftLowerArm = victim.LeftLowerArm
15LeftLowerArm.MeshID = ("http://www.roblox.com/asset/?id=542649944")
View all 52 lines...

thank you ~Fin

0
Who gave this an upvote XD RubenKan 3615 — 8y
0
Me and 2 others it looks like. FiredDusk 1466 — 8y

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
8 years ago
Edited 8 years ago

What do you expect to happen when you destroy the script's Parent before all the code can execute, dingus.

(Line 5)

0
it is destroying the gui it is in ... and when you click it it should change your package ... but it doesn't FinickOdre123 6 — 8y
0
Its destroying the parent of the script.. "script.Parent.Parent:Destroy()" will remove the GUI and EVERYTHING INSIDE OF IT. Thus also the script! RubenKan 3615 — 8y
0
that's not my problem, cause I tried it without destroying the gui ... and it still didn't work >_> T_T and having the 2.0 figure on the R-15 is really important in my game! and it won't allow it FinickOdre123 6 — 8y
0
You'll have to remove the destroy though, else the script wont run anything. Suggest just putting in the ID as followed. "rbxassetid://000000000". RubenKan 3615 — 8y
Ad

Answer this question