How would I fix that in a LocalScript? Like in this line:
Line: pospoints = script.Clicked.Value
(Clicked is a number value that is a child of the script)
All You Have to do is change the number value. It's getting it confused with function. Try making it lowercase, clicked.
1 | script.C.Value |
(Change the number value's name to C)
001 | pospoints = script.hi.Value |
002 |
003 | local inactive = false |
004 |
005 | function roundedPos(pos) |
006 | local x = math.floor(pos.x) |
007 | local y = math.floor(pos.y) |
008 | local z = math.floor(pos.z) |
009 |
010 | return Vector 3. new(x, y, z) |
011 | end |
012 |
013 | function b 1 (mouse) |
014 | local m 1 = mouse.Hit.p |
015 | pt 1 = roundedPos(m 1 ) |