jojo8764Join Date: 2012-11-27 Post Count: 1239 |
THERE AREN'T ANY ERRORS ### AAAAAA pin = script.Parent pin.Touched:connect(function(hit) print("hit") if hit.Name == "BowlingBall" then print("struck") pin.Parent.Humanoid.PlatformStand = true end end) pin.Changed:connect(function(p) if p.Name == "Velocity" then if pin.Velocity == Vector3.new(-0,-0,-0)then print("recover") pin.Parent.Humanoid.PlatformStand = false end end end) |
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
pin = script.Parent
pin.Touched:connect(function(hit)
print("hit")
if hit.Name == "BowlingBall" then
print("struck")
pin.Parent.Humanoid.PlatformStand = true
end
end)
pin.Changed:connect(function(p)
if p.Name == "Velocity" then
if pin.Velocity == Vector3.new(-0,-0,-0)then
print("recover")
pin.Parent.Humanoid.PlatformStand = false
end
end
end)
|
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
BUMP
|
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
bump
|
|
uxie501Join Date: 2012-10-26 Post Count: 169 |
is "pin" a model |
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
no its a part
|
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
BUMP
|
|
|
1] why are you doing "-0"
attempt to index global 'soul' (a nil value) |
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
i don't even know what your saying
|
|
|
"if pin.Velocity == Vector3.new(-0,-0,-0)then"
why are you doing "-0"
also you put no space between the new vector3 and the "then"
attempt to index global 'soul' (a nil value) |
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
idk the pin has negative 0's for some reason. can you just fix my script!
|
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
OMG SOMEONE ACTUALLY HELP
|
|
LaeMVPJoin Date: 2013-06-24 Post Count: 4416 |
Qg8s3r2 join that discord |
|
hiimfree5Join Date: 2011-11-01 Post Count: 44 |
really jojo... really? |
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
what is it obvious what i did wrong!!! just tell me! i'm ok with feeling dumb
|
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
bump
|
|
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
ik i stopped using it
|
|
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
how can i tell if a number is positive or negative?
|
|
|
divide it by itself and see if its a positive 1 or negative 1
#code error("you're*") |
|
jojo8764Join Date: 2012-11-27 Post Count: 1239 |
ok thx
|
|
|
use math.abs() to make any number a positive number |
|