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

I can't figure out how to fix the Touch ended function?

Asked by 5 years ago

script.Parent.Touched:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then game.Lighting.ColorCorrection.Brightness = 0.4 game.Lighting.ColorCorrection.Contrast = 1 game.Lighting.ColorCorrection.TintColor = Color3.fromRGB(29,28,255) game.Lighting.ColorCorrection.Saturation = -1 game.Lighting.ClockTime = 6.3 end end)

script.Parent.TouchedEnded:Connect(function(hit) if hit.Parent:FindFirstChild("Humanoid")then game.Lighting.ColorCorrection.TintColor = Color3.fromRGB(0,0,0) end end)

0
Make sure you put the script in a code block. InfiniteWhileLoop 19 — 5y
0
Put your code in a code blank. do this by editing your question delete the code you have then press the lua icon then put you code inside those ~~ ex: ~~~~~~~~print("Hi")~~~~~~~~~ Vain_p 78 — 5y

1 answer

Log in to vote
0
Answered by
Imperialy 149
5 years ago
script.Parent.TouchEnded:Connect(function()
    print('the player is not on the part anymore')
end)
Ad

Answer this question