RealistKJoin Date: 2011-02-20 Post Count: 3489 |
So in my game The Assassins Code, I have armors for certain levels and when you take them you cannot buy wapeons etc anymore.
Level doors don't work anymore and VIP doors also don't work for you anymore.
The shop is not a GUI, when you walk on a button and you have enough gold then you get the weapon.
Can anyone help me with this?
I made a model called Morph for the armor, and you can take it and maybe look at it.
Thanks! :D |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
|
I hope you don't expect us to guess what is your script though. |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
I do, I have no idea in which script the problem could be since I am still earning to script, so I can't really find it myself. :F |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
ooh like that, it's in the morph model like I said, but I do not know which script it is. :p |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
bump |
|
ZQFMGB12Join Date: 2010-08-07 Post Count: 208 |
Are you getting any output messages? |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
It does just work, but I can't buy anything anymore.
I think it unlinks you as a player and your leaderboard stats are not found or something.
So I don't think I will get an error. |
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
This forum so crowded e.e... |
|
|
Well, considering the difference in timezones, it's quite common to see threads appear when many of the "Volunteers" are off the computer. |
|
pointszJoin Date: 2013-02-09 Post Count: 1471 |
It is cuz the armor touches the VIP door etc,
try making the whole armor when putted on, cancollide. |
|
kalkaraJoin Date: 2008-10-08 Post Count: 576 |
RealistK your problem may be that the morph gives an error when you step on the block because assuming your script is along the lines of
script.Parent.Touched:connect(function(hit)
local P = game.Players:GetPlayerFromCharacter(hit.Parent)
if P.leaderstats.Level == "100" then
script.Parent.CanCollide = false
wait(2)
script.Parent.CanCollide = true
end
Then the part may be touching the armor and trying to refer to hit.Parent as your characters model in the workspace when in reality it may be referring to your characters arm or whatever part of the model it may have touched.
If that's the case then you will need to make the script check if its touched by armor or a character.
|
|
RealistKJoin Date: 2011-02-20 Post Count: 3489 |
It had a humanoid in it, figured it out already.
Thanks tho :) |
|