chrono2Join Date: 2009-05-30 Post Count: 387 |
I've been trying to make a script that makes a robloxian able to go through walls and make his ENTIRE robloxian party transparent--hat and all. However at lines 24 & 17, the script seems to do nothing, when it's originally intended to make the player's hats non-cancollide and half-way transparent... Am I trying what cannot be done or is there hope?
Here's the script from line 1 to 24;
function onTouched(hit)
humanoid = hit.Parent.Humanoid
rl = humanoid.Parent:findFirstChild("Right Leg")
ll = humanoid.Parent:findFirstChild("Left Leg")
ra = humanoid.Parent:findFirstChild("Right Arm")
la = humanoid.Parent:findFirstChild("Left Arm")
t = humanoid.Parent.Torso
h = humanoid.Parent.Head
Ha = humanoid.Parent:findFirstChild("Handle")
if humanoid ~= nil then
rl.Transparency = .50
ll.Transparency = .50
ra.Transparency = .50
la.Transparency = .50
h.Transparency = .50
t.Transparency = .50
Ha.Transparency = .50
rl.CanCollide = false
ll.CanCollide = false
ra.CanCollide = false
la.CanCollide = false
h.CanCollide = false
t.CanCollide = false
Ha.CanCollide = false
Any help would be EXTREMELYT appritiated. |
|
|
1: Hats have different names.
2: Make the WALLS non-cancollidable |
|
chrono2Join Date: 2009-05-30 Post Count: 387 |
Line 24 seems to be working now... however 17 still refuses to do a thing. |
|
|
Handle is NOT a member of players.
The HAT is, but every hat has its own name. |
|
Kiba00Join Date: 2008-10-03 Post Count: 84 |
Im horrible at scripting, but wouldn't Ha be Hat? |
|
|
chrono2Join Date: 2009-05-30 Post Count: 387 |
I'm completely navogating away from the idea of making the player go through walls through Cancollide, I'm trying the walls now... Or rather trying to script them so that only someone containing a script the ghost "morph" will copy into the player who touches it. and I tried making a hat itself .50 transparent by entering it's name instead of Handle, and it didn't work. |
|
|
you COULD make it so when a player with a value called 'Ghost' is in there character touches a wall it goes noncollide for 1 second |
|
chrono2Join Date: 2009-05-30 Post Count: 387 |
Wait... Couldn't I make a script to rename the player's hats "Hat"? |
|
chrono2Join Date: 2009-05-30 Post Count: 387 |
@notunknown99
That's what I was planning to do, actually. |
|
|
@chrono: You CAN, but why would you want to? |
|
|
I mean at renaming the players hat...
FLOODCHECK! |
|
chrono2Join Date: 2009-05-30 Post Count: 387 |
so that the script would work for ALL player's hats reguardless of which they are. it'll be easier that way, plus players won't have to lose their hats to use it! |
|
Kiba00Join Date: 2008-10-03 Post Count: 84 |
... I fail |
|
Elite777Join Date: 2008-09-21 Post Count: 350 |
Just identify the hats with a classname (hat) |
|
chrono2Join Date: 2009-05-30 Post Count: 387 |
Thanks... I feel stupid for not thinking of that in the first place... |
|