I’ve used ZonePlus several times in the past, I’m using this exact script in another game and it’s working fine, I have no idea why but the zone just doesn’t detect players? It doesn’t print “hi” but it also doesn’t show any errors or anything in output, can anyone tell what I’m doing wrong?
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Zone = require(ReplicatedStorage.Zone)
local ZoneController = require(ReplicatedStorage.Zone.ZoneController)
local MushroomContainer = workspace.AmbientAreas.MushroomWoods:GetChildren()
local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Lighting = game:GetService("Lighting")
local ColorCorrection = game:GetService("Lighting").ColorCorrection
local GeographicLatitude = Lighting.GeographicLatitude
local Atmosphere = game:GetService("Lighting").Atmosphere
local Color = Atmosphere.Color
local Contrast = ColorCorrection.Contrast
local Saturation = ColorCorrection.Saturation
local TweenService = game:GetService("TweenService")
local TInfo = TweenInfo.new(4)
local exit_tween1 = TweenService:Create(Lighting, TInfo, {GeographicLatitude = 0})
local exit_tween2 = TweenService:Create(Atmosphere, TInfo, {Color = Color3.fromRGB(199, 199, 199)})
local exit_tween3 = TweenService:Create(ColorCorrection, TInfo, {Saturation = 0})
local Menter_tween1 = TweenService:Create(Lighting, TInfo, {GeographicLatitude = 300})
local Menter_tween2 = TweenService:Create(Atmosphere, TInfo, {Color = Color3.fromRGB(185, 185, 185)})
local Menter_tween3 = TweenService:Create(ColorCorrection, TInfo, {Saturation = -0.85})
local MushroomZone = Zone.new(MushroomContainer)
MushroomZone.localPlayerEntered:Connect(function(localPlayer)
print("hi")
local function PlayTweens(PT)
for i,k in pairs(PT) do
k:Play()
end
end
PlayTweens({Menter_tween1,Menter_tween2,Menter_tween3})
end)
MushroomZone.localPlayerExited:Connect(function(playerWhoExited)
print("bye")
local function PlayTweens(PT)
for i,k in pairs(PT) do
k:Play()
end
end
PlayTweens({exit_tween1,exit_tween2,exit_tween3})
end)