Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local blue = Color3.fromRGB(0,0,255)
- local green = Color3.fromRGB(0,255,0)
- local red = Color3.fromRGB(255,0,0)
- local smallPoints = 10
- local largePoints = 50
- local losePoints = -50
- local Players = game:GetService("Players")
- local function givePoints()
- print("Player giving points")
- end
- local function partTouched(otherPart)
- local player = Players:GetPlayerFromCharacter(otherPart.Parent)
- if player then
- givePoints(player)
- end
- end
- pointPart.Touched:Connect(partTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement