Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

I made this script but it woulnt work Nearby script, Any help?

Asked by 6 years ago
If script = Parent.Workspace.(“Carl”)
Within 10 
 workspace.Parent.Dropper.DropScript = true

If script = Parent.Workspace.(“Carl”)
Not Within 10 
 workspace.Parent.Dropper.DropScript = false

Any help would be awesome :D Thanks James Bread Armyofdeath909

0
1, make the i in if lowercase, and you need to use magnitude to make a "nearby script". Within 10 isn't even a code in lua oSyM8V3N 429 — 6y
0
Read the part where it says "code cannot read your mind". https://forum.scriptinghelpers.org/topic/192/how-to-use-localplayer hiimgoodpack 2009 — 6y
0
I wish it could T_T ^ greatneil80 2647 — 6y
0
Same ^^ Smaltin 46 — 6y

2 answers

Log in to vote
0
Answered by
oSyM8V3N 429 Moderation Voter
6 years ago

Check out more info on magnitudes here :

http://wiki.roblox.com/index.php?title=Magnitude

Also more info on if statement here :

http://wiki.roblox.com/index.php?title=Conditional_statement

Ad
Log in to vote
0
Answered by 6 years ago
  1. "Within 10" isn't a thing
  2. "If" should be "if" without capital "I"
  3. Check the output for errors...
  4. "workspace.Parent.Dropper", By saying Parent, you are getting the game service and in the game service is lighting, replicated storage, server storage, etc.. It shouldn't have A dropper with a dropper script
  5. If script = Parent.Workspace.(“Carl”) <-- not correct --> Correction: if script.Parent.Carl
  6. Do not ("Carl") with workspace behind it because it will error..
  7. If script = Parent.Workspace....... U cannot start with Parent and you can't use an equal in this situation, you have to use a "."
  8. You may wanna learn more about magnitudes
0
game service? There is no game service, the container for all services is DataModel, not a big game service. hiimgoodpack 2009 — 6y

Answer this question