ManxFoxJoin Date: 2008-11-12 Post Count: 227 |
Okay, so, I'm working on a new game, right and I'm using the correct functions/such mentioned on the wiki, I've tried setting name Occlusion via Enum's, int's and also the name of the value in a string "NoOcclusion".
no matter what I do it just will not work in game. Now I've tested it in a local server in studio and it works find no problem, but as soon as I go into a game it just will not do anything, here is the catch though. It IS changing the value to NoOcclusion (I checked by printing my Humanoid's name Occlusion through dev console) so I legit have no idea why it isnt working...
script is as such:
game.Players.PlayerAdded:connect(function(newP)
newP.CharacterAdded:connect(function(char)
char:WaitForChild("Humanoid").NameOcclusion = Enum.NameOcclusion.NoOcclusion
print(char.Humanoid.NameOcclusion)
char.HumanoidJumpPower = 53
end)
end)
now, another wierd thing to prove my point about the script running is that my jump power is also changing when the script runs, meaning there is no errors in the script..
The script is also in workspace.
Any Ideas?
|
|
|
"char.HumanoidJumpPower = 53"
char.Humanoid.JumpPower = 53 |
|
ManxFoxJoin Date: 2008-11-12 Post Count: 227 |
my bad, I wrote the script into the forum post in a hurry so I wasn't really checking for errors, the script actually IS correct
|
|
|
ManxFoxJoin Date: 2008-11-12 Post Count: 227 |
here I'll paste the ACTUAL script into here:
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").NameOcclusion = Enum.NameOcclusion.NoOcclusion
print(character.Humanoid.NameOcclusion)
character.Humanoid.JumpPower = 53
end)
end)
|
|
|
--[[here I'll paste the ACTUAL script into here:
]]game:GetService("Players").PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").DisplayDistanceType=('None')
--[[print(character.Humanoid.NameOcclusion)]]
character:WaitForChild("Humanoid").JumpPower=(67)
end)end)
|
|
ManxFoxJoin Date: 2008-11-12 Post Count: 227 |
I'm not trying to turn OFF NameOcclusion, NameOcclusion is turned off by default in games now on ROBLOX, I'm trying to turn it ON so you can see players through walls :P
I'll attempt the GetService approach but I don't understand why that would give me a different result assuming the function fires even without that line being edited. Thanks
|
|
ManxFoxJoin Date: 2008-11-12 Post Count: 227 |
Yeah, nope.. Didn't work ._. I'm seriously failing to understand why this is working fine in studio testing yet in game it just isn't!?!?
|
|
|
oops i got you want players to can't see each other trough wallz :'( " :P |
|
ManxFoxJoin Date: 2008-11-12 Post Count: 227 |
Haha, no probs man :P Yeah I'm making a classic style game and having players being able to be seen through walls is kinda a major thing in it :P problem is, the script just doesn't seem to want to work with me, I don't know why it's setting the value to what I want but not actually giving me the effect I want in game... Makes no sense :L
|
|
|
Salinas23Join Date: 2008-12-28 Post Count: 50102 |
Have you tried using remoteevents and changing it through a local script on every player? |
|
ManxFoxJoin Date: 2008-11-12 Post Count: 227 |
FilteringEnabled isn't on so I don't need any RemoteEvents :L
|
|
|
Im having the same issue. Ive set it to All ########## i can still see the name of my NPC ########## through walls. |
|