Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

4 comments

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

0

Read the part where it says "code cannot read your mind". https://forum.scriptinghelpers.org/topic/192/how-to-use-localplayer

0

I wish it could T_T ^

0

Same ^^

2 answers

  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

1 comment

0

game service? There is no game service, the container for all services is DataModel, not a big game service.

This discussion is preserved as it was. New answers, comments, and votes are closed.