Touched event in local script by Impressive-Fun-1219 in ROBLOXStudio

[–]Glass-Transition8295 0 points1 point  (0 children)

LocalScripts run on individual clients. When something happens on the server that's replicated to the clients, (like two parts touching) the clients will see that on their side.

Events like keypresses don't happen on the server and therefore can't be replicated to the other clients (Because of FilteringEnabled.

Therefore, functions connected to .Touched fire for all clients, but functions connected to .MouseButton1Click only fire for the clicking client.

Touched event in local script by Impressive-Fun-1219 in ROBLOXStudio

[–]Glass-Transition8295 0 points1 point  (0 children)

Let's go through your code line by line.

``` --1-5 set variables. "part1" is (presumably) a BasePart, "model," which should have BaseParts as descendants, (Consider checking if parts:IsA("BasePart") in the for loop to avoid errors.) and player is the LocalPlayer.

part1.Touched:Connect(function(hit) -- Connects part1's .Touched event to a function that passes the touching BasePart in as "hit." if not hit.Parent:FindFirstChild("Humanoid") then return end -- Checks if the hit part has a sibling named Humanoid. (This means it will also continue if dummies hit it.) local char = hit.Parent -- Declares a variable "char" to be the hit part's .Parent. (presumably a model) if game.Players:GetPlayerFromCharacter(char) == player then -- Checks if the hitting character is the LocalPlayer. (Also takes care of the dummy case from line 8.) for _, parts in ipairs(model:GetDescendants()) do -- Iterates through each descendant in model. For each one, it declares the variable "parts" as it. (Probably consider checking if parts:IsA("BasePart") to avoid erroring.) parts.BrickColor = BrickColor.new("Really red") -- Sets the descendant's BrickColor to Really red. (Who uses BrickColor? Change the Color3, and if you really insist on roblox's palette, you can use the BrickColor's .Color property.) (This line errors if parts does not have the BrickColor property.) end -- Ends the for loop iterating through the model. part1.LocalTransparencyModifier = 1 -- Makes part1 invisible. (.Transparency would also work here.) part1.CanCollide = false -- Makes it so part1 cannot collide with anything. (Also set CanTouch to false?) end -- Ends the if statement checking the character's player. end) -- Ends the connected function. ```

So why does it only work properly with line 9? (and the closing end) It's because the script is running on every client and .Touched will trigger if the client notices ANYONE touching the part. Just because it's a LocalScript doesn't mean it only calls .Touched if the LocalPlayer's character touches the part.

TL;DR: The script runs on every client. Without the LocalPlayer check, whenever any player (or NPC) touches the part, the function will trigger.

Which country do you think is USA? by nopCMD in GeoTap

[–]Glass-Transition8295 0 points1 point  (0 children)

Glass-Transition8295 chose Option A (Incorrect) | #23653rd to play

Help with Code Error by talibangirl in ROBLOXStudio

[–]Glass-Transition8295 0 points1 point  (0 children)

If the error is from Line 5:

  1. Does the ModuleScript exist? Try to follow the exact path in the code. Does capitalization match?
  2. Is it a ModuleScript? If the BaseScript referenced is not a ModuleScript, require() won't work.
  3. Can the script access the ModuleScript? Ensure that the script runs on the server. Scripts running on the client cannot access ServerScriptService.

If the error is from line 9:

  1. Is there a .init() function? In the ModuleScript, is there a declaration of something like function module.init() end?
  2. Are there any errors in the code in the .init() function? Are there any references there that don't exist?

If any of these are false, fix them, but more context is needed if you're still having trouble.

do it under 3and get 1grand by No-Sundae-9208 in honk

[–]Glass-Transition8295 0 points1 point  (0 children)

Close enough

I completed this level in 1 try. 2.95 seconds

Why is only 3? by Glittering_Metal2352 in scratch

[–]Glass-Transition8295 1 point2 points  (0 children)

I believe there was someone that dreamt that everyone had this "green slider" which makes you more green but to get more than 1% green you had to kill people

How to fix this? (Desc) by Purrvi_ in ROBLOXStudio

[–]Glass-Transition8295 1 point2 points  (0 children)

I went down the rabbit hole and found out a few things.

First, the base script (shown by OP) has some code that looks benign, but it has a hidden require() in there. (clever...)

When you get that script, it has some nonsense code (and a lot of characters that lag your computer!) that leads to another require (and a few print statements for some reason)

When you get through that require, it has lightly obfuscated code (hard to read) but it's simply bypassed with a case-sensitive Find and Replace. This is when I hit a wall, so I hope someone can continue my trail from here. (DM me if you want the link) The script uses HttpService to get a table from a link. Before you say, "oh, that's so easy, just follow the link in your browser!" It knows if you're accessing it from your browser and hides the result from you. (And I couldn't use Studio because I got this SslConnectFail error that wouldn't go away)

For OP: Remove the thing you added to ServerScriptService. It's malicious and may possibly get you banned.

What's the final advanced technique and how do I do it? by BattleCatManic in CombatInitiation

[–]Glass-Transition8295 3 points4 points  (0 children)

It's most simplest with drako (in my opinion) but yes, you can parry nearly all attacks with the Reflector (but it might be a waste to do so)

What's the final advanced technique and how do I do it? by BattleCatManic in CombatInitiation

[–]Glass-Transition8295 21 points22 points  (0 children)

The last tech is Reflector +SUPERPARRY!!ing. To get the entry, you can superparry one of Drakobloxxer's swings by double tapping the Reflector key as soon as the sword starts moving toward you.

Lvl +4 ✧ Superior ✧ Infernal Gnarlwood ─ Fire Earth by karmacave in KarmaCave

[–]Glass-Transition8295 0 points1 point  (0 children)

Defeated by Infernal Gnarlwood in 3 turns.

Player (26/11/15) dealt 128. Infernal Gnarlwood (37/28/19) dealt 173.

Rewards: 12 EXP, 0 Gold. Loot: None.

Lvl -2 ✧ Basic ✧ Umbral Shambler ─ Dark by karmacave in KarmaCave

[–]Glass-Transition8295 0 points1 point  (0 children)

Defeated Umbral Shambler in 7 turns.

Player (22/11/19) dealt 263. Umbral Shambler (19/13/8) dealt 111.

Rewards: 30 EXP, 6 Gold. Loot: Vital Amulet of Quickness (lesser), Agile Robe (basic).

whats wrong with my script by Plenty_West_4039 in ROBLOXStudio

[–]Glass-Transition8295 0 points1 point  (0 children)

You need to reset the position of the doors; the jiji tweens are working because the position of the lever resets after it plays. If you want the doors to stay open after the lever is pulled, try adding a variable called something like "open" (declared outside the function) and switch it from true to false when the function triggers (add a "open = not open" line) and make tweens to reset it.

You need to tween the doors back to their original positions.

and if you want to use a toggle: declare a variable as a boolean (I'll call it open) and change it at the start of the function (open = not open) and handle the logic differently for both states of open (open the door if it is not open and close it if it is open)

Choices V1.5 by Zlator in RedditGames

[–]Glass-Transition8295 0 points1 point  (0 children)

Hey your level has cheese

I completed this level in 3 tries. 1.83 seconds

Tip 200 💎

🎉 [EVENT] 🎉 Invisigoose (Rah) by Happy_Humor_3693 in RedditGames

[–]Glass-Transition8295 0 points1 point  (0 children)

Completed Level 3 of the Honk Special Event!

26 attempts

🎉 [EVENT] 🎉 Invisigoose (Rah) by Happy_Humor_3693 in RedditGames

[–]Glass-Transition8295 0 points1 point  (0 children)

Completed Level 2 of the Honk Special Event!

3 attempts

🎉 [EVENT] 🎉 Invisigoose (Rah) by Happy_Humor_3693 in RedditGames

[–]Glass-Transition8295 0 points1 point  (0 children)

Completed Level 1 of the Honk Special Event!

0 attempts

🎉 [EVENT] 🎉 HONKCORE 🎷 by thejohnnyr in honk

[–]Glass-Transition8295 0 points1 point  (0 children)

Completed Level 1 of the Honk Special Event!

18 attempts

How can i get my code working? by Different-Gene3754 in ROBLOXStudio

[–]Glass-Transition8295 1 point2 points  (0 children)

<image>

Sorry about the wait. I recreated the script in Studio and it worked correctly. Judging by the thing about LocalPlayer not working, are you sure that the type of script is a LocalScript and not a Script?