Universal Script 📌
2.8k Views
103 Executions

Pacman

Universal Script 📌
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Pacman

Updates

  1. Script edited: Create script

View Raw
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

local pacman = Instance.new("Model")
pacman.Name = "Pacman"
pacman.Parent = workspace

local head = Instance.new("Part")
head.Name = "Head"
head.Shape = Enum.PartType.Ball
head.Size = Vector3.new(2, 2, 2)
head.Color = Color3.new(1, 1, 0) -- Yellow
head.Anchored = false
head.CanCollide = true
head.Parent = pacman

local mouth = Instance.new("Part")
mouth.Name = "Mouth"
mouth.Shape = Enum.PartType.Block
mouth.Size = Vector3.new(1, 1, 1)
mouth.Color = Color3.new(0, 0, 0) -- Black
mouth.Anchored = true
mouth.CanCollide = false
mouth.Parent = pacman

local mouthWeld = Instance.new("WeldConstraint")
mouthWeld.Part0 = head
mouthWeld.Part1 = mouth
mouthWeld.Parent = head
mouthWeld.C0 = CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(45), 0, 0)

local speed = 16
local direction = Vector3.new(1, 0, 0)

local function updatePacmanPosition()
    local currentPosition = pacman.PrimaryPart.Position


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all