People he’d pass on the streets of Toronto would tell Danny Green to stay positive and keep shooting, keep shooting, keep shooting. Fans filled his Instagram inbox with similar messages. Even Shaq had a few words for the slumping player on Wednesday.

The Raptors sharp-shooter ended his slump in spectacular fashion on Wednesday. And now Toronto has regained momentum in the NBA Finals.

Green had six three-pointers in an 18-point performance to lead Toronto to a 123-109 victory over the Golden State Warriors on Wednesday at Oracle Arena. Toronto now takes a 2-1 lead into Friday’s Game 4, also at Oracle.

Moments after the decisive win, Green joked about the shooting tips he received from former teammate Shaquille O’Neal.

“I spoke to him before the game briefly. He’s always on the TNT set. And every time I see him, he’s giving me his pure shooting advice — because he was good at it,” Green deadpanned. “But just the fundamentals, the small things, telling me to be confident and just hold the follow-through.

“And obviously after a good shooting night, it’s easy to see that his advice has worked,” added Green, who played with Shaq in Cleveland in 2010. “He’s always been that guy to me every year that we get on the playoffs or on this stage where he comes over and tells me stay confident and give me his shooting advice.”

Kawhi Leonard led six Raptors in double figures with 30 points. Kyle Lowry had 23 points and nine assists for the Raptors, who are making their NBA Finals debut. Pascal Siakam had 18 points, while Marc Gasol finished with 17, and Fred VanVleet had 11.

Stephen Curry had a playoff-best 47 points for the banged-up Warriors, who lost for the first time in six games at Oracle Arena.

“My dad used to tell me the stats don’t matter, just the final score,” Raptors coach Nick Nurse said on Curry’s big night. “So we’ll take the win and be thankful for that.”

Green’s huge game ended a lengthy dry spell for the Raptors long-range specialist, who made four three-pointers in the entire six-game Eastern Conference final against Milwaukee. Green has now made six or more three-pointers in three career NBA Finals games, the second most in history.

“Danny’s buckets I think boosted our whole team’s confidence because we’re kind of used to most of the year relying on those,” Nurse said. “I think that when he banked a couple there and then he kind of kept it going, I think it was just a huge confidence boost all around.”

Moments before tipoff, Nurse noticed three words scribbled on the whiteboard in the Raptors’ locker-room: “Let it rip.”

“I [asked Lowry], ‘Did you write that?”‘ Nurse said. “But he said, ‘No, but that’s what I’m thinking.” Lowry was the Raptors’ motor. VanVleet figured the veteran point guard was in for a good night.

“He came out firing tonight and he was big,” VanVleet said. “I think putting him on Steph early got his juices going a little bit as a competitor. He was unbelievable for us tonight. Every time we needed a bucket, he gave us one. Every time they made a run, he had an answer. Kyle was unbelievable.”

The Raptors led virtually from outset, going up by 12 points in the first quarter, stretching it to 14 in the second, and 16 in the third to stun the yellow-clad crowd, which hadn’t seen a loss at Oracle Arena since April 25 — Game 5 of the opening round of the playoffs versus the L.A. Clippers.