local Player = game.Players.LocalPlayer local Character = Player.Character local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(key) if key.KeyCode == Enum.KeyCode.LeftShift then game.ServerStorage.Trail.Enabled = true else game.ServerStorage.Trail.Enabled = true end end)
BTW I'm trying to connect it from the head to Humanoid Root Part, but didn't know how to do that.
You're trying to access ServerStorage
from the client. The entire purpose of ServerStorage
is to be a secure place to keep assets from the client. I would recommend using a remote event to activate the trail.
If my answer solved your problem please remember to upvote and accept it.